From 9d6e807b87d74e96556503e0278cd8c53adb272f Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Tue, 17 Jun 2025 15:29:59 -0700 Subject: [PATCH 01/59] Base conversion --- .../ArmTemplate.tsp | 77 + .../Artifact.tsp | 89 + .../ArtifactSource.tsp | 102 + .../CustomImage.tsp | 102 + .../Microsoft.DevTestLab.Management/Disk.tsp | 113 + .../DtlEnvironment.tsp | 119 + .../Formula.tsp | 102 + .../Microsoft.DevTestLab.Management/Lab.tsp | 257 + .../LabCost.tsp | 54 + .../LabVirtualMachine.tsp | 244 + .../NotificationChannel.tsp | 115 + .../Policy.tsp | 94 + .../Schedule.tsp | 504 + .../Secret.tsp | 97 + .../ServiceFabric.tsp | 124 + .../ServiceRunner.tsp | 53 + .../Microsoft.DevTestLab.Management/User.tsp | 101 + .../VirtualNetwork.tsp | 107 + .../back-compatible.tsp | 160 + .../examples/2018-09-15/ArmTemplates_Get.json | 42 + .../2018-09-15/ArmTemplates_List.json | 45 + .../ArtifactSources_CreateOrUpdate.json | 76 + .../2018-09-15/ArtifactSources_Delete.json | 15 + .../2018-09-15/ArtifactSources_Get.json | 37 + .../2018-09-15/ArtifactSources_List.json | 40 + .../2018-09-15/ArtifactSources_Update.json | 42 + .../Artifacts_GenerateArmTemplate.json | 70 + .../examples/2018-09-15/Artifacts_Get.json | 40 + .../examples/2018-09-15/Artifacts_List.json | 43 + .../2018-09-15/Costs_CreateOrUpdate.json | 215 + .../examples/2018-09-15/Costs_Get.json | 86 + .../CustomImages_CreateOrUpdate.json | 75 + .../2018-09-15/CustomImages_Delete.json | 20 + .../examples/2018-09-15/CustomImages_Get.json | 37 + .../2018-09-15/CustomImages_List.json | 37 + .../2018-09-15/CustomImages_Update.json | 42 + .../examples/2018-09-15/Disks_Attach.json | 23 + .../2018-09-15/Disks_CreateOrUpdate.json | 55 + .../examples/2018-09-15/Disks_Delete.json | 21 + .../examples/2018-09-15/Disks_Detach.json | 23 + .../examples/2018-09-15/Disks_Get.json | 32 + .../examples/2018-09-15/Disks_List.json | 36 + .../examples/2018-09-15/Disks_Update.json | 39 + .../Environments_CreateOrUpdate.json | 60 + .../2018-09-15/Environments_Delete.json | 21 + .../examples/2018-09-15/Environments_Get.json | 33 + .../2018-09-15/Environments_List.json | 36 + .../2018-09-15/Environments_Update.json | 38 + .../2018-09-15/Formulas_CreateOrUpdate.json | 166 + .../examples/2018-09-15/Formulas_Delete.json | 15 + .../examples/2018-09-15/Formulas_Get.json | 65 + .../examples/2018-09-15/Formulas_List.json | 68 + .../examples/2018-09-15/Formulas_Update.json | 72 + .../2018-09-15/GalleryImages_List.json | 64 + .../GlobalSchedules_CreateOrUpdate.json | 96 + .../2018-09-15/GlobalSchedules_Delete.json | 14 + .../2018-09-15/GlobalSchedules_Execute.json | 18 + .../2018-09-15/GlobalSchedules_Get.json | 45 + .../GlobalSchedules_ListByResourceGroup.json | 45 + .../GlobalSchedules_ListBySubscription.json | 13 + .../2018-09-15/GlobalSchedules_Retarget.json | 22 + .../2018-09-15/GlobalSchedules_Update.json | 50 + .../examples/2018-09-15/Labs_ClaimAnyVm.json | 19 + .../2018-09-15/Labs_CreateEnvironment.json | 42 + .../2018-09-15/Labs_CreateOrUpdate.json | 83 + .../examples/2018-09-15/Labs_Delete.json | 19 + .../2018-09-15/Labs_ExportResourceUsage.json | 22 + .../2018-09-15/Labs_GenerateUploadUri.json | 20 + .../examples/2018-09-15/Labs_Get.json | 48 + .../2018-09-15/Labs_ImportVirtualMachine.json | 22 + .../2018-09-15/Labs_ListByResourceGroup.json | 47 + .../2018-09-15/Labs_ListBySubscription.json | 84 + .../examples/2018-09-15/Labs_ListVhds.json | 24 + .../examples/2018-09-15/Labs_Update.json | 45 + .../NotificationChannels_CreateOrUpdate.json | 76 + .../NotificationChannels_Delete.json | 15 + .../2018-09-15/NotificationChannels_Get.json | 38 + .../2018-09-15/NotificationChannels_List.json | 63 + .../NotificationChannels_Notify.json | 18 + .../NotificationChannels_Update.json | 39 + .../examples/2018-09-15/Operations_Get.json | 24 + .../2018-09-15/Policies_CreateOrUpdate.json | 72 + .../examples/2018-09-15/Policies_Delete.json | 16 + .../examples/2018-09-15/Policies_Get.json | 36 + .../examples/2018-09-15/Policies_List.json | 40 + .../examples/2018-09-15/Policies_Update.json | 41 + .../PolicySets_EvaluatePolicies.json | 36 + .../2018-09-15/ProviderOperations_List.json | 861 ++ .../2018-09-15/Schedules_CreateOrUpdate.json | 128 + .../examples/2018-09-15/Schedules_Delete.json | 15 + .../2018-09-15/Schedules_Execute.json | 19 + .../examples/2018-09-15/Schedules_Get.json | 54 + .../examples/2018-09-15/Schedules_List.json | 57 + .../2018-09-15/Schedules_ListApplicable.json | 58 + .../examples/2018-09-15/Schedules_Update.json | 59 + .../2018-09-15/Secrets_CreateOrUpdate.json | 39 + .../examples/2018-09-15/Secrets_Delete.json | 16 + .../examples/2018-09-15/Secrets_Get.json | 24 + .../examples/2018-09-15/Secrets_List.json | 35 + .../examples/2018-09-15/Secrets_Update.json | 29 + ...ServiceFabricSchedules_CreateOrUpdate.json | 130 + .../ServiceFabricSchedules_Delete.json | 17 + .../ServiceFabricSchedules_Execute.json | 21 + .../ServiceFabricSchedules_Get.json | 54 + .../ServiceFabricSchedules_List.json | 57 + .../ServiceFabricSchedules_Update.json | 59 + .../ServiceFabrics_CreateOrUpdate.json | 236 + .../2018-09-15/ServiceFabrics_Delete.json | 21 + .../2018-09-15/ServiceFabrics_Get.json | 120 + .../2018-09-15/ServiceFabrics_List.json | 123 + ...erviceFabrics_ListApplicableSchedules.json | 105 + .../2018-09-15/ServiceFabrics_Start.json | 20 + .../2018-09-15/ServiceFabrics_Stop.json | 20 + .../2018-09-15/ServiceFabrics_Update.json | 125 + .../ServiceRunners_CreateOrUpdate.json | 59 + .../2018-09-15/ServiceRunners_Delete.json | 15 + .../2018-09-15/ServiceRunners_Get.json | 30 + .../2018-09-15/Users_CreateOrUpdate.json | 86 + .../examples/2018-09-15/Users_Delete.json | 20 + .../examples/2018-09-15/Users_Get.json | 40 + .../examples/2018-09-15/Users_List.json | 43 + .../examples/2018-09-15/Users_Update.json | 45 + ...irtualMachineSchedules_CreateOrUpdate.json | 127 + .../VirtualMachineSchedules_Delete.json | 16 + .../VirtualMachineSchedules_Execute.json | 20 + .../VirtualMachineSchedules_Get.json | 54 + .../VirtualMachineSchedules_List.json | 57 + .../VirtualMachineSchedules_Update.json | 59 + .../VirtualMachines_AddDataDisk.json | 27 + .../VirtualMachines_ApplyArtifacts.json | 26 + .../2018-09-15/VirtualMachines_Claim.json | 19 + .../VirtualMachines_CreateOrUpdate.json | 118 + .../2018-09-15/VirtualMachines_Delete.json | 20 + .../VirtualMachines_DetachDataDisk.json | 22 + .../2018-09-15/VirtualMachines_Get.json | 56 + .../VirtualMachines_GetRdpFileContents.json | 18 + .../2018-09-15/VirtualMachines_List.json | 59 + ...rtualMachines_ListApplicableSchedules.json | 90 + .../2018-09-15/VirtualMachines_Redeploy.json | 20 + .../2018-09-15/VirtualMachines_Resize.json | 23 + .../2018-09-15/VirtualMachines_Restart.json | 20 + .../2018-09-15/VirtualMachines_Start.json | 20 + .../2018-09-15/VirtualMachines_Stop.json | 19 + .../VirtualMachines_TransferDisks.json | 19 + .../2018-09-15/VirtualMachines_UnClaim.json | 20 + .../2018-09-15/VirtualMachines_Update.json | 57 + .../VirtualNetworks_CreateOrUpdate.json | 49 + .../2018-09-15/VirtualNetworks_Delete.json | 20 + .../2018-09-15/VirtualNetworks_Get.json | 56 + .../2018-09-15/VirtualNetworks_List.json | 59 + .../2018-09-15/VirtualNetworks_Update.json | 54 + .../Microsoft.DevTestLab.Management/main.tsp | 64 + .../models.tsp | 3434 +++++ .../routes.tsp | 41 + .../tspconfig.yaml | 13 + .../stable/2018-09-15/DTL.json | 11377 ++++++++-------- .../2018-09-15/examples/ArmTemplates_Get.json | 34 +- .../examples/ArmTemplates_List.json | 32 +- .../ArtifactSources_CreateOrUpdate.json | 70 +- .../examples/ArtifactSources_Delete.json | 12 +- .../examples/ArtifactSources_Get.json | 34 +- .../examples/ArtifactSources_List.json | 32 +- .../examples/ArtifactSources_Update.json | 38 +- .../Artifacts_GenerateArmTemplate.json | 58 +- .../2018-09-15/examples/Artifacts_Get.json | 34 +- .../2018-09-15/examples/Artifacts_List.json | 32 +- .../examples/Costs_CreateOrUpdate.json | 186 +- .../stable/2018-09-15/examples/Costs_Get.json | 78 +- .../examples/CustomImages_CreateOrUpdate.json | 48 +- .../examples/CustomImages_Delete.json | 12 +- .../2018-09-15/examples/CustomImages_Get.json | 18 +- .../examples/CustomImages_List.json | 16 +- .../examples/CustomImages_Update.json | 30 +- .../2018-09-15/examples/Disks_Attach.json | 18 +- .../examples/Disks_CreateOrUpdate.json | 48 +- .../2018-09-15/examples/Disks_Delete.json | 14 +- .../2018-09-15/examples/Disks_Detach.json | 18 +- .../stable/2018-09-15/examples/Disks_Get.json | 20 +- .../2018-09-15/examples/Disks_List.json | 20 +- .../2018-09-15/examples/Disks_Update.json | 26 +- .../examples/Environments_CreateOrUpdate.json | 30 +- .../examples/Environments_Delete.json | 14 +- .../2018-09-15/examples/Environments_Get.json | 18 +- .../examples/Environments_List.json | 14 +- .../examples/Environments_Update.json | 22 +- .../examples/Formulas_CreateOrUpdate.json | 126 +- .../2018-09-15/examples/Formulas_Delete.json | 12 +- .../2018-09-15/examples/Formulas_Get.json | 54 +- .../2018-09-15/examples/Formulas_List.json | 58 +- .../2018-09-15/examples/Formulas_Update.json | 46 +- .../examples/GalleryImages_List.json | 46 +- .../GlobalSchedules_CreateOrUpdate.json | 74 +- .../examples/GlobalSchedules_Delete.json | 10 +- .../examples/GlobalSchedules_Execute.json | 10 +- .../examples/GlobalSchedules_Get.json | 40 +- .../GlobalSchedules_ListByResourceGroup.json | 34 +- .../GlobalSchedules_ListBySubscription.json | 6 +- .../examples/GlobalSchedules_Retarget.json | 16 +- .../examples/GlobalSchedules_Update.json | 42 +- .../2018-09-15/examples/Labs_ClaimAnyVm.json | 12 +- .../examples/Labs_CreateEnvironment.json | 34 +- .../examples/Labs_CreateOrUpdate.json | 68 +- .../2018-09-15/examples/Labs_Delete.json | 10 +- .../examples/Labs_ExportResourceUsage.json | 14 +- .../examples/Labs_GenerateUploadUri.json | 14 +- .../stable/2018-09-15/examples/Labs_Get.json | 46 +- .../examples/Labs_ImportVirtualMachine.json | 18 +- .../examples/Labs_ListByResourceGroup.json | 40 +- .../examples/Labs_ListBySubscription.json | 78 +- .../2018-09-15/examples/Labs_ListVhds.json | 10 +- .../2018-09-15/examples/Labs_Update.json | 42 +- .../NotificationChannels_CreateOrUpdate.json | 56 +- .../examples/NotificationChannels_Delete.json | 12 +- .../examples/NotificationChannels_Get.json | 30 +- .../examples/NotificationChannels_List.json | 44 +- .../examples/NotificationChannels_Notify.json | 14 +- .../examples/NotificationChannels_Update.json | 32 +- .../2018-09-15/examples/Operations_Get.json | 10 +- .../examples/Policies_CreateOrUpdate.json | 54 +- .../2018-09-15/examples/Policies_Delete.json | 12 +- .../2018-09-15/examples/Policies_Get.json | 30 +- .../2018-09-15/examples/Policies_List.json | 30 +- .../2018-09-15/examples/Policies_Update.json | 28 +- .../examples/PolicySets_EvaluatePolicies.json | 16 +- .../examples/Schedules_CreateOrUpdate.json | 130 +- .../2018-09-15/examples/Schedules_Delete.json | 12 +- .../examples/Schedules_Execute.json | 12 +- .../2018-09-15/examples/Schedules_Get.json | 54 +- .../2018-09-15/examples/Schedules_List.json | 52 +- .../examples/Schedules_ListApplicable.json | 54 +- .../2018-09-15/examples/Schedules_Update.json | 56 +- .../examples/Secrets_CreateOrUpdate.json | 32 +- .../2018-09-15/examples/Secrets_Delete.json | 14 +- .../2018-09-15/examples/Secrets_Get.json | 22 +- .../2018-09-15/examples/Secrets_List.json | 26 +- .../2018-09-15/examples/Secrets_Update.json | 24 +- ...ServiceFabricSchedules_CreateOrUpdate.json | 130 +- .../ServiceFabricSchedules_Delete.json | 14 +- .../ServiceFabricSchedules_Execute.json | 14 +- .../examples/ServiceFabricSchedules_Get.json | 52 +- .../examples/ServiceFabricSchedules_List.json | 52 +- .../ServiceFabricSchedules_Update.json | 56 +- .../ServiceFabrics_CreateOrUpdate.json | 198 +- .../examples/ServiceFabrics_Delete.json | 14 +- .../examples/ServiceFabrics_Get.json | 104 +- .../examples/ServiceFabrics_List.json | 100 +- ...erviceFabrics_ListApplicableSchedules.json | 102 +- .../examples/ServiceFabrics_Start.json | 14 +- .../examples/ServiceFabrics_Stop.json | 14 +- .../examples/ServiceFabrics_Update.json | 106 +- .../ServiceRunners_CreateOrUpdate.json | 46 +- .../examples/ServiceRunners_Delete.json | 12 +- .../examples/ServiceRunners_Get.json | 22 +- .../examples/Users_CreateOrUpdate.json | 78 +- .../2018-09-15/examples/Users_Delete.json | 12 +- .../stable/2018-09-15/examples/Users_Get.json | 36 +- .../2018-09-15/examples/Users_List.json | 34 +- .../2018-09-15/examples/Users_Update.json | 32 +- ...irtualMachineSchedules_CreateOrUpdate.json | 128 +- .../VirtualMachineSchedules_Delete.json | 14 +- .../VirtualMachineSchedules_Execute.json | 14 +- .../examples/VirtualMachineSchedules_Get.json | 54 +- .../VirtualMachineSchedules_List.json | 50 +- .../VirtualMachineSchedules_Update.json | 56 +- .../examples/VirtualMachines_AddDataDisk.json | 18 +- .../VirtualMachines_ApplyArtifacts.json | 16 +- .../examples/VirtualMachines_Claim.json | 12 +- .../VirtualMachines_CreateOrUpdate.json | 112 +- .../examples/VirtualMachines_Delete.json | 12 +- .../VirtualMachines_DetachDataDisk.json | 16 +- .../examples/VirtualMachines_Get.json | 56 +- .../VirtualMachines_GetRdpFileContents.json | 12 +- .../examples/VirtualMachines_List.json | 54 +- ...rtualMachines_ListApplicableSchedules.json | 92 +- .../examples/VirtualMachines_Redeploy.json | 14 +- .../examples/VirtualMachines_Resize.json | 14 +- .../examples/VirtualMachines_Restart.json | 14 +- .../examples/VirtualMachines_Start.json | 14 +- .../examples/VirtualMachines_Stop.json | 12 +- .../VirtualMachines_TransferDisks.json | 12 +- .../examples/VirtualMachines_UnClaim.json | 14 +- .../examples/VirtualMachines_Update.json | 58 +- .../VirtualNetworks_CreateOrUpdate.json | 24 +- .../examples/VirtualNetworks_Delete.json | 12 +- .../examples/VirtualNetworks_Get.json | 42 +- .../examples/VirtualNetworks_List.json | 40 +- .../examples/VirtualNetworks_Update.json | 38 +- 287 files changed, 21707 insertions(+), 8129 deletions(-) create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/back-compatible.tsp create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArmTemplates_Get.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArmTemplates_List.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_CreateOrUpdate.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Delete.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Get.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_List.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Update.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_GenerateArmTemplate.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_Get.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_List.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_CreateOrUpdate.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_Get.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_CreateOrUpdate.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Delete.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Get.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_List.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Update.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Attach.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_CreateOrUpdate.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Delete.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Detach.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Get.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_List.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Update.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_CreateOrUpdate.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Delete.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Get.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_List.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Update.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_CreateOrUpdate.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Delete.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Get.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_List.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Update.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GalleryImages_List.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_CreateOrUpdate.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Delete.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Execute.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Get.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_ListByResourceGroup.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_ListBySubscription.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Retarget.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Update.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ClaimAnyVm.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateEnvironment.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateOrUpdate.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Delete.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ExportResourceUsage.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_GenerateUploadUri.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Get.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ImportVirtualMachine.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListByResourceGroup.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListBySubscription.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListVhds.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Update.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_CreateOrUpdate.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Delete.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Get.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_List.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Notify.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Update.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Operations_Get.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_CreateOrUpdate.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_Delete.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_Get.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_List.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_Update.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/PolicySets_EvaluatePolicies.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ProviderOperations_List.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_CreateOrUpdate.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Delete.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Execute.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Get.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_List.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_ListApplicable.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Update.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_CreateOrUpdate.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Delete.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Get.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_List.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Update.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_CreateOrUpdate.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Delete.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Execute.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Get.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_List.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Update.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_CreateOrUpdate.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Delete.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Get.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_List.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_ListApplicableSchedules.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Start.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Stop.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Update.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_CreateOrUpdate.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Delete.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Get.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_CreateOrUpdate.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Delete.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Get.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_List.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Update.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_CreateOrUpdate.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Delete.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Execute.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Get.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_List.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Update.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_AddDataDisk.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_ApplyArtifacts.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Claim.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_CreateOrUpdate.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Delete.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_DetachDataDisk.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Get.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_GetRdpFileContents.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_List.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_ListApplicableSchedules.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Redeploy.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Resize.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Restart.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Start.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Stop.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_TransferDisks.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_UnClaim.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Update.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_CreateOrUpdate.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Delete.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Get.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_List.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Update.json create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/main.tsp create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/routes.tsp create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp new file mode 100644 index 000000000000..d8388a906214 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp @@ -0,0 +1,77 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevTestLab; +/** + * An Azure Resource Manager template. + */ +model ArmTemplate + is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = ArmTemplate, + KeyName = "name", + SegmentName = "armtemplates", + NamePattern = "" + >; +} + +@armResourceOperations +interface ArmTemplates { + /** + * Get azure resource manager template. + */ + get is ArmResourceRead< + ArmTemplate, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=displayName)' + */ + @query("$expand") + $expand?: string; + } + >; + + /** + * List azure resource manager templates in a given artifact source. + */ + list is ArmResourceListByParent< + ArmTemplate, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=displayName)' + */ + @query("$expand") + $expand?: string; + + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + */ + @query("$filter") + $filter?: string; + + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + @query("$top") + $top?: int32; + + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + @query("$orderby") + $orderby?: string; + }, + Response = ArmResponse + >; +} + +@@doc(ArmTemplate.name, "The name of the azure resource manager template."); +@@doc(ArmTemplate.properties, "The properties of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp new file mode 100644 index 000000000000..dedc650952cf --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp @@ -0,0 +1,89 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevTestLab; +/** + * An artifact. + */ +model Artifact + is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = Artifact, + KeyName = "name", + SegmentName = "artifacts", + NamePattern = "" + >; +} + +@armResourceOperations +interface Artifacts { + /** + * Get artifact. + */ + get is ArmResourceRead< + Artifact, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=title)' + */ + @query("$expand") + $expand?: string; + } + >; + + /** + * List artifacts in a given artifact source. + */ + list is ArmResourceListByParent< + Artifact, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=title)' + */ + @query("$expand") + $expand?: string; + + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + */ + @query("$filter") + $filter?: string; + + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + @query("$top") + $top?: int32; + + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + @query("$orderby") + $orderby?: string; + }, + Response = ArmResponse + >; + + /** + * Generates an ARM template for the given artifact, uploads the required files to a storage account, and validates the generated artifact. + */ + generateArmTemplate is ArmResourceActionSync< + Artifact, + GenerateArmTemplateRequest, + ArmResponse + >; +} + +@@doc(Artifact.name, "The name of the artifact."); +@@doc(Artifact.properties, "The properties of the resource."); +@@doc(Artifacts.generateArmTemplate::parameters.body, + "Parameters for generating an ARM template for deploying artifacts." +); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp new file mode 100644 index 000000000000..516e4e65cf4d --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp @@ -0,0 +1,102 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevTestLab; +/** + * Properties of an artifact source. + */ +model ArtifactSource + is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = ArtifactSource, + KeyName = "name", + SegmentName = "artifactsources", + NamePattern = "" + >; +} + +@armResourceOperations +interface ArtifactSources { + /** + * Get artifact source. + */ + get is ArmResourceRead< + ArtifactSource, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=displayName)' + */ + @query("$expand") + $expand?: string; + } + >; + + /** + * Create or replace an existing artifact source. + */ + createOrUpdate is ArmResourceCreateOrReplaceSync; + + /** + * Allows modifying tags of artifact sources. All other properties will be ignored. + */ + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchSync< + ArtifactSource, + PatchModel = ArtifactSourceFragment + >; + + /** + * Delete artifact source. + */ + delete is ArmResourceDeleteSync; + + /** + * List artifact sources in a given lab. + */ + list is ArmResourceListByParent< + ArtifactSource, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=displayName)' + */ + @query("$expand") + $expand?: string; + + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + */ + @query("$filter") + $filter?: string; + + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + @query("$top") + $top?: int32; + + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + @query("$orderby") + $orderby?: string; + }, + Response = ArmResponse + >; +} + +@@doc(ArtifactSource.name, "The name of the artifact source."); +@@doc(ArtifactSource.properties, "The properties of the resource."); +@@doc(ArtifactSources.createOrUpdate::parameters.resource, + "Properties of an artifact source." +); +@@doc(ArtifactSources.update::parameters.properties, + "Properties of an artifact source." +); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp new file mode 100644 index 000000000000..a469bbc9796a --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp @@ -0,0 +1,102 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevTestLab; +/** + * A custom image. + */ +model CustomImage + is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = CustomImage, + KeyName = "name", + SegmentName = "customimages", + NamePattern = "" + >; +} + +@armResourceOperations +interface CustomImages { + /** + * Get custom image. + */ + get is ArmResourceRead< + CustomImage, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=vm)' + */ + @query("$expand") + $expand?: string; + } + >; + + /** + * Create or replace an existing custom image. This operation can take a while to complete. + */ + createOrUpdate is ArmResourceCreateOrReplaceAsync< + CustomImage, + LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader + >; + + /** + * Allows modifying tags of custom images. All other properties will be ignored. + */ + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchSync; + + /** + * Delete custom image. This operation can take a while to complete. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" + delete is ArmResourceDeleteWithoutOkAsync< + CustomImage, + Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >; + + /** + * List custom images in a given lab. + */ + list is ArmResourceListByParent< + CustomImage, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=vm)' + */ + @query("$expand") + $expand?: string; + + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + */ + @query("$filter") + $filter?: string; + + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + @query("$top") + $top?: int32; + + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + @query("$orderby") + $orderby?: string; + }, + Response = ArmResponse + >; +} + +@@doc(CustomImage.name, "The name of the custom image."); +@@doc(CustomImage.properties, "The properties of the resource."); +@@doc(CustomImages.createOrUpdate::parameters.resource, "A custom image."); +@@doc(CustomImages.update::parameters.properties, "A custom image."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp new file mode 100644 index 000000000000..f9ae68b3ff7f --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp @@ -0,0 +1,113 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevTestLab; +/** + * A Disk. + */ +model Disk is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = Disk, + KeyName = "name", + SegmentName = "disks", + NamePattern = "" + >; +} + +@armResourceOperations +interface Disks { + /** + * Get disk. + */ + get is ArmResourceRead< + Disk, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=diskType)' + */ + @query("$expand") + $expand?: string; + } + >; + + /** + * Create or replace an existing disk. This operation can take a while to complete. + */ + createOrUpdate is ArmResourceCreateOrReplaceAsync< + Disk, + LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader + >; + + /** + * Allows modifying tags of disks. All other properties will be ignored. + */ + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchSync; + + /** + * Delete disk. This operation can take a while to complete. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" + delete is ArmResourceDeleteWithoutOkAsync< + Disk, + Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >; + + /** + * List disks in a given user profile. + */ + list is ArmResourceListByParent< + Disk, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=diskType)' + */ + @query("$expand") + $expand?: string; + + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + */ + @query("$filter") + $filter?: string; + + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + @query("$top") + $top?: int32; + + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + @query("$orderby") + $orderby?: string; + }, + Response = ArmResponse + >; + + /** + * Attach and create the lease of the disk to the virtual machine. This operation can take a while to complete. + */ + attach is ArmResourceActionAsync; + + /** + * Detach and break the lease of the disk attached to the virtual machine. This operation can take a while to complete. + */ + detach is ArmResourceActionAsync; +} + +@@doc(Disk.name, "The name of the disk."); +@@doc(Disk.properties, "The properties of the resource."); +@@doc(Disks.createOrUpdate::parameters.resource, "A Disk."); +@@doc(Disks.update::parameters.properties, "A Disk."); +@@doc(Disks.attach::parameters.body, "Properties of the disk to attach."); +@@doc(Disks.detach::parameters.body, "Properties of the disk to detach."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp new file mode 100644 index 000000000000..980364a23085 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp @@ -0,0 +1,119 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevTestLab; +/** + * An environment, which is essentially an ARM template deployment. + */ +model DtlEnvironment + is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = DtlEnvironment, + KeyName = "name", + SegmentName = "environments", + NamePattern = "" + >; +} + +@armResourceOperations +interface DtlEnvironments { + /** + * Get environment. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Environments_Get") + get is ArmResourceRead< + DtlEnvironment, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=deploymentProperties)' + */ + @query("$expand") + $expand?: string; + } + >; + + /** + * Create or replace an existing environment. This operation can take a while to complete. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Environments_CreateOrUpdate") + createOrUpdate is ArmResourceCreateOrReplaceAsync< + DtlEnvironment, + LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader + >; + + /** + * Allows modifying tags of environments. All other properties will be ignored. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @patch(#{ implicitOptionality: false }) + @operationId("Environments_Update") + update is ArmCustomPatchSync< + DtlEnvironment, + PatchModel = DtlEnvironmentFragment + >; + + /** + * Delete environment. This operation can take a while to complete. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" + @operationId("Environments_Delete") + delete is ArmResourceDeleteWithoutOkAsync< + DtlEnvironment, + Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >; + + /** + * List environments in a given user profile. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Environments_List") + list is ArmResourceListByParent< + DtlEnvironment, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=deploymentProperties)' + */ + @query("$expand") + $expand?: string; + + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + */ + @query("$filter") + $filter?: string; + + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + @query("$top") + $top?: int32; + + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + @query("$orderby") + $orderby?: string; + }, + Response = ArmResponse + >; +} + +@@doc(DtlEnvironment.name, "The name of the environment."); +@@doc(DtlEnvironment.properties, "The properties of the resource."); +@@doc(DtlEnvironments.createOrUpdate::parameters.resource, + "An environment, which is essentially an ARM template deployment." +); +@@doc(DtlEnvironments.update::parameters.properties, + "An environment, which is essentially an ARM template deployment." +); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp new file mode 100644 index 000000000000..288ff7d42f54 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp @@ -0,0 +1,102 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevTestLab; +/** + * A formula for creating a VM, specifying an image base and other parameters + */ +model Formula + is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = Formula, + KeyName = "name", + SegmentName = "formulas", + NamePattern = "" + >; +} + +@armResourceOperations +interface Formulas { + /** + * Get formula. + */ + get is ArmResourceRead< + Formula, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=description)' + */ + @query("$expand") + $expand?: string; + } + >; + + /** + * Create or replace an existing formula. This operation can take a while to complete. + */ + createOrUpdate is ArmResourceCreateOrReplaceAsync< + Formula, + LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader + >; + + /** + * Allows modifying tags of formulas. All other properties will be ignored. + */ + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchSync; + + /** + * Delete formula. + */ + delete is ArmResourceDeleteSync; + + /** + * List formulas in a given lab. + */ + list is ArmResourceListByParent< + Formula, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=description)' + */ + @query("$expand") + $expand?: string; + + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + */ + @query("$filter") + $filter?: string; + + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + @query("$top") + $top?: int32; + + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + @query("$orderby") + $orderby?: string; + }, + Response = ArmResponse + >; +} + +@@doc(Formula.name, "The name of the formula."); +@@doc(Formula.properties, "The properties of the resource."); +@@doc(Formulas.createOrUpdate::parameters.resource, + "A formula for creating a VM, specifying an image base and other parameters" +); +@@doc(Formulas.update::parameters.properties, + "A formula for creating a VM, specifying an image base and other parameters" +); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp new file mode 100644 index 000000000000..9efb851727e4 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp @@ -0,0 +1,257 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevTestLab; +/** + * A lab. + */ +model Lab is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = Lab, + KeyName = "name", + SegmentName = "labs", + NamePattern = "" + >; +} + +@armResourceOperations +interface Labs { + /** + * Get lab. + */ + get is ArmResourceRead< + Lab, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=defaultStorageAccount)' + */ + @query("$expand") + $expand?: string; + } + >; + + /** + * Create or replace an existing lab. This operation can take a while to complete. + */ + createOrUpdate is ArmResourceCreateOrReplaceAsync< + Lab, + LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader + >; + + /** + * Allows modifying tags of labs. All other properties will be ignored. + */ + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchSync; + + /** + * Delete lab. This operation can take a while to complete. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" + delete is ArmResourceDeleteWithoutOkAsync< + Lab, + Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >; + + /** + * List labs in a resource group. + */ + listByResourceGroup is ArmResourceListByParent< + Lab, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=defaultStorageAccount)' + */ + @query("$expand") + $expand?: string; + + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + */ + @query("$filter") + $filter?: string; + + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + @query("$top") + $top?: int32; + + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + @query("$orderby") + $orderby?: string; + }, + Response = ArmResponse + >; + + /** + * List labs in a subscription. + */ + listBySubscription is ArmListBySubscription< + Lab, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=defaultStorageAccount)' + */ + @query("$expand") + $expand?: string; + + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + */ + @query("$filter") + $filter?: string; + + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + @query("$top") + $top?: int32; + + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + @query("$orderby") + $orderby?: string; + }, + Response = ArmResponse + >; + + /** + * Claim a random claimable virtual machine in the lab. This operation can take a while to complete. + */ + claimAnyVm is ArmResourceActionAsync; + + /** + * Create virtual machines in a lab. This operation can take a while to complete. + */ + createEnvironment is ArmResourceActionAsync< + Lab, + LabVirtualMachineCreationParameter, + OkResponse + >; + + /** + * Exports the lab resource usage into a storage account This operation can take a while to complete. + */ + exportResourceUsage is ArmResourceActionAsync< + Lab, + ExportResourceUsageParameters, + OkResponse + >; + + /** + * Generate a URI for uploading custom disk images to a Lab. + */ + generateUploadUri is ArmResourceActionSync< + Lab, + GenerateUploadUriParameter, + ArmResponse + >; + + /** + * Import a virtual machine into a different lab. This operation can take a while to complete. + */ + importVirtualMachine is ArmResourceActionAsync< + Lab, + ImportLabVirtualMachineRequest, + OkResponse + >; + + /** + * List disk images available for custom image creation. + */ + listVhds is ArmResourceActionSync>; + + /** + * List gallery images in a given lab. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @get + @action("galleryimages") + @operationId("GalleryImages_List") + list is ArmResourceActionSync< + Lab, + void, + ArmResponse, + Parameters = { + /** + * The name of the lab. + */ + @path + labName: string; + + /** + * Specify the $expand query. Example: 'properties($select=author)' + */ + @query("$expand") + $expand?: string; + + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + */ + @query("$filter") + $filter?: string; + + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + @query("$top") + $top?: int32; + + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + @query("$orderby") + $orderby?: string; + } + >; + + /** + * Evaluates lab policy. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("PolicySets_EvaluatePolicies") + evaluatePolicies is ArmResourceActionSync< + Lab, + EvaluatePoliciesRequest, + ArmResponse, + Parameters = { + /** + * The name of the lab. + */ + @path + labName: string; + } + >; +} + +@@doc(Lab.name, "The name of the lab."); +@@doc(Lab.properties, "The properties of the resource."); +@@doc(Labs.createOrUpdate::parameters.resource, "A lab."); +@@doc(Labs.update::parameters.properties, "A lab."); +@@doc(Labs.createEnvironment::parameters.body, + "Properties for creating a virtual machine." +); +@@doc(Labs.exportResourceUsage::parameters.body, + "The parameters of the export operation." +); +@@doc(Labs.generateUploadUri::parameters.body, + "Properties for generating an upload URI." +); +@@doc(Labs.importVirtualMachine::parameters.body, + "This represents the payload required to import a virtual machine from a different lab into the current one" +); +@@doc(Labs.evaluatePolicies::parameters.body, + "Request body for evaluating a policy set." +); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp new file mode 100644 index 000000000000..6e637b4142e9 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp @@ -0,0 +1,54 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevTestLab; +/** + * A cost item. + */ +model LabCost + is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = LabCost, + KeyName = "name", + SegmentName = "costs", + NamePattern = "" + >; +} + +@armResourceOperations +interface LabCosts { + /** + * Get cost. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Costs_Get") + get is ArmResourceRead< + LabCost, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($expand=labCostDetails)' + */ + @query("$expand") + $expand?: string; + } + >; + + /** + * Create or replace an existing cost. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Costs_CreateOrUpdate") + createOrUpdate is ArmResourceCreateOrReplaceSync; +} + +@@doc(LabCost.name, "The name of the cost."); +@@doc(LabCost.properties, "The properties of the resource."); +@@doc(LabCosts.createOrUpdate::parameters.resource, "A cost item."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp new file mode 100644 index 000000000000..ab43f1981cf9 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp @@ -0,0 +1,244 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevTestLab; +/** + * A virtual machine. + */ +model LabVirtualMachine + is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = LabVirtualMachine, + KeyName = "name", + SegmentName = "virtualmachines", + NamePattern = "" + >; +} + +@armResourceOperations +interface LabVirtualMachines { + /** + * Get virtual machine. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("VirtualMachines_Get") + get is ArmResourceRead< + LabVirtualMachine, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)' + */ + @query("$expand") + $expand?: string; + } + >; + + /** + * Create or replace an existing virtual machine. This operation can take a while to complete. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("VirtualMachines_CreateOrUpdate") + createOrUpdate is ArmResourceCreateOrReplaceAsync< + LabVirtualMachine, + LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader + >; + + /** + * Allows modifying tags of virtual machines. All other properties will be ignored. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @patch(#{ implicitOptionality: false }) + @operationId("VirtualMachines_Update") + update is ArmCustomPatchSync< + LabVirtualMachine, + PatchModel = LabVirtualMachineFragment + >; + + /** + * Delete virtual machine. This operation can take a while to complete. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" + @operationId("VirtualMachines_Delete") + delete is ArmResourceDeleteWithoutOkAsync< + LabVirtualMachine, + Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >; + + /** + * List virtual machines in a given lab. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("VirtualMachines_List") + list is ArmResourceListByParent< + LabVirtualMachine, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)' + */ + @query("$expand") + $expand?: string; + + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + */ + @query("$filter") + $filter?: string; + + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + @query("$top") + $top?: int32; + + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + @query("$orderby") + $orderby?: string; + }, + Response = ArmResponse + >; + + /** + * Attach a new or existing data disk to virtual machine. This operation can take a while to complete. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("VirtualMachines_AddDataDisk") + addDataDisk is ArmResourceActionAsync< + LabVirtualMachine, + DataDiskProperties, + OkResponse + >; + + /** + * Apply artifacts to virtual machine. This operation can take a while to complete. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("VirtualMachines_ApplyArtifacts") + applyArtifacts is ArmResourceActionAsync< + LabVirtualMachine, + ApplyArtifactsRequest, + OkResponse + >; + + /** + * Take ownership of an existing virtual machine This operation can take a while to complete. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("VirtualMachines_Claim") + claim is ArmResourceActionAsync; + + /** + * Detach the specified disk from the virtual machine. This operation can take a while to complete. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("VirtualMachines_DetachDataDisk") + detachDataDisk is ArmResourceActionAsync< + LabVirtualMachine, + DetachDataDiskProperties, + OkResponse + >; + + /** + * Gets a string that represents the contents of the RDP file for the virtual machine + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("VirtualMachines_GetRdpFileContents") + getRdpFileContents is ArmResourceActionSync< + LabVirtualMachine, + void, + ArmResponse + >; + + /** + * Lists the applicable start/stop schedules, if any. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("VirtualMachines_ListApplicableSchedules") + listApplicableSchedules is ArmResourceActionSync< + LabVirtualMachine, + void, + ArmResponse + >; + + /** + * Redeploy a virtual machine This operation can take a while to complete. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("VirtualMachines_Redeploy") + redeploy is ArmResourceActionAsync; + + /** + * Resize Virtual Machine. This operation can take a while to complete. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("VirtualMachines_Resize") + resize is ArmResourceActionAsync< + LabVirtualMachine, + ResizeLabVirtualMachineProperties, + OkResponse + >; + + /** + * Restart a virtual machine. This operation can take a while to complete. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("VirtualMachines_Restart") + restart is ArmResourceActionAsync; + + /** + * Start a virtual machine. This operation can take a while to complete. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("VirtualMachines_Start") + start is ArmResourceActionAsync; + + /** + * Stop a virtual machine This operation can take a while to complete. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("VirtualMachines_Stop") + stop is ArmResourceActionAsync; + + /** + * Transfers all data disks attached to the virtual machine to be owned by the current user. This operation can take a while to complete. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("VirtualMachines_TransferDisks") + transferDisks is ArmResourceActionAsync; + + /** + * Release ownership of an existing virtual machine This operation can take a while to complete. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("VirtualMachines_UnClaim") + unClaim is ArmResourceActionAsync; +} + +@@doc(LabVirtualMachine.name, "The name of the virtual machine."); +@@doc(LabVirtualMachine.properties, "The properties of the resource."); +@@doc(LabVirtualMachines.createOrUpdate::parameters.resource, + "A virtual machine." +); +@@doc(LabVirtualMachines.update::parameters.properties, "A virtual machine."); +@@doc(LabVirtualMachines.addDataDisk::parameters.body, + "Request body for adding a new or existing data disk to a virtual machine." +); +@@doc(LabVirtualMachines.applyArtifacts::parameters.body, + "Request body for applying artifacts to a virtual machine." +); +@@doc(LabVirtualMachines.detachDataDisk::parameters.body, + "Request body for detaching data disk from a virtual machine." +); +@@doc(LabVirtualMachines.resize::parameters.body, + "Request body for resizing a virtual machine." +); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp new file mode 100644 index 000000000000..9ec57b132468 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp @@ -0,0 +1,115 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevTestLab; +/** + * A notification. + */ +model NotificationChannel + is Azure.ResourceManager.TrackedResource< + NotificationChannelProperties, + false + > { + ...ResourceNameParameter< + Resource = NotificationChannel, + KeyName = "name", + SegmentName = "notificationchannels", + NamePattern = "" + >; +} + +@armResourceOperations +interface NotificationChannels { + /** + * Get notification channel. + */ + get is ArmResourceRead< + NotificationChannel, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=webHookUrl)' + */ + @query("$expand") + $expand?: string; + } + >; + + /** + * Create or replace an existing notification channel. + */ + createOrUpdate is ArmResourceCreateOrReplaceSync; + + /** + * Allows modifying tags of notification channels. All other properties will be ignored. + */ + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchSync< + NotificationChannel, + PatchModel = NotificationChannelFragment + >; + + /** + * Delete notification channel. + */ + delete is ArmResourceDeleteSync; + + /** + * List notification channels in a given lab. + */ + list is ArmResourceListByParent< + NotificationChannel, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=webHookUrl)' + */ + @query("$expand") + $expand?: string; + + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + */ + @query("$filter") + $filter?: string; + + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + @query("$top") + $top?: int32; + + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + @query("$orderby") + $orderby?: string; + }, + Response = ArmResponse + >; + + /** + * Send notification to provided channel. + */ + notify is ArmResourceActionSync< + NotificationChannel, + NotifyParameters, + OkResponse + >; +} + +@@doc(NotificationChannel.name, "The name of the notification channel."); +@@doc(NotificationChannel.properties, "The properties of the resource."); +@@doc(NotificationChannels.createOrUpdate::parameters.resource, + "A notification." +); +@@doc(NotificationChannels.update::parameters.properties, "A notification."); +@@doc(NotificationChannels.notify::parameters.body, + "Properties for generating a Notification." +); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp new file mode 100644 index 000000000000..f5a0c5793366 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp @@ -0,0 +1,94 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevTestLab; +/** + * A Policy. + */ +model Policy is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = Policy, + KeyName = "name", + SegmentName = "policies", + NamePattern = "" + >; +} + +@armResourceOperations +interface Policies { + /** + * Get policy. + */ + get is ArmResourceRead< + Policy, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=description)' + */ + @query("$expand") + $expand?: string; + } + >; + + /** + * Create or replace an existing policy. + */ + createOrUpdate is ArmResourceCreateOrReplaceSync; + + /** + * Allows modifying tags of policies. All other properties will be ignored. + */ + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchSync; + + /** + * Delete policy. + */ + delete is ArmResourceDeleteSync; + + /** + * List policies in a given policy set. + */ + list is ArmResourceListByParent< + Policy, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=description)' + */ + @query("$expand") + $expand?: string; + + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + */ + @query("$filter") + $filter?: string; + + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + @query("$top") + $top?: int32; + + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + @query("$orderby") + $orderby?: string; + }, + Response = ArmResponse + >; +} + +@@doc(Policy.name, "The name of the policy."); +@@doc(Policy.properties, "The properties of the resource."); +@@doc(Policies.createOrUpdate::parameters.resource, "A Policy."); +@@doc(Policies.update::parameters.properties, "A Policy."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp new file mode 100644 index 000000000000..eea1335576ca --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp @@ -0,0 +1,504 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevTestLab; +/** + * A schedule. + */ +model Schedule + is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = Schedule, + KeyName = "name", + SegmentName = "schedules", + NamePattern = "" + >; +} + +@armResourceOperations +interface ScheduleOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + }, + KeysOf> + > {} + +@armResourceOperations +interface Schedules { + /** + * Get schedule. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("GlobalSchedules_Get") + get is ScheduleOps.Read< + Schedule, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=status)' + */ + @query("$expand") + $expand?: string; + } + >; + + /** + * Create or replace an existing schedule. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("GlobalSchedules_CreateOrUpdate") + createOrUpdate is ScheduleOps.CreateOrUpdateSync; + + /** + * Allows modifying tags of schedules. All other properties will be ignored. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @patch(#{ implicitOptionality: false }) + @operationId("GlobalSchedules_Update") + update is ScheduleOps.CustomPatchSync< + Schedule, + PatchModel = ScheduleFragment + >; + + /** + * Delete schedule. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("GlobalSchedules_Delete") + delete is ScheduleOps.DeleteSync; + + /** + * List schedules in a resource group. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("GlobalSchedules_ListByResourceGroup") + listByResourceGroup is ScheduleOps.List< + Schedule, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=status)' + */ + @query("$expand") + $expand?: string; + + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + */ + @query("$filter") + $filter?: string; + + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + @query("$top") + $top?: int32; + + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + @query("$orderby") + $orderby?: string; + }, + Response = ArmResponse + >; + + /** + * List schedules in a subscription. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("GlobalSchedules_ListBySubscription") + listBySubscription is ArmListBySubscription< + Schedule, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=status)' + */ + @query("$expand") + $expand?: string; + + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + */ + @query("$filter") + $filter?: string; + + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + @query("$top") + $top?: int32; + + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + @query("$orderby") + $orderby?: string; + }, + Response = ArmResponse + >; + + /** + * Execute a schedule. This operation can take a while to complete. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("GlobalSchedules_Execute") + execute is ScheduleOps.ActionAsync; + + /** + * Updates a schedule's target resource Id. This operation can take a while to complete. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("GlobalSchedules_Retarget") + retarget is ScheduleOps.ActionAsync< + Schedule, + RetargetScheduleProperties, + OkResponse + >; +} +@armResourceOperations +interface ScheduleOperationGroupOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + /** labs */ + @path @segment("labs") labName: string, + }, + KeysOf> + > {} + +@armResourceOperations +interface ScheduleOperationGroup { + /** + * Get schedule. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Schedules_Get") + get is ScheduleOperationGroupOps.Read< + Schedule, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=status)' + */ + @query("$expand") + $expand?: string; + } + >; + + /** + * Create or replace an existing schedule. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Schedules_CreateOrUpdate") + createOrUpdate is ScheduleOperationGroupOps.CreateOrUpdateSync; + + /** + * Allows modifying tags of schedules. All other properties will be ignored. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @patch(#{ implicitOptionality: false }) + @operationId("Schedules_Update") + update is ScheduleOperationGroupOps.CustomPatchSync< + Schedule, + PatchModel = ScheduleFragment + >; + + /** + * Delete schedule. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Schedules_Delete") + delete is ScheduleOperationGroupOps.DeleteSync; + + /** + * List schedules in a given lab. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Schedules_List") + list is ScheduleOperationGroupOps.List< + Schedule, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=status)' + */ + @query("$expand") + $expand?: string; + + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + */ + @query("$filter") + $filter?: string; + + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + @query("$top") + $top?: int32; + + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + @query("$orderby") + $orderby?: string; + }, + Response = ArmResponse + >; + + /** + * Execute a schedule. This operation can take a while to complete. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Schedules_Execute") + execute is ScheduleOperationGroupOps.ActionAsync; + + /** + * Lists all applicable schedules + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Schedules_ListApplicable") + listApplicable is ScheduleOperationGroupOps.ActionSync< + Schedule, + void, + ArmResponse + >; +} +@armResourceOperations +interface ServiceFabricScheduleOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + /** labs */ + @path @segment("labs") labName: string, + + /** users */ + @path @segment("users") userName: string, + + /** servicefabrics */ + @path @segment("servicefabrics") serviceFabricName: string, + }, + KeysOf> + > {} + +@armResourceOperations +interface ServiceFabricSchedules { + /** + * Get schedule. + */ + get is ServiceFabricScheduleOps.Read< + Schedule, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=status)' + */ + @query("$expand") + $expand?: string; + } + >; + + /** + * Create or replace an existing schedule. + */ + createOrUpdate is ServiceFabricScheduleOps.CreateOrUpdateSync; + + /** + * Allows modifying tags of schedules. All other properties will be ignored. + */ + @patch(#{ implicitOptionality: false }) + update is ServiceFabricScheduleOps.CustomPatchSync< + Schedule, + PatchModel = ScheduleFragment + >; + + /** + * Delete schedule. + */ + delete is ServiceFabricScheduleOps.DeleteSync; + + /** + * List schedules in a given service fabric. + */ + list is ServiceFabricScheduleOps.List< + Schedule, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=status)' + */ + @query("$expand") + $expand?: string; + + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + */ + @query("$filter") + $filter?: string; + + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + @query("$top") + $top?: int32; + + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + @query("$orderby") + $orderby?: string; + }, + Response = ArmResponse + >; + + /** + * Execute a schedule. This operation can take a while to complete. + */ + execute is ServiceFabricScheduleOps.ActionAsync; +} +@armResourceOperations +interface VirtualMachineScheduleOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + /** labs */ + @path @segment("labs") labName: string, + + /** virtualmachines */ + @path @segment("virtualmachines") virtualMachineName: string, + }, + KeysOf> + > {} + +@armResourceOperations +interface VirtualMachineSchedules { + /** + * Get schedule. + */ + get is VirtualMachineScheduleOps.Read< + Schedule, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=status)' + */ + @query("$expand") + $expand?: string; + } + >; + + /** + * Create or replace an existing schedule. + */ + createOrUpdate is VirtualMachineScheduleOps.CreateOrUpdateSync; + + /** + * Allows modifying tags of schedules. All other properties will be ignored. + */ + @patch(#{ implicitOptionality: false }) + update is VirtualMachineScheduleOps.CustomPatchSync< + Schedule, + PatchModel = ScheduleFragment + >; + + /** + * Delete schedule. + */ + delete is VirtualMachineScheduleOps.DeleteSync; + + /** + * List schedules in a given virtual machine. + */ + list is VirtualMachineScheduleOps.List< + Schedule, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=status)' + */ + @query("$expand") + $expand?: string; + + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + */ + @query("$filter") + $filter?: string; + + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + @query("$top") + $top?: int32; + + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + @query("$orderby") + $orderby?: string; + }, + Response = ArmResponse + >; + + /** + * Execute a schedule. This operation can take a while to complete. + */ + execute is VirtualMachineScheduleOps.ActionAsync; +} + +@@doc(Schedule.name, "The name of the schedule."); +@@doc(Schedule.properties, "The properties of the resource."); +@@doc(Schedules.createOrUpdate::parameters.resource, "A schedule."); +@@doc(Schedules.update::parameters.properties, "A schedule."); +@@doc(Schedules.retarget::parameters.body, + "Properties for retargeting a virtual machine schedule." +); +@@doc(ScheduleOperationGroup.createOrUpdate::parameters.resource, + "A schedule." +); +@@doc(ScheduleOperationGroup.update::parameters.properties, "A schedule."); +@@doc(ServiceFabricSchedules.createOrUpdate::parameters.resource, + "A schedule." +); +@@doc(ServiceFabricSchedules.update::parameters.properties, "A schedule."); +@@doc(VirtualMachineSchedules.createOrUpdate::parameters.resource, + "A schedule." +); +@@doc(VirtualMachineSchedules.update::parameters.properties, "A schedule."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp new file mode 100644 index 000000000000..e12a2b834022 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp @@ -0,0 +1,97 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevTestLab; +/** + * A secret. + */ +model Secret is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = Secret, + KeyName = "name", + SegmentName = "secrets", + NamePattern = "" + >; +} + +@armResourceOperations +interface Secrets { + /** + * Get secret. + */ + get is ArmResourceRead< + Secret, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=value)' + */ + @query("$expand") + $expand?: string; + } + >; + + /** + * Create or replace an existing secret. This operation can take a while to complete. + */ + createOrUpdate is ArmResourceCreateOrReplaceAsync< + Secret, + LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader + >; + + /** + * Allows modifying tags of secrets. All other properties will be ignored. + */ + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchSync; + + /** + * Delete secret. + */ + delete is ArmResourceDeleteSync; + + /** + * List secrets in a given user profile. + */ + list is ArmResourceListByParent< + Secret, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=value)' + */ + @query("$expand") + $expand?: string; + + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + */ + @query("$filter") + $filter?: string; + + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + @query("$top") + $top?: int32; + + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + @query("$orderby") + $orderby?: string; + }, + Response = ArmResponse + >; +} + +@@doc(Secret.name, "The name of the secret."); +@@doc(Secret.properties, "The properties of the resource."); +@@doc(Secrets.createOrUpdate::parameters.resource, "A secret."); +@@doc(Secrets.update::parameters.properties, "A secret."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp new file mode 100644 index 000000000000..a6ce9ce71134 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp @@ -0,0 +1,124 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevTestLab; +/** + * A Service Fabric. + */ +model ServiceFabric + is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = ServiceFabric, + KeyName = "name", + SegmentName = "servicefabrics", + NamePattern = "" + >; +} + +@armResourceOperations +interface ServiceFabrics { + /** + * Get service fabric. + */ + get is ArmResourceRead< + ServiceFabric, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($expand=applicableSchedule)' + */ + @query("$expand") + $expand?: string; + } + >; + + /** + * Create or replace an existing service fabric. This operation can take a while to complete. + */ + createOrUpdate is ArmResourceCreateOrReplaceAsync< + ServiceFabric, + LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader + >; + + /** + * Allows modifying tags of service fabrics. All other properties will be ignored. + */ + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchSync< + ServiceFabric, + PatchModel = ServiceFabricFragment + >; + + /** + * Delete service fabric. This operation can take a while to complete. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" + delete is ArmResourceDeleteWithoutOkAsync< + ServiceFabric, + Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >; + + /** + * List service fabrics in a given user profile. + */ + list is ArmResourceListByParent< + ServiceFabric, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($expand=applicableSchedule)' + */ + @query("$expand") + $expand?: string; + + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + */ + @query("$filter") + $filter?: string; + + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + @query("$top") + $top?: int32; + + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + @query("$orderby") + $orderby?: string; + }, + Response = ArmResponse + >; + + /** + * Lists the applicable start/stop schedules, if any. + */ + listApplicableSchedules is ArmResourceActionSync< + ServiceFabric, + void, + ArmResponse + >; + + /** + * Start a service fabric. This operation can take a while to complete. + */ + start is ArmResourceActionAsync; + + /** + * Stop a service fabric This operation can take a while to complete. + */ + stop is ArmResourceActionAsync; +} + +@@doc(ServiceFabric.name, "The name of the service fabric."); +@@doc(ServiceFabric.properties, "The properties of the resource."); +@@doc(ServiceFabrics.createOrUpdate::parameters.resource, "A Service Fabric."); +@@doc(ServiceFabrics.update::parameters.properties, "A Service Fabric."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp new file mode 100644 index 000000000000..6bcfddea94ce --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp @@ -0,0 +1,53 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevTestLab; +// FIXME: ServiceRunner has no properties property +/** + * A container for a managed identity to execute DevTest lab services. + */ +model ServiceRunner is Azure.ResourceManager.TrackedResource<{}> { + ...ResourceNameParameter< + Resource = ServiceRunner, + KeyName = "name", + SegmentName = "servicerunners", + NamePattern = "" + >; + + /** + * The identity of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + identity?: IdentityProperties; +} + +@armResourceOperations +interface ServiceRunners { + /** + * Get service runner. + */ + get is ArmResourceRead; + + /** + * Create or replace an existing service runner. + */ + createOrUpdate is ArmResourceCreateOrReplaceSync; + + /** + * Delete service runner. + */ + delete is ArmResourceDeleteSync; +} + +@@doc(ServiceRunner.name, "The name of the service runner."); +@@doc(ServiceRunners.createOrUpdate::parameters.resource, + "A container for a managed identity to execute DevTest lab services." +); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp new file mode 100644 index 000000000000..d9e95e34f445 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp @@ -0,0 +1,101 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevTestLab; +/** + * Profile of a lab user. + */ +model User is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = User, + KeyName = "name", + SegmentName = "users", + NamePattern = "" + >; +} + +@armResourceOperations +interface Users { + /** + * Get user profile. + */ + get is ArmResourceRead< + User, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=identity)' + */ + @query("$expand") + $expand?: string; + } + >; + + /** + * Create or replace an existing user profile. This operation can take a while to complete. + */ + createOrUpdate is ArmResourceCreateOrReplaceAsync< + User, + LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader + >; + + /** + * Allows modifying tags of user profiles. All other properties will be ignored. + */ + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchSync; + + /** + * Delete user profile. This operation can take a while to complete. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" + delete is ArmResourceDeleteWithoutOkAsync< + User, + Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >; + + /** + * List user profiles in a given lab. + */ + list is ArmResourceListByParent< + User, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=identity)' + */ + @query("$expand") + $expand?: string; + + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + */ + @query("$filter") + $filter?: string; + + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + @query("$top") + $top?: int32; + + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + @query("$orderby") + $orderby?: string; + }, + Response = ArmResponse + >; +} + +@@doc(User.name, "The name of the user profile."); +@@doc(User.properties, "The properties of the resource."); +@@doc(Users.createOrUpdate::parameters.resource, "Profile of a lab user."); +@@doc(Users.update::parameters.properties, "Profile of a lab user."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp new file mode 100644 index 000000000000..a70f73131157 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp @@ -0,0 +1,107 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevTestLab; +/** + * A virtual network. + */ +model VirtualNetwork + is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = VirtualNetwork, + KeyName = "name", + SegmentName = "virtualnetworks", + NamePattern = "" + >; +} + +@armResourceOperations +interface VirtualNetworks { + /** + * Get virtual network. + */ + get is ArmResourceRead< + VirtualNetwork, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($expand=externalSubnets)' + */ + @query("$expand") + $expand?: string; + } + >; + + /** + * Create or replace an existing virtual network. This operation can take a while to complete. + */ + createOrUpdate is ArmResourceCreateOrReplaceAsync< + VirtualNetwork, + LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader + >; + + /** + * Allows modifying tags of virtual networks. All other properties will be ignored. + */ + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchSync< + VirtualNetwork, + PatchModel = VirtualNetworkFragment + >; + + /** + * Delete virtual network. This operation can take a while to complete. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" + delete is ArmResourceDeleteWithoutOkAsync< + VirtualNetwork, + Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >; + + /** + * List virtual networks in a given lab. + */ + list is ArmResourceListByParent< + VirtualNetwork, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($expand=externalSubnets)' + */ + @query("$expand") + $expand?: string; + + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + */ + @query("$filter") + $filter?: string; + + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + @query("$top") + $top?: int32; + + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + @query("$orderby") + $orderby?: string; + }, + Response = ArmResponse + >; +} + +@@doc(VirtualNetwork.name, "The name of the virtual network."); +@@doc(VirtualNetwork.properties, "The properties of the resource."); +@@doc(VirtualNetworks.createOrUpdate::parameters.resource, + "A virtual network." +); +@@doc(VirtualNetworks.update::parameters.properties, "A virtual network."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/back-compatible.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/back-compatible.tsp new file mode 100644 index 000000000000..9c319594693e --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/back-compatible.tsp @@ -0,0 +1,160 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +using Microsoft.DevTestLab; + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(LabVirtualMachineCreationParameter.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(ScheduleCreationParameter.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(GalleryImage.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(ApplicableSchedule.properties); + +@@clientName(Labs.createOrUpdate::parameters.resource, "lab"); +@@clientName(Labs.update::parameters.properties, "lab"); +@@clientName(Labs.createEnvironment::parameters.body, + "labVirtualMachineCreationParameter" +); +@@clientName(Labs.exportResourceUsage::parameters.body, + "exportResourceUsageParameters" +); +@@clientName(Labs.generateUploadUri::parameters.body, + "generateUploadUriParameter" +); +@@clientName(Labs.importVirtualMachine::parameters.body, + "importLabVirtualMachineRequest" +); +@@clientName(Labs.evaluatePolicies::parameters.body, "evaluatePoliciesRequest"); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(Lab.properties); + +@@clientName(Schedules.createOrUpdate::parameters.resource, "schedule"); +@@clientName(Schedules.update::parameters.properties, "schedule"); +@@clientName(Schedules.retarget::parameters.body, "retargetScheduleProperties"); +@@clientName(ScheduleOperationGroup.createOrUpdate::parameters.resource, + "schedule" +); +@@clientName(ScheduleOperationGroup.update::parameters.properties, "schedule"); +@@clientName(ServiceFabricSchedules.createOrUpdate::parameters.resource, + "schedule" +); +@@clientName(ServiceFabricSchedules.update::parameters.properties, "schedule"); +@@clientName(VirtualMachineSchedules.createOrUpdate::parameters.resource, + "schedule" +); +@@clientName(VirtualMachineSchedules.update::parameters.properties, "schedule"); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(Schedule.properties); + +@@clientName(ArtifactSources.createOrUpdate::parameters.resource, + "artifactSource" +); +@@clientName(ArtifactSources.update::parameters.properties, "artifactSource"); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(ArtifactSource.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(ArmTemplate.properties); + +@@clientName(Artifacts.generateArmTemplate::parameters.body, + "generateArmTemplateRequest" +); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(Artifact.properties); + +@@clientName(LabCosts.createOrUpdate::parameters.resource, "labCost"); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(LabCost.properties); + +@@clientName(CustomImages.createOrUpdate::parameters.resource, "customImage"); +@@clientName(CustomImages.update::parameters.properties, "customImage"); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(CustomImage.properties); + +@@clientName(Formulas.createOrUpdate::parameters.resource, "formula"); +@@clientName(Formulas.update::parameters.properties, "formula"); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(Formula.properties); + +@@clientName(NotificationChannels.createOrUpdate::parameters.resource, + "notificationChannel" +); +@@clientName(NotificationChannels.update::parameters.properties, + "notificationChannel" +); +@@clientName(NotificationChannels.notify::parameters.body, "notifyParameters"); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(NotificationChannel.properties); + +@@clientName(Policies.createOrUpdate::parameters.resource, "policy"); +@@clientName(Policies.update::parameters.properties, "policy"); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(Policy.properties); + +@@clientName(ServiceRunners.createOrUpdate::parameters.resource, + "serviceRunner" +); + +@@clientName(Users.createOrUpdate::parameters.resource, "user"); +@@clientName(Users.update::parameters.properties, "user"); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(User.properties); + +@@clientName(Disks.createOrUpdate::parameters.resource, "disk"); +@@clientName(Disks.update::parameters.properties, "disk"); +@@clientName(Disks.attach::parameters.body, "attachDiskProperties"); +@@clientName(Disks.detach::parameters.body, "detachDiskProperties"); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(Disk.properties); + +@@clientName(DtlEnvironments.createOrUpdate::parameters.resource, + "dtlEnvironment" +); +@@clientName(DtlEnvironments.update::parameters.properties, "dtlEnvironment"); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(DtlEnvironment.properties); + +@@clientName(Secrets.createOrUpdate::parameters.resource, "secret"); +@@clientName(Secrets.update::parameters.properties, "secret"); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(Secret.properties); + +@@clientName(ServiceFabrics.createOrUpdate::parameters.resource, + "serviceFabric" +); +@@clientName(ServiceFabrics.update::parameters.properties, "serviceFabric"); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(ServiceFabric.properties); + +@@clientName(LabVirtualMachines.createOrUpdate::parameters.resource, + "labVirtualMachine" +); +@@clientName(LabVirtualMachines.update::parameters.properties, + "labVirtualMachine" +); +@@clientName(LabVirtualMachines.addDataDisk::parameters.body, + "dataDiskProperties" +); +@@clientName(LabVirtualMachines.applyArtifacts::parameters.body, + "applyArtifactsRequest" +); +@@clientName(LabVirtualMachines.detachDataDisk::parameters.body, + "detachDataDiskProperties" +); +@@clientName(LabVirtualMachines.resize::parameters.body, + "resizeLabVirtualMachineProperties" +); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(LabVirtualMachine.properties); + +@@clientName(VirtualNetworks.createOrUpdate::parameters.resource, + "virtualNetwork" +); +@@clientName(VirtualNetworks.update::parameters.properties, "virtualNetwork"); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(VirtualNetwork.properties); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArmTemplates_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArmTemplates_Get.json new file mode 100644 index 000000000000..f017a756b1b0 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArmTemplates_Get.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "name": "{armTemplateName}", + "api-version": "2018-09-15", + "artifactSourceName": "{artifactSourceName}", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "Template1", + "type": "Microsoft.DevTestLab/labs/artifactSources/armTemplates", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}", + "location": "{location}", + "properties": { + "contents": { + "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": {}, + "resources": [], + "variables": { + "hostingPlanName": "[toLower(concat(variables('resourceNamePrefix'), '-', take(uniqueString(resourceGroup().id), 6), '-sp'))]", + "resourceNamePrefix": "[take(uniqueString(resourceGroup().id), 3)]", + "siteName": "[toLower(concat(variables('resourceNamePrefix'), '-', take(uniqueString(resourceGroup().id), 6)))]" + } + }, + "displayName": "Template1", + "enabled": true, + "parametersValueFilesInfo": [], + "publisher": "Microsoft" + }, + "tags": { + "MyTag": "MyValue" + } + } + } + }, + "operationId": "ArmTemplates_Get", + "title": "ArmTemplates_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArmTemplates_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArmTemplates_List.json new file mode 100644 index 000000000000..bd1d85e2d1ab --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArmTemplates_List.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "artifactSourceName": "{artifactSourceName}", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Template1", + "type": "Microsoft.DevTestLab/labs/artifactSources/armTemplates", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}", + "location": "{location}", + "properties": { + "contents": { + "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": {}, + "resources": [], + "variables": { + "hostingPlanName": "[toLower(concat(variables('resourceNamePrefix'), '-', take(uniqueString(resourceGroup().id), 6), '-sp'))]", + "resourceNamePrefix": "[take(uniqueString(resourceGroup().id), 3)]", + "siteName": "[toLower(concat(variables('resourceNamePrefix'), '-', take(uniqueString(resourceGroup().id), 6)))]" + } + }, + "displayName": "Template1", + "enabled": true, + "parametersValueFilesInfo": [], + "publisher": "Microsoft" + }, + "tags": { + "MyTag": "MyValue" + } + } + ] + } + } + }, + "operationId": "ArmTemplates_List", + "title": "ArmTemplates_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_CreateOrUpdate.json new file mode 100644 index 000000000000..9d4373f7924a --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_CreateOrUpdate.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "name": "{artifactSourceName}", + "api-version": "2018-09-15", + "artifactSource": { + "properties": { + "armTemplateFolderPath": "{armTemplateFolderPath}", + "branchRef": "{branchRef}", + "displayName": "{displayName}", + "folderPath": "{folderPath}", + "securityToken": "{securityToken}", + "sourceType": "{VsoGit|GitHub|StorageAccount}", + "status": "{Enabled|Disabled}", + "uri": "{artifactSourceUri}" + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{artifactSourceName}", + "type": "Microsoft.DevTestLab/labs/artifactsources", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}", + "location": "{location}", + "properties": { + "armTemplateFolderPath": "{armTemplateFolderPath}", + "branchRef": "{branchRef}", + "createdDate": "2020-12-16T16:53:02.4830866-07:00", + "displayName": "{displayName}", + "folderPath": "{folderPath}", + "provisioningState": "Succeeded", + "securityToken": "{securityToken}", + "sourceType": "{VsoGit|GitHub|StorageAccount}", + "status": "{Enabled|Disabled}", + "uniqueIdentifier": "{uniqueIdentifier}", + "uri": "{artifactSourceUri}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "name": "{artifactSourceName}", + "type": "Microsoft.DevTestLab/labs/artifactsources", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}", + "location": "{location}", + "properties": { + "armTemplateFolderPath": "{armTemplateFolderPath}", + "branchRef": "{branchRef}", + "createdDate": "2020-12-16T16:53:02.4830866-07:00", + "displayName": "{displayName}", + "folderPath": "{folderPath}", + "provisioningState": "Created", + "securityToken": "{securityToken}", + "sourceType": "{VsoGit|GitHub|StorageAccount}", + "status": "{Enabled|Disabled}", + "uniqueIdentifier": "{uniqueIdentifier}", + "uri": "{artifactSourceUri}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "ArtifactSources_CreateOrUpdate", + "title": "ArtifactSources_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Delete.json new file mode 100644 index 000000000000..1e565af4e260 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "name": "{artifactSourceName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "ArtifactSources_Delete", + "title": "ArtifactSources_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Get.json new file mode 100644 index 000000000000..ebb67aa0ec99 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Get.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "name": "{artifactSourceName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{artifactSourceName}", + "type": "Microsoft.DevTestLab/labs/artifactsources", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}", + "location": "{location}", + "properties": { + "armTemplateFolderPath": "{armTemplateFolderPath}", + "branchRef": "{branchRef}", + "createdDate": "2020-12-16T16:53:02.4830866-07:00", + "displayName": "{displayName}", + "folderPath": "{folderPath}", + "provisioningState": "Succeeded", + "securityToken": "{securityToken}", + "sourceType": "{VsoGit|GitHub|StorageAccount}", + "status": "{Enabled|Disabled}", + "uniqueIdentifier": "{uniqueIdentifier}", + "uri": "{artifactSourceUri}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "ArtifactSources_Get", + "title": "ArtifactSources_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_List.json new file mode 100644 index 000000000000..67a7b745566a --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_List.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "{artifactSourceName}", + "type": "Microsoft.DevTestLab/labs/artifactsources", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}", + "location": "{location}", + "properties": { + "armTemplateFolderPath": "{armTemplateFolderPath}", + "branchRef": "{branchRef}", + "createdDate": "2020-12-16T16:53:02.4830866-07:00", + "displayName": "{displayName}", + "folderPath": "{folderPath}", + "provisioningState": "Succeeded", + "securityToken": "{securityToken}", + "sourceType": "{VsoGit|GitHub|StorageAccount}", + "status": "{Enabled|Disabled}", + "uniqueIdentifier": "{uniqueIdentifier}", + "uri": "{artifactSourceUri}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + }, + "operationId": "ArtifactSources_List", + "title": "ArtifactSources_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Update.json new file mode 100644 index 000000000000..cdc9dd40bbff --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Update.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "name": "{artifactSourceName}", + "api-version": "2018-09-15", + "artifactSource": { + "tags": { + "tagName1": "tagValue1" + } + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{artifactSourceName}", + "type": "Microsoft.DevTestLab/labs/artifactsources", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}", + "location": "{location}", + "properties": { + "armTemplateFolderPath": "{armTemplateFolderPath}", + "branchRef": "{branchRef}", + "createdDate": "2020-12-16T16:53:02.4830866-07:00", + "displayName": "{displayName}", + "folderPath": "{folderPath}", + "provisioningState": "Succeeded", + "securityToken": "{securityToken}", + "sourceType": "{VsoGit|GitHub|StorageAccount}", + "status": "{Enabled|Disabled}", + "uniqueIdentifier": "{uniqueIdentifier}", + "uri": "{artifactSourceUri}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "ArtifactSources_Update", + "title": "ArtifactSources_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_GenerateArmTemplate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_GenerateArmTemplate.json new file mode 100644 index 000000000000..98a3a3cfbbfd --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_GenerateArmTemplate.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "name": "{artifactName}", + "api-version": "2018-09-15", + "artifactSourceName": "{artifactSourceName}", + "generateArmTemplateRequest": { + "fileUploadOptions": "None", + "location": "{location}", + "virtualMachineName": "{vmName}" + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "parameters": { + "extensionName": { + "value": "{vmName}/CustomScriptExtension" + }, + "location": { + "value": "{location}" + } + }, + "template": { + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json", + "contentVersion": "1.0.0.0", + "parameters": { + "extensionName": { + "type": "string" + }, + "location": { + "type": "string" + } + }, + "resources": [ + { + "name": "[parameters('extensionName')]", + "type": "Microsoft.Compute/virtualMachines/extensions", + "apiVersion": "2015-06-15", + "location": "[parameters('location')]", + "properties": { + "type": "CustomScriptExtension", + "autoUpgradeMinorVersion": "true", + "forceUpdateTag": "15/10/2018 00:00:00 +00:00", + "protectedSettings": { + "commandToExecute": "[concat('cd {MsDtlScriptFolder}/scripts && ', variables('_commandToExecute'))]" + }, + "publisher": "Microsoft.Compute", + "settings": { + "commandToExecute": "", + "fileUris": [ + "{MsDtlArtifactFileUris}" + ] + }, + "typeHandlerVersion": "1.9" + } + } + ], + "variables": { + "_commandToExecute": "{commandToExecute}." + } + } + } + } + }, + "operationId": "Artifacts_GenerateArmTemplate", + "title": "Artifacts_GenerateArmTemplate" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_Get.json new file mode 100644 index 000000000000..8a2f424eae27 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_Get.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "name": "{artifactName}", + "api-version": "2018-09-15", + "artifactSourceName": "{artifactSourceName}", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{artifactName}", + "type": "Microsoft.DevTestLab/labs/artifactSources/artifacts", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/artifacts/{artifactName}", + "location": "{location}", + "properties": { + "description": "Sample artifact description.", + "filePath": "{artifactsPath}/{artifactName}", + "parameters": { + "uri": { + "type": "string", + "description": "Sample parameter 1 description.", + "defaultValue": "https://{labStorageAccount}.blob.core.windows.net/{artifactName}/...", + "displayName": "Sample Parameter 1" + } + }, + "publisher": "Microsoft", + "targetOsType": "Windows", + "title": "Sample Artifact Title" + }, + "tags": { + "MyTag": "MyValue" + } + } + } + }, + "operationId": "Artifacts_Get", + "title": "Artifacts_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_List.json new file mode 100644 index 000000000000..6958741acf0a --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_List.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "artifactSourceName": "{artifactSourceName}", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "{artifactName}", + "type": "Microsoft.DevTestLab/labs/artifactSources/artifacts", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/artifacts/{artifactName}", + "location": "{location}", + "properties": { + "description": "Sample artifact description.", + "filePath": "{artifactsPath}/{artifactName}", + "parameters": { + "uri": { + "type": "string", + "description": "Sample parameter 1 description.", + "defaultValue": "https://{labStorageAccount}.blob.core.windows.net/{artifactName}/...", + "displayName": "Sample Parameter 1" + } + }, + "publisher": "Microsoft", + "targetOsType": "Windows", + "title": "Sample Artifact Title" + }, + "tags": { + "MyTag": "MyValue" + } + } + ] + } + } + }, + "operationId": "Artifacts_List", + "title": "Artifacts_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_CreateOrUpdate.json new file mode 100644 index 000000000000..3df62456befb --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_CreateOrUpdate.json @@ -0,0 +1,215 @@ +{ + "parameters": { + "name": "targetCost", + "api-version": "2018-09-15", + "labCost": { + "properties": { + "currencyCode": "USD", + "endDateTime": "2020-12-31T23:59:59Z", + "startDateTime": "2020-12-01T00:00:00Z", + "targetCost": { + "costThresholds": [ + { + "displayOnChart": "Disabled", + "percentageThreshold": { + "thresholdValue": 25 + }, + "sendNotificationWhenExceeded": "Disabled", + "thresholdId": "00000000-0000-0000-0000-000000000001" + }, + { + "displayOnChart": "Enabled", + "percentageThreshold": { + "thresholdValue": 50 + }, + "sendNotificationWhenExceeded": "Enabled", + "thresholdId": "00000000-0000-0000-0000-000000000002" + }, + { + "displayOnChart": "Disabled", + "percentageThreshold": { + "thresholdValue": 75 + }, + "sendNotificationWhenExceeded": "Disabled", + "thresholdId": "00000000-0000-0000-0000-000000000003" + }, + { + "displayOnChart": "Disabled", + "percentageThreshold": { + "thresholdValue": 100 + }, + "sendNotificationWhenExceeded": "Disabled", + "thresholdId": "00000000-0000-0000-0000-000000000004" + }, + { + "displayOnChart": "Disabled", + "percentageThreshold": { + "thresholdValue": 125 + }, + "sendNotificationWhenExceeded": "Disabled", + "thresholdId": "00000000-0000-0000-0000-000000000005" + } + ], + "cycleEndDateTime": "2020-12-31T00:00:00.000Z", + "cycleStartDateTime": "2020-12-01T00:00:00.000Z", + "cycleType": "CalendarMonth", + "status": "Enabled", + "target": 100 + } + } + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{costName}", + "type": "Microsoft.DevTestLab/labs/costs", + "id": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.devtestlab/labs/{labName}/costs/{costName}", + "location": "{location}", + "properties": { + "createdDate": "2020-12-23T22:43:54.7253204+00:00", + "currencyCode": "USD", + "endDateTime": "2020-12-31T23:59:59Z", + "provisioningState": "Succeeded", + "startDateTime": "2020-12-01T00:00:00Z", + "targetCost": { + "costThresholds": [ + { + "displayOnChart": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000", + "percentageThreshold": { + "thresholdValue": 25 + }, + "sendNotificationWhenExceeded": "Disabled", + "thresholdId": "00000000-0000-0000-0000-000000000001" + }, + { + "displayOnChart": "Enabled", + "notificationSent": "0001-01-01T00:00:00.0000000", + "percentageThreshold": { + "thresholdValue": 50 + }, + "sendNotificationWhenExceeded": "Enabled", + "thresholdId": "00000000-0000-0000-0000-000000000001" + }, + { + "displayOnChart": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000", + "percentageThreshold": { + "thresholdValue": 75 + }, + "sendNotificationWhenExceeded": "Disabled", + "thresholdId": "00000000-0000-0000-0000-000000000001" + }, + { + "displayOnChart": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000", + "percentageThreshold": { + "thresholdValue": 100 + }, + "sendNotificationWhenExceeded": "Disabled", + "thresholdId": "00000000-0000-0000-0000-000000000001" + }, + { + "displayOnChart": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000", + "percentageThreshold": { + "thresholdValue": 125 + }, + "sendNotificationWhenExceeded": "Disabled", + "thresholdId": "00000000-0000-0000-0000-000000000001" + } + ], + "cycleEndDateTime": "2020-12-31T23:59:59+00:00", + "cycleStartDateTime": "2020-12-01T00:00:00+00:00", + "cycleType": "CalendarMonth", + "status": "Enabled", + "target": 100 + }, + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "name": "{costName}", + "type": "Microsoft.DevTestLab/labs/costs", + "id": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.devtestlab/labs/{labName}/costs/{costName}", + "location": "{location}", + "properties": { + "createdDate": "2020-12-23T22:43:54.7253204+00:00", + "currencyCode": "USD", + "endDateTime": "2020-12-31T23:59:59Z", + "provisioningState": "Creating", + "startDateTime": "2020-12-01T00:00:00Z", + "targetCost": { + "costThresholds": [ + { + "displayOnChart": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000", + "percentageThreshold": { + "thresholdValue": 25 + }, + "sendNotificationWhenExceeded": "Disabled", + "thresholdId": "00000000-0000-0000-0000-000000000001" + }, + { + "displayOnChart": "Enabled", + "notificationSent": "0001-01-01T00:00:00.0000000", + "percentageThreshold": { + "thresholdValue": 50 + }, + "sendNotificationWhenExceeded": "Enabled", + "thresholdId": "00000000-0000-0000-0000-000000000001" + }, + { + "displayOnChart": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000", + "percentageThreshold": { + "thresholdValue": 75 + }, + "sendNotificationWhenExceeded": "Disabled", + "thresholdId": "00000000-0000-0000-0000-000000000001" + }, + { + "displayOnChart": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000", + "percentageThreshold": { + "thresholdValue": 100 + }, + "sendNotificationWhenExceeded": "Disabled", + "thresholdId": "00000000-0000-0000-0000-000000000001" + }, + { + "displayOnChart": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000", + "percentageThreshold": { + "thresholdValue": 125 + }, + "sendNotificationWhenExceeded": "Disabled", + "thresholdId": "00000000-0000-0000-0000-000000000001" + } + ], + "cycleEndDateTime": "2020-12-31T23:59:59+00:00", + "cycleStartDateTime": "2020-12-01T00:00:00+00:00", + "cycleType": "CalendarMonth", + "status": "Enabled", + "target": 100 + }, + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "Costs_CreateOrUpdate", + "title": "Costs_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_Get.json new file mode 100644 index 000000000000..b78510fcaeb2 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_Get.json @@ -0,0 +1,86 @@ +{ + "parameters": { + "name": "targetCost", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{costName}", + "type": "Microsoft.DevTestLab/labs/costs", + "id": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.devtestlab/labs/{labName}/costs/{costName}", + "location": "{location}", + "properties": { + "createdDate": "2020-12-23T22:43:54.7253204+00:00", + "currencyCode": "USD", + "endDateTime": "2020-12-31T23:59:59Z", + "provisioningState": "Succeeded", + "startDateTime": "2020-12-01T00:00:00Z", + "targetCost": { + "costThresholds": [ + { + "displayOnChart": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000", + "percentageThreshold": { + "thresholdValue": 25 + }, + "sendNotificationWhenExceeded": "Disabled", + "thresholdId": "00000000-0000-0000-0000-000000000001" + }, + { + "displayOnChart": "Enabled", + "notificationSent": "0001-01-01T00:00:00.0000000", + "percentageThreshold": { + "thresholdValue": 50 + }, + "sendNotificationWhenExceeded": "Enabled", + "thresholdId": "00000000-0000-0000-0000-000000000001" + }, + { + "displayOnChart": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000", + "percentageThreshold": { + "thresholdValue": 75 + }, + "sendNotificationWhenExceeded": "Disabled", + "thresholdId": "00000000-0000-0000-0000-000000000001" + }, + { + "displayOnChart": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000", + "percentageThreshold": { + "thresholdValue": 100 + }, + "sendNotificationWhenExceeded": "Disabled", + "thresholdId": "00000000-0000-0000-0000-000000000001" + }, + { + "displayOnChart": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000", + "percentageThreshold": { + "thresholdValue": 125 + }, + "sendNotificationWhenExceeded": "Disabled", + "thresholdId": "00000000-0000-0000-0000-000000000001" + } + ], + "cycleEndDateTime": "2020-12-31T23:59:59+00:00", + "cycleStartDateTime": "2020-12-01T00:00:00+00:00", + "cycleType": "CalendarMonth", + "status": "Enabled", + "target": 100 + }, + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "Costs_Get", + "title": "Costs_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_CreateOrUpdate.json new file mode 100644 index 000000000000..c94c89d77d75 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_CreateOrUpdate.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "name": "{customImageName}", + "api-version": "2018-09-15", + "customImage": { + "properties": { + "description": "My Custom Image", + "vm": { + "linuxOsInfo": { + "linuxOsState": "NonDeprovisioned" + }, + "sourceVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" + } + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{customImageName}", + "type": "Microsoft.DevTestLab/labs/customImages", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/customimages/{customImageName}", + "location": "{location}", + "properties": { + "description": "My Custom Image", + "author": "{authorName}", + "creationDate": "2021-10-10T09:59:28.7985144+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}", + "vm": { + "linuxOsInfo": { + "linuxOsState": "NonDeprovisioned" + }, + "sourceVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "name": "{customImageName}", + "type": "Microsoft.DevTestLab/labs/customImages", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/customimages/{customImageName}", + "location": "{location}", + "properties": { + "description": "My Custom Image", + "author": "{authorName}", + "creationDate": "2021-10-10T09:59:28.7985144+00:00", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}", + "vm": { + "linuxOsInfo": { + "linuxOsState": "NonDeprovisioned" + }, + "sourceVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "CustomImages_CreateOrUpdate", + "title": "CustomImages_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Delete.json new file mode 100644 index 000000000000..e13e59e1b43c --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Delete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "name": "{customImageName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + }, + "204": {} + }, + "operationId": "CustomImages_Delete", + "title": "CustomImages_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Get.json new file mode 100644 index 000000000000..f4bbbc8c2914 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Get.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "name": "{customImageName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{customImageName}", + "type": "Microsoft.DevTestLab/labs/customImages", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/customimages/{customImageName}", + "location": "{location}", + "properties": { + "description": "My Custom Image", + "author": "{authorName}", + "creationDate": "2021-10-10T09:59:28.7985144+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}", + "vm": { + "linuxOsInfo": { + "linuxOsState": "NonDeprovisioned" + }, + "sourceVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "CustomImages_Get", + "title": "CustomImages_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_List.json new file mode 100644 index 000000000000..8bef0834c762 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_List.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "{customImageName}", + "type": "Microsoft.DevTestLab/labs/customImages", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/customimages/{customImageName}", + "location": "{location}", + "properties": { + "description": "My Custom Image", + "author": "{authorName}", + "creationDate": "2021-10-10T09:59:28.7985144+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}", + "vm": { + "linuxOsInfo": { + "linuxOsState": "NonDeprovisioned" + }, + "sourceVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" + } + } + } + ] + } + } + }, + "operationId": "CustomImages_List", + "title": "CustomImages_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Update.json new file mode 100644 index 000000000000..d9651d981911 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Update.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "name": "{customImageName}", + "api-version": "2018-09-15", + "customImage": { + "tags": { + "tagName1": "tagValue2" + } + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{customImageName}", + "type": "Microsoft.DevTestLab/labs/customImages", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/customimages/{customImageName}", + "location": "{location}", + "properties": { + "description": "My Custom Image", + "author": "{authorName}", + "creationDate": "2021-10-10T09:59:28.7985144+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}", + "vm": { + "linuxOsInfo": { + "linuxOsState": "NonDeprovisioned" + }, + "sourceVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" + } + }, + "tags": { + "tagName1": "tagValue2" + } + } + } + }, + "operationId": "CustomImages_Update", + "title": "CustomImages_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Attach.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Attach.json new file mode 100644 index 000000000000..5d91bddf95d9 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Attach.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "name": "{diskName}", + "api-version": "2018-09-15", + "attachDiskProperties": { + "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "{userId}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + } + }, + "operationId": "Disks_Attach", + "title": "Disks_Attach" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_CreateOrUpdate.json new file mode 100644 index 000000000000..da80bf223947 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_CreateOrUpdate.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "name": "{diskName}", + "api-version": "2018-09-15", + "disk": { + "properties": { + "diskSizeGiB": 1023, + "diskType": "Standard", + "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/vmName" + } + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "{userId}" + }, + "responses": { + "200": { + "body": { + "name": "{diskName}", + "type": "Microsoft.DevTestLab/labs/users/disks", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/l{labName}/users/{userId}/disks/{diskName}", + "properties": { + "createdDate": "2021-01-04T20:21:02.0182357+00:00", + "diskSizeGiB": 1023, + "diskType": "Standard", + "diskUri": "", + "hostCaching": "None", + "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/vmName", + "provisioningState": "Succeeded", + "uniqueIdentifier": "b7183ac5-1097-4513-b597-4d9d23e0a820" + } + } + }, + "201": { + "body": { + "name": "{diskName}", + "type": "Microsoft.DevTestLab/labs/users/disks", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/l{labName}/users/{userId}/disks/{diskName}", + "properties": { + "createdDate": "2021-01-04T20:21:02.0182357+00:00", + "diskSizeGiB": 1023, + "diskType": "Standard", + "diskUri": "", + "hostCaching": "None", + "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/vmName", + "provisioningState": "Creating", + "uniqueIdentifier": "b7183ac5-1097-4513-b597-4d9d23e0a820" + } + } + } + }, + "operationId": "Disks_CreateOrUpdate", + "title": "Disks_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Delete.json new file mode 100644 index 000000000000..e6cf24f86a11 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Delete.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "name": "{diskName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "{userId}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + }, + "204": {} + }, + "operationId": "Disks_Delete", + "title": "Disks_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Detach.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Detach.json new file mode 100644 index 000000000000..20cf8e647567 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Detach.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "name": "{diskName}", + "api-version": "2018-09-15", + "detachDiskProperties": { + "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "{userId}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + } + }, + "operationId": "Disks_Detach", + "title": "Disks_Detach" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Get.json new file mode 100644 index 000000000000..6d96b15e0542 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Get.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "name": "{diskName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "@me" + }, + "responses": { + "200": { + "body": { + "name": "{diskName}", + "type": "Microsoft.DevTestLab/labs/users/disks", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userId}/disks/{diskName}", + "properties": { + "createdDate": "2021-01-04T20:27:32.1445632+00:00", + "diskSizeGiB": 1023, + "diskType": "Standard", + "diskUri": "", + "hostCaching": "None", + "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/vmName", + "managedDiskId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.compute/disks/{diskName}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "9bf098d1-1b64-41a5-aa05-286767074a0b" + } + } + } + }, + "operationId": "Disks_Get", + "title": "Disks_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_List.json new file mode 100644 index 000000000000..2337bea4c8fe --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_List.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "name": "{diskName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "@me" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "{diskName}", + "type": "Microsoft.DevTestLab/labs/users/disks", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userId}/disks/{diskName}", + "properties": { + "createdDate": "2021-01-04T20:27:32.1445632+00:00", + "diskSizeGiB": 1023, + "diskType": "Standard", + "diskUri": "", + "hostCaching": "None", + "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/vmName", + "managedDiskId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.compute/disks/{diskName}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "9bf098d1-1b64-41a5-aa05-286767074a0b" + } + } + ] + } + } + }, + "operationId": "Disks_List", + "title": "Disks_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Update.json new file mode 100644 index 000000000000..24276f234a8a --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Update.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "name": "diskName", + "api-version": "2018-09-15", + "disk": { + "tags": { + "tagName1": "tagValue1" + } + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "@me" + }, + "responses": { + "200": { + "body": { + "name": "{disk-name}", + "type": "Microsoft.DevTestLab/labs/users/disks", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{user-id}/disks/{diskName}", + "properties": { + "createdDate": "2021-01-04T20:21:02.0182357+00:00", + "diskSizeGiB": 1023, + "diskType": "Standard", + "diskUri": "", + "hostCaching": "None", + "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/vmName", + "provisioningState": "Succeeded", + "uniqueIdentifier": "b7183ac5-1097-4513-b597-4d9d23e0a820" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "Disks_Update", + "title": "Disks_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_CreateOrUpdate.json new file mode 100644 index 000000000000..5f658418bf09 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_CreateOrUpdate.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "name": "{environmentName}", + "api-version": "2018-09-15", + "dtlEnvironment": { + "properties": { + "deploymentProperties": { + "armTemplateId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}", + "parameters": [] + } + } + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "@me" + }, + "responses": { + "200": { + "body": { + "name": "{environmentName}", + "type": "Microsoft.DevTestLab/labs/users/environments", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{uniqueIdentifier}/environments/{environmentName}", + "location": "{location}", + "properties": { + "createdByUser": "user@contoso.com", + "deploymentProperties": { + "armTemplateId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}" + }, + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "name": "{environmentName}", + "type": "Microsoft.DevTestLab/labs/users/environments", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{uniqueIdentifier}/environments/{environmentName}", + "location": "{location}", + "properties": { + "createdByUser": "user@contoso.com", + "deploymentProperties": { + "armTemplateId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}" + }, + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "Environments_CreateOrUpdate", + "title": "Environments_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Delete.json new file mode 100644 index 000000000000..d73488e66229 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Delete.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "name": "{environmentName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "@me" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + }, + "204": {} + }, + "operationId": "Environments_Delete", + "title": "Environments_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Get.json new file mode 100644 index 000000000000..3ec5fd5272db --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Get.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "name": "{environmentName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "@me" + }, + "responses": { + "200": { + "body": { + "name": "{environmentName}", + "type": "Microsoft.DevTestLab/labs/users/environments", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{uniqueIdentifier}/environments/{environmentName}", + "location": "{location}", + "properties": { + "createdByUser": "user@contoso.com", + "deploymentProperties": { + "armTemplateId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}" + }, + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "Environments_Get", + "title": "Environments_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_List.json new file mode 100644 index 000000000000..74c4cd3b3d1d --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_List.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "@me" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "{environmentName}", + "type": "Microsoft.DevTestLab/labs/users/environments", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{uniqueIdentifier}/environments/{environmentName}", + "location": "{location}", + "properties": { + "createdByUser": "user@contoso.com", + "deploymentProperties": { + "armTemplateId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}" + }, + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + }, + "operationId": "Environments_List", + "title": "Environments_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Update.json new file mode 100644 index 000000000000..1f3397ce562f --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Update.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "name": "{environmentName}", + "api-version": "2018-09-15", + "dtlEnvironment": { + "tags": { + "tagName1": "tagValue1" + } + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "@me" + }, + "responses": { + "200": { + "body": { + "name": "{environmentName}", + "type": "Microsoft.DevTestLab/labs/users/environments", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{uniqueIdentifier}/environments/{environmentName}", + "location": "{location}", + "properties": { + "createdByUser": "user@contoso.com", + "deploymentProperties": { + "armTemplateId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}" + }, + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "Environments_Update", + "title": "Environments_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_CreateOrUpdate.json new file mode 100644 index 000000000000..848332e0cfbe --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_CreateOrUpdate.json @@ -0,0 +1,166 @@ +{ + "parameters": { + "name": "{formulaName}", + "api-version": "2018-09-15", + "formula": { + "location": "{location}", + "properties": { + "description": "Formula using a Linux base", + "formulaContent": { + "location": "{location}", + "properties": { + "allowClaim": false, + "artifacts": [ + { + "artifactId": "/artifactsources/{artifactSourceName}/artifacts/linux-install-nodejs", + "parameters": [] + } + ], + "disallowPublicIpAddress": true, + "galleryImageReference": { + "offer": "0001-com-ubuntu-server-groovy", + "osType": "Linux", + "publisher": "canonical", + "sku": "20_10", + "version": "latest" + }, + "isAuthenticationWithSshKey": false, + "labSubnetName": "Dtl{labName}Subnet", + "labVirtualNetworkId": "/virtualnetworks/dtl{labName}", + "networkInterface": { + "sharedPublicIpAddressConfiguration": { + "inboundNatRules": [ + { + "backendPort": 22, + "transportProtocol": "Tcp" + } + ] + } + }, + "notes": "Ubuntu Server 20.10", + "size": "Standard_B1ms", + "storageType": "Standard", + "userName": "user" + } + } + } + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{formulaName}", + "type": "Microsoft.DevTestLab/labs/formulas", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/formulas/{formulaName}", + "location": "{location}", + "properties": { + "description": "Formula using a Linux base", + "author": "username@contoso.com", + "creationDate": "2018-12-22T21:25:42.9254696+00:00", + "formulaContent": { + "location": "{location}", + "properties": { + "allowClaim": false, + "artifacts": [ + { + "artifactId": "/artifactsources/{artifactSourceName}/artifacts/linux-install-nodejs", + "parameters": [] + } + ], + "disallowPublicIpAddress": true, + "galleryImageReference": { + "offer": "0001-com-ubuntu-server-groovy", + "osType": "Linux", + "publisher": "canonical", + "sku": "20_10", + "version": "latest" + }, + "isAuthenticationWithSshKey": false, + "labSubnetName": "Dtl{labName}Subnet", + "labVirtualNetworkId": "/virtualnetworks/dtl{labName}", + "networkInterface": { + "sharedPublicIpAddressConfiguration": { + "inboundNatRules": [ + { + "backendPort": 22, + "transportProtocol": "Tcp" + } + ] + } + }, + "notes": "Ubuntu Server 20.10", + "size": "Standard_B1ms", + "storageType": "Standard", + "userName": "user" + } + }, + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "name": "{formulaName}", + "type": "Microsoft.DevTestLab/labs/formulas", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/formulas/{formulaName}", + "location": "{location}", + "properties": { + "description": "Formula using a Linux base", + "author": "username@contoso.com", + "creationDate": "2018-12-22T21:25:42.9254696+00:00", + "formulaContent": { + "location": "{location}", + "properties": { + "allowClaim": false, + "artifacts": [ + { + "artifactId": "/artifactsources/{artifactSourceName}/artifacts/linux-install-nodejs", + "parameters": [] + } + ], + "disallowPublicIpAddress": true, + "galleryImageReference": { + "offer": "0001-com-ubuntu-server-groovy", + "osType": "Linux", + "publisher": "canonical", + "sku": "20_10", + "version": "latest" + }, + "isAuthenticationWithSshKey": false, + "labSubnetName": "Dtl{labName}Subnet", + "labVirtualNetworkId": "/virtualnetworks/dtl{labName}", + "networkInterface": { + "sharedPublicIpAddressConfiguration": { + "inboundNatRules": [ + { + "backendPort": 22, + "transportProtocol": "Tcp" + } + ] + } + }, + "notes": "Ubuntu Server 20.10", + "size": "Standard_B1ms", + "storageType": "Standard", + "userName": "user" + } + }, + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "Formulas_CreateOrUpdate", + "title": "Formulas_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Delete.json new file mode 100644 index 000000000000..967c661e9a4f --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "name": "{formulaName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "Formulas_Delete", + "title": "Formulas_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Get.json new file mode 100644 index 000000000000..3556e5de6f7f --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Get.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "name": "{formulaName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{formulaName}", + "type": "Microsoft.DevTestLab/labs/formulas", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/formulas/{formulaName}", + "properties": { + "description": "Formula used to create a Linux VM", + "author": "user@contoso.com", + "creationDate": "2018-12-22T19:13:35.9922091+00:00", + "formulaContent": { + "location": "{location}", + "properties": { + "allowClaim": false, + "artifacts": [ + { + "artifactId": "/artifactsources/{artifactSourceName}/artifacts/linux-install-nodejs", + "parameters": [] + } + ], + "disallowPublicIpAddress": true, + "galleryImageReference": { + "offer": "0001-com-ubuntu-server-groovy", + "osType": "Linux", + "publisher": "canonical", + "sku": "20_10", + "version": "latest" + }, + "isAuthenticationWithSshKey": false, + "labSubnetName": "Dtl{labName}Subnet", + "labVirtualNetworkId": "/virtualnetworks/dtl{labName}", + "networkInterface": { + "sharedPublicIpAddressConfiguration": { + "inboundNatRules": [ + { + "backendPort": 22, + "transportProtocol": "Tcp" + } + ] + } + }, + "notes": "Ubuntu Server 20.10", + "size": "Standard_B1ms", + "storageType": "Standard", + "userName": "user" + } + }, + "osType": "Linux", + "provisioningState": "Succeeded", + "uniqueIdentifier": "7a7d20ab-8a50-46fb-8dc6-7c6c1443a01b" + } + } + } + }, + "operationId": "Formulas_Get", + "title": "Formulas_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_List.json new file mode 100644 index 000000000000..9f61a486e3b9 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_List.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "{formulaName}", + "type": "Microsoft.DevTestLab/labs/formulas", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/formulas/{formulaName}", + "properties": { + "description": "Formula used to create a Linux VM", + "author": "user@contoso.com", + "creationDate": "2018-12-22T19:13:35.9922091+00:00", + "formulaContent": { + "location": "{location}", + "properties": { + "allowClaim": false, + "artifacts": [ + { + "artifactId": "/artifactsources/{artifactSourceName}/artifacts/linux-install-nodejs", + "parameters": [] + } + ], + "disallowPublicIpAddress": true, + "galleryImageReference": { + "offer": "0001-com-ubuntu-server-groovy", + "osType": "Linux", + "publisher": "canonical", + "sku": "20_10", + "version": "latest" + }, + "isAuthenticationWithSshKey": false, + "labSubnetName": "Dtl{labName}Subnet", + "labVirtualNetworkId": "/virtualnetworks/dtl{labName}", + "networkInterface": { + "sharedPublicIpAddressConfiguration": { + "inboundNatRules": [ + { + "backendPort": 22, + "transportProtocol": "Tcp" + } + ] + } + }, + "notes": "Ubuntu Server 20.10", + "size": "Standard_B1ms", + "storageType": "Standard", + "userName": "user" + } + }, + "osType": "Linux", + "provisioningState": "Succeeded", + "uniqueIdentifier": "7a7d20ab-8a50-46fb-8dc6-7c6c1443a01b" + } + } + ] + } + } + }, + "operationId": "Formulas_List", + "title": "Formulas_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Update.json new file mode 100644 index 000000000000..a54c2bb5d462 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Update.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "name": "{formulaName}", + "api-version": "2018-09-15", + "formula": { + "tags": { + "tagName1": "tagValue1" + } + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{formulaName}", + "type": "Microsoft.DevTestLab/labs/formulas", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/formulas/{formulaName}", + "properties": { + "description": "Formula using a Linux base", + "author": "username@contoso.com", + "creationDate": "2018-12-22T21:25:42.9254696+00:00", + "formulaContent": { + "location": "{location}", + "properties": { + "allowClaim": false, + "artifacts": [ + { + "artifactId": "/artifactsources/{artifactSourceName}/artifacts/linux-install-nodejs", + "parameters": [] + } + ], + "disallowPublicIpAddress": true, + "galleryImageReference": { + "offer": "0001-com-ubuntu-server-groovy", + "osType": "Linux", + "publisher": "canonical", + "sku": "20_10", + "version": "latest" + }, + "isAuthenticationWithSshKey": false, + "labSubnetName": "Dtl{labName}Subnet", + "labVirtualNetworkId": "/virtualnetworks/dtl{labName}", + "networkInterface": { + "sharedPublicIpAddressConfiguration": { + "inboundNatRules": [ + { + "backendPort": 22, + "transportProtocol": "Tcp" + } + ] + } + }, + "notes": "Ubuntu Server 20.10", + "size": "Standard_B1ms", + "storageType": "Standard", + "userName": "user" + } + }, + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "Formulas_Update", + "title": "Formulas_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GalleryImages_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GalleryImages_List.json new file mode 100644 index 000000000000..657979a5a6fc --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GalleryImages_List.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Ubuntu Server 20.04 LTS", + "type": "Microsoft.DevTestLab/labs/galleryImages", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/galleryimages/ubuntu server 20.04 lts", + "location": "{location}", + "properties": { + "description": "Ubuntu Server is the world's most popular Linux for cloud environments. Updates and patches for Ubuntu Server 20.04 LTS will be available until April 2025. Ubuntu Server is the perfect virtual machine (VM) platform for all workloads from web applications to NoSQL databases and Hadoop. For more information see Ubuntu on Azure and using Juju to deploy your workloads.

Legal Terms

By clicking the Create button, I acknowledge that I am getting this software from Canonical and that the legal terms of Canonical apply to it. Microsoft does not provide rights for third-party software. Also see the privacy statement from Canonical.

", + "author": "Canonical", + "createdDate": "2020-12-14T23:43:43.7643542+00:00", + "enabled": true, + "icon": "https://106c4.wpc.azureedge.net/80106C4/Gallery-Prod/cdn/2015-02-24/prod20161101-microsoft-windowsazure-gallery/canonical.0001-com-ubuntu-server-focal20_04-lts-ARM.1.0.22/Icons/Small.png", + "imageReference": { + "offer": "0001-com-ubuntu-server-focal", + "osType": "Linux", + "publisher": "canonical", + "sku": "20_04-lts", + "version": "latest" + } + }, + "tags": { + "tagName1": "tagValue1" + } + }, + { + "name": "Windows 10 Enterprise, Version 20H2", + "type": "Microsoft.DevTestLab/labs/galleryImages", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/galleryimages/windows 10 enterprise, version 20h2", + "location": "{location}", + "properties": { + "description": "

This software is provided by Microsoft. Use of this software in Microsoft Azure is not permitted except under a volume licensing agreement with Microsoft. By clicking Create, I acknowledge that I or the company I work for is licensed to use this software under a volume licensing agreement with Microsoft and that the right to use it will be subject to that agreement.

Legal Terms

By clicking the Create button, I acknowledge that I am getting this software from Microsoft and that the legal terms of Microsoft apply to it. Microsoft does not provide rights for third-party software. Also see the privacy statement from Microsoft.

", + "author": "Microsoft", + "createdDate": "2020-12-14T21:33:33.2464999+00:00", + "enabled": true, + "icon": "https://106c4.wpc.azureedge.net/80106C4/Gallery-Prod/cdn/2015-02-24/prod20161101-microsoft-windowsazure-gallery/microsoftwindowsdesktop.windows-1020h2-ent.1.0.238/Icons/Small.png", + "imageReference": { + "offer": "Windows-10", + "osType": "Windows", + "publisher": "MicrosoftWindowsDesktop", + "sku": "20h2-ent", + "version": "latest" + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + }, + "operationId": "GalleryImages_List", + "title": "GalleryImages_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_CreateOrUpdate.json new file mode 100644 index 000000000000..b6e4f463c706 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_CreateOrUpdate.json @@ -0,0 +1,96 @@ +{ + "parameters": { + "name": "labvmautostart", + "api-version": "2018-09-15", + "resourceGroupName": "resourceGroupName", + "schedule": { + "properties": { + "status": "Enabled", + "taskType": "LabVmsStartupTask", + "timeZoneId": "Hawaiian Standard Time", + "weeklyRecurrence": { + "time": "0700", + "weekdays": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ] + } + } + }, + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "LabVmAutoStart", + "type": "microsoft.devtestlab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/labvmautostart", + "location": "{location}", + "properties": { + "createdDate": "2020-12-29T22:54:54.9335182+00:00", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 0 + }, + "provisioningState": "Succeeded", + "status": "Enabled", + "taskType": "LabVmsStartupTask", + "timeZoneId": "Hawaiian Standard Time", + "uniqueIdentifier": "{id}", + "weeklyRecurrence": { + "time": "0700", + "weekdays": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "name": "LabVmAutoStart", + "type": "microsoft.devtestlab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/labvmautostart", + "location": "{location}", + "properties": { + "createdDate": "2020-12-29T22:54:54.9335182+00:00", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 0 + }, + "provisioningState": "Succeeded", + "status": "Enabled", + "taskType": "LabVmsStartupTask", + "timeZoneId": "Hawaiian Standard Time", + "uniqueIdentifier": "{id}", + "weeklyRecurrence": { + "time": "0700", + "weekdays": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "GlobalSchedules_CreateOrUpdate", + "title": "GlobalSchedules_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Delete.json new file mode 100644 index 000000000000..29567b9b2d31 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "name": "labvmautostart", + "api-version": "2018-09-15", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "GlobalSchedules_Delete", + "title": "GlobalSchedules_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Execute.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Execute.json new file mode 100644 index 000000000000..b7a159823f81 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Execute.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "name": "labvmautostart", + "api-version": "2018-09-15", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + } + }, + "operationId": "GlobalSchedules_Execute", + "title": "GlobalSchedules_Execute" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Get.json new file mode 100644 index 000000000000..d9e4e9319bc3 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Get.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "name": "labvmautostart", + "api-version": "2018-09-15", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "LabVmAutoStart", + "type": "microsoft.devtestlab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/labvmautostart", + "location": "{location}", + "properties": { + "createdDate": "2020-12-29T22:54:54.9335182+00:00", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 0 + }, + "provisioningState": "Succeeded", + "status": "Enabled", + "taskType": "LabVmsStartupTask", + "timeZoneId": "Hawaiian Standard Time", + "uniqueIdentifier": "{id}", + "weeklyRecurrence": { + "time": "0700", + "weekdays": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "GlobalSchedules_Get", + "title": "GlobalSchedules_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_ListByResourceGroup.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_ListByResourceGroup.json new file mode 100644 index 000000000000..80ae3fcffa0c --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_ListByResourceGroup.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "LabVmAutoStart", + "type": "microsoft.devtestlab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/labvmautostart", + "location": "{location}", + "properties": { + "createdDate": "2020-12-29T22:54:54.9335182+00:00", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 0 + }, + "provisioningState": "Succeeded", + "status": "Enabled", + "taskType": "LabVmsStartupTask", + "timeZoneId": "Hawaiian Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "0700", + "weekdays": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ] + } + } + } + ] + } + } + }, + "operationId": "GlobalSchedules_ListByResourceGroup", + "title": "GlobalSchedules_ListByResourceGroup" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_ListBySubscription.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_ListBySubscription.json new file mode 100644 index 000000000000..635d5d52e30b --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_ListBySubscription.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": {} + } + }, + "operationId": "GlobalSchedules_ListBySubscription", + "title": "GlobalSchedules_ListBySubscription" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Retarget.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Retarget.json new file mode 100644 index 000000000000..13dd94ac7337 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Retarget.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "name": "{scheduleName}", + "api-version": "2018-09-15", + "resourceGroupName": "resourceGroupName", + "retargetScheduleProperties": { + "currentResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{targetLab}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{currentLab}" + }, + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + } + }, + "operationId": "GlobalSchedules_Retarget", + "title": "GlobalSchedules_Retarget" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Update.json new file mode 100644 index 000000000000..1743d5838c6b --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Update.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "name": "labvmautostart", + "api-version": "2018-09-15", + "resourceGroupName": "resourceGroupName", + "schedule": { + "tags": { + "tagName1": "tagValue1" + } + }, + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "LabVmAutoStart", + "type": "microsoft.devtestlab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/labvmautostart", + "location": "{location}", + "properties": { + "createdDate": "2020-12-29T22:54:54.9335182+00:00", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 0 + }, + "provisioningState": "Succeeded", + "status": "Enabled", + "taskType": "LabVmsStartupTask", + "timeZoneId": "Hawaiian Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "0700", + "weekdays": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "GlobalSchedules_Update", + "title": "GlobalSchedules_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ClaimAnyVm.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ClaimAnyVm.json new file mode 100644 index 000000000000..06920966b8bd --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ClaimAnyVm.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "name": "{labName}", + "api-version": "2018-09-15", + "monitor": "true", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + } + }, + "operationId": "Labs_ClaimAnyVm", + "title": "Labs_ClaimAnyVm" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateEnvironment.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateEnvironment.json new file mode 100644 index 000000000000..ad2900b89d22 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateEnvironment.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "name": "{labName}", + "api-version": "2018-09-15", + "labVirtualMachineCreationParameter": { + "name": "{vmName}", + "location": "{location}", + "properties": { + "allowClaim": true, + "disallowPublicIpAddress": true, + "galleryImageReference": { + "offer": "UbuntuServer", + "osType": "Linux", + "publisher": "Canonical", + "sku": "16.04-LTS", + "version": "Latest" + }, + "labSubnetName": "{virtualnetwork-subnet-name}", + "labVirtualNetworkId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", + "password": "{userPassword}", + "size": "Standard_A2_v2", + "storageType": "Standard", + "userName": "{userName}" + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + } + }, + "operationId": "Labs_CreateEnvironment", + "title": "Labs_CreateEnvironment" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateOrUpdate.json new file mode 100644 index 000000000000..40d3a69eb1d6 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateOrUpdate.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "name": "{labName}", + "api-version": "2018-09-15", + "lab": { + "location": "{location}", + "properties": { + "labStorageType": "{Standard|Premium}" + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{labName}", + "type": "Microsoft.DevTestLab/labs", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "location": "{location}", + "properties": { + "announcement": { + "enabled": "Disabled", + "expired": false, + "markdown": "", + "title": "" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "environmentPermission": "Reader", + "labStorageType": "Standard", + "mandatoryArtifactsResourceIdsLinux": [], + "mandatoryArtifactsResourceIdsWindows": [], + "premiumDataDisks": "Disabled", + "provisioningState": "Creating", + "support": { + "enabled": "Disabled", + "markdown": "" + }, + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "name": "{labName}", + "type": "Microsoft.DevTestLab/labs", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "location": "{location}", + "properties": { + "announcement": { + "enabled": "Disabled", + "expired": false, + "markdown": "", + "title": "" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "environmentPermission": "Reader", + "labStorageType": "Standard", + "mandatoryArtifactsResourceIdsLinux": [], + "mandatoryArtifactsResourceIdsWindows": [], + "premiumDataDisks": "Disabled", + "provisioningState": "Creating", + "support": { + "enabled": "Disabled", + "markdown": "" + }, + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "Labs_CreateOrUpdate", + "title": "Labs_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Delete.json new file mode 100644 index 000000000000..306b9a9bcd0a --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Delete.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "name": "{labName}", + "api-version": "2018-09-15", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + }, + "204": {} + }, + "operationId": "Labs_Delete", + "title": "Labs_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ExportResourceUsage.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ExportResourceUsage.json new file mode 100644 index 000000000000..7d1e561924e9 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ExportResourceUsage.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "name": "{labName}", + "api-version": "2018-09-15", + "exportResourceUsageParameters": { + "blobStorageAbsoluteSasUri": "https://invalid.blob.core.windows.net/export.blob?sv=2015-07-08&sig={sas}&sp=rcw", + "usageStartDate": "2020-12-01T00:00:00Z" + }, + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + } + }, + "operationId": "Labs_ExportResourceUsage", + "title": "Labs_ExportResourceUsage" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_GenerateUploadUri.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_GenerateUploadUri.json new file mode 100644 index 000000000000..36d06f281323 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_GenerateUploadUri.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "name": "{labName}", + "api-version": "2018-09-15", + "generateUploadUriParameter": { + "blobName": "{blob-name}" + }, + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "uploadUri": "https://{storageName}.blob.core.windows.net/uploads/{blobName}?sv=2017-04-17&sr=b&sig={signature}&st=2018-10-02T01:55:24Z&se=2018-10-03T02:10:23Z&sp=rcw" + } + } + }, + "operationId": "Labs_GenerateUploadUri", + "title": "Labs_GenerateUploadUri" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Get.json new file mode 100644 index 000000000000..76ded1b6c611 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Get.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "name": "{labName}", + "api-version": "2018-09-15", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{labName}", + "type": "Microsoft.DevTestLab/labs", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "location": "{location}", + "properties": { + "announcement": { + "enabled": "Disabled", + "expired": false, + "markdown": "", + "title": "" + }, + "artifactsStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "defaultPremiumStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "defaultStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "environmentPermission": "Reader", + "labStorageType": "Standard", + "mandatoryArtifactsResourceIdsLinux": [], + "mandatoryArtifactsResourceIdsWindows": [], + "premiumDataDiskStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "premiumDataDisks": "Disabled", + "provisioningState": "Succeeded", + "support": { + "enabled": "Disabled", + "markdown": "" + }, + "uniqueIdentifier": "{uniqueIdentifier}", + "vaultName": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/{keyVaultName}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "Labs_Get", + "title": "Labs_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ImportVirtualMachine.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ImportVirtualMachine.json new file mode 100644 index 000000000000..4d680cc7491b --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ImportVirtualMachine.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "name": "{labName}", + "api-version": "2018-09-15", + "importLabVirtualMachineRequest": { + "destinationVirtualMachineName": "{vmName}", + "sourceVirtualMachineResourceId": "/subscriptions/{subscriptionId}/resourceGroups/{otherResourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}" + }, + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + } + }, + "operationId": "Labs_ImportVirtualMachine", + "title": "Labs_ImportVirtualMachine" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListByResourceGroup.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListByResourceGroup.json new file mode 100644 index 000000000000..067f8c5f1f04 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListByResourceGroup.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "{labName}", + "type": "Microsoft.DevTestLab/labs", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "location": "{location}", + "properties": { + "announcement": { + "enabled": "Disabled", + "expired": false, + "markdown": "", + "title": "" + }, + "createdDate": "2018-10-02T10:23:20.9573599-07:00", + "environmentPermission": "Reader", + "labStorageType": "Standard", + "mandatoryArtifactsResourceIdsLinux": [], + "mandatoryArtifactsResourceIdsWindows": [], + "premiumDataDisks": "Disabled", + "provisioningState": "Succeeded", + "support": { + "enabled": "Disabled", + "markdown": "" + }, + "uniqueIdentifier": "{uniqueIdentifier}", + "vaultName": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/{keyVaultName}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + }, + "operationId": "Labs_ListByResourceGroup", + "title": "Labs_ListByResourceGroup" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListBySubscription.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListBySubscription.json new file mode 100644 index 000000000000..f1066e4cc506 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListBySubscription.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "{labName1}", + "type": "Microsoft.DevTestLab/labs", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName1}", + "location": "westcentralus", + "properties": { + "announcement": { + "enabled": "Disabled", + "expired": false, + "markdown": "", + "title": "" + }, + "artifactsStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "createdDate": "2018-09-30T08:38:13.1973609-07:00", + "defaultPremiumStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "defaultStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "environmentPermission": "Reader", + "labStorageType": "Premium", + "mandatoryArtifactsResourceIdsLinux": [], + "mandatoryArtifactsResourceIdsWindows": [], + "premiumDataDiskStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "premiumDataDisks": "Disabled", + "provisioningState": "Succeeded", + "support": { + "enabled": "Disabled", + "markdown": "" + }, + "uniqueIdentifier": "{uniqueIdentifier}", + "vaultName": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/{keyVaultName}" + }, + "tags": { + "tagName1": "tagValue1" + } + }, + { + "name": "{labName2}", + "type": "Microsoft.DevTestLab/labs", + "id": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName2}/providers/microsoft.devtestlab/labs/{labName2}", + "location": "japaneast", + "properties": { + "announcement": { + "enabled": "Disabled", + "expired": false, + "markdown": "", + "title": "" + }, + "artifactsStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName2}/providers/Microsoft.Storage/storageAccounts/{storageAccountName2}", + "createdDate": "2018-09-30T09:37:52.9675083-07:00", + "defaultPremiumStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName2}/providers/Microsoft.Storage/storageAccounts/{storageAccountName2}", + "defaultStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName2}/providers/Microsoft.Storage/storageAccounts/{storageAccountName2}", + "environmentPermission": "Reader", + "labStorageType": "Premium", + "mandatoryArtifactsResourceIdsLinux": [], + "mandatoryArtifactsResourceIdsWindows": [], + "premiumDataDiskStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName2}/providers/Microsoft.Storage/storageAccounts/{storageAccountName2}", + "premiumDataDisks": "Disabled", + "provisioningState": "Succeeded", + "support": { + "enabled": "Disabled", + "markdown": "" + }, + "uniqueIdentifier": "{uniqueIdentifier}", + "vaultName": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName2}/providers/Microsoft.KeyVault/vaults/{keyVaultName2}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + }, + "operationId": "Labs_ListBySubscription", + "title": "Labs_ListBySubscription" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListVhds.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListVhds.json new file mode 100644 index 000000000000..6dc1ea1101c1 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListVhds.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "name": "{labName}", + "api-version": "2018-09-15", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "https://{labStorageAccountName}.blob.core.windows.net/vhds/vhd1" + }, + { + "id": "https://{labStorageAccountName}.blob.core.windows.net/vhds/vhd2" + } + ] + } + } + }, + "operationId": "Labs_ListVhds", + "title": "Labs_ListVhds" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Update.json new file mode 100644 index 000000000000..4b1b9d21b744 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Update.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "name": "{labName}", + "api-version": "2018-09-15", + "lab": {}, + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{labName}", + "type": "Microsoft.DevTestLab/labs", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "location": "{location}", + "properties": { + "announcement": { + "enabled": "Disabled", + "expired": false, + "markdown": "", + "title": "" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "environmentPermission": "Reader", + "labStorageType": "Standard", + "mandatoryArtifactsResourceIdsLinux": [], + "mandatoryArtifactsResourceIdsWindows": [], + "premiumDataDisks": "Disabled", + "provisioningState": "Succeeded", + "support": { + "enabled": "Disabled", + "markdown": "" + }, + "uniqueIdentifier": "{uniqueIdentifier}", + "vaultName": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/{keyVaultName}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "Labs_Update", + "title": "Labs_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_CreateOrUpdate.json new file mode 100644 index 000000000000..2e1f03d4a63e --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_CreateOrUpdate.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "name": "{notificationChannelName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "notificationChannel": { + "properties": { + "description": "Integration configured for auto-shutdown", + "emailRecipient": "{email}", + "events": [ + { + "eventName": "AutoShutdown" + } + ], + "notificationLocale": "en", + "webHookUrl": "{webhookUrl}" + } + }, + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{notificationChannelName}", + "type": "Microsoft.DevTestLab/labs/notificationChannels", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/notificationChannels/{notificationChannelName}", + "location": "{location}", + "properties": { + "description": "Integration configured for auto-shutdown", + "createdDate": "2021-01-05T02:14:05.2392034+00:00", + "emailRecipient": "{email}", + "events": [ + { + "eventName": "AutoShutdown" + } + ], + "notificationLocale": "en", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}", + "webHookUrl": "{webhookUrl}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "name": "{notificationChannelName}", + "type": "Microsoft.DevTestLab/labs/notificationChannels", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/notificationChannels/{notificationChannelName}", + "location": "{location}", + "properties": { + "description": "Integration configured for auto-shutdown", + "createdDate": "2021-01-05T02:14:05.2392034+00:00", + "emailRecipient": "{email}", + "events": [ + { + "eventName": "AutoShutdown" + } + ], + "notificationLocale": "en", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}", + "webHookUrl": "{webhookUrl}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "NotificationChannels_CreateOrUpdate", + "title": "NotificationChannels_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Delete.json new file mode 100644 index 000000000000..71c07fcd0ba5 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "name": "{notificationChannelName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "NotificationChannels_Delete", + "title": "NotificationChannels_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Get.json new file mode 100644 index 000000000000..be5dad100fd0 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Get.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "name": "{notificationChannelName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{notificationChannelName}", + "type": "Microsoft.DevTestLab/labs/notificationChannels", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/notificationChannels/{notificationChannelName}", + "location": "{location}", + "properties": { + "description": "Integration configured for auto-shutdown", + "createdDate": "2021-01-05T02:14:05.2392034+00:00", + "emailRecipient": "{email}", + "events": [ + { + "eventName": "AutoShutdown" + } + ], + "notificationLocale": "en", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}", + "webHookUrl": "{webhookUrl}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "NotificationChannels_Get", + "title": "NotificationChannels_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_List.json new file mode 100644 index 000000000000..99bf97116afa --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_List.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "autoshutdown", + "type": "Microsoft.DevTestLab/labs/notificationChannels", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/notificationChannels/{notificationChannelName}", + "location": "{location}", + "properties": { + "description": "Integration configured for auto-shutdown", + "createdDate": "2021-01-05T02:12:10.6566371+00:00", + "emailRecipient": "{email}", + "events": [ + { + "eventName": "AutoShutdown" + } + ], + "notificationLocale": "en", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}", + "webHookUrl": "{webhookUrl}" + }, + "tags": { + "tagName1": "tagValue1" + } + }, + { + "name": "costThreshold", + "type": "Microsoft.DevTestLab/labs/notificationChannels", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/notificationChannels/{notificationChannelName}", + "location": "{location}", + "properties": { + "description": "Integration configured for cost", + "createdDate": "2021-01-05T02:14:05.2392034+00:00", + "events": [ + { + "eventName": "Cost" + } + ], + "notificationLocale": "en", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}", + "webHookUrl": "{webhookUrl}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + }, + "operationId": "NotificationChannels_List", + "title": "NotificationChannels_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Notify.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Notify.json new file mode 100644 index 000000000000..148f61eaa06c --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Notify.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "name": "{notificationChannelName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "notifyParameters": { + "eventName": "AutoShutdown", + "jsonPayload": "{\"eventType\":\"AutoShutdown\",\"subscriptionId\":\"{subscriptionId}\",\"resourceGroupName\":\"resourceGroupName\",\"labName\":\"{labName}\"}" + }, + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {} + }, + "operationId": "NotificationChannels_Notify", + "title": "NotificationChannels_Notify" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Update.json new file mode 100644 index 000000000000..984f119350ae --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Update.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "name": "{notificationChannelName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "notificationChannel": {}, + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{notificationChannelName}", + "type": "Microsoft.DevTestLab/labs/notificationChannels", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/notificationChannels/{notificationChannelName}", + "location": "{location}", + "properties": { + "description": "Integration configured for auto-shutdown", + "createdDate": "2021-01-05T02:14:05.2392034+00:00", + "emailRecipient": "{email}", + "events": [ + { + "eventName": "AutoShutdown" + } + ], + "notificationLocale": "en", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}", + "webHookUrl": "{webhookUrl}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "NotificationChannels_Update", + "title": "NotificationChannels_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Operations_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Operations_Get.json new file mode 100644 index 000000000000..cd27a572cd78 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Operations_Get.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "name": "{operationName}", + "api-version": "2018-09-15", + "locationName": "{locationName}", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "status": "Running", + "statusCode": "OK" + } + }, + "202": { + "body": { + "status": "Running", + "statusCode": "Accepted" + } + } + }, + "operationId": "Operations_Get", + "title": "Operations_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_CreateOrUpdate.json new file mode 100644 index 000000000000..44bfcbfc4f03 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_CreateOrUpdate.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "name": "{policyName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "policy": { + "location": "{location}", + "properties": { + "description": "{policyDescription}", + "evaluatorType": "{policyEvaluatorType}", + "factData": "{policyFactData}", + "factName": "{policyFactName}", + "status": "{policyStatus}", + "threshold": "{policyThreshold}" + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "policySetName": "{policySetName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{labName}", + "type": "Microsoft.DevTestLab/labs/policies", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{policyName}", + "location": "{location}", + "properties": { + "description": "{policyDescription}", + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "evaluatorType": "{policyEvaluatorType}", + "factData": "{policyFactData}", + "factName": "{policyFactName}", + "provisioningState": "Succeeded", + "status": "{policyStatus}", + "threshold": "{policyThreshold}", + "uniqueIdentifier": "{uniqueIdentifier}" + } + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "201": { + "body": { + "name": "{labName}", + "type": "Microsoft.DevTestLab/labs/policySets/policies", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{policyName}", + "location": "{location}", + "properties": { + "description": "{policyDescription}", + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "evaluatorType": "{policyEvaluatorType}", + "factData": "{policyFactData}", + "factName": "{policyFactName}", + "provisioningState": "Succeeded", + "status": "{policyStatus}", + "threshold": "{policyThreshold}", + "uniqueIdentifier": "{uniqueIdentifier}" + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "operationId": "Policies_CreateOrUpdate", + "title": "Policies_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_Delete.json new file mode 100644 index 000000000000..484dd846ee71 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_Delete.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "name": "{policyName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "policySetName": "{policySetName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "Policies_Delete", + "title": "Policies_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_Get.json new file mode 100644 index 000000000000..835bdceeb068 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_Get.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "name": "{policyName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "policySetName": "{policySetName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{labName}", + "type": "Microsoft.DevTestLab/labs/policySets/policies", + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{policyName}", + "location": "{location}", + "properties": { + "description": "{policyDescription}", + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "evaluatorType": "{policyEvaluatorType}", + "factData": "{policyFactData}", + "factName": "{policyFactName}", + "provisioningState": "Succeeded", + "status": "{policyStatus}", + "threshold": "{policyThreshold}", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "Policies_Get", + "title": "Policies_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_List.json new file mode 100644 index 000000000000..fd502d322b37 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_List.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "name": "{policyName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "policySetName": "{policySetName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "{labName}", + "type": "Microsoft.DevTestLab/labs/policySets/policies", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{policyName}", + "location": "{location}", + "properties": { + "description": "{policyDescription}", + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "evaluatorType": "{policyEvaluatorType}", + "factData": "{policyFactData}", + "factName": "{policyFactName}", + "provisioningState": "Succeeded", + "status": "{policyStatus}", + "threshold": "{policyThreshold}", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + }, + "operationId": "Policies_List", + "title": "Policies_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_Update.json new file mode 100644 index 000000000000..c65763f0b7ce --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_Update.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "name": "{policyName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "policy": { + "tags": { + "tagName1": "tagValue1" + } + }, + "policySetName": "{policySetName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{labName}", + "type": "Microsoft.DevTestLab/labs/policies", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{policyName}", + "location": "{location}", + "properties": { + "description": "{policyDescription}", + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "evaluatorType": "{policyEvaluatorType}", + "factData": "{policyFactData}", + "factName": "{policyFactName}", + "provisioningState": "Succeeded", + "status": "{policyStatus}", + "threshold": "{policyThreshold}", + "uniqueIdentifier": "{uniqueIdentifier}" + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "operationId": "Policies_Update", + "title": "Policies_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/PolicySets_EvaluatePolicies.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/PolicySets_EvaluatePolicies.json new file mode 100644 index 000000000000..2189a3ee66ab --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/PolicySets_EvaluatePolicies.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "name": "{policySetName}", + "api-version": "2018-09-15", + "evaluatePoliciesRequest": { + "policies": [ + { + "factName": "LabVmCount", + "valueOffset": "1" + } + ] + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "results": [ + { + "hasError": true, + "policyViolations": [ + { + "code": "MaxValuePolicy", + "message": "You cannot exceed the limit (1) of virtual machines that can be created in this lab." + } + ] + } + ] + } + } + }, + "operationId": "PolicySets_EvaluatePolicies", + "title": "PolicySets_EvaluatePolicies" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ProviderOperations_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ProviderOperations_List.json new file mode 100644 index 000000000000..b38ae25d0407 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ProviderOperations_List.json @@ -0,0 +1,861 @@ +{ + "parameters": { + "api-version": "2018-09-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.DevTestLab/register/action", + "display": { + "description": "Registers the subscription", + "operation": "Register Subscription", + "provider": "Microsoft DevTest Labs", + "resource": "register" + } + }, + { + "name": "Microsoft.DevTestLab/labs/policySets/EvaluatePolicies/action", + "display": { + "description": "Evaluates lab policy.", + "operation": "Evaluate policy", + "provider": "Microsoft DevTest Labs", + "resource": "policy sets" + } + }, + { + "name": "Microsoft.DevTestLab/labs/delete", + "display": { + "description": "Delete labs.", + "operation": "Delete labs.", + "provider": "Microsoft DevTest Labs", + "resource": "Labs" + } + }, + { + "name": "Microsoft.DevTestLab/labs/read", + "display": { + "description": "Read labs.", + "operation": "Read labs.", + "provider": "Microsoft DevTest Labs", + "resource": "Labs" + } + }, + { + "name": "Microsoft.DevTestLab/labs/write", + "display": { + "description": "Add or modify labs.", + "operation": "Add or modify labs.", + "provider": "Microsoft DevTest Labs", + "resource": "Labs" + } + }, + { + "name": "Microsoft.DevTestLab/labs/ListVhds/action", + "display": { + "description": "List disk images available for custom image creation.", + "operation": "List VHDs", + "provider": "Microsoft DevTest Labs", + "resource": "Labs" + } + }, + { + "name": "Microsoft.DevTestLab/labs/GenerateUploadUri/action", + "display": { + "description": "Generate a URI for uploading custom disk images to a Lab.", + "operation": "Generate image upload URI", + "provider": "Microsoft DevTest Labs", + "resource": "Labs" + } + }, + { + "name": "Microsoft.DevTestLab/labs/CreateEnvironment/action", + "display": { + "description": "Create virtual machines in a lab.", + "operation": "Create a virtual machine", + "provider": "Microsoft DevTest Labs", + "resource": "Labs" + } + }, + { + "name": "Microsoft.DevTestLab/labs/ClaimAnyVm/action", + "display": { + "description": "Claim a random claimable virtual machine in the lab.", + "operation": "Claim Any Virtual Machine", + "provider": "Microsoft DevTest Labs", + "resource": "Labs" + } + }, + { + "name": "Microsoft.DevTestLab/labs/ExportResourceUsage/action", + "display": { + "description": "Exports the lab resource usage into a storage account", + "operation": "Exports the lab resource usage into a storage account", + "provider": "Microsoft DevTest Labs", + "resource": "Labs" + } + }, + { + "name": "Microsoft.DevTestLab/labs/ImportVirtualMachine/action", + "display": { + "description": "Import a virtual machine into a different lab.", + "operation": "Import a virtual machine", + "provider": "Microsoft DevTest Labs", + "resource": "Labs" + } + }, + { + "name": "Microsoft.DevTestLab/labs/policySets/policies/delete", + "display": { + "description": "Delete policies.", + "operation": "Delete policies.", + "provider": "Microsoft DevTest Labs", + "resource": "policies" + } + }, + { + "name": "Microsoft.DevTestLab/labs/policySets/policies/read", + "display": { + "description": "Read policies.", + "operation": "Read policies.", + "provider": "Microsoft DevTest Labs", + "resource": "policies" + } + }, + { + "name": "Microsoft.DevTestLab/labs/policySets/policies/write", + "display": { + "description": "Add or modify policies.", + "operation": "Add or modify policies.", + "provider": "Microsoft DevTest Labs", + "resource": "policies" + } + }, + { + "name": "Microsoft.DevTestLab/labs/schedules/delete", + "display": { + "description": "Delete schedules.", + "operation": "Delete schedules.", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/labs/schedules/read", + "display": { + "description": "Read schedules.", + "operation": "Read schedules.", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/labs/schedules/write", + "display": { + "description": "Add or modify schedules.", + "operation": "Add or modify schedules.", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/labs/schedules/Execute/action", + "display": { + "description": "Execute a schedule.", + "operation": "Execute schedule", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/labs/schedules/ListApplicable/action", + "display": { + "description": "Lists all applicable schedules", + "operation": "List all applicable schedules", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/schedules/delete", + "display": { + "description": "Delete schedules.", + "operation": "Delete schedules.", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/schedules/read", + "display": { + "description": "Read schedules.", + "operation": "Read schedules.", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/schedules/write", + "display": { + "description": "Add or modify schedules.", + "operation": "Add or modify schedules.", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/schedules/Execute/action", + "display": { + "description": "Execute a schedule.", + "operation": "Execute schedule", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/schedules/Retarget/action", + "display": { + "description": "Updates a schedule's target resource Id.", + "operation": "Retarget schedule.", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/schedules/delete", + "display": { + "description": "Delete schedules.", + "operation": "Delete schedules.", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/schedules/read", + "display": { + "description": "Read schedules.", + "operation": "Read schedules.", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/schedules/write", + "display": { + "description": "Add or modify schedules.", + "operation": "Add or modify schedules.", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/schedules/Execute/action", + "display": { + "description": "Execute a schedule.", + "operation": "Execute schedule", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/schedules/delete", + "display": { + "description": "Delete schedules.", + "operation": "Delete schedules.", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/schedules/read", + "display": { + "description": "Read schedules.", + "operation": "Read schedules.", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/schedules/write", + "display": { + "description": "Add or modify schedules.", + "operation": "Add or modify schedules.", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/schedules/Execute/action", + "display": { + "description": "Execute a schedule.", + "operation": "Execute schedule", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/labs/artifactSources/delete", + "display": { + "description": "Delete artifact sources.", + "operation": "Delete artifact sources.", + "provider": "Microsoft DevTest Labs", + "resource": "Artifact sources" + } + }, + { + "name": "Microsoft.DevTestLab/labs/artifactSources/read", + "display": { + "description": "Read artifact sources.", + "operation": "Read artifact sources.", + "provider": "Microsoft DevTest Labs", + "resource": "Artifact sources" + } + }, + { + "name": "Microsoft.DevTestLab/labs/artifactSources/write", + "display": { + "description": "Add or modify artifact sources.", + "operation": "Add or modify artifact sources.", + "provider": "Microsoft DevTest Labs", + "resource": "Artifact sources" + } + }, + { + "name": "Microsoft.DevTestLab/labs/artifactSources/artifacts/read", + "display": { + "description": "Read artifacts.", + "operation": "Read artifacts.", + "provider": "Microsoft DevTest Labs", + "resource": "Artifacts" + } + }, + { + "name": "Microsoft.DevTestLab/labs/artifactSources/artifacts/GenerateArmTemplate/action", + "display": { + "description": "Generates an ARM template for the given artifact, uploads the required files to a storage account, and validates the generated artifact.", + "operation": "Generates an ARM template for the given artifact", + "provider": "Microsoft DevTest Labs", + "resource": "Artifacts" + } + }, + { + "name": "Microsoft.DevTestLab/labs/galleryImages/read", + "display": { + "description": "Read gallery images.", + "operation": "Read gallery images.", + "provider": "Microsoft DevTest Labs", + "resource": "gallery images" + } + }, + { + "name": "Microsoft.DevTestLab/labs/customImages/delete", + "display": { + "description": "Delete custom images.", + "operation": "Delete custom images.", + "provider": "Microsoft DevTest Labs", + "resource": "custom images" + } + }, + { + "name": "Microsoft.DevTestLab/labs/customImages/read", + "display": { + "description": "Read custom images.", + "operation": "Read custom images.", + "provider": "Microsoft DevTest Labs", + "resource": "custom images" + } + }, + { + "name": "Microsoft.DevTestLab/labs/customImages/write", + "display": { + "description": "Add or modify custom images.", + "operation": "Add or modify custom images.", + "provider": "Microsoft DevTest Labs", + "resource": "custom images" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualNetworks/delete", + "display": { + "description": "Delete virtual networks.", + "operation": "Delete virtual networks.", + "provider": "Microsoft DevTest Labs", + "resource": "virtual networks" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualNetworks/read", + "display": { + "description": "Read virtual networks.", + "operation": "Read virtual networks.", + "provider": "Microsoft DevTest Labs", + "resource": "virtual networks" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualNetworks/write", + "display": { + "description": "Add or modify virtual networks.", + "operation": "Add or modify virtual networks.", + "provider": "Microsoft DevTest Labs", + "resource": "virtual networks" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/delete", + "display": { + "description": "Delete virtual machines.", + "operation": "Delete virtual machines.", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/read", + "display": { + "description": "Read virtual machines.", + "operation": "Read virtual machines.", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/write", + "display": { + "description": "Add or modify virtual machines.", + "operation": "Add or modify virtual machines.", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/Start/action", + "display": { + "description": "Start a virtual machine.", + "operation": "Start virtual machine", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/Stop/action", + "display": { + "description": "Stop a virtual machine", + "operation": "Stop virtual machine", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/Restart/action", + "display": { + "description": "Restart a virtual machine.", + "operation": "Restart virtual machine", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/Redeploy/action", + "display": { + "description": "Redeploy a virtual machine", + "operation": "Redeploy a virtual machine", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/Resize/action", + "display": { + "description": "Resize Virtual Machine.", + "operation": "Resize Virtual Machine.", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/ApplyArtifacts/action", + "display": { + "description": "Apply artifacts to virtual machine.", + "operation": "Apply artifacts to virtual machine", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/AddDataDisk/action", + "display": { + "description": "Attach a new or existing data disk to virtual machine.", + "operation": "Add or attach a data disk", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/DetachDataDisk/action", + "display": { + "description": "Detach the specified disk from the virtual machine.", + "operation": "Detach the specified disk from the virtual machine", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/Claim/action", + "display": { + "description": "Take ownership of an existing virtual machine", + "operation": "Claim a virtual machine", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/UnClaim/action", + "display": { + "description": "Release ownership of an existing virtual machine", + "operation": "Unclaim a virtual machine", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/TransferDisks/action", + "display": { + "description": "Transfer ownership of virtual machine data disks to yourself", + "operation": "Transfer data disks to yourself", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/ListApplicableSchedules/action", + "display": { + "description": "Lists all applicable schedules", + "operation": "List all applicable schedules", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/GetRdpFileContents/action", + "display": { + "description": "Gets a string that represents the contents of the RDP file for the virtual machine", + "operation": "Get RDP file contents", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/formulas/delete", + "display": { + "description": "Delete formulas.", + "operation": "Delete formulas.", + "provider": "Microsoft DevTest Labs", + "resource": "Formulas" + } + }, + { + "name": "Microsoft.DevTestLab/labs/formulas/read", + "display": { + "description": "Read formulas.", + "operation": "Read formulas.", + "provider": "Microsoft DevTest Labs", + "resource": "Formulas" + } + }, + { + "name": "Microsoft.DevTestLab/labs/formulas/write", + "display": { + "description": "Add or modify formulas.", + "operation": "Add or modify formulas.", + "provider": "Microsoft DevTest Labs", + "resource": "Formulas" + } + }, + { + "name": "Microsoft.DevTestLab/labs/costs/read", + "display": { + "description": "Read costs.", + "operation": "Read costs.", + "provider": "Microsoft DevTest Labs", + "resource": "costs" + } + }, + { + "name": "Microsoft.DevTestLab/labs/costs/write", + "display": { + "description": "Add or modify costs.", + "operation": "Add or modify costs.", + "provider": "Microsoft DevTest Labs", + "resource": "costs" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/disks/delete", + "display": { + "description": "Delete disks.", + "operation": "Delete disks.", + "provider": "Microsoft DevTest Labs", + "resource": "disks" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/disks/read", + "display": { + "description": "Read disks.", + "operation": "Read disks.", + "provider": "Microsoft DevTest Labs", + "resource": "disks" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/disks/write", + "display": { + "description": "Add or modify disks.", + "operation": "Add or modify disks.", + "provider": "Microsoft DevTest Labs", + "resource": "disks" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/disks/Attach/action", + "display": { + "description": "Attach and create the lease of the disk to the virtual machine.", + "operation": "Attach disk", + "provider": "Microsoft DevTest Labs", + "resource": "disks" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/disks/Detach/action", + "display": { + "description": "Detach and break the lease of the disk attached to the virtual machine.", + "operation": "Detach and break the lease of the disk attached to the virtual machine", + "provider": "Microsoft DevTest Labs", + "resource": "disks" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/delete", + "display": { + "description": "Delete user profiles.", + "operation": "Delete user profiles.", + "provider": "Microsoft DevTest Labs", + "resource": "user profiles" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/read", + "display": { + "description": "Read user profiles.", + "operation": "Read user profiles.", + "provider": "Microsoft DevTest Labs", + "resource": "user profiles" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/write", + "display": { + "description": "Add or modify user profiles.", + "operation": "Add or modify user profiles.", + "provider": "Microsoft DevTest Labs", + "resource": "user profiles" + } + }, + { + "name": "Microsoft.DevTestLab/labs/notificationChannels/delete", + "display": { + "description": "Delete notification channels.", + "operation": "Delete notification channels.", + "provider": "Microsoft DevTest Labs", + "resource": "notificationChannels" + } + }, + { + "name": "Microsoft.DevTestLab/labs/notificationChannels/read", + "display": { + "description": "Read notification channels.", + "operation": "Read notification channels.", + "provider": "Microsoft DevTest Labs", + "resource": "notificationChannels" + } + }, + { + "name": "Microsoft.DevTestLab/labs/notificationChannels/write", + "display": { + "description": "Add or modify notification channels.", + "operation": "Add or modify notification channels.", + "provider": "Microsoft DevTest Labs", + "resource": "notificationChannels" + } + }, + { + "name": "Microsoft.DevTestLab/labs/notificationChannels/Notify/action", + "display": { + "description": "Send notification to provided channel.", + "operation": "Notify", + "provider": "Microsoft DevTest Labs", + "resource": "notificationChannels" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/secrets/delete", + "display": { + "description": "Delete secrets.", + "operation": "Delete secrets.", + "provider": "Microsoft DevTest Labs", + "resource": "secrets" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/secrets/read", + "display": { + "description": "Read secrets.", + "operation": "Read secrets.", + "provider": "Microsoft DevTest Labs", + "resource": "secrets" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/secrets/write", + "display": { + "description": "Add or modify secrets.", + "operation": "Add or modify secrets.", + "provider": "Microsoft DevTest Labs", + "resource": "secrets" + } + }, + { + "name": "Microsoft.DevTestLab/locations/operations/read", + "display": { + "description": "Read operations.", + "operation": "Read operations.", + "provider": "Microsoft DevTest Labs", + "resource": "operations" + } + }, + { + "name": "Microsoft.DevTestLab/labs/artifactSources/armTemplates/read", + "display": { + "description": "Read azure resource manager templates.", + "operation": "Read azure resource manager templates.", + "provider": "Microsoft DevTest Labs", + "resource": "Azure Resource Manager templates" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/environments/delete", + "display": { + "description": "Delete environments.", + "operation": "Delete environments.", + "provider": "Microsoft DevTest Labs", + "resource": "environments" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/environments/read", + "display": { + "description": "Read environments.", + "operation": "Read environments.", + "provider": "Microsoft DevTest Labs", + "resource": "environments" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/environments/write", + "display": { + "description": "Add or modify environments.", + "operation": "Add or modify environments.", + "provider": "Microsoft DevTest Labs", + "resource": "environments" + } + }, + { + "name": "Microsoft.DevTestLab/labs/serviceRunners/delete", + "display": { + "description": "Delete service runners.", + "operation": "Delete service runners.", + "provider": "Microsoft DevTest Labs", + "resource": "Service runners" + } + }, + { + "name": "Microsoft.DevTestLab/labs/serviceRunners/read", + "display": { + "description": "Read service runners.", + "operation": "Read service runners.", + "provider": "Microsoft DevTest Labs", + "resource": "Service runners" + } + }, + { + "name": "Microsoft.DevTestLab/labs/serviceRunners/write", + "display": { + "description": "Add or modify service runners.", + "operation": "Add or modify service runners.", + "provider": "Microsoft DevTest Labs", + "resource": "Service runners" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/delete", + "display": { + "description": "Delete service fabrics.", + "operation": "Delete service fabrics.", + "provider": "Microsoft DevTest Labs", + "resource": "Service Fabrics" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/read", + "display": { + "description": "Read service fabrics.", + "operation": "Read service fabrics.", + "provider": "Microsoft DevTest Labs", + "resource": "Service Fabrics" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/write", + "display": { + "description": "Add or modify service fabrics.", + "operation": "Add or modify service fabrics.", + "provider": "Microsoft DevTest Labs", + "resource": "Service Fabrics" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/Start/action", + "display": { + "description": "Start a service fabric.", + "operation": "Start service fabric", + "provider": "Microsoft DevTest Labs", + "resource": "Service Fabrics" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/Stop/action", + "display": { + "description": "Stop a service fabric", + "operation": "Stop service fabric", + "provider": "Microsoft DevTest Labs", + "resource": "Service Fabrics" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/ListApplicableSchedules/action", + "display": { + "description": "Lists all applicable schedules", + "operation": "List all applicable schedules", + "provider": "Microsoft DevTest Labs", + "resource": "Service Fabrics" + } + } + ] + } + } + }, + "operationId": "ProviderOperations_List", + "title": "ProviderOperations_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_CreateOrUpdate.json new file mode 100644 index 000000000000..cf897518558c --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_CreateOrUpdate.json @@ -0,0 +1,128 @@ +{ + "parameters": { + "name": "{scheduleName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "schedule": { + "location": "{location}", + "properties": { + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Creating", + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Creating", + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "Schedules_CreateOrUpdate", + "title": "Schedules_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Delete.json new file mode 100644 index 000000000000..6049b7fbc45d --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "name": "{scheduleName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "Schedules_Delete", + "title": "Schedules_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Execute.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Execute.json new file mode 100644 index 000000000000..16513c9c5d5c --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Execute.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "name": "{scheduleName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + } + }, + "operationId": "Schedules_Execute", + "title": "Schedules_Execute" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Get.json new file mode 100644 index 000000000000..fafdb792a4bf --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Get.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "name": "{scheduleName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Creating", + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "Schedules_Get", + "title": "Schedules_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_List.json new file mode 100644 index 000000000000..19031aa5d97d --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_List.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Creating", + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + }, + "operationId": "Schedules_List", + "title": "Schedules_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_ListApplicable.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_ListApplicable.json new file mode 100644 index 000000000000..0b4e36b31f62 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_ListApplicable.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "name": "{scheduleName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Creating", + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + }, + "operationId": "Schedules_ListApplicable", + "title": "Schedules_ListApplicable" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Update.json new file mode 100644 index 000000000000..51a8975e65ac --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Update.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "name": "{scheduleName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "schedule": { + "tags": { + "tagName1": "tagValue1" + } + }, + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Creating", + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "Schedules_Update", + "title": "Schedules_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_CreateOrUpdate.json new file mode 100644 index 000000000000..643ac4815a47 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_CreateOrUpdate.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "name": "{secretName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "secret": { + "properties": { + "value": "{secret}" + } + }, + "subscriptionId": "{subscriptionId}", + "userName": "{userName}" + }, + "responses": { + "200": { + "body": { + "name": "{secretName}", + "type": "Microsoft.DevTestLab/labs/users/secrets", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/secrets/{secretName}", + "properties": { + "uniqueIdentifier": "00000000-0000-0000-0000-000000000000" + } + } + }, + "201": { + "body": { + "name": "{secretName}", + "type": "Microsoft.DevTestLab/labs/users/secrets", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/secrets/{secretName}", + "properties": { + "uniqueIdentifier": "00000000-0000-0000-0000-000000000000" + } + } + } + }, + "operationId": "Secrets_CreateOrUpdate", + "title": "Secrets_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Delete.json new file mode 100644 index 000000000000..068d64a0ee8a --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Delete.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "name": "{secretName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "{userName}" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "Secrets_Delete", + "title": "Secrets_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Get.json new file mode 100644 index 000000000000..df74669e6ca9 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Get.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "name": "{secretName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "{userName}" + }, + "responses": { + "200": { + "body": { + "name": "{secretName}", + "type": "Microsoft.DevTestLab/labs/users/secrets", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/secrets/{secretName}", + "properties": { + "uniqueIdentifier": "00000000-0000-0000-0000-000000000000" + } + } + } + }, + "operationId": "Secrets_Get", + "title": "Secrets_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_List.json new file mode 100644 index 000000000000..df2e35f93e53 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_List.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "{userName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "secret1", + "type": "Microsoft.DevTestLab/labs/users/secrets", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/secrets/secret1", + "properties": { + "uniqueIdentifier": "00000000-0000-0000-0000-000000000000" + } + }, + { + "name": "secret2", + "type": "Microsoft.DevTestLab/labs/users/secrets", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/secrets/secret2", + "properties": { + "uniqueIdentifier": "00000000-0000-0000-0000-000000000000" + } + } + ] + } + } + }, + "operationId": "Secrets_List", + "title": "Secrets_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Update.json new file mode 100644 index 000000000000..7544258d58d5 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Update.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "name": "{secretName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "secret": { + "tags": { + "tagName1": "tagValue1" + } + }, + "subscriptionId": "{subscriptionId}", + "userName": "{userName}" + }, + "responses": { + "200": { + "body": { + "name": "{secretName}", + "type": "Microsoft.DevTestLab/labs/users/secrets", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/secrets/{secretName}", + "properties": { + "uniqueIdentifier": "00000000-0000-0000-0000-000000000000" + } + } + } + }, + "operationId": "Secrets_Update", + "title": "Secrets_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_CreateOrUpdate.json new file mode 100644 index 000000000000..9c3b0e016d6b --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_CreateOrUpdate.json @@ -0,0 +1,130 @@ +{ + "parameters": { + "name": "{scheduleName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "schedule": { + "location": "{location}", + "properties": { + "dailyRecurrence": { + "time": "19:00" + }, + "hourlyRecurrence": { + "minute": 0 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhoolUrl}" + }, + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}", + "taskType": "{Unknown|LabVmsShutdownTask|LabVmsStartupTask|LabVmReclamationTask|ComputeVmShutdownTask}", + "timeZoneId": "Pacific Standard Time", + "weeklyRecurrence": { + "time": "19:00", + "weekdays": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "serviceFabricName": "{serviceFrabicName}", + "subscriptionId": "{subscriptionId}", + "userName": "@me" + }, + "responses": { + "200": { + "body": { + "name": "{scheduleName}", + "type": "microsoft.devtestlab/labs/users/servicefabrics/schedules", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-09-15T00:00:00.0000000-00:00", + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "Disabled", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Succeeded", + "status": "Enabled", + "targetResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}", + "taskType": "Unknown", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "1900", + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "name": "{scheduleName}", + "type": "microsoft.devtestlab/labs/users/servicefabrics/schedules", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-09-15T00:00:00.0000000-00:00", + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "Disabled", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Succeeded", + "status": "Enabled", + "targetResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}", + "taskType": "Unknown", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "1900", + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "ServiceFabricSchedules_CreateOrUpdate", + "title": "ServiceFabricSchedules_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Delete.json new file mode 100644 index 000000000000..3451e5e99849 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Delete.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "name": "{scheduleName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "serviceFabricName": "{serviceFrabicName}", + "subscriptionId": "{subscriptionId}", + "userName": "@me" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "ServiceFabricSchedules_Delete", + "title": "ServiceFabricSchedules_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Execute.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Execute.json new file mode 100644 index 000000000000..4cb21d55c5f5 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Execute.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "name": "{scheduleName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "serviceFabricName": "{serviceFrabicName}", + "subscriptionId": "{subscriptionId}", + "userName": "@me" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + } + }, + "operationId": "ServiceFabricSchedules_Execute", + "title": "ServiceFabricSchedules_Execute" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Get.json new file mode 100644 index 000000000000..d4ea1780fb55 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Get.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "name": "{scheduleName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "serviceFabricName": "{serviceFrabicName}", + "subscriptionId": "{subscriptionId}", + "userName": "@me" + }, + "responses": { + "200": { + "body": { + "name": "{scheduleName}", + "type": "microsoft.devtestlab/labs/users/servicefabrics/schedules", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-09-15T00:00:00.0000000-00:00", + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "Disabled", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Succeeded", + "status": "Enabled", + "targetResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}", + "taskType": "Unknown", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "1900", + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "ServiceFabricSchedules_Get", + "title": "ServiceFabricSchedules_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_List.json new file mode 100644 index 000000000000..c6be9125f350 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_List.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "serviceFabricName": "{serviceFrabicName}", + "subscriptionId": "{subscriptionId}", + "userName": "@me" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "{scheduleName}", + "type": "microsoft.devtestlab/labs/users/servicefabrics/schedules", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-09-15T00:00:00.0000000-00:00", + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "Disabled", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Succeeded", + "status": "Enabled", + "targetResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}", + "taskType": "Unknown", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "1900", + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + }, + "operationId": "ServiceFabricSchedules_List", + "title": "ServiceFabricSchedules_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Update.json new file mode 100644 index 000000000000..96a7701556cc --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Update.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "name": "{scheduleName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "schedule": { + "tags": { + "tagName1": "tagValue1" + } + }, + "serviceFabricName": "{serviceFrabicName}", + "subscriptionId": "{subscriptionId}", + "userName": "@me" + }, + "responses": { + "200": { + "body": { + "name": "{scheduleName}", + "type": "microsoft.devtestlab/labs/users/servicefabrics/schedules", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-09-15T00:00:00.0000000-00:00", + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "Disabled", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Succeeded", + "status": "Disabled", + "targetResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}", + "taskType": "Unknown", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "1900", + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "ServiceFabricSchedules_Update", + "title": "ServiceFabricSchedules_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_CreateOrUpdate.json new file mode 100644 index 000000000000..c7f6d8a78d1f --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_CreateOrUpdate.json @@ -0,0 +1,236 @@ +{ + "parameters": { + "name": "{serviceFabricName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "serviceFabric": { + "location": "{location}", + "properties": { + "environmentId": "{environmentId}", + "externalServiceFabricId": "{serviceFabricId}" + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "subscriptionId": "{subscriptionId}", + "userName": "{userName}" + }, + "responses": { + "200": { + "body": { + "name": "{serviceFabricName}", + "type": "Microsoft.DevTestLab/labs/users/serviceFabrics", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}", + "location": "{location}", + "properties": { + "applicableSchedule": { + "name": "{scheduleName}", + "type": "{scheduleType}", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "labVmsShutdown": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Creating", + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "labVmsStartup": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Creating", + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "environmentId": "{environmentId}", + "externalServiceFabricId": "{serviceFabricId}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "name": "{serviceFabricName}", + "type": "Microsoft.DevTestLab/labs/users/serviceFabrics", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}", + "location": "{location}", + "properties": { + "applicableSchedule": { + "name": "{scheduleName}", + "type": "{scheduleType}", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "labVmsShutdown": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Creating", + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "labVmsStartup": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Creating", + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "environmentId": "{environmentId}", + "externalServiceFabricId": "{serviceFabricId}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "ServiceFabrics_CreateOrUpdate", + "title": "ServiceFabrics_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Delete.json new file mode 100644 index 000000000000..e69e19ce508a --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Delete.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "name": "{serviceFabricName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "{userName}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + }, + "204": {} + }, + "operationId": "ServiceFabrics_Delete", + "title": "ServiceFabrics_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Get.json new file mode 100644 index 000000000000..5a14ac108fbc --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Get.json @@ -0,0 +1,120 @@ +{ + "parameters": { + "name": "{serviceFabricName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "{userName}" + }, + "responses": { + "200": { + "body": { + "name": "{serviceFabricName}", + "type": "Microsoft.DevTestLab/labs/users/serviceFabrics", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}", + "location": "{location}", + "properties": { + "applicableSchedule": { + "name": "{scheduleName}", + "type": "{scheduleType}", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "labVmsShutdown": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Creating", + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "labVmsStartup": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Creating", + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "environmentId": "{environmentId}", + "externalServiceFabricId": "{serviceFabricId}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "ServiceFabrics_Get", + "title": "ServiceFabrics_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_List.json new file mode 100644 index 000000000000..2e4be9d8a67c --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_List.json @@ -0,0 +1,123 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "{userName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "{serviceFabricName}", + "type": "Microsoft.DevTestLab/labs/users/serviceFabrics", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}", + "location": "{location}", + "properties": { + "applicableSchedule": { + "name": "{scheduleName}", + "type": "{scheduleType}", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "labVmsShutdown": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Creating", + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "labVmsStartup": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Creating", + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "environmentId": "{environmentId}", + "externalServiceFabricId": "{serviceFabricId}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + }, + "operationId": "ServiceFabrics_List", + "title": "ServiceFabrics_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_ListApplicableSchedules.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_ListApplicableSchedules.json new file mode 100644 index 000000000000..762c3fe79370 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_ListApplicableSchedules.json @@ -0,0 +1,105 @@ +{ + "parameters": { + "name": "{serviceFabricName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "{userName}" + }, + "responses": { + "200": { + "body": { + "name": "{scheduleName}", + "type": "{scheduleType}", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "labVmsShutdown": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Creating", + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "labVmsStartup": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Creating", + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "ServiceFabrics_ListApplicableSchedules", + "title": "ServiceFabrics_ListApplicableSchedules" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Start.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Start.json new file mode 100644 index 000000000000..c17021f8902e --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Start.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "name": "{serviceFabricName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "{userName}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + } + }, + "operationId": "ServiceFabrics_Start", + "title": "ServiceFabrics_Start" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Stop.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Stop.json new file mode 100644 index 000000000000..7c9220afccfa --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Stop.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "name": "{serviceFabricName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "{userName}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + } + }, + "operationId": "ServiceFabrics_Stop", + "title": "ServiceFabrics_Stop" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Update.json new file mode 100644 index 000000000000..c36b3f97ffb3 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Update.json @@ -0,0 +1,125 @@ +{ + "parameters": { + "name": "{serviceFabricName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "serviceFabric": { + "tags": { + "tagName1": "tagValue1" + } + }, + "subscriptionId": "{subscriptionId}", + "userName": "{userName}" + }, + "responses": { + "200": { + "body": { + "name": "{serviceFabricName}", + "type": "Microsoft.DevTestLab/labs/users/serviceFabrics", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}", + "location": "{location}", + "properties": { + "applicableSchedule": { + "name": "{scheduleName}", + "type": "{scheduleType}", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "labVmsShutdown": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Creating", + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "labVmsStartup": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Creating", + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "environmentId": "{environmentId}", + "externalServiceFabricId": "{serviceFabricId}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "ServiceFabrics_Update", + "title": "ServiceFabrics_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_CreateOrUpdate.json new file mode 100644 index 000000000000..b2310d44670a --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_CreateOrUpdate.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "name": "{servicerunnerName}", + "api-version": "2018-09-15", + "labName": "{devtestlabName}", + "resourceGroupName": "resourceGroupName", + "serviceRunner": { + "identity": { + "type": "{identityType}", + "clientSecretUrl": "{identityClientSecretUrl}", + "principalId": "{identityPrincipalId}", + "tenantId": "{identityTenantId}" + }, + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + }, + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{serviceRunnerName}", + "type": "Microsoft.DevTestLab/labs/serviceRunners", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/serviceRunners/{serviceRunnerName}", + "identity": { + "type": "{identityType}", + "clientSecretUrl": "{identityClientSecretUrl}", + "principalId": "{identityPrincipalId}", + "tenantId": "{identityTenantId}" + }, + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "name": "{serviceRunnerName}", + "type": "Microsoft.DevTestLab/labs/serviceRunners", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/serviceRunners/{serviceRunnerName}", + "identity": { + "type": "{identityType}", + "clientSecretUrl": "{identityClientSecretUrl}", + "principalId": "{identityPrincipalId}", + "tenantId": "{identityTenantId}" + }, + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "ServiceRunners_CreateOrUpdate", + "title": "ServiceRunners_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Delete.json new file mode 100644 index 000000000000..926cfeb255a6 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "name": "{servicerunnerName}", + "api-version": "2018-09-15", + "labName": "{devtestlabName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "ServiceRunners_Delete", + "title": "ServiceRunners_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Get.json new file mode 100644 index 000000000000..63e9e222f0bb --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Get.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "name": "{servicerunnerName}", + "api-version": "2018-09-15", + "labName": "{devtestlabName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{serviceRunnerName}", + "type": "Microsoft.DevTestLab/labs/serviceRunners", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/serviceRunners/{serviceRunnerName}", + "identity": { + "type": "{identityType}", + "clientSecretUrl": "{identityClientSecretUrl}", + "principalId": "{identityPrincipalId}", + "tenantId": "{identityTenantId}" + }, + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "ServiceRunners_Get", + "title": "ServiceRunners_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_CreateOrUpdate.json new file mode 100644 index 000000000000..45a2be58bb91 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_CreateOrUpdate.json @@ -0,0 +1,86 @@ +{ + "parameters": { + "name": "{userName}", + "api-version": "2018-09-15", + "labName": "{devtestlabName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "user": { + "location": "{location}", + "properties": { + "identity": { + "appId": "{appId}", + "objectId": "{objectId}", + "principalId": "{principalId}", + "principalName": "{principalName}", + "tenantId": "{tenantId}" + }, + "secretStore": { + "keyVaultId": "{keyVaultId}", + "keyVaultUri": "{keyVaultUri}" + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "name": "{userName}", + "type": "Microsoft.DevTestLab/labs/users", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}", + "location": "{location}", + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "identity": { + "appId": "{appId}", + "objectId": "{objectId}", + "principalId": "{principalId}", + "principalName": "{principalName}", + "tenantId": "{tenantId}" + }, + "provisioningState": "Succeeded", + "secretStore": { + "keyVaultId": "{keyVaultId}", + "keyVaultUri": "{keyVaultUri}" + }, + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "name": "{userName}", + "type": "Microsoft.DevTestLab/labs/users", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}", + "location": "{location}", + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "identity": { + "appId": "{appId}", + "objectId": "{objectId}", + "principalId": "{principalId}", + "principalName": "{principalName}", + "tenantId": "{tenantId}" + }, + "provisioningState": "Succeeded", + "secretStore": { + "keyVaultId": "{keyVaultId}", + "keyVaultUri": "{keyVaultUri}" + }, + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "Users_CreateOrUpdate", + "title": "Users_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Delete.json new file mode 100644 index 000000000000..6d3e3e554867 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Delete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "name": "{userName}", + "api-version": "2018-09-15", + "labName": "{devtestlabName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + }, + "204": {} + }, + "operationId": "Users_Delete", + "title": "Users_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Get.json new file mode 100644 index 000000000000..92439518e374 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Get.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "name": "{userName}", + "api-version": "2018-09-15", + "labName": "{devtestlabName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{userName}", + "type": "Microsoft.DevTestLab/labs/users", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}", + "location": "{location}", + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "identity": { + "appId": "{appId}", + "objectId": "{objectId}", + "principalId": "{principalId}", + "principalName": "{principalName}", + "tenantId": "{tenantId}" + }, + "provisioningState": "Succeeded", + "secretStore": { + "keyVaultId": "{keyVaultId}", + "keyVaultUri": "{keyVaultUri}" + }, + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "Users_Get", + "title": "Users_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_List.json new file mode 100644 index 000000000000..e2f62e929a36 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_List.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "labName": "{devtestlabName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "{userName}", + "type": "Microsoft.DevTestLab/labs/users", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}", + "location": "{location}", + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "identity": { + "appId": "{appId}", + "objectId": "{objectId}", + "principalId": "{principalId}", + "principalName": "{principalName}", + "tenantId": "{tenantId}" + }, + "provisioningState": "Succeeded", + "secretStore": { + "keyVaultId": "{keyVaultId}", + "keyVaultUri": "{keyVaultUri}" + }, + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + }, + "operationId": "Users_List", + "title": "Users_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Update.json new file mode 100644 index 000000000000..18162040ced6 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Update.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "name": "{userName}", + "api-version": "2018-09-15", + "labName": "{devtestlabName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "user": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "name": "{userName}", + "type": "Microsoft.DevTestLab/labs/users", + "body": { + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "identity": { + "appId": "{appId}", + "objectId": "{objectId}", + "principalId": "{principalId}", + "principalName": "{principalName}", + "tenantId": "{tenantId}" + }, + "provisioningState": "Succeeded", + "secretStore": { + "keyVaultId": "{keyVaultId}", + "keyVaultUri": "users/{userName}" + }, + "uniqueIdentifier": "{uniqueIdentifier}" + } + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "operationId": "Users_Update", + "title": "Users_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_CreateOrUpdate.json new file mode 100644 index 000000000000..f9d40b3f404f --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_CreateOrUpdate.json @@ -0,0 +1,127 @@ +{ + "parameters": { + "name": "LabVmsShutdown", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "schedule": { + "location": "{location}", + "properties": { + "dailyRecurrence": { + "time": "1900" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "Enabled", + "timeInMinutes": 30, + "webhookUrl": "{webhookUrl}" + }, + "status": "Enabled", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}", + "taskType": "LabVmsShutdownTask", + "timeZoneId": "Pacific Standard Time", + "weeklyRecurrence": { + "time": "1700", + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "subscriptionId": "{subscriptionId}", + "virtualMachineName": "{vmName}" + }, + "responses": { + "200": { + "body": { + "name": "LabVmsShutdown", + "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}/schedules/LabVmsShutdown", + "location": "{location}", + "properties": { + "createdDate": "2020-12-31T18:40:48.1739018-07:00", + "dailyRecurrence": { + "time": "1900" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "Enabled", + "timeInMinutes": 30, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Created", + "status": "Enabled", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}", + "taskType": "LabVmsShutdownTask", + "timeZoneId": "Pacific Standard Time", + "weeklyRecurrence": { + "time": "1700", + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "name": "LabVmsShutdown", + "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}/schedules/LabVmsShutdown", + "location": "{location}", + "properties": { + "createdDate": "2020-12-31T18:40:48.1739018-07:00", + "dailyRecurrence": { + "time": "1900" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "Enabled", + "timeInMinutes": 30, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Created", + "status": "Enabled", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}", + "taskType": "LabVmsShutdownTask", + "timeZoneId": "Pacific Standard Time", + "weeklyRecurrence": { + "time": "1700", + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "VirtualMachineSchedules_CreateOrUpdate", + "title": "VirtualMachineSchedules_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Delete.json new file mode 100644 index 000000000000..6d1ab802ea5b --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Delete.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "name": "LabVmsShutdown", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "virtualMachineName": "{vmName}" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "VirtualMachineSchedules_Delete", + "title": "VirtualMachineSchedules_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Execute.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Execute.json new file mode 100644 index 000000000000..ff00dbff4f1e --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Execute.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "name": "LabVmsShutdown", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "virtualMachineName": "{vmName}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + } + }, + "operationId": "VirtualMachineSchedules_Execute", + "title": "VirtualMachineSchedules_Execute" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Get.json new file mode 100644 index 000000000000..c0de83a4424d --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Get.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "name": "LabVmsShutdown", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "virtualMachineName": "{vmName}" + }, + "responses": { + "200": { + "body": { + "name": "LabVmsShutdown", + "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}/schedules/mySchedule", + "location": "{location}", + "properties": { + "createdDate": "2020-12-31T18:40:48.1739018-07:00", + "dailyRecurrence": { + "time": "1900" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "Enabled", + "timeInMinutes": 30, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Succeeded", + "status": "Enabled", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}", + "taskType": "LabVmsShutdownTask", + "timeZoneId": "Pacific Standard Time", + "weeklyRecurrence": { + "time": "1700", + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "VirtualMachineSchedules_Get", + "title": "VirtualMachineSchedules_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_List.json new file mode 100644 index 000000000000..ea4e2a532c78 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_List.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "virtualMachineName": "{vmName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "LabVmsShutdown", + "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}/schedules/mySchedule", + "location": "{location}", + "properties": { + "createdDate": "2020-12-31T18:40:48.1739018-07:00", + "dailyRecurrence": { + "time": "1900" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "Enabled", + "timeInMinutes": 30, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Succeeded", + "status": "Enabled", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/labName}/virtualMachines/{vmName}", + "taskType": "LabVmsShutdownTask", + "timeZoneId": "Pacific Standard Time", + "weeklyRecurrence": { + "time": "1700", + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + }, + "operationId": "VirtualMachineSchedules_List", + "title": "VirtualMachineSchedules_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Update.json new file mode 100644 index 000000000000..7bfc5eac1618 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Update.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "name": "LabVmsShutdown", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "schedule": { + "tags": { + "tagName1": "tagValue1" + } + }, + "subscriptionId": "{subscriptionId}", + "virtualMachineName": "{vmName}" + }, + "responses": { + "200": { + "body": { + "name": "LabVmsShutdown", + "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}/schedules/mySchedule", + "location": "{location}", + "properties": { + "createdDate": "2020-12-31T18:40:48.1739018-07:00", + "dailyRecurrence": { + "time": "1900" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "Enabled", + "timeInMinutes": 30, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Succeeded", + "status": "Enabled", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}", + "taskType": "LabVmsShutdownTask", + "timeZoneId": "Pacific Standard Time", + "weeklyRecurrence": { + "time": "1700", + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "VirtualMachineSchedules_Update", + "title": "VirtualMachineSchedules_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_AddDataDisk.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_AddDataDisk.json new file mode 100644 index 000000000000..c4fd98d25dd1 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_AddDataDisk.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "name": "{virtualMachineName}", + "api-version": "2018-09-15", + "dataDiskProperties": { + "attachNewDataDiskOptions": { + "diskName": "{diskName}", + "diskSizeGiB": 127, + "diskType": "{diskType}" + } + }, + "hostCaching": "none|readOnly|readWrite", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + } + }, + "operationId": "VirtualMachines_AddDataDisk", + "title": "VirtualMachines_AddDataDisk" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_ApplyArtifacts.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_ApplyArtifacts.json new file mode 100644 index 000000000000..2582d98d0c47 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_ApplyArtifacts.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "name": "{vmName}", + "api-version": "2018-09-15", + "applyArtifactsRequest": { + "artifacts": [ + { + "artifactId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/public repo/artifacts/windows-restart" + } + ] + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + } + }, + "operationId": "VirtualMachines_ApplyArtifacts", + "title": "VirtualMachines_ApplyArtifacts" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Claim.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Claim.json new file mode 100644 index 000000000000..886ea7ad5a82 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Claim.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "name": "{vmName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + } + }, + "operationId": "VirtualMachines_Claim", + "title": "VirtualMachines_Claim" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_CreateOrUpdate.json new file mode 100644 index 000000000000..bd8e5d6be401 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_CreateOrUpdate.json @@ -0,0 +1,118 @@ +{ + "parameters": { + "name": "{vmName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "labVirtualMachine": { + "location": "{location}", + "properties": { + "allowClaim": true, + "disallowPublicIpAddress": true, + "galleryImageReference": { + "offer": "UbuntuServer", + "osType": "Linux", + "publisher": "Canonical", + "sku": "16.04-LTS", + "version": "Latest" + }, + "labSubnetName": "{virtualNetworkName}Subnet", + "labVirtualNetworkId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", + "password": "{userPassword}", + "size": "Standard_A2_v2", + "storageType": "Standard", + "userName": "{userName}" + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{vmName}", + "type": "Microsoft.DevTestLab/labs/virtualMachines", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}", + "location": "{location}", + "properties": { + "allowClaim": true, + "artifactDeploymentStatus": { + "artifactsApplied": 0, + "totalArtifacts": 0 + }, + "createdByUser": "", + "createdByUserId": "", + "createdDate": "2018-10-01T16:53:02.4830866-07:00", + "dataDiskParameters": [], + "disallowPublicIpAddress": true, + "galleryImageReference": { + "offer": "UbuntuServer", + "osType": "Linux", + "publisher": "Canonical", + "sku": "16.04-LTS", + "version": "Latest" + }, + "labSubnetName": "{virtualNetworkName}Subnet", + "labVirtualNetworkId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", + "networkInterface": {}, + "ownerObjectId": "", + "ownerUserPrincipalName": "", + "provisioningState": "Creating", + "size": "Standard_A2_v2", + "storageType": "Standard", + "uniqueIdentifier": "{uniqueIdentifier}", + "userName": "{userName}", + "virtualMachineCreationSource": "FromGalleryImage" + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "name": "{vmName}", + "type": "Microsoft.DevTestLab/labs/virtualMachines", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}", + "location": "{location}", + "properties": { + "allowClaim": true, + "artifactDeploymentStatus": { + "artifactsApplied": 0, + "totalArtifacts": 0 + }, + "createdByUser": "", + "createdByUserId": "", + "createdDate": "2018-10-01T16:53:02.4830866-07:00", + "dataDiskParameters": [], + "disallowPublicIpAddress": true, + "galleryImageReference": { + "offer": "UbuntuServer", + "osType": "Linux", + "publisher": "Canonical", + "sku": "16.04-LTS", + "version": "Latest" + }, + "labSubnetName": "{virtualNetworkName}Subnet", + "labVirtualNetworkId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", + "networkInterface": {}, + "ownerObjectId": "", + "ownerUserPrincipalName": "", + "provisioningState": "Creating", + "size": "Standard_A2_v2", + "storageType": "Standard", + "uniqueIdentifier": "{uniqueIdentifier}", + "userName": "{userName}", + "virtualMachineCreationSource": "FromGalleryImage" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "VirtualMachines_CreateOrUpdate", + "title": "VirtualMachines_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Delete.json new file mode 100644 index 000000000000..26e18b8b089b --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Delete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "name": "{vmName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + }, + "204": {} + }, + "operationId": "VirtualMachines_Delete", + "title": "VirtualMachines_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_DetachDataDisk.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_DetachDataDisk.json new file mode 100644 index 000000000000..49cc11d05379 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_DetachDataDisk.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "name": "{virtualMachineName}", + "api-version": "2018-09-15", + "detachDataDiskProperties": { + "existingLabDiskId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{virtualMachineName}" + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + } + }, + "operationId": "VirtualMachines_DetachDataDisk", + "title": "VirtualMachines_DetachDataDisk" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Get.json new file mode 100644 index 000000000000..05a429b64f27 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Get.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "name": "{vmName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{vmName}", + "type": "Microsoft.DevTestLab/labs/virtualMachines", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}", + "location": "{location}", + "properties": { + "allowClaim": true, + "artifactDeploymentStatus": { + "artifactsApplied": 0, + "totalArtifacts": 0 + }, + "computeId": "/subscriptions/{subscriptionId}/resourceGroups/{labName}-{vmName}-{randomSuffix}/providers/Microsoft.Compute/virtualMachines/{vmName}", + "createdByUser": "", + "createdByUserId": "", + "createdDate": "2018-10-01T16:53:02.4830866-07:00", + "dataDiskParameters": [], + "disallowPublicIpAddress": true, + "galleryImageReference": { + "offer": "UbuntuServer", + "osType": "Linux", + "publisher": "Canonical", + "sku": "16.04-LTS", + "version": "Latest" + }, + "labSubnetName": "{virtualNetworkName}Subnet", + "labVirtualNetworkId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", + "networkInterface": {}, + "osType": "Linux", + "ownerObjectId": "", + "ownerUserPrincipalName": "", + "provisioningState": "Succeeded", + "size": "Standard_A2_v2", + "storageType": "Standard", + "uniqueIdentifier": "{uniqueIdentifier}", + "userName": "{userName}", + "virtualMachineCreationSource": "FromGalleryImage" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "VirtualMachines_Get", + "title": "VirtualMachines_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_GetRdpFileContents.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_GetRdpFileContents.json new file mode 100644 index 000000000000..467839ecee56 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_GetRdpFileContents.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "name": "{vmName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "contents": "full address:s:10.0.0.4\r\nprompt for credentials:i:1\r\nusername:s:{vmName}\\{userName}\r\n" + } + } + }, + "operationId": "VirtualMachines_GetRdpFileContents", + "title": "VirtualMachines_GetRdpFileContents" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_List.json new file mode 100644 index 000000000000..d598b41c88b7 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_List.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "{vmName}", + "type": "Microsoft.DevTestLab/labs/virtualMachines", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}", + "location": "{location}", + "properties": { + "allowClaim": true, + "artifactDeploymentStatus": { + "artifactsApplied": 0, + "totalArtifacts": 0 + }, + "computeId": "/subscriptions/{subscriptionId}/resourceGroups/{labName}-{vmName}-{randomSuffix}/providers/Microsoft.Compute/virtualMachines/{vmName}", + "createdByUser": "", + "createdByUserId": "", + "createdDate": "2018-10-01T16:53:02.4830866-07:00", + "dataDiskParameters": [], + "disallowPublicIpAddress": true, + "galleryImageReference": { + "offer": "UbuntuServer", + "osType": "Linux", + "publisher": "Canonical", + "sku": "16.04-LTS", + "version": "Latest" + }, + "labSubnetName": "{virtualNetworkName}Subnet", + "labVirtualNetworkId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", + "networkInterface": {}, + "osType": "Linux", + "ownerObjectId": "", + "ownerUserPrincipalName": "", + "provisioningState": "Succeeded", + "size": "Standard_A2_v2", + "storageType": "Standard", + "uniqueIdentifier": "{uniqueIdentifier}", + "userName": "{userName}", + "virtualMachineCreationSource": "FromGalleryImage" + }, + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + }, + "operationId": "VirtualMachines_List", + "title": "VirtualMachines_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_ListApplicableSchedules.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_ListApplicableSchedules.json new file mode 100644 index 000000000000..45b6e9212204 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_ListApplicableSchedules.json @@ -0,0 +1,90 @@ +{ + "parameters": { + "name": "{vmName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "properties": { + "labVmsShutdown": { + "name": "LabVmsShutdown", + "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/myAutoShutdownSchedule", + "location": "{location}", + "properties": { + "createdDate": "2020-12-29T21:48:14.1369355+00:00", + "dailyRecurrence": { + "time": "1900" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "Enabled", + "timeInMinutes": 30, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Succeeded", + "status": "Enabled", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{vmName}", + "taskType": "LabVmsShutdownTask", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "4acf0408-1c10-49cb-96b7-28ce655c8320", + "weeklyRecurrence": { + "time": "1700", + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ] + } + } + }, + "labVmsStartup": { + "name": "LabVmAutoStart", + "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/myAutoStartSchedule", + "location": "{location}", + "properties": { + "createdDate": "2020-12-29T21:46:37.0473976+00:00", + "dailyRecurrence": { + "time": "0900" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "Enabled", + "timeInMinutes": 30, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Succeeded", + "status": "Enabled", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{vmName}", + "taskType": "LabVmsStartupTask", + "timeZoneId": "Pacific Standard Time", + "weeklyRecurrence": { + "time": "1000", + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ] + } + } + } + } + } + } + }, + "operationId": "VirtualMachines_ListApplicableSchedules", + "title": "VirtualMachines_ListApplicableSchedules" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Redeploy.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Redeploy.json new file mode 100644 index 000000000000..312ba83f4a75 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Redeploy.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "name": "{vmName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "monitor": "true", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + } + }, + "operationId": "VirtualMachines_Redeploy", + "title": "VirtualMachines_Redeploy" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Resize.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Resize.json new file mode 100644 index 000000000000..7bb01f0f082a --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Resize.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "name": "{vmName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "monitor": "true", + "resizeLabVirtualMachineProperties": { + "size": "Standard_A4_v2" + }, + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + } + }, + "operationId": "VirtualMachines_Resize", + "title": "VirtualMachines_Resize" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Restart.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Restart.json new file mode 100644 index 000000000000..0bd8b7cb883f --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Restart.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "name": "{vmName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "monitor": "true", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + } + }, + "operationId": "VirtualMachines_Restart", + "title": "VirtualMachines_Restart" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Start.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Start.json new file mode 100644 index 000000000000..80ed19f88473 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Start.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "name": "{vmName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "monitor": "true", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + } + }, + "operationId": "VirtualMachines_Start", + "title": "VirtualMachines_Start" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Stop.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Stop.json new file mode 100644 index 000000000000..f2857a1e580e --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Stop.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "name": "{vmName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + } + }, + "operationId": "VirtualMachines_Stop", + "title": "VirtualMachines_Stop" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_TransferDisks.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_TransferDisks.json new file mode 100644 index 000000000000..97ce8e5bcc8f --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_TransferDisks.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "name": "{virtualmachineName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + } + }, + "operationId": "VirtualMachines_TransferDisks", + "title": "VirtualMachines_TransferDisks" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_UnClaim.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_UnClaim.json new file mode 100644 index 000000000000..ab0cd802c505 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_UnClaim.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "name": "{vmName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "monitor": "true", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + } + }, + "operationId": "VirtualMachines_UnClaim", + "title": "VirtualMachines_UnClaim" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Update.json new file mode 100644 index 000000000000..0038e75acc52 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Update.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "name": "{vmName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "labVirtualMachine": {}, + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{vmName}", + "type": "Microsoft.DevTestLab/labs/virtualMachines", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}", + "location": "{location}", + "properties": { + "allowClaim": true, + "artifactDeploymentStatus": { + "artifactsApplied": 0, + "totalArtifacts": 0 + }, + "computeId": "/subscriptions/{subscriptionId}/resourceGroups/{labName}-{vmName}-{randomSuffix}/providers/Microsoft.Compute/virtualMachines/{vmName}", + "createdByUser": "", + "createdByUserId": "", + "createdDate": "2018-10-01T16:53:02.4830866-07:00", + "dataDiskParameters": [], + "disallowPublicIpAddress": true, + "galleryImageReference": { + "offer": "UbuntuServer", + "osType": "Linux", + "publisher": "Canonical", + "sku": "16.04-LTS", + "version": "Latest" + }, + "labSubnetName": "{virtualNetworkName}Subnet", + "labVirtualNetworkId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", + "networkInterface": {}, + "osType": "Linux", + "ownerObjectId": "", + "ownerUserPrincipalName": "", + "provisioningState": "Succeeded", + "size": "Standard_A2_v2", + "storageType": "Standard", + "uniqueIdentifier": "{uniqueIdentifier}", + "userName": "{userName}", + "virtualMachineCreationSource": "FromGalleryImage" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "VirtualMachines_Update", + "title": "VirtualMachines_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_CreateOrUpdate.json new file mode 100644 index 000000000000..641cafcbf593 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_CreateOrUpdate.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "name": "{virtualNetworkName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "virtualNetwork": { + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "name": "{virtualNetworkName}", + "type": "Microsoft.DevTestLab/labs/virtualNetworks", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", + "properties": { + "createdDate": "2018-10-01T13:01:44.6005134-07:00", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "name": "{virtualNetworkName}", + "type": "Microsoft.DevTestLab/labs/virtualNetworks", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", + "properties": { + "createdDate": "2018-10-01T13:01:44.6005134-07:00", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "VirtualNetworks_CreateOrUpdate", + "title": "VirtualNetworks_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Delete.json new file mode 100644 index 000000000000..862a877b643b --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Delete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "name": "{virtualNetworkName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" + } + }, + "204": {} + }, + "operationId": "VirtualNetworks_Delete", + "title": "VirtualNetworks_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Get.json new file mode 100644 index 000000000000..4d891a5be7dd --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Get.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "name": "{virtualNetworkName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "name": "{virtualNetworkName}", + "type": "Microsoft.DevTestLab/labs/virtualNetworks", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", + "properties": { + "allowedSubnets": [ + { + "allowPublicIp": "Allow", + "labSubnetName": "{virtualNetworkName}Subnet", + "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{virtualNetworkName}Subnet" + } + ], + "createdDate": "2018-10-01T13:01:44.6005134-07:00", + "externalProviderResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", + "provisioningState": "Succeeded", + "subnetOverrides": [ + { + "labSubnetName": "{virtualNetworkName}Subnet", + "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{virtualNetworkName}Subnet", + "sharedPublicIpAddressConfiguration": { + "allowedPorts": [ + { + "backendPort": 3389, + "transportProtocol": "Tcp" + }, + { + "backendPort": 22, + "transportProtocol": "Tcp" + } + ] + }, + "useInVmCreationPermission": "Allow", + "usePublicIpAddressPermission": "Allow" + } + ], + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "VirtualNetworks_Get", + "title": "VirtualNetworks_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_List.json new file mode 100644 index 000000000000..a73e4edd5f54 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_List.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "{virtualNetworkName}", + "type": "Microsoft.DevTestLab/labs/virtualNetworks", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", + "properties": { + "allowedSubnets": [ + { + "allowPublicIp": "Allow", + "labSubnetName": "{virtualNetworkName}Subnet", + "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{virtualNetworkName}Subnet" + } + ], + "createdDate": "2018-10-01T13:01:44.6005134-07:00", + "externalProviderResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", + "provisioningState": "Succeeded", + "subnetOverrides": [ + { + "labSubnetName": "{virtualNetworkName}Subnet", + "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{virtualNetworkName}Subnet", + "sharedPublicIpAddressConfiguration": { + "allowedPorts": [ + { + "backendPort": 3389, + "transportProtocol": "Tcp" + }, + { + "backendPort": 22, + "transportProtocol": "Tcp" + } + ] + }, + "useInVmCreationPermission": "Allow", + "usePublicIpAddressPermission": "Allow" + } + ], + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + }, + "operationId": "VirtualNetworks_List", + "title": "VirtualNetworks_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Update.json new file mode 100644 index 000000000000..fd1d4c372389 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Update.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "name": "{virtualNetworkName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "virtualNetwork": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "name": "{virtualNetworkName}", + "type": "Microsoft.DevTestLab/labs/virtualNetworks", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", + "properties": { + "createdDate": "2018-10-01T13:01:44.6005134-07:00", + "externalProviderResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", + "provisioningState": "Succeeded", + "subnetOverrides": [ + { + "labSubnetName": "{virtualNetworkName}Subnet", + "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{virtualNetworkName}Subnet", + "sharedPublicIpAddressConfiguration": { + "allowedPorts": [ + { + "backendPort": 3389, + "transportProtocol": "Tcp" + }, + { + "backendPort": 22, + "transportProtocol": "Tcp" + } + ] + }, + "useInVmCreationPermission": "Allow", + "usePublicIpAddressPermission": "Allow" + } + ], + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + }, + "operationId": "VirtualNetworks_Update", + "title": "VirtualNetworks_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/main.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/main.tsp new file mode 100644 index 000000000000..87b927126bed --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/main.tsp @@ -0,0 +1,64 @@ +/** + * PLEASE DO NOT REMOVE - USED FOR CONVERTER METRICS + * Generated by package: @autorest/openapi-to-typespec + * Parameters used: + * isFullCompatible: true + * guessResourceKey: false + * Version: 0.11.1 + * Date: 2025-06-17T22:16:52.315Z + */ +import "@typespec/rest"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "./models.tsp"; +import "./back-compatible.tsp"; +import "./Lab.tsp"; +import "./Schedule.tsp"; +import "./ArtifactSource.tsp"; +import "./ArmTemplate.tsp"; +import "./Artifact.tsp"; +import "./LabCost.tsp"; +import "./CustomImage.tsp"; +import "./Formula.tsp"; +import "./NotificationChannel.tsp"; +import "./Policy.tsp"; +import "./ServiceRunner.tsp"; +import "./User.tsp"; +import "./Disk.tsp"; +import "./DtlEnvironment.tsp"; +import "./Secret.tsp"; +import "./ServiceFabric.tsp"; +import "./LabVirtualMachine.tsp"; +import "./VirtualNetwork.tsp"; +import "./routes.tsp"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ResourceManager.Foundations; +using Azure.Core; +using Azure.ResourceManager; +using TypeSpec.Versioning; +/** + * The DevTest Labs Client. + */ +@armProviderNamespace +@service(#{ title: "DevTestLabsClient" }) +@versioned(Versions) +// FIXME: Common type version not set. Set to v3. +@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v3) +namespace Microsoft.DevTestLab; + +/** + * The available API versions. + */ +enum Versions { + /** + * The 2018-09-15 API version. + */ + @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) + @useDependency(Azure.Core.Versions.v1_0_Preview_1) + v2018_09_15: "2018-09-15", +} + +interface Operations extends Azure.ResourceManager.Operations {} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp new file mode 100644 index 000000000000..13715f3a31f5 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp @@ -0,0 +1,3434 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ResourceManager; +using Azure.ResourceManager.Foundations; + +namespace Microsoft.DevTestLab; + +/** + * The storage type for the disk (i.e. Standard, Premium). + */ +union StorageType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Standard: "Standard", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Premium: "Premium", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + StandardSSD: "StandardSSD", +} + +/** + * The setting to enable usage of premium data disks. + * When its value is 'Enabled', creation of standard or premium data disks is allowed. + * When its value is 'Disabled', only creation of standard data disks is allowed. + */ +union PremiumDataDisk { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Disabled: "Disabled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Enabled: "Enabled", +} + +/** + * The access rights to be granted to the user when provisioning an environment + */ +union EnvironmentPermission { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Reader: "Reader", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Contributor: "Contributor", +} + +/** + * Indicates if the artifact source is enabled (values: Enabled, Disabled). + */ +union EnableStatus { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Enabled: "Enabled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Disabled: "Disabled", +} + +/** + * The status code for the operation. + */ +union HttpStatusCode { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Continue: "Continue", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + SwitchingProtocols: "SwitchingProtocols", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + OK: "OK", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Created: "Created", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Accepted: "Accepted", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + NonAuthoritativeInformation: "NonAuthoritativeInformation", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + NoContent: "NoContent", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ResetContent: "ResetContent", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + PartialContent: "PartialContent", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + MultipleChoices: "MultipleChoices", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Ambiguous: "Ambiguous", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + MovedPermanently: "MovedPermanently", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Moved: "Moved", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Found: "Found", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Redirect: "Redirect", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + SeeOther: "SeeOther", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + RedirectMethod: "RedirectMethod", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + NotModified: "NotModified", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + UseProxy: "UseProxy", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Unused: "Unused", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + TemporaryRedirect: "TemporaryRedirect", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + RedirectKeepVerb: "RedirectKeepVerb", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + BadRequest: "BadRequest", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Unauthorized: "Unauthorized", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + PaymentRequired: "PaymentRequired", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Forbidden: "Forbidden", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + NotFound: "NotFound", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + MethodNotAllowed: "MethodNotAllowed", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + NotAcceptable: "NotAcceptable", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ProxyAuthenticationRequired: "ProxyAuthenticationRequired", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + RequestTimeout: "RequestTimeout", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Conflict: "Conflict", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Gone: "Gone", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + LengthRequired: "LengthRequired", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + PreconditionFailed: "PreconditionFailed", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + RequestEntityTooLarge: "RequestEntityTooLarge", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + RequestUriTooLong: "RequestUriTooLong", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + UnsupportedMediaType: "UnsupportedMediaType", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + RequestedRangeNotSatisfiable: "RequestedRangeNotSatisfiable", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ExpectationFailed: "ExpectationFailed", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + UpgradeRequired: "UpgradeRequired", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + InternalServerError: "InternalServerError", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + NotImplemented: "NotImplemented", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + BadGateway: "BadGateway", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ServiceUnavailable: "ServiceUnavailable", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + GatewayTimeout: "GatewayTimeout", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + HttpVersionNotSupported: "HttpVersionNotSupported", +} + +/** + * The artifact source's type. + */ +union SourceControlType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + VsoGit: "VsoGit", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + GitHub: "GitHub", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + StorageAccount: "StorageAccount", +} + +/** + * Options for uploading the files for the artifact. UploadFilesAndGenerateSasTokens is the default value. + */ +union FileUploadOptions { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + UploadFilesAndGenerateSasTokens: "UploadFilesAndGenerateSasTokens", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + None: "None", +} + +/** + * Target cost status + */ +union TargetCostStatus { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Enabled: "Enabled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Disabled: "Disabled", +} + +/** + * Indicates whether this threshold will be displayed on cost charts. + */ +union CostThresholdStatus { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Enabled: "Enabled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Disabled: "Disabled", +} + +/** + * Reporting cycle type. + */ +union ReportingCycleType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + CalendarMonth: "CalendarMonth", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Custom: "Custom", +} + +/** + * The type of the cost. + */ +union CostType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Unavailable: "Unavailable", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Reported: "Reported", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Projected: "Projected", +} + +/** + * The state of the Windows OS (i.e. NonSysprepped, SysprepRequested, SysprepApplied). + */ +union WindowsOsState { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + NonSysprepped: "NonSysprepped", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + SysprepRequested: "SysprepRequested", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + SysprepApplied: "SysprepApplied", +} + +/** + * The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied). + */ +union LinuxOsState { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + NonDeprovisioned: "NonDeprovisioned", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + DeprovisionRequested: "DeprovisionRequested", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + DeprovisionApplied: "DeprovisionApplied", +} + +/** + * The OS type of the custom image (i.e. Windows, Linux) + */ +union CustomImageOsType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Windows: "Windows", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Linux: "Linux", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + None: "None", +} + +/** + * The transport protocol for the endpoint. + */ +union TransportProtocol { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Tcp: "Tcp", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Udp: "Udp", +} + +/** + * Caching option for a data disk (i.e. None, ReadOnly, ReadWrite). + */ +union HostCachingOptions { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + None: "None", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ReadOnly: "ReadOnly", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ReadWrite: "ReadWrite", +} + +/** + * The event type for which this notification is enabled (i.e. AutoShutdown, Cost) + */ +union NotificationChannelEventType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + AutoShutdown: "AutoShutdown", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Cost: "Cost", +} + +/** + * The status of the policy. + */ +union PolicyStatus { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Enabled: "Enabled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Disabled: "Disabled", +} + +/** + * The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc. + */ +union PolicyFactName { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + UserOwnedLabVmCount: "UserOwnedLabVmCount", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + UserOwnedLabPremiumVmCount: "UserOwnedLabPremiumVmCount", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + LabVmCount: "LabVmCount", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + LabPremiumVmCount: "LabPremiumVmCount", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + LabVmSize: "LabVmSize", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + GalleryImage: "GalleryImage", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + UserOwnedLabVmCountInSubnet: "UserOwnedLabVmCountInSubnet", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + LabTargetCost: "LabTargetCost", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + EnvironmentTemplate: "EnvironmentTemplate", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ScheduleEditPermission: "ScheduleEditPermission", +} + +/** + * The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy). + */ +union PolicyEvaluatorType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + AllowedValuesPolicy: "AllowedValuesPolicy", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + MaxValuePolicy: "MaxValuePolicy", +} + +/** + * Managed identity. + */ +union ManagedIdentityType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + None: "None", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + SystemAssigned: "SystemAssigned", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + UserAssigned: "UserAssigned", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + `SystemAssigned,UserAssigned`: "SystemAssigned,UserAssigned", +} + +/** + * Tells source of creation of lab virtual machine. Output property only. + */ +union VirtualMachineCreationSource { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + FromCustomImage: "FromCustomImage", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + FromGalleryImage: "FromGalleryImage", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + FromSharedGalleryImage: "FromSharedGalleryImage", +} + +/** + * The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)). + */ +union UsagePermissionType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Default: "Default", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Deny: "Deny", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Allow: "Allow", +} + +/** + * The REST API operation supported by DevTestLab ResourceProvider. + */ +model OperationMetadata { + /** + * Operation name: {provider}/{resource}/{operation} + */ + name?: string; + + /** + * The object that describes the operations + */ + display?: OperationMetadataDisplay; +} + +/** + * The object that describes the operations + */ +model OperationMetadataDisplay { + /** + * Friendly name of the resource provider + */ + provider?: string; + + /** + * Resource type on which the operation is performed. + */ + resource?: string; + + /** + * Operation type: read, write, delete, listKeys/action, etc. + */ + operation?: string; + + /** + * Friendly name of the operation + */ + description?: string; +} + +/** + * Error from a REST request. + */ +@error +model CloudError { + /** + * The cloud error that occurred + */ + error?: CloudErrorBody; +} + +/** + * Body of an error from a REST request. + */ +model CloudErrorBody { + /** + * The error code. + */ + code?: string; + + /** + * The error message. + */ + message?: string; + + /** + * The error target. + */ + target?: string; + + /** + * Inner errors. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + details?: CloudErrorBody[]; +} + +/** + * The response of a list operation. + */ +model LabList is Azure.Core.Page; + +/** + * Properties of a lab. + */ +model LabProperties { + /** + * The lab's default storage account. + */ + @visibility(Lifecycle.Read) + defaultStorageAccount?: string; + + /** + * The lab's default premium storage account. + */ + @visibility(Lifecycle.Read) + defaultPremiumStorageAccount?: string; + + /** + * The lab's artifact storage account. + */ + @visibility(Lifecycle.Read) + artifactsStorageAccount?: string; + + /** + * The lab's premium data disk storage account. + */ + @visibility(Lifecycle.Read) + premiumDataDiskStorageAccount?: string; + + /** + * The lab's Key vault. + */ + @visibility(Lifecycle.Read) + vaultName?: string; + + /** + * Type of storage used by the lab. It can be either Premium or Standard. Default is Premium. + */ + labStorageType?: StorageType; + + /** + * The ordered list of artifact resource IDs that should be applied on all Linux VM creations by default, prior to the artifacts specified by the user. + */ + mandatoryArtifactsResourceIdsLinux?: string[]; + + /** + * The ordered list of artifact resource IDs that should be applied on all Windows VM creations by default, prior to the artifacts specified by the user. + */ + mandatoryArtifactsResourceIdsWindows?: string[]; + + /** + * The creation date of the lab. + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + createdDate?: utcDateTime; + + /** + * The setting to enable usage of premium data disks. + * When its value is 'Enabled', creation of standard or premium data disks is allowed. + * When its value is 'Disabled', only creation of standard data disks is allowed. + */ + premiumDataDisks?: PremiumDataDisk; + + /** + * The access rights to be granted to the user when provisioning an environment + */ + environmentPermission?: EnvironmentPermission; + + /** + * The properties of any lab announcement associated with this lab + */ + announcement?: LabAnnouncementProperties; + + /** + * The properties of any lab support message associated with this lab + */ + support?: LabSupportProperties; + + /** + * The resource group in which all new lab virtual machines will be created. To let DevTest Labs manage resource group creation, set this value to null. + */ + @visibility(Lifecycle.Read) + vmCreationResourceGroup?: string; + + /** + * The public IP address for the lab's load balancer. + */ + @visibility(Lifecycle.Read) + publicIpId?: string; + + /** + * The load balancer used to for lab VMs that use shared IP address. + */ + @visibility(Lifecycle.Read) + loadBalancerId?: string; + + /** + * The Network Security Group attached to the lab VMs Network interfaces to restrict open ports. + */ + @visibility(Lifecycle.Read) + networkSecurityGroupId?: string; + + /** + * Extended properties of the lab used for experimental features + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + extendedProperties?: Record; + + /** + * The provisioning status of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" + @visibility(Lifecycle.Read) + provisioningState?: string; + + /** + * The unique immutable identifier of a resource (Guid). + */ + @visibility(Lifecycle.Read) + uniqueIdentifier?: string; +} + +/** + * Properties of a lab's announcement banner + */ +model LabAnnouncementProperties { + /** + * The plain text title for the lab announcement + */ + title?: string; + + /** + * The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will be shown. + */ + markdown?: string; + + /** + * Is the lab announcement active/enabled at this time? + */ + enabled?: EnableStatus; + + /** + * The time at which the announcement expires (null for never) + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + expirationDate?: utcDateTime; + + /** + * Has this announcement expired? + */ + expired?: boolean; + + /** + * The provisioning status of the resource. + */ + @visibility(Lifecycle.Read) + provisioningState?: string; + + /** + * The unique immutable identifier of a resource (Guid). + */ + @visibility(Lifecycle.Read) + uniqueIdentifier?: string; +} + +/** + * Properties of a lab's support banner + */ +model LabSupportProperties { + /** + * Is the lab support banner active/enabled at this time? + */ + enabled?: EnableStatus; + + /** + * The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will be shown. + */ + markdown?: string; +} + +/** + * An Azure resource. + */ +model Resource { + /** + * The identifier of the resource. + */ + @visibility(Lifecycle.Read) + id?: string; + + /** + * The name of the resource. + */ + @visibility(Lifecycle.Read) + name?: string; + + /** + * The type of the resource. + */ + @visibility(Lifecycle.Read) + type?: string; + + /** + * The location of the resource. + */ + location?: string; + + /** + * The tags of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + tags?: Record; +} + +/** + * An Operation Result + */ +model OperationResult { + /** + * The operation status. + */ + status?: string; + + /** + * The status code for the operation. + */ + statusCode?: HttpStatusCode; + + /** + * Error details for the operation in case of a failure. + */ + error?: OperationError; +} + +/** + * Error details for the operation in case of a failure. + */ +model OperationError { + /** + * The error code of the operation error. + */ + code?: string; + + /** + * The error message of the operation error. + */ + message?: string; +} + +/** + * The response of a list operation. + */ +model ScheduleList is Azure.Core.Page; + +/** + * Properties of a schedule. + */ +model ScheduleProperties { + /** + * The status of the schedule (i.e. Enabled, Disabled) + */ + status?: EnableStatus; + + /** + * The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart). + */ + taskType?: string; + + /** + * If the schedule will occur only some days of the week, specify the weekly recurrence. + */ + weeklyRecurrence?: WeekDetails; + + /** + * If the schedule will occur once each day of the week, specify the daily recurrence. + */ + dailyRecurrence?: DayDetails; + + /** + * If the schedule will occur multiple times a day, specify the hourly recurrence. + */ + hourlyRecurrence?: HourDetails; + + /** + * The time zone ID (e.g. China Standard Time, Greenland Standard Time, Pacific Standard time, etc.). The possible values for this property can be found in `IReadOnlyCollection TimeZoneConverter.TZConvert.KnownWindowsTimeZoneIds` (https://github.com/mattjohnsonpint/TimeZoneConverter/blob/main/README.md) + */ + timeZoneId?: string; + + /** + * Notification settings. + */ + notificationSettings?: NotificationSettings; + + /** + * The creation date of the schedule. + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + createdDate?: utcDateTime; + + /** + * The resource ID to which the schedule belongs + */ + targetResourceId?: string; + + /** + * The provisioning status of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" + @visibility(Lifecycle.Read) + provisioningState?: string; + + /** + * The unique immutable identifier of a resource (Guid). + */ + @visibility(Lifecycle.Read) + uniqueIdentifier?: string; +} + +/** + * Properties of a weekly schedule. + */ +model WeekDetails { + /** + * The days of the week for which the schedule is set (e.g. Sunday, Monday, Tuesday, etc.). + */ + weekdays?: string[]; + + /** + * The time of the day the schedule will occur. + */ + time?: string; +} + +/** + * Properties of a daily schedule. + */ +model DayDetails { + /** + * The time of day the schedule will occur. + */ + time?: string; +} + +/** + * Properties of an hourly schedule. + */ +model HourDetails { + /** + * Minutes of the hour the schedule will run. + */ + minute?: int32; +} + +/** + * Notification settings for a schedule. + */ +model NotificationSettings { + /** + * If notifications are enabled for this schedule (i.e. Enabled, Disabled). + */ + status?: EnableStatus; + + /** + * Time in minutes before event at which notification will be sent. + */ + timeInMinutes?: int32; + + /** + * The webhook URL to which the notification will be sent. + */ + webhookUrl?: string; + + /** + * The email recipient to send notifications to (can be a list of semi-colon separated email addresses). + */ + emailRecipient?: string; + + /** + * The locale to use when sending a notification (fallback for unsupported languages is EN). + */ + notificationLocale?: string; +} + +/** + * The response of a list operation. + */ +model ArtifactSourceList is Azure.Core.Page; + +/** + * Properties of an artifact source. + */ +model ArtifactSourceProperties { + /** + * The artifact source's display name. + */ + displayName?: string; + + /** + * The artifact source's URI. + */ + uri?: string; + + /** + * The artifact source's type. + */ + sourceType?: SourceControlType; + + /** + * The folder containing artifacts. + */ + folderPath?: string; + + /** + * The folder containing Azure Resource Manager templates. + */ + armTemplateFolderPath?: string; + + /** + * The artifact source's branch reference. + */ + branchRef?: string; + + /** + * The security token to authenticate to the artifact source. + */ + securityToken?: string; + + /** + * Indicates if the artifact source is enabled (values: Enabled, Disabled). + */ + status?: EnableStatus; + + /** + * The artifact source's creation date. + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + createdDate?: utcDateTime; + + /** + * The provisioning status of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" + @visibility(Lifecycle.Read) + provisioningState?: string; + + /** + * The unique immutable identifier of a resource (Guid). + */ + @visibility(Lifecycle.Read) + uniqueIdentifier?: string; +} + +/** + * The response of a list operation. + */ +model ArmTemplateList is Azure.Core.Page; + +/** + * Properties of an Azure Resource Manager template. + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +model ArmTemplateProperties { + /** + * The display name of the ARM template. + */ + @visibility(Lifecycle.Read) + displayName?: string; + + /** + * The description of the ARM template. + */ + @visibility(Lifecycle.Read) + description?: string; + + /** + * The publisher of the ARM template. + */ + @visibility(Lifecycle.Read) + publisher?: string; + + /** + * The URI to the icon of the ARM template. + */ + @visibility(Lifecycle.Read) + icon?: string; + + /** + * The contents of the ARM template. + */ + @visibility(Lifecycle.Read) + contents?: Record; + + /** + * The creation date of the armTemplate. + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + createdDate?: utcDateTime; + + /** + * File name and parameter values information from all azuredeploy.*.parameters.json for the ARM template. + */ + @visibility(Lifecycle.Read) + parametersValueFilesInfo?: ParametersValueFileInfo[]; + + /** + * Whether or not ARM template is enabled for use by lab user. + */ + @visibility(Lifecycle.Read) + enabled?: boolean; +} + +/** + * A file containing a set of parameter values for an ARM template. + */ +model ParametersValueFileInfo { + /** + * File name. + */ + fileName?: string; + + /** + * Contents of the file. + */ + parametersValueInfo?: Record; +} + +/** + * The response of a list operation. + */ +model ArtifactList is Azure.Core.Page; + +/** + * Properties of an artifact. + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +model ArtifactProperties { + /** + * The artifact's title. + */ + @visibility(Lifecycle.Read) + title?: string; + + /** + * The artifact's description. + */ + @visibility(Lifecycle.Read) + description?: string; + + /** + * The artifact's publisher. + */ + @visibility(Lifecycle.Read) + publisher?: string; + + /** + * The file path to the artifact. + */ + @visibility(Lifecycle.Read) + filePath?: string; + + /** + * The URI to the artifact icon. + */ + @visibility(Lifecycle.Read) + icon?: string; + + /** + * The artifact's target OS. + */ + @visibility(Lifecycle.Read) + targetOsType?: string; + + /** + * The artifact's parameters. + */ + @visibility(Lifecycle.Read) + parameters?: Record; + + /** + * The artifact's creation date. + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + createdDate?: utcDateTime; +} + +/** + * Parameters for generating an ARM template for deploying artifacts. + */ +model GenerateArmTemplateRequest { + /** + * The resource name of the virtual machine. + */ + virtualMachineName?: string; + + /** + * The parameters of the ARM template. + */ + parameters?: ParameterInfo[]; + + /** + * The location of the virtual machine. + */ + location?: string; + + /** + * Options for uploading the files for the artifact. UploadFilesAndGenerateSasTokens is the default value. + */ + fileUploadOptions?: FileUploadOptions; +} + +/** + * Information about an artifact's parameter. + */ +model ParameterInfo { + /** + * The name of the artifact parameter. + */ + name?: string; + + /** + * The value of the artifact parameter. + */ + value?: string; +} + +/** + * Information about a generated ARM template. + */ +model ArmTemplateInfo { + /** + * The template's contents. + */ + template?: Record; + + /** + * The parameters of the ARM template. + */ + parameters?: Record; +} + +/** + * Properties of an artifact source. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model ArtifactSourceFragment extends UpdateResource {} + +/** + * Represents an update resource + */ +model UpdateResource { + /** + * The tags of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + tags?: Record; +} + +/** + * Properties of a cost item. + */ +model LabCostProperties { + /** + * The target cost properties + */ + targetCost?: TargetCostProperties; + + /** + * The lab cost summary component of the cost data. + */ + @visibility(Lifecycle.Read) + labCostSummary?: LabCostSummaryProperties; + + /** + * The lab cost details component of the cost data. + */ + @visibility(Lifecycle.Read) + labCostDetails?: LabCostDetailsProperties[]; + + /** + * The resource cost component of the cost data. + */ + @visibility(Lifecycle.Read) + resourceCosts?: LabResourceCostProperties[]; + + /** + * The currency code of the cost. + */ + currencyCode?: string; + + /** + * The start time of the cost data. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + startDateTime?: utcDateTime; + + /** + * The end time of the cost data. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + endDateTime?: utcDateTime; + + /** + * The creation date of the cost. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + createdDate?: utcDateTime; + + /** + * The provisioning status of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" + @visibility(Lifecycle.Read) + provisioningState?: string; + + /** + * The unique immutable identifier of a resource (Guid). + */ + @visibility(Lifecycle.Read) + uniqueIdentifier?: string; +} + +/** + * Properties of a cost target. + */ +model TargetCostProperties { + /** + * Target cost status + */ + status?: TargetCostStatus; + + /** + * Lab target cost + */ + target?: int32; + + /** + * Cost thresholds. + */ + costThresholds?: CostThresholdProperties[]; + + /** + * Reporting cycle start date. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + cycleStartDateTime?: utcDateTime; + + /** + * Reporting cycle end date. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + cycleEndDateTime?: utcDateTime; + + /** + * Reporting cycle type. + */ + cycleType?: ReportingCycleType; +} + +/** + * Properties of a cost threshold item. + */ +model CostThresholdProperties { + /** + * The ID of the cost threshold item. + */ + thresholdId?: string; + + /** + * The value of the percentage cost threshold. + */ + percentageThreshold?: PercentageCostThresholdProperties; + + /** + * Indicates whether this threshold will be displayed on cost charts. + */ + displayOnChart?: CostThresholdStatus; + + /** + * Indicates whether notifications will be sent when this threshold is exceeded. + */ + sendNotificationWhenExceeded?: CostThresholdStatus; + + /** + * Indicates the datetime when notifications were last sent for this threshold. + */ + notificationSent?: string; +} + +/** + * Properties of a percentage cost threshold. + */ +model PercentageCostThresholdProperties { + /** + * The cost threshold value. + */ + thresholdValue?: float64; +} + +/** + * The properties of the cost summary. + */ +model LabCostSummaryProperties { + /** + * The cost component of the cost item. + */ + estimatedLabCost?: float64; +} + +/** + * The properties of a lab cost item. + */ +model LabCostDetailsProperties { + /** + * The date of the cost item. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + date?: utcDateTime; + + /** + * The cost component of the cost item. + */ + cost?: float64; + + /** + * The type of the cost. + */ + costType?: CostType; +} + +/** + * The properties of a resource cost item. + */ +model LabResourceCostProperties { + /** + * The name of the resource. + */ + resourcename?: string; + + /** + * The unique identifier of the resource. + */ + resourceUId?: string; + + /** + * The cost component of the resource cost item. + */ + resourceCost?: float64; + + /** + * The logical resource type (ex. virtualmachine, storageaccount) + */ + resourceType?: string; + + @doc("The owner of the resource (ex. janedoe@microsoft.com)") + resourceOwner?: string; + + /** + * The category of the resource (ex. Premium_LRS, Standard_DS1) + */ + resourcePricingTier?: string; + + /** + * The status of the resource (ex. Active) + */ + resourceStatus?: string; + + /** + * The ID of the resource + */ + resourceId?: string; + + /** + * The ID of the external resource + */ + externalResourceId?: string; +} + +/** + * The response of a list operation. + */ +model CustomImageList is Azure.Core.Page; + +/** + * Properties of a custom image. + */ +model CustomImageProperties { + /** + * The virtual machine from which the image is to be created. + */ + vm?: CustomImagePropertiesFromVm; + + /** + * The VHD from which the image is to be created. + */ + vhd?: CustomImagePropertiesCustom; + + /** + * The description of the custom image. + */ + description?: string; + + /** + * The author of the custom image. + */ + author?: string; + + /** + * The creation date of the custom image. + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + creationDate?: utcDateTime; + + /** + * The Managed Image Id backing the custom image. + */ + managedImageId?: string; + + /** + * The Managed Snapshot Id backing the custom image. + */ + managedSnapshotId?: string; + + /** + * Storage information about the data disks present in the custom image + */ + dataDiskStorageInfo?: DataDiskStorageTypeInfo[]; + + /** + * Storage information about the plan related to this custom image + */ + customImagePlan?: CustomImagePropertiesFromPlan; + + /** + * Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment + */ + isPlanAuthorized?: boolean; + + /** + * The provisioning status of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" + @visibility(Lifecycle.Read) + provisioningState?: string; + + /** + * The unique immutable identifier of a resource (Guid). + */ + @visibility(Lifecycle.Read) + uniqueIdentifier?: string; +} + +/** + * Properties for creating a custom image from a virtual machine. + */ +model CustomImagePropertiesFromVm { + /** + * The source vm identifier. + */ + sourceVmId?: string; + + /** + * The Windows OS information of the VM. + */ + windowsOsInfo?: WindowsOsInfo; + + /** + * The Linux OS information of the VM. + */ + linuxOsInfo?: LinuxOsInfo; +} + +/** + * Information about a Windows OS. + */ +model WindowsOsInfo { + /** + * The state of the Windows OS (i.e. NonSysprepped, SysprepRequested, SysprepApplied). + */ + windowsOsState?: WindowsOsState; +} + +/** + * Information about a Linux OS. + */ +model LinuxOsInfo { + /** + * The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied). + */ + linuxOsState?: LinuxOsState; +} + +/** + * Properties for creating a custom image from a VHD. + */ +model CustomImagePropertiesCustom { + /** + * The image name. + */ + imageName?: string; + + /** + * Indicates whether sysprep has been run on the VHD. + */ + sysPrep?: boolean; + + /** + * The OS type of the custom image (i.e. Windows, Linux) + */ + osType: CustomImageOsType; +} + +/** + * Storage information about the data disks present in the custom image + */ +model DataDiskStorageTypeInfo { + /** + * Disk Lun + */ + lun?: string; + + /** + * Disk Storage Type + */ + storageType?: StorageType; +} + +/** + * Properties for plan on a custom image. + */ +model CustomImagePropertiesFromPlan { + /** + * The id of the plan, equivalent to name of the plan + */ + id?: string; + + /** + * The publisher for the plan from the marketplace image the custom image is derived from + */ + publisher?: string; + + /** + * The offer for the plan from the marketplace image the custom image is derived from + */ + offer?: string; +} + +/** + * A custom image. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model CustomImageFragment extends UpdateResource {} + +/** + * The response of a list operation. + */ +model FormulaList is Azure.Core.Page; + +/** + * Properties of a formula. + */ +model FormulaProperties { + /** + * The description of the formula. + */ + description?: string; + + /** + * The author of the formula. + */ + @visibility(Lifecycle.Read) + author?: string; + + /** + * The OS type of the formula. + */ + osType?: string; + + /** + * The creation date of the formula. + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + creationDate?: utcDateTime; + + /** + * The content of the formula. + */ + formulaContent?: LabVirtualMachineCreationParameter; + + /** + * Information about a VM from which a formula is to be created. + */ + vm?: FormulaPropertiesFromVm; + + /** + * The provisioning status of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" + @visibility(Lifecycle.Read) + provisioningState?: string; + + /** + * The unique immutable identifier of a resource (Guid). + */ + @visibility(Lifecycle.Read) + uniqueIdentifier?: string; +} + +/** + * Properties for creating a virtual machine. + */ +model LabVirtualMachineCreationParameter { + /** + * The properties of the resource. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: LabVirtualMachineCreationParameterProperties; + + /** + * The name of the virtual machine or environment + */ + name?: string; + + /** + * The location of the new virtual machine or environment + */ + location?: string; + + /** + * The tags of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + tags?: Record; +} + +/** + * Properties for virtual machine creation. + */ +model LabVirtualMachineCreationParameterProperties { + /** + * The number of virtual machine instances to create. + */ + bulkCreationParameters?: BulkCreationParameters; + + /** + * The notes of the virtual machine. + */ + notes?: string; + + /** + * The object identifier of the owner of the virtual machine. + */ + ownerObjectId?: string = "dynamicValue"; + + /** + * The user principal name of the virtual machine owner. + */ + ownerUserPrincipalName?: string; + + /** + * The creation date of the virtual machine. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + createdDate?: utcDateTime; + + /** + * The custom image identifier of the virtual machine. + */ + customImageId?: string; + + /** + * The size of the virtual machine. + */ + size?: string; + + /** + * The user name of the virtual machine. + */ + userName?: string; + + /** + * The password of the virtual machine administrator. + */ + password?: string; + + /** + * The SSH key of the virtual machine administrator. + */ + sshKey?: string; + + /** + * Indicates whether this virtual machine uses an SSH key for authentication. + */ + isAuthenticationWithSshKey?: boolean; + + /** + * The lab subnet name of the virtual machine. + */ + labSubnetName?: string; + + /** + * The lab virtual network identifier of the virtual machine. + */ + labVirtualNetworkId?: string; + + /** + * Indicates whether the virtual machine is to be created without a public IP address. + */ + disallowPublicIpAddress?: boolean; + + /** + * The artifacts to be installed on the virtual machine. + */ + artifacts?: ArtifactInstallProperties[]; + + /** + * The Microsoft Azure Marketplace image reference of the virtual machine. + */ + galleryImageReference?: GalleryImageReference; + + /** + * The id of the plan associated with the virtual machine image + */ + planId?: string; + + /** + * The network interface properties. + */ + networkInterface?: NetworkInterfaceProperties; + + /** + * The expiration date for VM. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + expirationDate?: utcDateTime; + + /** + * Indicates whether another user can take ownership of the virtual machine + */ + allowClaim?: boolean; + + /** + * Storage type to use for virtual machine (i.e. Standard, Premium). + */ + storageType?: string = "labStorageType"; + + /** + * The resource ID of the environment that contains this virtual machine, if any. + */ + environmentId?: string; + + /** + * New or existing data disks to attach to the virtual machine after creation + */ + dataDiskParameters?: DataDiskProperties[]; + + /** + * Virtual Machine schedules to be created + */ + scheduleParameters?: ScheduleCreationParameter[]; +} + +/** + * Parameters for creating multiple virtual machines as a single action. + */ +model BulkCreationParameters { + /** + * The number of virtual machine instances to create. + */ + instanceCount?: int32; +} + +/** + * Properties of an artifact. + */ +model ArtifactInstallProperties { + /** + * The artifact's identifier. + */ + artifactId?: string; + + /** + * The artifact's title. + */ + artifactTitle?: string; + + /** + * The parameters of the artifact. + */ + parameters?: ArtifactParameterProperties[]; + + /** + * The status of the artifact. + */ + status?: string; + + /** + * The status message from the deployment. + */ + deploymentStatusMessage?: string; + + /** + * The status message from the virtual machine extension. + */ + vmExtensionStatusMessage?: string; + + /** + * The time that the artifact starts to install on the virtual machine. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + installTime?: utcDateTime; +} + +/** + * Properties of an artifact parameter. + */ +model ArtifactParameterProperties { + /** + * The name of the artifact parameter. + */ + name?: string; + + /** + * The value of the artifact parameter. + */ + value?: string; +} + +/** + * The reference information for an Azure Marketplace image. + */ +model GalleryImageReference { + /** + * The offer of the gallery image. + */ + offer?: string; + + /** + * The publisher of the gallery image. + */ + publisher?: string; + + /** + * The SKU of the gallery image. + */ + sku?: string; + + /** + * The OS type of the gallery image. + */ + osType?: string; + + /** + * The version of the gallery image. + */ + version?: string; +} + +/** + * Properties of a network interface. + */ +model NetworkInterfaceProperties { + /** + * The resource ID of the virtual network. + */ + virtualNetworkId?: string; + + /** + * The resource ID of the sub net. + */ + subnetId?: string; + + /** + * The resource ID of the public IP address. + */ + publicIpAddressId?: string; + + /** + * The public IP address. + */ + publicIpAddress?: string; + + /** + * The private IP address. + */ + privateIpAddress?: string; + + /** + * The DNS name. + */ + dnsName?: string; + + /** + * The RdpAuthority property is a server DNS host name or IP address followed by the service port number for RDP (Remote Desktop Protocol). + */ + rdpAuthority?: string; + + /** + * The SshAuthority property is a server DNS host name or IP address followed by the service port number for SSH. + */ + sshAuthority?: string; + + /** + * The configuration for sharing a public IP address across multiple virtual machines. + */ + sharedPublicIpAddressConfiguration?: SharedPublicIpAddressConfiguration; +} + +/** + * Properties of a virtual machine that determine how it is connected to a load balancer. + */ +model SharedPublicIpAddressConfiguration { + /** + * The incoming NAT rules + */ + inboundNatRules?: InboundNatRule[]; +} + +/** + * A rule for NAT - exposing a VM's port (backendPort) on the public IP address using a load balancer. + */ +model InboundNatRule { + /** + * The transport protocol for the endpoint. + */ + transportProtocol?: TransportProtocol; + + /** + * The external endpoint port of the inbound connection. Possible values range between 1 and 65535, inclusive. If unspecified, a value will be allocated automatically. + */ + frontendPort?: int32; + + /** + * The port to which the external traffic will be redirected. + */ + backendPort?: int32; +} + +/** + * Request body for adding a new or existing data disk to a virtual machine. + */ +model DataDiskProperties { + /** + * Specifies options to attach a new disk to the virtual machine. + */ + attachNewDataDiskOptions?: AttachNewDataDiskOptions; + + /** + * Specifies the existing lab disk id to attach to virtual machine. + */ + existingLabDiskId?: string; + + /** + * Caching option for a data disk (i.e. None, ReadOnly, ReadWrite). + */ + hostCaching?: HostCachingOptions; +} + +/** + * Properties to attach new disk to the Virtual Machine. + */ +model AttachNewDataDiskOptions { + /** + * Size of the disk to be attached in Gibibytes. + */ + diskSizeGiB?: int32; + + /** + * The name of the disk to be attached. + */ + diskName?: string; + + /** + * The storage type for the disk (i.e. Standard, Premium). + */ + diskType?: StorageType; +} + +/** + * Properties for creating a schedule. + */ +model ScheduleCreationParameter { + /** + * The properties of the schedule. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: ScheduleCreationParameterProperties; + + /** + * The name of the virtual machine or environment + */ + name?: string; + + /** + * The location of the new virtual machine or environment + */ + @visibility(Lifecycle.Read) + location?: string; + + /** + * The tags of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + tags?: Record; +} + +/** + * Properties for schedule creation. + */ +model ScheduleCreationParameterProperties { + /** + * The status of the schedule (i.e. Enabled, Disabled) + */ + status?: EnableStatus; + + /** + * The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart). + */ + taskType?: string; + + /** + * If the schedule will occur only some days of the week, specify the weekly recurrence. + */ + weeklyRecurrence?: WeekDetails; + + /** + * If the schedule will occur once each day of the week, specify the daily recurrence. + */ + dailyRecurrence?: DayDetails; + + /** + * If the schedule will occur multiple times a day, specify the hourly recurrence. + */ + hourlyRecurrence?: HourDetails; + + /** + * The time zone ID (e.g. China Standard Time, Greenland Standard Time, Pacific Standard time, etc.). The possible values for this property can be found in `IReadOnlyCollection TimeZoneConverter.TZConvert.KnownWindowsTimeZoneIds` (https://github.com/mattjohnsonpint/TimeZoneConverter/blob/main/README.md) + */ + timeZoneId?: string; + + /** + * Notification settings. + */ + notificationSettings?: NotificationSettings; + + /** + * The resource ID to which the schedule belongs + */ + targetResourceId?: string; +} + +/** + * Information about a VM from which a formula is to be created. + */ +model FormulaPropertiesFromVm { + /** + * The identifier of the VM from which a formula is to be created. + */ + labVmId?: string; +} + +/** + * A formula for creating a VM, specifying an image base and other parameters + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model FormulaFragment extends UpdateResource {} + +/** + * The response of a list operation. + */ +model GalleryImageList is Azure.Core.Page; + +/** + * A gallery image. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model GalleryImage extends Resource { + /** + * The properties of the resource. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties: GalleryImageProperties; +} + +/** + * Properties of a gallery image. + */ +model GalleryImageProperties { + /** + * The author of the gallery image. + */ + author?: string; + + /** + * The creation date of the gallery image. + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + createdDate?: utcDateTime; + + /** + * The description of the gallery image. + */ + description?: string; + + /** + * The image reference of the gallery image. + */ + imageReference?: GalleryImageReference; + + /** + * The icon of the gallery image. + */ + icon?: string; + + /** + * Indicates whether this gallery image is enabled. + */ + enabled?: boolean; + + /** + * The third party plan that applies to this image + */ + planId?: string; + + /** + * Indicates if the plan has been authorized for programmatic deployment. + */ + isPlanAuthorized?: boolean; +} + +/** + * The response of a list operation. + */ +model NotificationChannelList is Azure.Core.Page; + +/** + * Properties of a schedule. + */ +model NotificationChannelProperties { + /** + * The webhook URL to send notifications to. + */ + webHookUrl?: string; + + /** + * The email recipient to send notifications to (can be a list of semi-colon separated email addresses). + */ + emailRecipient?: string; + + /** + * The locale to use when sending a notification (fallback for unsupported languages is EN). + */ + notificationLocale?: string; + + /** + * Description of notification. + */ + description?: string; + + /** + * The list of event for which this notification is enabled. + */ + events?: Event[]; + + /** + * The creation date of the notification channel. + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + createdDate?: utcDateTime; + + /** + * The provisioning status of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" + @visibility(Lifecycle.Read) + provisioningState?: string; + + /** + * The unique immutable identifier of a resource (Guid). + */ + @visibility(Lifecycle.Read) + uniqueIdentifier?: string; +} + +/** + * An event to be notified for. + */ +model Event { + /** + * The event type for which this notification is enabled (i.e. AutoShutdown, Cost) + */ + eventName?: NotificationChannelEventType; +} + +/** + * A notification. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model NotificationChannelFragment extends UpdateResource {} + +/** + * Properties for generating a Notification. + */ +model NotifyParameters { + /** + * The type of event (i.e. AutoShutdown, Cost) + */ + eventName?: NotificationChannelEventType; + + /** + * Properties for the notification in json format. + */ + jsonPayload?: string; +} + +/** + * Request body for evaluating a policy set. + */ +model EvaluatePoliciesRequest { + /** + * Policies to evaluate. + */ + policies?: EvaluatePoliciesProperties[]; +} + +/** + * Properties for evaluating a policy set. + */ +model EvaluatePoliciesProperties { + /** + * The fact name. + */ + factName?: string; + + /** + * The fact data. + */ + factData?: string; + + /** + * The value offset. + */ + valueOffset?: string; + + /** + * The user for which policies will be evaluated + */ + userObjectId?: string; +} + +/** + * Response body for evaluating a policy set. + */ +model EvaluatePoliciesResponse { + /** + * Results of evaluating a policy set. + */ + results?: PolicySetResult[]; +} + +/** + * Result of a policy set evaluation. + */ +model PolicySetResult { + /** + * A value indicating whether this policy set evaluation has discovered violations. + */ + hasError?: boolean; + + /** + * The list of policy violations. + */ + policyViolations?: PolicyViolation[]; +} + +/** + * Policy violation. + */ +model PolicyViolation { + /** + * The code of the policy violation. + */ + code?: string; + + /** + * The message of the policy violation. + */ + message?: string; +} + +/** + * The response of a list operation. + */ +model PolicyList is Azure.Core.Page; + +/** + * Properties of a Policy. + */ +model PolicyProperties { + /** + * The description of the policy. + */ + description?: string; + + /** + * The status of the policy. + */ + status?: PolicyStatus; + + /** + * The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc. + */ + factName?: PolicyFactName; + + /** + * The fact data of the policy. + */ + factData?: string; + + /** + * The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy). + */ + threshold?: string; + + /** + * The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy). + */ + evaluatorType?: PolicyEvaluatorType; + + /** + * The creation date of the policy. + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + createdDate?: utcDateTime; + + /** + * The provisioning status of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" + @visibility(Lifecycle.Read) + provisioningState?: string; + + /** + * The unique immutable identifier of a resource (Guid). + */ + @visibility(Lifecycle.Read) + uniqueIdentifier?: string; +} + +/** + * A Policy. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model PolicyFragment extends UpdateResource {} + +/** + * A schedule. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model ScheduleFragment extends UpdateResource {} + +/** + * Properties of a managed identity + */ +model IdentityProperties { + /** + * Managed identity. + */ + type?: ManagedIdentityType; + + /** + * The principal id of resource identity. + */ + principalId?: string; + + /** + * The tenant identifier of resource. + */ + tenantId?: string; + + /** + * The client secret URL of the identity. + */ + clientSecretUrl?: string; +} + +/** + * The response of a list operation. + */ +model UserList is Azure.Core.Page; + +/** + * Properties of a lab user profile. + */ +model UserProperties { + /** + * The identity of the user. + */ + identity?: UserIdentity; + + /** + * The secret store of the user. + */ + secretStore?: UserSecretStore; + + /** + * The creation date of the user profile. + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + createdDate?: utcDateTime; + + /** + * The provisioning status of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" + @visibility(Lifecycle.Read) + provisioningState?: string; + + /** + * The unique immutable identifier of a resource (Guid). + */ + @visibility(Lifecycle.Read) + uniqueIdentifier?: string; +} + +/** + * Identity attributes of a lab user. + */ +model UserIdentity { + /** + * Set to the principal name / UPN of the client JWT making the request. + */ + principalName?: string; + + /** + * Set to the principal Id of the client JWT making the request. Service principal will not have the principal Id. + */ + principalId?: string; + + /** + * Set to the tenant ID of the client JWT making the request. + */ + tenantId?: string; + + /** + * Set to the object Id of the client JWT making the request. Not all users have object Id. For CSP (reseller) scenarios for example, object Id is not available. + */ + objectId?: string; + + /** + * Set to the app Id of the client JWT making the request. + */ + appId?: string; +} + +/** + * Properties of a user's secret store. + */ +model UserSecretStore { + /** + * The URI of the user's Key vault. + */ + keyVaultUri?: string; + + /** + * The ID of the user's Key vault. + */ + keyVaultId?: string; +} + +/** + * Profile of a lab user. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model UserFragment extends UpdateResource {} + +/** + * The response of a list operation. + */ +model DiskList is Azure.Core.Page; + +/** + * Properties of a disk. + */ +model DiskProperties { + /** + * The storage type for the disk (i.e. Standard, Premium). + */ + diskType?: StorageType; + + /** + * The size of the disk in Gibibytes. + */ + diskSizeGiB?: int32; + + /** + * The resource ID of the VM to which this disk is leased. + */ + leasedByLabVmId?: string; + + /** + * When backed by a blob, the name of the VHD blob without extension. + */ + diskBlobName?: string; + + /** + * When backed by a blob, the URI of underlying blob. + */ + diskUri?: string; + + /** + * When backed by a blob, the storage account where the blob is. + */ + storageAccountId?: string; + + /** + * The creation date of the disk. + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + createdDate?: utcDateTime; + + /** + * The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite). + */ + hostCaching?: string; + + /** + * When backed by managed disk, this is the ID of the compute disk resource. + */ + managedDiskId?: string; + + /** + * The provisioning status of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" + @visibility(Lifecycle.Read) + provisioningState?: string; + + /** + * The unique immutable identifier of a resource (Guid). + */ + @visibility(Lifecycle.Read) + uniqueIdentifier?: string; +} + +/** + * A Disk. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model DiskFragment extends UpdateResource {} + +/** + * Properties of the disk to attach. + */ +model AttachDiskProperties { + /** + * The resource ID of the Lab virtual machine to which the disk is attached. + */ + leasedByLabVmId?: string; +} + +/** + * Properties of the disk to detach. + */ +model DetachDiskProperties { + /** + * The resource ID of the Lab VM to which the disk is attached. + */ + leasedByLabVmId?: string; +} + +/** + * The response of a list operation. + */ +model DtlEnvironmentList is Azure.Core.Page; + +/** + * Properties of an environment. + */ +model EnvironmentProperties { + /** + * The deployment properties of the environment. + */ + deploymentProperties?: EnvironmentDeploymentProperties; + + /** + * The display name of the Azure Resource Manager template that produced the environment. + */ + armTemplateDisplayName?: string; + + /** + * The identifier of the resource group containing the environment's resources. + */ + @visibility(Lifecycle.Read) + resourceGroupId?: string; + + /** + * The creator of the environment. + */ + @visibility(Lifecycle.Read) + createdByUser?: string; + + /** + * The provisioning status of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" + @visibility(Lifecycle.Read) + provisioningState?: string; + + /** + * The unique immutable identifier of a resource (Guid). + */ + @visibility(Lifecycle.Read) + uniqueIdentifier?: string; +} + +/** + * Properties of an environment deployment. + */ +model EnvironmentDeploymentProperties { + /** + * The Azure Resource Manager template's identifier. + */ + armTemplateId?: string; + + /** + * The parameters of the Azure Resource Manager template. + */ + parameters?: ArmTemplateParameterProperties[]; +} + +/** + * Properties of an Azure Resource Manager template parameter. + */ +model ArmTemplateParameterProperties { + /** + * The name of the template parameter. + */ + name?: string; + + /** + * The value of the template parameter. + */ + value?: string; +} + +/** + * An environment, which is essentially an ARM template deployment. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model DtlEnvironmentFragment extends UpdateResource {} + +/** + * The response of a list operation. + */ +model SecretList is Azure.Core.Page; + +/** + * Properties of a secret. + */ +model SecretProperties { + /** + * The value of the secret for secret creation. + */ + value?: string; + + /** + * The provisioning status of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" + @visibility(Lifecycle.Read) + provisioningState?: string; + + /** + * The unique immutable identifier of a resource (Guid). + */ + @visibility(Lifecycle.Read) + uniqueIdentifier?: string; +} + +/** + * A secret. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model SecretFragment extends UpdateResource {} + +/** + * The response of a list operation. + */ +model ServiceFabricList is Azure.Core.Page; + +/** + * Properties of a service fabric. + */ +model ServiceFabricProperties { + /** + * The backing service fabric resource's id + */ + externalServiceFabricId?: string; + + /** + * The resource id of the environment under which the service fabric resource is present + */ + environmentId?: string; + + /** + * The applicable schedule for the virtual machine. + */ + @visibility(Lifecycle.Read) + applicableSchedule?: ApplicableSchedule; + + /** + * The provisioning status of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" + @visibility(Lifecycle.Read) + provisioningState?: string; + + /** + * The unique immutable identifier of a resource (Guid). + */ + @visibility(Lifecycle.Read) + uniqueIdentifier?: string; +} + +/** + * Schedules applicable to a virtual machine. The schedules may have been defined on a VM or on lab level. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model ApplicableSchedule extends Resource { + /** + * The properties of the resource. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties: ApplicableScheduleProperties; +} + +/** + * Properties of a schedules applicable to a virtual machine. + */ +model ApplicableScheduleProperties { + /** + * The auto-shutdown schedule, if one has been set at the lab or lab resource level. + */ + labVmsShutdown?: Schedule; + + /** + * The auto-startup schedule, if one has been set at the lab or lab resource level. + */ + labVmsStartup?: Schedule; +} + +/** + * A Service Fabric. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model ServiceFabricFragment extends UpdateResource {} + +/** + * The response of a list operation. + */ +model LabVirtualMachineList is Azure.Core.Page; + +/** + * Properties of a virtual machine. + */ +model LabVirtualMachineProperties { + /** + * The notes of the virtual machine. + */ + notes?: string; + + /** + * The object identifier of the owner of the virtual machine. + */ + ownerObjectId?: string = "dynamicValue"; + + /** + * The user principal name of the virtual machine owner. + */ + ownerUserPrincipalName?: string; + + /** + * The object identifier of the creator of the virtual machine. + */ + @visibility(Lifecycle.Read) + createdByUserId?: string; + + /** + * The email address of creator of the virtual machine. + */ + @visibility(Lifecycle.Read) + createdByUser?: string; + + /** + * The creation date of the virtual machine. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + createdDate?: utcDateTime; + + /** + * The resource identifier (Microsoft.Compute) of the virtual machine. + */ + @visibility(Lifecycle.Read) + computeId?: string; + + /** + * The custom image identifier of the virtual machine. + */ + customImageId?: string; + + /** + * The OS type of the virtual machine. + */ + @visibility(Lifecycle.Read) + osType?: string; + + /** + * The size of the virtual machine. + */ + size?: string; + + /** + * The user name of the virtual machine. + */ + userName?: string; + + /** + * The password of the virtual machine administrator. + */ + password?: string; + + /** + * The SSH key of the virtual machine administrator. + */ + sshKey?: string; + + /** + * Indicates whether this virtual machine uses an SSH key for authentication. + */ + isAuthenticationWithSshKey?: boolean; + + /** + * The fully-qualified domain name of the virtual machine. + */ + @visibility(Lifecycle.Read) + fqdn?: string; + + /** + * The lab subnet name of the virtual machine. + */ + labSubnetName?: string; + + /** + * The lab virtual network identifier of the virtual machine. + */ + labVirtualNetworkId?: string; + + /** + * Indicates whether the virtual machine is to be created without a public IP address. + */ + disallowPublicIpAddress?: boolean; + + /** + * The artifacts to be installed on the virtual machine. + */ + artifacts?: ArtifactInstallProperties[]; + + /** + * The artifact deployment status for the virtual machine. + */ + @visibility(Lifecycle.Read) + artifactDeploymentStatus?: ArtifactDeploymentStatusProperties; + + /** + * The Microsoft Azure Marketplace image reference of the virtual machine. + */ + galleryImageReference?: GalleryImageReference; + + /** + * The id of the plan associated with the virtual machine image + */ + planId?: string; + + /** + * The compute virtual machine properties. + */ + @visibility(Lifecycle.Read) + computeVm?: ComputeVmProperties; + + /** + * The network interface properties. + */ + networkInterface?: NetworkInterfaceProperties; + + /** + * The applicable schedule for the virtual machine. + */ + @visibility(Lifecycle.Read) + applicableSchedule?: ApplicableSchedule; + + /** + * The expiration date for VM. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + expirationDate?: utcDateTime; + + /** + * Indicates whether another user can take ownership of the virtual machine + */ + allowClaim?: boolean; + + /** + * Storage type to use for virtual machine (i.e. Standard, Premium). + */ + storageType?: string = "labStorageType"; + + /** + * Tells source of creation of lab virtual machine. Output property only. + */ + @visibility(Lifecycle.Read) + virtualMachineCreationSource?: VirtualMachineCreationSource; + + /** + * The resource ID of the environment that contains this virtual machine, if any. + */ + environmentId?: string; + + /** + * New or existing data disks to attach to the virtual machine after creation + */ + dataDiskParameters?: DataDiskProperties[]; + + /** + * Virtual Machine schedules to be created + */ + scheduleParameters?: ScheduleCreationParameter[]; + + /** + * Last known compute power state captured in DTL + */ + @visibility(Lifecycle.Read) + lastKnownPowerState?: string; + + /** + * The provisioning status of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" + @visibility(Lifecycle.Read) + provisioningState?: string; + + /** + * The unique immutable identifier of a resource (Guid). + */ + @visibility(Lifecycle.Read) + uniqueIdentifier?: string; +} + +/** + * Properties of an artifact deployment. + */ +model ArtifactDeploymentStatusProperties { + /** + * The deployment status of the artifact. + */ + deploymentStatus?: string; + + /** + * The total count of the artifacts that were successfully applied. + */ + artifactsApplied?: int32; + + /** + * The total count of the artifacts that were tentatively applied. + */ + totalArtifacts?: int32; +} + +/** + * Properties of a virtual machine returned by the Microsoft.Compute API. + */ +model ComputeVmProperties { + /** + * Gets the statuses of the virtual machine. + */ + statuses?: ComputeVmInstanceViewStatus[]; + + /** + * Gets the OS type of the virtual machine. + */ + osType?: string; + + /** + * Gets the size of the virtual machine. + */ + vmSize?: string; + + /** + * Gets the network interface ID of the virtual machine. + */ + networkInterfaceId?: string; + + /** + * Gets OS disk blob uri for the virtual machine. + */ + osDiskId?: string; + + /** + * Gets data disks blob uri for the virtual machine. + */ + dataDiskIds?: string[]; + + /** + * Gets all data disks attached to the virtual machine. + */ + dataDisks?: ComputeDataDisk[]; +} + +/** + * Status information about a virtual machine. + */ +model ComputeVmInstanceViewStatus { + /** + * Gets the status Code. + */ + code?: string; + + /** + * Gets the short localizable label for the status. + */ + displayStatus?: string; + + /** + * Gets the message associated with the status. + */ + message?: string; +} + +/** + * A data disks attached to a virtual machine. + */ +model ComputeDataDisk { + /** + * Gets data disk name. + */ + name?: string; + + /** + * When backed by a blob, the URI of underlying blob. + */ + diskUri?: string; + + /** + * When backed by managed disk, this is the ID of the compute disk resource. + */ + managedDiskId?: string; + + /** + * Gets data disk size in GiB. + */ + diskSizeGiB?: int32; +} + +/** + * A virtual machine. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model LabVirtualMachineFragment extends UpdateResource {} + +/** + * Request body for applying artifacts to a virtual machine. + */ +model ApplyArtifactsRequest { + /** + * The list of artifacts to apply. + */ + artifacts?: ArtifactInstallProperties[]; +} + +/** + * Request body for detaching data disk from a virtual machine. + */ +model DetachDataDiskProperties { + /** + * Specifies the disk resource ID to detach from virtual machine. + */ + existingLabDiskId?: string; +} + +/** + * Represents a .rdp file + */ +model RdpConnection { + /** + * The contents of the .rdp file + */ + contents?: string; +} + +/** + * Request body for resizing a virtual machine. + */ +model ResizeLabVirtualMachineProperties { + /** + * Specifies the size of the virtual machine. + */ + size?: string; +} + +/** + * The response of a list operation. + */ +model VirtualNetworkList is Azure.Core.Page; + +/** + * Properties of a virtual network. + */ +model VirtualNetworkProperties { + /** + * The allowed subnets of the virtual network. + */ + allowedSubnets?: Subnet[]; + + /** + * The description of the virtual network. + */ + description?: string; + + /** + * The Microsoft.Network resource identifier of the virtual network. + */ + externalProviderResourceId?: string; + + /** + * The external subnet properties. + */ + @visibility(Lifecycle.Read) + externalSubnets?: ExternalSubnet[]; + + /** + * The subnet overrides of the virtual network. + */ + subnetOverrides?: SubnetOverride[]; + + /** + * The creation date of the virtual network. + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + createdDate?: utcDateTime; + + /** + * The provisioning status of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" + @visibility(Lifecycle.Read) + provisioningState?: string; + + /** + * The unique immutable identifier of a resource (Guid). + */ + @visibility(Lifecycle.Read) + uniqueIdentifier?: string; +} + +/** + * Subnet information. + */ +model Subnet { + /** + * The resource ID of the subnet. + */ + resourceId?: string; + + /** + * The name of the subnet as seen in the lab. + */ + labSubnetName?: string; + + /** + * The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)). + */ + allowPublicIp?: UsagePermissionType; +} + +/** + * Subnet information as returned by the Microsoft.Network API. + */ +model ExternalSubnet { + /** + * Gets or sets the identifier. + */ + id?: string; + + /** + * Gets or sets the name. + */ + name?: string; +} + +/** + * Property overrides on a subnet of a virtual network. + */ +model SubnetOverride { + /** + * The resource ID of the subnet. + */ + resourceId?: string; + + /** + * The name given to the subnet within the lab. + */ + labSubnetName?: string; + + /** + * Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny). + */ + useInVmCreationPermission?: UsagePermissionType; + + /** + * Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny). + */ + usePublicIpAddressPermission?: UsagePermissionType; + + /** + * Properties that virtual machines on this subnet will share. + */ + sharedPublicIpAddressConfiguration?: SubnetSharedPublicIpAddressConfiguration; + + /** + * The virtual network pool associated with this subnet. + */ + virtualNetworkPoolName?: string; +} + +/** + * Configuration for public IP address sharing. + */ +model SubnetSharedPublicIpAddressConfiguration { + /** + * Backend ports that virtual machines on this subnet are allowed to expose + */ + allowedPorts?: Port[]; +} + +/** + * Properties of a network port. + */ +model Port { + /** + * Protocol type of the port. + */ + transportProtocol?: TransportProtocol; + + /** + * Backend port of the target virtual machine. + */ + backendPort?: int32; +} + +/** + * A virtual network. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model VirtualNetworkFragment extends UpdateResource {} + +/** + * A lab. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model LabFragment extends UpdateResource {} + +/** + * The parameters of the export operation. + */ +model ExportResourceUsageParameters { + /** + * The blob storage absolute sas uri with write permission to the container which the usage data needs to be uploaded to. + */ + blobStorageAbsoluteSasUri?: string; + + /** + * The start time of the usage. If not provided, usage will be reported since the beginning of data collection. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + usageStartDate?: utcDateTime; +} + +/** + * Properties for generating an upload URI. + */ +model GenerateUploadUriParameter { + /** + * The blob name of the upload URI. + */ + blobName?: string; +} + +/** + * Response body for generating an upload URI. + */ +model GenerateUploadUriResponse { + /** + * The upload URI for the VHD. + */ + uploadUri?: string; +} + +/** + * This represents the payload required to import a virtual machine from a different lab into the current one + */ +model ImportLabVirtualMachineRequest { + /** + * The full resource ID of the virtual machine to be imported. + */ + sourceVirtualMachineResourceId?: string; + + /** + * The name of the virtual machine in the destination lab + */ + destinationVirtualMachineName?: string; +} + +/** + * The response of a list operation. + */ +model LabVhdList is Azure.Core.Page; + +/** + * Properties of a VHD in the lab. + */ +model LabVhd { + /** + * The URI to the VHD. + */ + id?: string; +} + +/** + * Properties for retargeting a virtual machine schedule. + */ +model RetargetScheduleProperties { + /** + * The resource Id of the virtual machine on which the schedule operates + */ + currentResourceId?: string; + + /** + * The resource Id of the virtual machine that the schedule should be retargeted to + */ + targetResourceId?: string; +} + +/** + * Schedules applicable to a virtual machine. The schedules may have been defined on a VM or on lab level. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model ApplicableScheduleFragment extends UpdateResource {} + +/** + * The response of a list operation. + */ +model ServiceRunnerList { + /** + * Results of the list operation. + */ + value?: ServiceRunner[]; + + /** + * Link for next set of results. + */ + nextLink?: string; +} + +/** + * The contents of a shutdown notification. Webhooks can use this type to deserialize the request body when they get notified of an imminent shutdown. + */ +model ShutdownNotificationContent { + /** + * The URL to skip auto-shutdown. + */ + skipUrl?: string; + + /** + * The URL to delay shutdown by 60 minutes. + */ + delayUrl60?: string; + + /** + * The URL to delay shutdown by 2 hours. + */ + delayUrl120?: string; + + /** + * The virtual machine to be shut down. + */ + vmName?: string; + + /** + * The GUID for the virtual machine to be shut down. + */ + guid?: string; + + /** + * The owner of the virtual machine. + */ + owner?: string; + + /** + * The URL of the virtual machine. + */ + vmUrl?: string; + + /** + * Minutes remaining until shutdown + */ + minutesUntilShutdown?: string; + + /** + * The event for which a notification will be sent. + */ + eventType?: string; + + /** + * The text for the notification. + */ + text?: string; + + /** + * The subscription ID for the schedule. + */ + subscriptionId?: string; + + /** + * The resource group name for the schedule. + */ + resourceGroupName?: string; + + /** + * The lab for the schedule. + */ + labName?: string; +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/routes.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/routes.tsp new file mode 100644 index 000000000000..119140f46c27 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/routes.tsp @@ -0,0 +1,41 @@ +// FIXME: Operations in this file are not detected as a resource operation, please confirm the conversion result manually + +import "@azure-tools/typespec-azure-core"; +import "@typespec/rest"; +import "./models.tsp"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ResourceManager; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevTestLab; + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +interface OperationsOperationGroup { + /** + * Get operation. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Operations_Get") + @route("/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/locations/{locationName}/operations/{name}") + @get + get( + ...ApiVersionParameter, + ...SubscriptionIdParameter, + + /** + * The name of the location. + */ + @path + locationName: string, + + /** + * The name of the operation. + */ + @path + name: string, + ): ArmResponse | ErrorResponse; +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml b/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml new file mode 100644 index 000000000000..4f6903f9947c --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml @@ -0,0 +1,13 @@ +emit: + - "@azure-tools/typespec-autorest" +options: + "@azure-tools/typespec-autorest": + omit-unreachable-types: true + emitter-output-dir: "{project-root}/.." + azure-resource-provider-folder: "resource-manager" + output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/DTL.json" + examples-dir: "{project-root}/examples" + arm-resource-flattening: true +linter: + extends: + - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index 40eb6bce4e70..41dbc6239525 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -1,52 +1,138 @@ { "swagger": "2.0", "info": { - "version": "2018-09-15", "title": "DevTestLabsClient", - "description": "The DevTest Labs Client." + "version": "2018-09-15", + "description": "The DevTest Labs Client.", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] }, - "host": "management.azure.com", "schemes": [ "https" ], - "consumes": [ + "host": "management.azure.com", + "produces": [ "application/json" ], - "produces": [ + "consumes": [ "application/json" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "Operations" + }, + { + "name": "Labs" + }, + { + "name": "Schedules" + }, + { + "name": "ScheduleOperationGroup" + }, + { + "name": "ServiceFabricSchedules" + }, + { + "name": "VirtualMachineSchedules" + }, + { + "name": "ArtifactSources" + }, + { + "name": "ArmTemplates" + }, + { + "name": "Artifacts" + }, + { + "name": "LabCosts" + }, + { + "name": "CustomImages" + }, + { + "name": "Formulas" + }, + { + "name": "NotificationChannels" + }, + { + "name": "Policies" + }, + { + "name": "ServiceRunners" + }, + { + "name": "Users" + }, + { + "name": "Disks" + }, + { + "name": "DtlEnvironments" + }, + { + "name": "Secrets" + }, + { + "name": "ServiceFabrics" + }, + { + "name": "LabVirtualMachines" + }, + { + "name": "VirtualNetworks" + } + ], "paths": { "/providers/Microsoft.DevTestLab/operations": { "get": { + "operationId": "Operations_List", "tags": [ - "ProviderOperations" + "Operations" ], - "description": "Result of the request to list REST API operations", - "operationId": "ProviderOperations_List", + "description": "List the operations for the provider", "parameters": [ { - "$ref": "#/parameters/api-version" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ProviderOperationResult" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-examples": { - "ProviderOperations_List": { - "$ref": "./examples/ProviderOperations_List.json" - } - }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -54,31 +140,37 @@ }, "/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/labs": { "get": { + "operationId": "Labs_ListBySubscription", "tags": [ "Labs" ], "description": "List labs in a subscription.", - "operationId": "Labs_ListBySubscription", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'", + "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, "type": "integer", "format": "int32" }, @@ -86,79 +178,71 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/LabList" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/Lab", "x-ms-examples": { "Labs_ListBySubscription": { "$ref": "./examples/Labs_ListBySubscription.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, "/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/locations/{locationName}/operations/{name}": { "get": { - "tags": [ - "Operations" - ], - "description": "Get operation.", "operationId": "Operations_Get", + "description": "Get operation.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/locationName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "name", + "name": "locationName", "in": "path", - "description": "The name of the operation.", + "description": "The name of the location.", "required": true, "type": "string" }, { - "$ref": "#/parameters/api-version" + "name": "name", + "in": "path", + "description": "The name of the operation.", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OperationResult" - } - }, - "202": { - "description": "Accepted", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/OperationResult" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -171,31 +255,37 @@ }, "/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/schedules": { "get": { + "operationId": "GlobalSchedules_ListBySubscription", "tags": [ - "GlobalSchedules" + "Schedules" ], "description": "List schedules in a subscription.", - "operationId": "GlobalSchedules_ListBySubscription", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=status)'", + "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, "type": "integer", "format": "int32" }, @@ -203,67 +293,70 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/ScheduleList" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/Schedule", "x-ms-examples": { "GlobalSchedules_ListBySubscription": { "$ref": "./examples/GlobalSchedules_ListBySubscription.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/armtemplates": { "get": { + "operationId": "ArmTemplates_List", "tags": [ - "Labs" + "ArmTemplates" ], - "description": "List labs in a resource group.", - "operationId": "Labs_ListByResourceGroup", + "description": "List azure resource manager templates in a given artifact source.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'", + "description": "Specify the $expand query. Example: 'properties($select=displayName)'", + "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, "type": "integer", "format": "int32" }, @@ -271,55 +364,55 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/LabList" + "$ref": "#/definitions/ArmTemplateList" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/Lab", "x-ms-examples": { - "Labs_ListByResourceGroup": { - "$ref": "./examples/Labs_ListByResourceGroup.json" + "ArmTemplates_List": { + "$ref": "./examples/ArmTemplates_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/armtemplates/{name}": { "get": { + "operationId": "ArmTemplates_Get", "tags": [ - "ArtifactSources" + "ArmTemplates" ], - "description": "List artifact sources in a given lab.", - "operationId": "ArtifactSources_List", + "description": "Get azure resource manager template.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", "in": "path", - "description": "The name of the lab.", + "description": "The name of the azure resource manager template.", "required": true, "type": "string" }, @@ -327,100 +420,67 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=displayName)'", + "required": false, "type": "string" - }, - { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "type": "string" - }, - { - "name": "$top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "type": "integer", - "format": "int32" - }, - { - "name": "$orderby", - "in": "query", - "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ArtifactSourceList" + "$ref": "#/definitions/ArmTemplate" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/ArtifactSource", "x-ms-examples": { - "ArtifactSources_List": { - "$ref": "./examples/ArtifactSources_List.json" + "ArmTemplates_Get": { + "$ref": "./examples/ArmTemplates_Get.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/armtemplates": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/artifacts": { "get": { + "operationId": "Artifacts_List", "tags": [ - "ArmTemplates" + "Artifacts" ], - "description": "List azure resource manager templates in a given artifact source.", - "operationId": "ArmTemplates_List", + "description": "List artifacts in a given artifact source.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "artifactSourceName", - "in": "path", - "description": "The name of the artifact source.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=displayName)'", + "description": "Specify the $expand query. Example: 'properties($select=title)'", + "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, "type": "integer", "format": "int32" }, @@ -428,340 +488,229 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ArmTemplateList" + "$ref": "#/definitions/ArtifactList" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/ArmTemplate", "x-ms-examples": { - "ArmTemplates_List": { - "$ref": "./examples/ArmTemplates_List.json" + "Artifacts_List": { + "$ref": "./examples/Artifacts_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/armtemplates/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/artifacts/{name}": { "get": { + "operationId": "Artifacts_Get", "tags": [ - "ArmTemplates" + "Artifacts" ], - "description": "Get azure resource manager template.", - "operationId": "ArmTemplates_Get", + "description": "Get artifact.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "artifactSourceName", - "in": "path", - "description": "The name of the artifact source.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the azure resource manager template.", + "description": "The name of the artifact.", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=displayName)'", + "description": "Specify the $expand query. Example: 'properties($select=title)'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ArmTemplate" + "$ref": "#/definitions/Artifact" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ArmTemplates_Get": { - "$ref": "./examples/ArmTemplates_Get.json" + "Artifacts_Get": { + "$ref": "./examples/Artifacts_Get.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/artifacts/{name}/generateArmTemplate": { + "post": { + "operationId": "Artifacts_GenerateArmTemplate", "tags": [ "Artifacts" ], - "description": "List artifacts in a given artifact source.", - "operationId": "Artifacts_List", + "description": "Generates an ARM template for the given artifact, uploads the required files to a storage account, and validates the generated artifact.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "artifactSourceName", + "name": "name", "in": "path", - "description": "The name of the artifact source.", + "description": "The name of the artifact.", "required": true, "type": "string" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=title)'", - "type": "string" - }, - { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "type": "string" - }, - { - "name": "$top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "type": "integer", - "format": "int32" - }, - { - "name": "$orderby", - "in": "query", - "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "type": "string" - }, - { - "$ref": "#/parameters/api-version" + "name": "generateArmTemplateRequest", + "in": "body", + "description": "Parameters for generating an ARM template for deploying artifacts.", + "required": true, + "schema": { + "$ref": "#/definitions/GenerateArmTemplateRequest" + } } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ArtifactList" + "$ref": "#/definitions/ArmTemplateInfo" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/Artifact", "x-ms-examples": { - "Artifacts_List": { - "$ref": "./examples/Artifacts_List.json" + "Artifacts_GenerateArmTemplate": { + "$ref": "./examples/Artifacts_GenerateArmTemplate.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/artifactsources": { "get": { + "operationId": "ArtifactSources_List", "tags": [ - "Artifacts" + "ArtifactSources" ], - "description": "Get artifact.", - "operationId": "Artifacts_Get", + "description": "List artifact sources in a given lab.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "artifactSourceName", - "in": "path", - "description": "The name of the artifact source.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "name", - "in": "path", - "description": "The name of the artifact.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=title)'", + "description": "Specify the $expand query. Example: 'properties($select=displayName)'", + "required": false, "type": "string" }, { - "$ref": "#/parameters/api-version" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Artifact" - } - }, - "default": { - "description": "BadRequest", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Artifacts_Get": { - "$ref": "./examples/Artifacts_Get.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts/{name}/generateArmTemplate": { - "post": { - "tags": [ - "Artifacts" - ], - "description": "Generates an ARM template for the given artifact, uploads the required files to a storage account, and validates the generated artifact.", - "operationId": "Artifacts_GenerateArmTemplate", - "parameters": [ - { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, "type": "string" }, { - "name": "artifactSourceName", - "in": "path", - "description": "The name of the artifact source.", - "required": true, - "type": "string" + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, + "type": "integer", + "format": "int32" }, { - "name": "name", - "in": "path", - "description": "The name of the artifact.", - "required": true, + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, "type": "string" - }, - { - "name": "generateArmTemplateRequest", - "in": "body", - "description": "Parameters for generating an ARM template for deploying artifacts.", - "required": true, - "schema": { - "$ref": "#/definitions/GenerateArmTemplateRequest" - } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ArmTemplateInfo" + "$ref": "#/definitions/ArtifactSourceList" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Artifacts_GenerateArmTemplate": { - "$ref": "./examples/Artifacts_GenerateArmTemplate.json" + "ArtifactSources_List": { + "$ref": "./examples/ArtifactSources_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/artifactsources/{name}": { "get": { + "operationId": "ArtifactSources_Get", "tags": [ "ArtifactSources" ], "description": "Get artifact source.", - "operationId": "ArtifactSources_Get", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", @@ -774,23 +723,21 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=displayName)'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/ArtifactSource" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -801,24 +748,20 @@ } }, "put": { + "operationId": "ArtifactSources_CreateOrUpdate", "tags": [ "ArtifactSources" ], "description": "Create or replace an existing artifact source.", - "operationId": "ArtifactSources_CreateOrUpdate", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", @@ -835,28 +778,25 @@ "schema": { "$ref": "#/definitions/ArtifactSource" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'ArtifactSource' update operation succeeded", "schema": { "$ref": "#/definitions/ArtifactSource" } }, "201": { - "description": "Created", + "description": "Resource 'ArtifactSource' create operation succeeded", "schema": { "$ref": "#/definitions/ArtifactSource" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -866,25 +806,21 @@ } } }, - "delete": { + "patch": { + "operationId": "ArtifactSources_Update", "tags": [ "ArtifactSources" ], - "description": "Delete artifact source.", - "operationId": "ArtifactSources_Delete", + "description": "Allows modifying tags of artifact sources. All other properties will be ignored.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", @@ -894,48 +830,50 @@ "type": "string" }, { - "$ref": "#/parameters/api-version" + "name": "artifactSource", + "in": "body", + "description": "Properties of an artifact source.", + "required": true, + "schema": { + "$ref": "#/definitions/ArtifactSourceFragment" + } } ], "responses": { "200": { - "description": "OK" - }, - "204": { - "description": "No Content" + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ArtifactSource" + } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ArtifactSources_Delete": { - "$ref": "./examples/ArtifactSources_Delete.json" + "ArtifactSources_Update": { + "$ref": "./examples/ArtifactSources_Update.json" } } }, - "patch": { + "delete": { + "operationId": "ArtifactSources_Delete", "tags": [ "ArtifactSources" ], - "description": "Allows modifying tags of artifact sources. All other properties will be ignored.", - "operationId": "ArtifactSources_Update", + "description": "Delete artifact source.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", @@ -943,61 +881,45 @@ "description": "The name of the artifact source.", "required": true, "type": "string" - }, - { - "name": "artifactSource", - "in": "body", - "description": "Properties of an artifact source.", - "required": true, - "schema": { - "$ref": "#/definitions/ArtifactSourceFragment" - } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ArtifactSource" - } + "description": "Resource deleted successfully." + }, + "204": { + "description": "Resource does not exist." }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ArtifactSources_Update": { - "$ref": "./examples/ArtifactSources_Update.json" + "ArtifactSources_Delete": { + "$ref": "./examples/ArtifactSources_Delete.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/costs/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/costs/{name}": { "get": { + "operationId": "Costs_Get", "tags": [ - "Costs" + "LabCosts" ], "description": "Get cost.", - "operationId": "Costs_Get", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", @@ -1010,23 +932,21 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($expand=labCostDetails)'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/LabCost" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -1037,24 +957,20 @@ } }, "put": { + "operationId": "Costs_CreateOrUpdate", "tags": [ - "Costs" + "LabCosts" ], "description": "Create or replace an existing cost.", - "operationId": "Costs_CreateOrUpdate", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", @@ -1071,28 +987,25 @@ "schema": { "$ref": "#/definitions/LabCost" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'LabCost' update operation succeeded", "schema": { "$ref": "#/definitions/LabCost" } }, "201": { - "description": "Created", + "description": "Resource 'LabCost' create operation succeeded", "schema": { "$ref": "#/definitions/LabCost" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -1103,43 +1016,42 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/customimages": { "get": { + "operationId": "CustomImages_List", "tags": [ "CustomImages" ], "description": "List custom images in a given lab.", - "operationId": "CustomImages_List", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=vm)'", + "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, "type": "integer", "format": "int32" }, @@ -1147,57 +1059,50 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/CustomImageList" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/CustomImage", "x-ms-examples": { "CustomImages_List": { "$ref": "./examples/CustomImages_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/customimages/{name}": { "get": { + "operationId": "CustomImages_Get", "tags": [ "CustomImages" ], "description": "Get custom image.", - "operationId": "CustomImages_Get", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", @@ -1210,23 +1115,21 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=vm)'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/CustomImage" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -1237,24 +1140,20 @@ } }, "put": { + "operationId": "CustomImages_CreateOrUpdate", "tags": [ "CustomImages" ], "description": "Create or replace an existing custom image. This operation can take a while to complete.", - "operationId": "CustomImages_CreateOrUpdate", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", @@ -1271,28 +1170,36 @@ "schema": { "$ref": "#/definitions/CustomImage" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'CustomImage' update operation succeeded", "schema": { "$ref": "#/definitions/CustomImage" } }, "201": { - "description": "Created", + "description": "Resource 'CustomImage' create operation succeeded", "schema": { "$ref": "#/definitions/CustomImage" + }, + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -1301,27 +1208,26 @@ "$ref": "./examples/CustomImages_CreateOrUpdate.json" } }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-long-running-operation": true }, - "delete": { + "patch": { + "operationId": "CustomImages_Update", "tags": [ "CustomImages" ], - "description": "Delete custom image. This operation can take a while to complete.", - "operationId": "CustomImages_Delete", + "description": "Allows modifying tags of custom images. All other properties will be ignored.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", @@ -1331,52 +1237,50 @@ "type": "string" }, { - "$ref": "#/parameters/api-version" + "name": "customImage", + "in": "body", + "description": "A custom image.", + "required": true, + "schema": { + "$ref": "#/definitions/CustomImageFragment" + } } ], "responses": { "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "204": { - "description": "No Content" + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CustomImage" + } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "CustomImages_Delete": { - "$ref": "./examples/CustomImages_Delete.json" + "CustomImages_Update": { + "$ref": "./examples/CustomImages_Update.json" } - }, - "x-ms-long-running-operation": true + } }, - "patch": { + "delete": { + "operationId": "CustomImages_Delete", "tags": [ "CustomImages" ], - "description": "Allows modifying tags of custom images. All other properties will be ignored.", - "operationId": "CustomImages_Update", + "description": "Delete custom image. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", @@ -1384,78 +1288,83 @@ "description": "The name of the custom image.", "required": true, "type": "string" - }, - { - "name": "customImage", - "in": "body", - "description": "A custom image.", - "required": true, - "schema": { - "$ref": "#/definitions/CustomImageFragment" - } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CustomImage" + "description": "Resource deleted successfully." + }, + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, + "204": { + "description": "Resource does not exist." + }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "CustomImages_Update": { - "$ref": "./examples/CustomImages_Update.json" + "CustomImages_Delete": { + "$ref": "./examples/CustomImages_Delete.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/disks": { "get": { + "operationId": "Disks_List", "tags": [ - "Formulas" + "Disks" ], - "description": "List formulas in a given lab.", - "operationId": "Formulas_List", + "description": "List disks in a given user profile.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=description)'", + "description": "Specify the $expand query. Example: 'properties($select=diskType)'", + "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, "type": "integer", "format": "int32" }, @@ -1463,386 +1372,452 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/FormulaList" + "$ref": "#/definitions/DiskList" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/Formula", "x-ms-examples": { - "Formulas_List": { - "$ref": "./examples/Formulas_List.json" + "Disks_List": { + "$ref": "./examples/Disks_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/disks/{name}": { "get": { + "operationId": "Disks_Get", "tags": [ - "Formulas" + "Disks" ], - "description": "Get formula.", - "operationId": "Formulas_Get", + "description": "Get disk.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the formula.", + "description": "The name of the disk.", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=description)'", + "description": "Specify the $expand query. Example: 'properties($select=diskType)'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Formula" + "$ref": "#/definitions/Disk" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Formulas_Get": { - "$ref": "./examples/Formulas_Get.json" + "Disks_Get": { + "$ref": "./examples/Disks_Get.json" } } }, "put": { + "operationId": "Disks_CreateOrUpdate", "tags": [ - "Formulas" + "Disks" ], - "description": "Create or replace an existing formula. This operation can take a while to complete.", - "operationId": "Formulas_CreateOrUpdate", + "description": "Create or replace an existing disk. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the formula.", + "description": "The name of the disk.", "required": true, "type": "string" }, { - "name": "formula", + "name": "disk", "in": "body", - "description": "A formula for creating a VM, specifying an image base and other parameters", + "description": "A Disk.", "required": true, "schema": { - "$ref": "#/definitions/Formula" + "$ref": "#/definitions/Disk" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'Disk' update operation succeeded", "schema": { - "$ref": "#/definitions/Formula" + "$ref": "#/definitions/Disk" } }, "201": { - "description": "Created", + "description": "Resource 'Disk' create operation succeeded", "schema": { - "$ref": "#/definitions/Formula" + "$ref": "#/definitions/Disk" + }, + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Formulas_CreateOrUpdate": { - "$ref": "./examples/Formulas_CreateOrUpdate.json" + "Disks_CreateOrUpdate": { + "$ref": "./examples/Disks_CreateOrUpdate.json" } }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-long-running-operation": true }, - "delete": { + "patch": { + "operationId": "Disks_Update", "tags": [ - "Formulas" + "Disks" ], - "description": "Delete formula.", - "operationId": "Formulas_Delete", + "description": "Allows modifying tags of disks. All other properties will be ignored.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the formula.", + "description": "The name of the disk.", "required": true, "type": "string" }, { - "$ref": "#/parameters/api-version" + "name": "disk", + "in": "body", + "description": "A Disk.", + "required": true, + "schema": { + "$ref": "#/definitions/DiskFragment" + } } ], "responses": { "200": { - "description": "OK" - }, - "204": { - "description": "No Content" + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Disk" + } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Formulas_Delete": { - "$ref": "./examples/Formulas_Delete.json" + "Disks_Update": { + "$ref": "./examples/Disks_Update.json" } } }, - "patch": { + "delete": { + "operationId": "Disks_Delete", "tags": [ - "Formulas" + "Disks" ], - "description": "Allows modifying tags of formulas. All other properties will be ignored.", - "operationId": "Formulas_Update", + "description": "Delete disk. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the formula.", + "description": "The name of the disk.", "required": true, "type": "string" - }, - { - "name": "formula", - "in": "body", - "description": "A formula for creating a VM, specifying an image base and other parameters", - "required": true, - "schema": { - "$ref": "#/definitions/FormulaFragment" - } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Formula" + "description": "Resource deleted successfully." + }, + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, + "204": { + "description": "Resource does not exist." + }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Formulas_Update": { - "$ref": "./examples/Formulas_Update.json" + "Disks_Delete": { + "$ref": "./examples/Disks_Delete.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/galleryimages": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/disks/{name}/attach": { + "post": { + "operationId": "Disks_Attach", "tags": [ - "GalleryImages" + "Disks" ], - "description": "List gallery images in a given lab.", - "operationId": "GalleryImages_List", + "description": "Attach and create the lease of the disk to the virtual machine. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=author)'", + "name": "name", + "in": "path", + "description": "The name of the disk.", + "required": true, "type": "string" }, { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "type": "string" + "name": "attachDiskProperties", + "in": "body", + "description": "Properties of the disk to attach.", + "required": true, + "schema": { + "$ref": "#/definitions/AttachDiskProperties" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded." + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Disks_Attach": { + "$ref": "./examples/Disks_Attach.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/disks/{name}/detach": { + "post": { + "operationId": "Disks_Detach", + "tags": [ + "Disks" + ], + "description": "Detach and break the lease of the disk attached to the virtual machine. This operation can take a while to complete.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "$top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "type": "integer", - "format": "int32" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "$orderby", - "in": "query", - "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "The name of the disk.", + "required": true, "type": "string" }, { - "$ref": "#/parameters/api-version" + "name": "detachDiskProperties", + "in": "body", + "description": "Properties of the disk to detach.", + "required": true, + "schema": { + "$ref": "#/definitions/DetachDiskProperties" + } } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/GalleryImageList" + "description": "The request has succeeded." + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/GalleryImage", "x-ms-examples": { - "GalleryImages_List": { - "$ref": "./examples/GalleryImages_List.json" + "Disks_Detach": { + "$ref": "./examples/Disks_Detach.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/environments": { "get": { + "operationId": "Environments_List", "tags": [ - "NotificationChannels" + "DtlEnvironments" ], - "description": "List notification channels in a given lab.", - "operationId": "NotificationChannels_List", + "description": "List environments in a given user profile.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=webHookUrl)'", + "description": "Specify the $expand query. Example: 'properties($select=deploymentProperties)'", + "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, "type": "integer", "format": "int32" }, @@ -1850,419 +1825,368 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/NotificationChannelList" + "$ref": "#/definitions/DtlEnvironmentList" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/NotificationChannel", "x-ms-examples": { - "NotificationChannels_List": { - "$ref": "./examples/NotificationChannels_List.json" + "Environments_List": { + "$ref": "./examples/Environments_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/environments/{name}": { "get": { + "operationId": "Environments_Get", "tags": [ - "NotificationChannels" + "DtlEnvironments" ], - "description": "Get notification channel.", - "operationId": "NotificationChannels_Get", + "description": "Get environment.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the notification channel.", + "description": "The name of the environment.", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=webHookUrl)'", + "description": "Specify the $expand query. Example: 'properties($select=deploymentProperties)'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/NotificationChannel" + "$ref": "#/definitions/DtlEnvironment" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "NotificationChannels_Get": { - "$ref": "./examples/NotificationChannels_Get.json" + "Environments_Get": { + "$ref": "./examples/Environments_Get.json" } } }, "put": { + "operationId": "Environments_CreateOrUpdate", "tags": [ - "NotificationChannels" + "DtlEnvironments" ], - "description": "Create or replace an existing notification channel.", - "operationId": "NotificationChannels_CreateOrUpdate", + "description": "Create or replace an existing environment. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the notification channel.", + "description": "The name of the environment.", "required": true, "type": "string" }, { - "name": "notificationChannel", + "name": "dtlEnvironment", "in": "body", - "description": "A notification.", + "description": "An environment, which is essentially an ARM template deployment.", "required": true, "schema": { - "$ref": "#/definitions/NotificationChannel" + "$ref": "#/definitions/DtlEnvironment" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'DtlEnvironment' update operation succeeded", "schema": { - "$ref": "#/definitions/NotificationChannel" + "$ref": "#/definitions/DtlEnvironment" } }, "201": { - "description": "Created", + "description": "Resource 'DtlEnvironment' create operation succeeded", "schema": { - "$ref": "#/definitions/NotificationChannel" + "$ref": "#/definitions/DtlEnvironment" + }, + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "NotificationChannels_CreateOrUpdate": { - "$ref": "./examples/NotificationChannels_CreateOrUpdate.json" + "Environments_CreateOrUpdate": { + "$ref": "./examples/Environments_CreateOrUpdate.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true }, - "delete": { + "patch": { + "operationId": "Environments_Update", "tags": [ - "NotificationChannels" + "DtlEnvironments" ], - "description": "Delete notification channel.", - "operationId": "NotificationChannels_Delete", + "description": "Allows modifying tags of environments. All other properties will be ignored.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the notification channel.", + "description": "The name of the environment.", "required": true, "type": "string" }, { - "$ref": "#/parameters/api-version" + "name": "dtlEnvironment", + "in": "body", + "description": "An environment, which is essentially an ARM template deployment.", + "required": true, + "schema": { + "$ref": "#/definitions/DtlEnvironmentFragment" + } } ], "responses": { "200": { - "description": "OK" - }, - "204": { - "description": "No Content" + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/DtlEnvironment" + } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "NotificationChannels_Delete": { - "$ref": "./examples/NotificationChannels_Delete.json" + "Environments_Update": { + "$ref": "./examples/Environments_Update.json" } } }, - "patch": { + "delete": { + "operationId": "Environments_Delete", "tags": [ - "NotificationChannels" + "DtlEnvironments" ], - "description": "Allows modifying tags of notification channels. All other properties will be ignored.", - "operationId": "NotificationChannels_Update", + "description": "Delete environment. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the notification channel.", + "description": "The name of the environment.", "required": true, "type": "string" - }, - { - "name": "notificationChannel", - "in": "body", - "description": "A notification.", - "required": true, - "schema": { - "$ref": "#/definitions/NotificationChannelFragment" - } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/NotificationChannel" + "description": "Resource deleted successfully." + }, + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, + "204": { + "description": "Resource does not exist." + }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "NotificationChannels_Update": { - "$ref": "./examples/NotificationChannels_Update.json" + "Environments_Delete": { + "$ref": "./examples/Environments_Delete.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels/{name}/notify": { - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/formulas": { + "get": { + "operationId": "Formulas_List", "tags": [ - "NotificationChannels" + "Formulas" ], - "description": "Send notification to provided channel.", - "operationId": "NotificationChannels_Notify", + "description": "List formulas in a given lab.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", - "in": "path", - "description": "The name of the notification channel.", - "required": true, + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=description)'", + "required": false, "type": "string" }, { - "name": "notifyParameters", - "in": "body", - "description": "Properties for generating a Notification.", - "required": true, - "schema": { - "$ref": "#/definitions/NotifyParameters" - } + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, + "type": "string" }, { - "$ref": "#/parameters/api-version" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "BadRequest", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "NotificationChannels_Notify": { - "$ref": "./examples/NotificationChannels_Notify.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{name}/evaluatePolicies": { - "post": { - "tags": [ - "PolicySets" - ], - "description": "Evaluates lab policy.", - "operationId": "PolicySets_EvaluatePolicies", - "parameters": [ - { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, + "type": "integer", + "format": "int32" }, { - "name": "name", - "in": "path", - "description": "The name of the policy set.", - "required": true, + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, "type": "string" - }, - { - "name": "evaluatePoliciesRequest", - "in": "body", - "description": "Request body for evaluating a policy set.", - "required": true, - "schema": { - "$ref": "#/definitions/EvaluatePoliciesRequest" - } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/EvaluatePoliciesResponse" + "$ref": "#/definitions/FormulaList" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "PolicySets_EvaluatePolicies": { - "$ref": "./examples/PolicySets_EvaluatePolicies.json" + "Formulas_List": { + "$ref": "./examples/Formulas_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/formulas/{name}": { "get": { + "operationId": "Formulas_Get", "tags": [ - "Policies" + "Formulas" ], - "description": "List policies in a given policy set.", - "operationId": "Policies_List", + "description": "Get formula.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "policySetName", + "name": "name", "in": "path", - "description": "The name of the policy set.", + "description": "The name of the formula.", "required": true, "type": "string" }, @@ -2270,336 +2194,292 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=description)'", + "required": false, "type": "string" - }, - { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "type": "string" - }, - { - "name": "$top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "type": "integer", - "format": "int32" - }, - { - "name": "$orderby", - "in": "query", - "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/PolicyList" + "$ref": "#/definitions/Formula" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/Policy", "x-ms-examples": { - "Policies_List": { - "$ref": "./examples/Policies_List.json" + "Formulas_Get": { + "$ref": "./examples/Formulas_Get.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{name}": { - "get": { + }, + "put": { + "operationId": "Formulas_CreateOrUpdate", "tags": [ - "Policies" + "Formulas" ], - "description": "Get policy.", - "operationId": "Policies_Get", + "description": "Create or replace an existing formula. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "policySetName", - "in": "path", - "description": "The name of the policy set.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the policy.", + "description": "The name of the formula.", "required": true, "type": "string" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=description)'", - "type": "string" - }, - { - "$ref": "#/parameters/api-version" + "name": "formula", + "in": "body", + "description": "A formula for creating a VM, specifying an image base and other parameters", + "required": true, + "schema": { + "$ref": "#/definitions/Formula" + } } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'Formula' update operation succeeded", "schema": { - "$ref": "#/definitions/Policy" + "$ref": "#/definitions/Formula" + } + }, + "201": { + "description": "Resource 'Formula' create operation succeeded", + "schema": { + "$ref": "#/definitions/Formula" + }, + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Policies_Get": { - "$ref": "./examples/Policies_Get.json" + "Formulas_CreateOrUpdate": { + "$ref": "./examples/Formulas_CreateOrUpdate.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true }, - "put": { + "patch": { + "operationId": "Formulas_Update", "tags": [ - "Policies" + "Formulas" ], - "description": "Create or replace an existing policy.", - "operationId": "Policies_CreateOrUpdate", + "description": "Allows modifying tags of formulas. All other properties will be ignored.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "policySetName", - "in": "path", - "description": "The name of the policy set.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the policy.", + "description": "The name of the formula.", "required": true, "type": "string" }, { - "name": "policy", + "name": "formula", "in": "body", - "description": "A Policy.", + "description": "A formula for creating a VM, specifying an image base and other parameters", "required": true, "schema": { - "$ref": "#/definitions/Policy" + "$ref": "#/definitions/FormulaFragment" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Policy" - } - }, - "201": { - "description": "Created", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Policy" + "$ref": "#/definitions/Formula" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Policies_CreateOrUpdate": { - "$ref": "./examples/Policies_CreateOrUpdate.json" + "Formulas_Update": { + "$ref": "./examples/Formulas_Update.json" } } }, "delete": { + "operationId": "Formulas_Delete", "tags": [ - "Policies" + "Formulas" ], - "description": "Delete policy.", - "operationId": "Policies_Delete", + "description": "Delete formula.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "policySetName", - "in": "path", - "description": "The name of the policy set.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the policy.", + "description": "The name of the formula.", "required": true, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK" + "description": "Resource deleted successfully." }, "204": { - "description": "No Content" + "description": "Resource does not exist." }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Policies_Delete": { - "$ref": "./examples/Policies_Delete.json" + "Formulas_Delete": { + "$ref": "./examples/Formulas_Delete.json" } } - }, - "patch": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs": { + "get": { + "operationId": "Labs_ListByResourceGroup", "tags": [ - "Policies" + "Labs" ], - "description": "Allows modifying tags of policies. All other properties will be ignored.", - "operationId": "Policies_Update", + "description": "List labs in a resource group.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "policySetName", - "in": "path", - "description": "The name of the policy set.", - "required": true, + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'", + "required": false, "type": "string" }, { - "name": "name", - "in": "path", - "description": "The name of the policy.", - "required": true, + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, "type": "string" }, { - "name": "policy", - "in": "body", - "description": "A Policy.", - "required": true, - "schema": { - "$ref": "#/definitions/PolicyFragment" - } + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, + "type": "integer", + "format": "int32" }, { - "$ref": "#/parameters/api-version" + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, + "type": "string" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Policy" + "$ref": "#/definitions/LabList" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Policies_Update": { - "$ref": "./examples/Policies_Update.json" + "Labs_ListByResourceGroup": { + "$ref": "./examples/Labs_ListByResourceGroup.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}": { "get": { + "operationId": "Labs_Get", "tags": [ - "Schedules" + "Labs" ], - "description": "List schedules in a given lab.", - "operationId": "Schedules_List", + "description": "Get lab.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", "in": "path", "description": "The name of the lab.", "required": true, @@ -2608,610 +2488,786 @@ { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=status)'", - "type": "string" - }, - { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "type": "string" - }, - { - "name": "$top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "type": "integer", - "format": "int32" - }, - { - "name": "$orderby", - "in": "query", - "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "description": "Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ScheduleList" + "$ref": "#/definitions/Lab" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/Schedule", "x-ms-examples": { - "Schedules_List": { - "$ref": "./examples/Schedules_List.json" + "Labs_Get": { + "$ref": "./examples/Labs_Get.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}": { - "get": { + }, + "put": { + "operationId": "Labs_CreateOrUpdate", "tags": [ - "Schedules" + "Labs" ], - "description": "Get schedule.", - "operationId": "Schedules_Get", + "description": "Create or replace an existing lab. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the schedule.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=status)'", - "type": "string" - }, - { - "$ref": "#/parameters/api-version" + "name": "lab", + "in": "body", + "description": "A lab.", + "required": true, + "schema": { + "$ref": "#/definitions/Lab" + } } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'Lab' update operation succeeded", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/Lab" + } + }, + "201": { + "description": "Resource 'Lab' create operation succeeded", + "schema": { + "$ref": "#/definitions/Lab" + }, + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Schedules_Get": { - "$ref": "./examples/Schedules_Get.json" + "Labs_CreateOrUpdate": { + "$ref": "./examples/Labs_CreateOrUpdate.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true }, - "put": { + "patch": { + "operationId": "Labs_Update", "tags": [ - "Schedules" + "Labs" ], - "description": "Create or replace an existing schedule.", - "operationId": "Schedules_CreateOrUpdate", + "description": "Allows modifying tags of labs. All other properties will be ignored.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the schedule.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "schedule", + "name": "lab", "in": "body", - "description": "A schedule.", + "description": "A lab.", "required": true, "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/LabFragment" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Schedule" - } - }, - "201": { - "description": "Created", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/Lab" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Schedules_CreateOrUpdate": { - "$ref": "./examples/Schedules_CreateOrUpdate.json" + "Labs_Update": { + "$ref": "./examples/Labs_Update.json" } } }, "delete": { + "operationId": "Labs_Delete", "tags": [ - "Schedules" + "Labs" ], - "description": "Delete schedule.", - "operationId": "Schedules_Delete", + "description": "Delete lab. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the schedule.", + "description": "The name of the lab.", "required": true, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK" + "description": "Resource deleted successfully." + }, + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } }, "204": { - "description": "No Content" + "description": "Resource does not exist." }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Schedules_Delete": { - "$ref": "./examples/Schedules_Delete.json" + "Labs_Delete": { + "$ref": "./examples/Labs_Delete.json" } - } - }, - "patch": { + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/{labName}/evaluatePolicies": { + "post": { + "operationId": "PolicySets_EvaluatePolicies", "tags": [ - "Schedules" + "Labs" ], - "description": "Allows modifying tags of schedules. All other properties will be ignored.", - "operationId": "Schedules_Update", + "description": "Evaluates lab policy.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", "in": "path", "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "name", + "name": "labName", "in": "path", - "description": "The name of the schedule.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "schedule", + "name": "evaluatePoliciesRequest", "in": "body", - "description": "A schedule.", + "description": "Request body for evaluating a policy set.", "required": true, "schema": { - "$ref": "#/definitions/ScheduleFragment" + "$ref": "#/definitions/EvaluatePoliciesRequest" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/EvaluatePoliciesResponse" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Schedules_Update": { - "$ref": "./examples/Schedules_Update.json" + "PolicySets_EvaluatePolicies": { + "$ref": "./examples/PolicySets_EvaluatePolicies.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}/execute": { - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/{labName}/galleryimages": { + "get": { + "operationId": "GalleryImages_List", "tags": [ - "Schedules" + "Labs" ], - "description": "Execute a schedule. This operation can take a while to complete.", - "operationId": "Schedules_Execute", + "description": "List gallery images in a given lab.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", "in": "path", "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "name", + "name": "labName", "in": "path", - "description": "The name of the schedule.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "$ref": "#/parameters/api-version" + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=author)'", + "required": false, + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, + "type": "string" } ], "responses": { "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/GalleryImageList" + } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Schedules_Execute": { - "$ref": "./examples/Schedules_Execute.json" + "GalleryImages_List": { + "$ref": "./examples/GalleryImages_List.json" } }, - "x-ms-long-running-operation": true + "x-ms-pageable": { + "nextLinkName": "nextLink" + } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}/listApplicable": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/claimAnyVm": { "post": { + "operationId": "Labs_ClaimAnyVm", "tags": [ - "Schedules" + "Labs" ], - "description": "Lists all applicable schedules", - "operationId": "Schedules_ListApplicable", + "description": "Claim a random claimable virtual machine in the lab. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", "in": "path", "description": "The name of the lab.", "required": true, "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded." + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Labs_ClaimAnyVm": { + "$ref": "./examples/Labs_ClaimAnyVm.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/createEnvironment": { + "post": { + "operationId": "Labs_CreateEnvironment", + "tags": [ + "Labs" + ], + "description": "Create virtual machines in a lab. This operation can take a while to complete.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the schedule.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "$ref": "#/parameters/api-version" + "name": "labVirtualMachineCreationParameter", + "in": "body", + "description": "Properties for creating a virtual machine.", + "required": true, + "schema": { + "$ref": "#/definitions/LabVirtualMachineCreationParameter" + } } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ScheduleList" + "description": "The request has succeeded." + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "Schedules_ListApplicable": { - "$ref": "./examples/Schedules_ListApplicable.json" + "Labs_CreateEnvironment": { + "$ref": "./examples/Labs_CreateEnvironment.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/servicerunners/{name}": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/exportResourceUsage": { + "post": { + "operationId": "Labs_ExportResourceUsage", "tags": [ - "ServiceRunners" + "Labs" ], - "description": "Get service runner.", - "operationId": "ServiceRunners_Get", + "description": "Exports the lab resource usage into a storage account This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", "in": "path", "description": "The name of the lab.", "required": true, "type": "string" }, + { + "name": "exportResourceUsageParameters", + "in": "body", + "description": "The parameters of the export operation.", + "required": true, + "schema": { + "$ref": "#/definitions/ExportResourceUsageParameters" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded." + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Labs_ExportResourceUsage": { + "$ref": "./examples/Labs_ExportResourceUsage.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/generateUploadUri": { + "post": { + "operationId": "Labs_GenerateUploadUri", + "tags": [ + "Labs" + ], + "description": "Generate a URI for uploading custom disk images to a Lab.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, { "name": "name", "in": "path", - "description": "The name of the service runner.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "$ref": "#/parameters/api-version" + "name": "generateUploadUriParameter", + "in": "body", + "description": "Properties for generating an upload URI.", + "required": true, + "schema": { + "$ref": "#/definitions/GenerateUploadUriParameter" + } } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ServiceRunner" + "$ref": "#/definitions/GenerateUploadUriResponse" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ServiceRunners_Get": { - "$ref": "./examples/ServiceRunners_Get.json" + "Labs_GenerateUploadUri": { + "$ref": "./examples/Labs_GenerateUploadUri.json" } } - }, - "put": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/importVirtualMachine": { + "post": { + "operationId": "Labs_ImportVirtualMachine", "tags": [ - "ServiceRunners" + "Labs" ], - "description": "Create or replace an existing service runner.", - "operationId": "ServiceRunners_CreateOrUpdate", + "description": "Import a virtual machine into a different lab. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the service runner.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "serviceRunner", + "name": "importLabVirtualMachineRequest", "in": "body", - "description": "A container for a managed identity to execute DevTest lab services.", + "description": "This represents the payload required to import a virtual machine from a different lab into the current one", "required": true, "schema": { - "$ref": "#/definitions/ServiceRunner" + "$ref": "#/definitions/ImportLabVirtualMachineRequest" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ServiceRunner" - } + "description": "The request has succeeded." }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/ServiceRunner" + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ServiceRunners_CreateOrUpdate": { - "$ref": "./examples/ServiceRunners_CreateOrUpdate.json" + "Labs_ImportVirtualMachine": { + "$ref": "./examples/Labs_ImportVirtualMachine.json" } - } - }, - "delete": { + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/listVhds": { + "post": { + "operationId": "Labs_ListVhds", "tags": [ - "ServiceRunners" + "Labs" ], - "description": "Delete service runner.", - "operationId": "ServiceRunners_Delete", + "description": "List disk images available for custom image creation.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the service runner.", + "description": "The name of the lab.", "required": true, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK" - }, - "204": { - "description": "No Content" + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/LabVhdList" + } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ServiceRunners_Delete": { - "$ref": "./examples/ServiceRunners_Delete.json" + "Labs_ListVhds": { + "$ref": "./examples/Labs_ListVhds.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules": { "get": { + "operationId": "Schedules_List", "tags": [ - "Users" + "ScheduleOperationGroup" ], - "description": "List user profiles in a given lab.", - "operationId": "Users_List", + "description": "List schedules in a given lab.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=identity)'", + "description": "Specify the $expand query. Example: 'properties($select=status)'", + "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, "type": "integer", "format": "int32" }, @@ -3219,322 +3275,452 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/UserList" + "$ref": "#/definitions/ScheduleList" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/User", "x-ms-examples": { - "Users_List": { - "$ref": "./examples/Users_List.json" + "Schedules_List": { + "$ref": "./examples/Schedules_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}": { "get": { + "operationId": "Schedules_Get", "tags": [ - "Users" + "ScheduleOperationGroup" ], - "description": "Get user profile.", - "operationId": "Users_Get", + "description": "Get schedule.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { "name": "name", "in": "path", - "description": "The name of the user profile.", + "description": "The name of the Schedule", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=identity)'", + "description": "Specify the $expand query. Example: 'properties($select=status)'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/User" + "$ref": "#/definitions/Schedule" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Users_Get": { - "$ref": "./examples/Users_Get.json" - } + "Schedules_Get": { + "$ref": "./examples/Schedules_Get.json" + } } }, "put": { + "operationId": "Schedules_CreateOrUpdate", "tags": [ - "Users" + "ScheduleOperationGroup" ], - "description": "Create or replace an existing user profile. This operation can take a while to complete.", - "operationId": "Users_CreateOrUpdate", + "description": "Create or replace an existing schedule.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { "name": "name", "in": "path", - "description": "The name of the user profile.", + "description": "The name of the Schedule", "required": true, "type": "string" }, { - "name": "user", + "name": "schedule", "in": "body", - "description": "Profile of a lab user.", + "description": "A schedule.", "required": true, "schema": { - "$ref": "#/definitions/User" + "$ref": "#/definitions/Schedule" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'Schedule' update operation succeeded", "schema": { - "$ref": "#/definitions/User" + "$ref": "#/definitions/Schedule" } }, "201": { - "description": "Created", + "description": "Resource 'Schedule' create operation succeeded", "schema": { - "$ref": "#/definitions/User" + "$ref": "#/definitions/Schedule" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Users_CreateOrUpdate": { - "$ref": "./examples/Users_CreateOrUpdate.json" + "Schedules_CreateOrUpdate": { + "$ref": "./examples/Schedules_CreateOrUpdate.json" } - }, - "x-ms-long-running-operation": true + } }, - "delete": { + "patch": { + "operationId": "Schedules_Update", "tags": [ - "Users" + "ScheduleOperationGroup" ], - "description": "Delete user profile. This operation can take a while to complete.", - "operationId": "Users_Delete", + "description": "Allows modifying tags of schedules. All other properties will be ignored.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { "name": "name", "in": "path", - "description": "The name of the user profile.", + "description": "The name of the Schedule", "required": true, "type": "string" }, { - "$ref": "#/parameters/api-version" + "name": "schedule", + "in": "body", + "description": "A schedule.", + "required": true, + "schema": { + "$ref": "#/definitions/ScheduleFragment" + } } ], "responses": { "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "204": { - "description": "No Content" + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Schedule" + } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Users_Delete": { - "$ref": "./examples/Users_Delete.json" + "Schedules_Update": { + "$ref": "./examples/Schedules_Update.json" } - }, - "x-ms-long-running-operation": true + } }, - "patch": { + "delete": { + "operationId": "Schedules_Delete", "tags": [ - "Users" + "ScheduleOperationGroup" ], - "description": "Allows modifying tags of user profiles. All other properties will be ignored.", - "operationId": "Users_Update", + "description": "Delete schedule.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { "name": "name", "in": "path", - "description": "The name of the user profile.", + "description": "The name of the Schedule", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Schedules_Delete": { + "$ref": "./examples/Schedules_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}/execute": { + "post": { + "operationId": "Schedules_Execute", + "tags": [ + "ScheduleOperationGroup" + ], + "description": "Execute a schedule. This operation can take a while to complete.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "labName", + "in": "path", + "description": "labs", "required": true, "type": "string" }, { - "name": "user", - "in": "body", - "description": "Profile of a lab user.", + "name": "name", + "in": "path", + "description": "The name of the Schedule", "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded." + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/UserFragment" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } + } + }, + "x-ms-examples": { + "Schedules_Execute": { + "$ref": "./examples/Schedules_Execute.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}/listApplicable": { + "post": { + "operationId": "Schedules_ListApplicable", + "tags": [ + "ScheduleOperationGroup" + ], + "description": "Lists all applicable schedules", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "labName", + "in": "path", + "description": "labs", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/api-version" + "name": "name", + "in": "path", + "description": "The name of the Schedule", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/User" + "$ref": "#/definitions/ScheduleList" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Users_Update": { - "$ref": "./examples/Users_Update.json" + "Schedules_ListApplicable": { + "$ref": "./examples/Schedules_ListApplicable.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules": { "get": { + "operationId": "ServiceFabricSchedules_List", "tags": [ - "Disks" + "ServiceFabricSchedules" ], - "description": "List disks in a given user profile.", - "operationId": "Disks_List", + "description": "List schedules in a given service fabric.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { "name": "userName", "in": "path", - "description": "The name of the user profile.", + "description": "users", + "required": true, + "type": "string" + }, + { + "name": "serviceFabricName", + "in": "path", + "description": "servicefabrics", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=diskType)'", + "description": "Specify the $expand query. Example: 'properties($select=status)'", + "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, "type": "integer", "format": "int32" }, @@ -3542,490 +3728,459 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DiskList" + "$ref": "#/definitions/ScheduleList" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/Disk", "x-ms-examples": { - "Disks_List": { - "$ref": "./examples/Disks_List.json" + "ServiceFabricSchedules_List": { + "$ref": "./examples/ServiceFabricSchedules_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules/{name}": { "get": { + "operationId": "ServiceFabricSchedules_Get", "tags": [ - "Disks" + "ServiceFabricSchedules" ], - "description": "Get disk.", - "operationId": "Disks_Get", + "description": "Get schedule.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { "name": "userName", "in": "path", - "description": "The name of the user profile.", + "description": "users", + "required": true, + "type": "string" + }, + { + "name": "serviceFabricName", + "in": "path", + "description": "servicefabrics", "required": true, "type": "string" }, { "name": "name", "in": "path", - "description": "The name of the disk.", + "description": "The name of the Schedule", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=diskType)'", + "description": "Specify the $expand query. Example: 'properties($select=status)'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Disk" + "$ref": "#/definitions/Schedule" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Disks_Get": { - "$ref": "./examples/Disks_Get.json" + "ServiceFabricSchedules_Get": { + "$ref": "./examples/ServiceFabricSchedules_Get.json" } } }, "put": { + "operationId": "ServiceFabricSchedules_CreateOrUpdate", "tags": [ - "Disks" + "ServiceFabricSchedules" ], - "description": "Create or replace an existing disk. This operation can take a while to complete.", - "operationId": "Disks_CreateOrUpdate", + "description": "Create or replace an existing schedule.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { "name": "userName", "in": "path", - "description": "The name of the user profile.", + "description": "users", + "required": true, + "type": "string" + }, + { + "name": "serviceFabricName", + "in": "path", + "description": "servicefabrics", "required": true, "type": "string" }, { "name": "name", "in": "path", - "description": "The name of the disk.", + "description": "The name of the Schedule", "required": true, "type": "string" }, { - "name": "disk", + "name": "schedule", "in": "body", - "description": "A Disk.", + "description": "A schedule.", "required": true, "schema": { - "$ref": "#/definitions/Disk" + "$ref": "#/definitions/Schedule" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'Schedule' update operation succeeded", "schema": { - "$ref": "#/definitions/Disk" + "$ref": "#/definitions/Schedule" } }, "201": { - "description": "Created", + "description": "Resource 'Schedule' create operation succeeded", "schema": { - "$ref": "#/definitions/Disk" + "$ref": "#/definitions/Schedule" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Disks_CreateOrUpdate": { - "$ref": "./examples/Disks_CreateOrUpdate.json" + "ServiceFabricSchedules_CreateOrUpdate": { + "$ref": "./examples/ServiceFabricSchedules_CreateOrUpdate.json" } - }, - "x-ms-long-running-operation": true + } }, - "delete": { + "patch": { + "operationId": "ServiceFabricSchedules_Update", "tags": [ - "Disks" + "ServiceFabricSchedules" ], - "description": "Delete disk. This operation can take a while to complete.", - "operationId": "Disks_Delete", + "description": "Allows modifying tags of schedules. All other properties will be ignored.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "userName", - "in": "path", - "description": "The name of the user profile.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "labName", "in": "path", - "description": "The name of the disk.", + "description": "labs", "required": true, "type": "string" }, { - "$ref": "#/parameters/api-version" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "204": { - "description": "No Content" - }, - "default": { - "description": "BadRequest", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Disks_Delete": { - "$ref": "./examples/Disks_Delete.json" - } - }, - "x-ms-long-running-operation": true - }, - "patch": { - "tags": [ - "Disks" - ], - "description": "Allows modifying tags of disks. All other properties will be ignored.", - "operationId": "Disks_Update", - "parameters": [ - { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "name": "labName", + "name": "userName", "in": "path", - "description": "The name of the lab.", + "description": "users", "required": true, "type": "string" }, { - "name": "userName", + "name": "serviceFabricName", "in": "path", - "description": "The name of the user profile.", + "description": "servicefabrics", "required": true, "type": "string" }, { "name": "name", "in": "path", - "description": "The name of the disk.", + "description": "The name of the Schedule", "required": true, "type": "string" }, { - "name": "disk", + "name": "schedule", "in": "body", - "description": "A Disk.", + "description": "A schedule.", "required": true, "schema": { - "$ref": "#/definitions/DiskFragment" + "$ref": "#/definitions/ScheduleFragment" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Disk" + "$ref": "#/definitions/Schedule" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Disks_Update": { - "$ref": "./examples/Disks_Update.json" + "ServiceFabricSchedules_Update": { + "$ref": "./examples/ServiceFabricSchedules_Update.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}/attach": { - "post": { + }, + "delete": { + "operationId": "ServiceFabricSchedules_Delete", "tags": [ - "Disks" + "ServiceFabricSchedules" ], - "description": "Attach and create the lease of the disk to the virtual machine. This operation can take a while to complete.", - "operationId": "Disks_Attach", + "description": "Delete schedule.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { "name": "userName", "in": "path", - "description": "The name of the user profile.", + "description": "users", "required": true, "type": "string" }, { - "name": "name", + "name": "serviceFabricName", "in": "path", - "description": "The name of the disk.", + "description": "servicefabrics", "required": true, "type": "string" }, { - "name": "attachDiskProperties", - "in": "body", - "description": "Properties of the disk to attach.", + "name": "name", + "in": "path", + "description": "The name of the Schedule", "required": true, - "schema": { - "$ref": "#/definitions/AttachDiskProperties" - } - }, - { - "$ref": "#/parameters/api-version" + "type": "string" } ], "responses": { "200": { - "description": "OK" + "description": "Resource deleted successfully." }, - "202": { - "description": "Accepted" + "204": { + "description": "Resource does not exist." }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Disks_Attach": { - "$ref": "./examples/Disks_Attach.json" + "ServiceFabricSchedules_Delete": { + "$ref": "./examples/ServiceFabricSchedules_Delete.json" } - }, - "x-ms-long-running-operation": true + } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}/detach": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules/{name}/execute": { "post": { + "operationId": "ServiceFabricSchedules_Execute", "tags": [ - "Disks" + "ServiceFabricSchedules" ], - "description": "Detach and break the lease of the disk attached to the virtual machine. This operation can take a while to complete.", - "operationId": "Disks_Detach", + "description": "Execute a schedule. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { "name": "userName", "in": "path", - "description": "The name of the user profile.", + "description": "users", "required": true, "type": "string" }, { - "name": "name", + "name": "serviceFabricName", "in": "path", - "description": "The name of the disk.", + "description": "servicefabrics", "required": true, "type": "string" }, { - "name": "detachDiskProperties", - "in": "body", - "description": "Properties of the disk to detach.", + "name": "name", + "in": "path", + "description": "The name of the Schedule", "required": true, - "schema": { - "$ref": "#/definitions/DetachDiskProperties" - } - }, - { - "$ref": "#/parameters/api-version" + "type": "string" } ], "responses": { "200": { - "description": "OK" + "description": "The request has succeeded." }, "202": { - "description": "Accepted" + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Disks_Detach": { - "$ref": "./examples/Disks_Detach.json" + "ServiceFabricSchedules_Execute": { + "$ref": "./examples/ServiceFabricSchedules_Execute.json" } }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules": { "get": { + "operationId": "VirtualMachineSchedules_List", "tags": [ - "Environments" + "VirtualMachineSchedules" ], - "description": "List environments in a given user profile.", - "operationId": "Environments_List", + "description": "List schedules in a given virtual machine.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { - "name": "userName", + "name": "virtualMachineName", "in": "path", - "description": "The name of the user profile.", + "description": "virtualmachines", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=deploymentProperties)'", + "description": "Specify the $expand query. Example: 'properties($select=status)'", + "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, "type": "integer", "format": "int32" }, @@ -4033,350 +4188,410 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DtlEnvironmentList" + "$ref": "#/definitions/ScheduleList" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/DtlEnvironment", "x-ms-examples": { - "Environments_List": { - "$ref": "./examples/Environments_List.json" + "VirtualMachineSchedules_List": { + "$ref": "./examples/VirtualMachineSchedules_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules/{name}": { "get": { + "operationId": "VirtualMachineSchedules_Get", "tags": [ - "Environments" + "VirtualMachineSchedules" ], - "description": "Get environment.", - "operationId": "Environments_Get", + "description": "Get schedule.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { - "name": "userName", + "name": "virtualMachineName", "in": "path", - "description": "The name of the user profile.", + "description": "virtualmachines", "required": true, "type": "string" }, { "name": "name", "in": "path", - "description": "The name of the environment.", + "description": "The name of the Schedule", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=deploymentProperties)'", + "description": "Specify the $expand query. Example: 'properties($select=status)'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DtlEnvironment" + "$ref": "#/definitions/Schedule" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Environments_Get": { - "$ref": "./examples/Environments_Get.json" + "VirtualMachineSchedules_Get": { + "$ref": "./examples/VirtualMachineSchedules_Get.json" } } }, "put": { + "operationId": "VirtualMachineSchedules_CreateOrUpdate", "tags": [ - "Environments" + "VirtualMachineSchedules" ], - "description": "Create or replace an existing environment. This operation can take a while to complete.", - "operationId": "Environments_CreateOrUpdate", + "description": "Create or replace an existing schedule.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { - "name": "userName", + "name": "virtualMachineName", "in": "path", - "description": "The name of the user profile.", + "description": "virtualmachines", "required": true, "type": "string" }, { "name": "name", "in": "path", - "description": "The name of the environment.", + "description": "The name of the Schedule", "required": true, "type": "string" }, { - "name": "dtlEnvironment", + "name": "schedule", "in": "body", - "description": "An environment, which is essentially an ARM template deployment.", + "description": "A schedule.", "required": true, "schema": { - "$ref": "#/definitions/DtlEnvironment" + "$ref": "#/definitions/Schedule" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'Schedule' update operation succeeded", "schema": { - "$ref": "#/definitions/DtlEnvironment" + "$ref": "#/definitions/Schedule" } }, "201": { - "description": "Created", + "description": "Resource 'Schedule' create operation succeeded", "schema": { - "$ref": "#/definitions/DtlEnvironment" + "$ref": "#/definitions/Schedule" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Environments_CreateOrUpdate": { - "$ref": "./examples/Environments_CreateOrUpdate.json" + "VirtualMachineSchedules_CreateOrUpdate": { + "$ref": "./examples/VirtualMachineSchedules_CreateOrUpdate.json" } - }, - "x-ms-long-running-operation": true + } }, - "delete": { + "patch": { + "operationId": "VirtualMachineSchedules_Update", "tags": [ - "Environments" + "VirtualMachineSchedules" ], - "description": "Delete environment. This operation can take a while to complete.", - "operationId": "Environments_Delete", + "description": "Allows modifying tags of schedules. All other properties will be ignored.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { - "name": "userName", + "name": "virtualMachineName", "in": "path", - "description": "The name of the user profile.", + "description": "virtualmachines", "required": true, "type": "string" }, { "name": "name", "in": "path", - "description": "The name of the environment.", + "description": "The name of the Schedule", "required": true, "type": "string" }, { - "$ref": "#/parameters/api-version" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "204": { - "description": "No Content" + "name": "schedule", + "in": "body", + "description": "A schedule.", + "required": true, + "schema": { + "$ref": "#/definitions/ScheduleFragment" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Schedule" + } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Environments_Delete": { - "$ref": "./examples/Environments_Delete.json" + "VirtualMachineSchedules_Update": { + "$ref": "./examples/VirtualMachineSchedules_Update.json" } - }, - "x-ms-long-running-operation": true + } }, - "patch": { + "delete": { + "operationId": "VirtualMachineSchedules_Delete", "tags": [ - "Environments" + "VirtualMachineSchedules" ], - "description": "Allows modifying tags of environments. All other properties will be ignored.", - "operationId": "Environments_Update", + "description": "Delete schedule.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { - "name": "userName", + "name": "virtualMachineName", "in": "path", - "description": "The name of the user profile.", + "description": "virtualmachines", "required": true, "type": "string" }, { "name": "name", "in": "path", - "description": "The name of the environment.", + "description": "The name of the Schedule", "required": true, "type": "string" - }, - { - "name": "dtlEnvironment", - "in": "body", - "description": "An environment, which is essentially an ARM template deployment.", - "required": true, - "schema": { - "$ref": "#/definitions/DtlEnvironmentFragment" - } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DtlEnvironment" - } + "description": "Resource deleted successfully." + }, + "204": { + "description": "Resource does not exist." }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Environments_Update": { - "$ref": "./examples/Environments_Update.json" + "VirtualMachineSchedules_Delete": { + "$ref": "./examples/VirtualMachineSchedules_Delete.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/secrets": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules/{name}/execute": { + "post": { + "operationId": "VirtualMachineSchedules_Execute", "tags": [ - "Secrets" + "VirtualMachineSchedules" ], - "description": "List secrets in a given user profile.", - "operationId": "Secrets_List", + "description": "Execute a schedule. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { - "name": "userName", + "name": "virtualMachineName", "in": "path", - "description": "The name of the user profile.", + "description": "virtualmachines", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "The name of the Schedule", "required": true, "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded." + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualMachineSchedules_Execute": { + "$ref": "./examples/VirtualMachineSchedules_Execute.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/notificationchannels": { + "get": { + "operationId": "NotificationChannels_List", + "tags": [ + "NotificationChannels" + ], + "description": "List notification channels in a given lab.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=value)'", + "description": "Specify the $expand query. Example: 'properties($select=webHookUrl)'", + "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, "type": "integer", "format": "int32" }, @@ -4384,346 +4599,331 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/SecretList" + "$ref": "#/definitions/NotificationChannelList" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/Secret", "x-ms-examples": { - "Secrets_List": { - "$ref": "./examples/Secrets_List.json" + "NotificationChannels_List": { + "$ref": "./examples/NotificationChannels_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/secrets/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/notificationchannels/{name}": { "get": { + "operationId": "NotificationChannels_Get", "tags": [ - "Secrets" + "NotificationChannels" ], - "description": "Get secret.", - "operationId": "Secrets_Get", + "description": "Get notification channel.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" - }, - { - "name": "userName", - "in": "path", - "description": "The name of the user profile.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the secret.", + "description": "The name of the notification channel.", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=value)'", + "description": "Specify the $expand query. Example: 'properties($select=webHookUrl)'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Secret" + "$ref": "#/definitions/NotificationChannel" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Secrets_Get": { - "$ref": "./examples/Secrets_Get.json" + "NotificationChannels_Get": { + "$ref": "./examples/NotificationChannels_Get.json" } } }, "put": { + "operationId": "NotificationChannels_CreateOrUpdate", "tags": [ - "Secrets" + "NotificationChannels" ], - "description": "Create or replace an existing secret. This operation can take a while to complete.", - "operationId": "Secrets_CreateOrUpdate", + "description": "Create or replace an existing notification channel.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "userName", - "in": "path", - "description": "The name of the user profile.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the secret.", + "description": "The name of the notification channel.", "required": true, "type": "string" }, { - "name": "secret", + "name": "notificationChannel", "in": "body", - "description": "A secret.", + "description": "A notification.", "required": true, "schema": { - "$ref": "#/definitions/Secret" + "$ref": "#/definitions/NotificationChannel" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'NotificationChannel' update operation succeeded", "schema": { - "$ref": "#/definitions/Secret" + "$ref": "#/definitions/NotificationChannel" } }, "201": { - "description": "Created", + "description": "Resource 'NotificationChannel' create operation succeeded", "schema": { - "$ref": "#/definitions/Secret" + "$ref": "#/definitions/NotificationChannel" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Secrets_CreateOrUpdate": { - "$ref": "./examples/Secrets_CreateOrUpdate.json" + "NotificationChannels_CreateOrUpdate": { + "$ref": "./examples/NotificationChannels_CreateOrUpdate.json" } - }, - "x-ms-long-running-operation": true + } }, - "delete": { + "patch": { + "operationId": "NotificationChannels_Update", "tags": [ - "Secrets" + "NotificationChannels" ], - "description": "Delete secret.", - "operationId": "Secrets_Delete", + "description": "Allows modifying tags of notification channels. All other properties will be ignored.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "userName", - "in": "path", - "description": "The name of the user profile.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the secret.", + "description": "The name of the notification channel.", "required": true, "type": "string" }, { - "$ref": "#/parameters/api-version" + "name": "notificationChannel", + "in": "body", + "description": "A notification.", + "required": true, + "schema": { + "$ref": "#/definitions/NotificationChannelFragment" + } } ], "responses": { "200": { - "description": "OK" - }, - "204": { - "description": "No Content" + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/NotificationChannel" + } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Secrets_Delete": { - "$ref": "./examples/Secrets_Delete.json" + "NotificationChannels_Update": { + "$ref": "./examples/NotificationChannels_Update.json" } } }, - "patch": { + "delete": { + "operationId": "NotificationChannels_Delete", "tags": [ - "Secrets" + "NotificationChannels" ], - "description": "Allows modifying tags of secrets. All other properties will be ignored.", - "operationId": "Secrets_Update", + "description": "Delete notification channel.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "userName", + "name": "name", "in": "path", - "description": "The name of the user profile.", + "description": "The name of the notification channel.", "required": true, "type": "string" - }, - { + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationChannels_Delete": { + "$ref": "./examples/NotificationChannels_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/notificationchannels/{name}/notify": { + "post": { + "operationId": "NotificationChannels_Notify", + "tags": [ + "NotificationChannels" + ], + "description": "Send notification to provided channel.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { "name": "name", "in": "path", - "description": "The name of the secret.", + "description": "The name of the notification channel.", "required": true, "type": "string" }, { - "name": "secret", + "name": "notifyParameters", "in": "body", - "description": "A secret.", + "description": "Properties for generating a Notification.", "required": true, "schema": { - "$ref": "#/definitions/SecretFragment" + "$ref": "#/definitions/NotifyParameters" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Secret" - } + "description": "The request has succeeded." }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Secrets_Update": { - "$ref": "./examples/Secrets_Update.json" + "NotificationChannels_Notify": { + "$ref": "./examples/NotificationChannels_Notify.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/policies": { "get": { + "operationId": "Policies_List", "tags": [ - "ServiceFabrics" + "Policies" ], - "description": "List service fabrics in a given user profile.", - "operationId": "ServiceFabrics_List", + "description": "List policies in a given policy set.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" - }, - { - "name": "userName", - "in": "path", - "description": "The name of the user profile.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($expand=applicableSchedule)'", + "description": "Specify the $expand query. Example: 'properties($select=description)'", + "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, "type": "integer", "format": "int32" }, @@ -4731,539 +4931,279 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ServiceFabricList" + "$ref": "#/definitions/PolicyList" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/ServiceFabric", "x-ms-examples": { - "ServiceFabrics_List": { - "$ref": "./examples/ServiceFabrics_List.json" + "Policies_List": { + "$ref": "./examples/Policies_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/policies/{name}": { "get": { + "operationId": "Policies_Get", "tags": [ - "ServiceFabrics" + "Policies" ], - "description": "Get service fabric.", - "operationId": "ServiceFabrics_Get", + "description": "Get policy.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "userName", - "in": "path", - "description": "The name of the user profile.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the service fabric.", + "description": "The name of the policy.", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($expand=applicableSchedule)'", + "description": "Specify the $expand query. Example: 'properties($select=description)'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ServiceFabric" + "$ref": "#/definitions/Policy" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ServiceFabrics_Get": { - "$ref": "./examples/ServiceFabrics_Get.json" + "Policies_Get": { + "$ref": "./examples/Policies_Get.json" } } }, "put": { + "operationId": "Policies_CreateOrUpdate", "tags": [ - "ServiceFabrics" + "Policies" ], - "description": "Create or replace an existing service fabric. This operation can take a while to complete.", - "operationId": "ServiceFabrics_CreateOrUpdate", + "description": "Create or replace an existing policy.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" - }, - { - "name": "userName", - "in": "path", - "description": "The name of the user profile.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the service fabric.", + "description": "The name of the policy.", "required": true, "type": "string" }, { - "name": "serviceFabric", + "name": "policy", "in": "body", - "description": "A Service Fabric.", + "description": "A Policy.", "required": true, "schema": { - "$ref": "#/definitions/ServiceFabric" + "$ref": "#/definitions/Policy" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'Policy' update operation succeeded", "schema": { - "$ref": "#/definitions/ServiceFabric" + "$ref": "#/definitions/Policy" } }, "201": { - "description": "Created", + "description": "Resource 'Policy' create operation succeeded", "schema": { - "$ref": "#/definitions/ServiceFabric" - } - }, - "default": { - "description": "BadRequest", - "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "#/definitions/Policy" } - } - }, - "x-ms-examples": { - "ServiceFabrics_CreateOrUpdate": { - "$ref": "./examples/ServiceFabrics_CreateOrUpdate.json" - } - }, - "x-ms-long-running-operation": true - }, - "delete": { - "tags": [ - "ServiceFabrics" - ], - "description": "Delete service fabric. This operation can take a while to complete.", - "operationId": "ServiceFabrics_Delete", - "parameters": [ - { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" - }, - { - "name": "userName", - "in": "path", - "description": "The name of the user profile.", - "required": true, - "type": "string" - }, - { - "name": "name", - "in": "path", - "description": "The name of the service fabric.", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/api-version" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "204": { - "description": "No Content" }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ServiceFabrics_Delete": { - "$ref": "./examples/ServiceFabrics_Delete.json" + "Policies_CreateOrUpdate": { + "$ref": "./examples/Policies_CreateOrUpdate.json" } - }, - "x-ms-long-running-operation": true + } }, "patch": { + "operationId": "Policies_Update", "tags": [ - "ServiceFabrics" + "Policies" ], - "description": "Allows modifying tags of service fabrics. All other properties will be ignored.", - "operationId": "ServiceFabrics_Update", + "description": "Allows modifying tags of policies. All other properties will be ignored.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "userName", - "in": "path", - "description": "The name of the user profile.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the service fabric.", + "description": "The name of the policy.", "required": true, "type": "string" }, { - "name": "serviceFabric", + "name": "policy", "in": "body", - "description": "A Service Fabric.", + "description": "A Policy.", "required": true, "schema": { - "$ref": "#/definitions/ServiceFabricFragment" + "$ref": "#/definitions/PolicyFragment" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ServiceFabric" - } - }, - "default": { - "description": "BadRequest", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "ServiceFabrics_Update": { - "$ref": "./examples/ServiceFabrics_Update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}/listApplicableSchedules": { - "post": { - "tags": [ - "ServiceFabrics" - ], - "description": "Lists the applicable start/stop schedules, if any.", - "operationId": "ServiceFabrics_ListApplicableSchedules", - "parameters": [ - { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" - }, - { - "name": "userName", - "in": "path", - "description": "The name of the user profile.", - "required": true, - "type": "string" - }, - { - "name": "name", - "in": "path", - "description": "The name of the service fabric.", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/api-version" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ApplicableSchedule" + "$ref": "#/definitions/Policy" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ServiceFabrics_ListApplicableSchedules": { - "$ref": "./examples/ServiceFabrics_ListApplicableSchedules.json" + "Policies_Update": { + "$ref": "./examples/Policies_Update.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}/start": { - "post": { - "tags": [ - "ServiceFabrics" - ], - "description": "Start a service fabric. This operation can take a while to complete.", - "operationId": "ServiceFabrics_Start", - "parameters": [ - { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" - }, - { - "name": "userName", - "in": "path", - "description": "The name of the user profile.", - "required": true, - "type": "string" - }, - { - "name": "name", - "in": "path", - "description": "The name of the service fabric.", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/api-version" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "default": { - "description": "BadRequest", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "ServiceFabrics_Start": { - "$ref": "./examples/ServiceFabrics_Start.json" - } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}/stop": { - "post": { + }, + "delete": { + "operationId": "Policies_Delete", "tags": [ - "ServiceFabrics" + "Policies" ], - "description": "Stop a service fabric This operation can take a while to complete.", - "operationId": "ServiceFabrics_Stop", + "description": "Delete policy.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "userName", - "in": "path", - "description": "The name of the user profile.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the service fabric.", + "description": "The name of the policy.", "required": true, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK" + "description": "Resource deleted successfully." }, - "202": { - "description": "Accepted" + "204": { + "description": "Resource does not exist." }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ServiceFabrics_Stop": { - "$ref": "./examples/ServiceFabrics_Stop.json" + "Policies_Delete": { + "$ref": "./examples/Policies_Delete.json" } - }, - "x-ms-long-running-operation": true + } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules": { "get": { + "operationId": "GlobalSchedules_ListByResourceGroup", "tags": [ - "ServiceFabricSchedules" + "Schedules" ], - "description": "List schedules in a given service fabric.", - "operationId": "ServiceFabricSchedules_List", + "description": "List schedules in a resource group.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "userName", - "in": "path", - "description": "The name of the user profile.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "serviceFabricName", - "in": "path", - "description": "The name of the service fabric.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=status)'", + "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, "type": "integer", "format": "int32" }, @@ -5271,292 +5211,165 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/ScheduleList" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/Schedule", "x-ms-examples": { - "ServiceFabricSchedules_List": { - "$ref": "./examples/ServiceFabricSchedules_List.json" + "GlobalSchedules_ListByResourceGroup": { + "$ref": "./examples/GlobalSchedules_ListByResourceGroup.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules/{name}": { "get": { + "operationId": "GlobalSchedules_Get", "tags": [ - "ServiceFabricSchedules" + "Schedules" ], "description": "Get schedule.", - "operationId": "ServiceFabricSchedules_Get", "parameters": [ { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "userName", - "in": "path", - "description": "The name of the user profile.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "serviceFabricName", - "in": "path", - "description": "The name of the service fabric.", - "required": true, - "type": "string" - }, - { - "name": "name", - "in": "path", - "description": "The name of the schedule.", - "required": true, - "type": "string" - }, - { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=status)'", - "type": "string" - }, - { - "$ref": "#/parameters/api-version" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Schedule" - } - }, - "default": { - "description": "BadRequest", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "ServiceFabricSchedules_Get": { - "$ref": "./examples/ServiceFabricSchedules_Get.json" - } - } - }, - "put": { - "tags": [ - "ServiceFabricSchedules" - ], - "description": "Create or replace an existing schedule.", - "operationId": "ServiceFabricSchedules_CreateOrUpdate", - "parameters": [ - { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" - }, - { - "name": "userName", - "in": "path", - "description": "The name of the user profile.", - "required": true, - "type": "string" - }, - { - "name": "serviceFabricName", - "in": "path", - "description": "The name of the service fabric.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the schedule.", + "description": "The name of the Schedule", "required": true, "type": "string" }, { - "name": "schedule", - "in": "body", - "description": "A schedule.", - "required": true, - "schema": { - "$ref": "#/definitions/Schedule" - } - }, - { - "$ref": "#/parameters/api-version" + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=status)'", + "required": false, + "type": "string" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Schedule" - } - }, - "201": { - "description": "Created", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/Schedule" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ServiceFabricSchedules_CreateOrUpdate": { - "$ref": "./examples/ServiceFabricSchedules_CreateOrUpdate.json" + "GlobalSchedules_Get": { + "$ref": "./examples/GlobalSchedules_Get.json" } } }, - "delete": { + "put": { + "operationId": "GlobalSchedules_CreateOrUpdate", "tags": [ - "ServiceFabricSchedules" + "Schedules" ], - "description": "Delete schedule.", - "operationId": "ServiceFabricSchedules_Delete", + "description": "Create or replace an existing schedule.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" - }, - { - "name": "userName", - "in": "path", - "description": "The name of the user profile.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "serviceFabricName", - "in": "path", - "description": "The name of the service fabric.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the schedule.", + "description": "The name of the Schedule", "required": true, "type": "string" }, { - "$ref": "#/parameters/api-version" + "name": "schedule", + "in": "body", + "description": "A schedule.", + "required": true, + "schema": { + "$ref": "#/definitions/Schedule" + } } ], "responses": { "200": { - "description": "OK" + "description": "Resource 'Schedule' update operation succeeded", + "schema": { + "$ref": "#/definitions/Schedule" + } }, - "204": { - "description": "No Content" + "201": { + "description": "Resource 'Schedule' create operation succeeded", + "schema": { + "$ref": "#/definitions/Schedule" + } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ServiceFabricSchedules_Delete": { - "$ref": "./examples/ServiceFabricSchedules_Delete.json" + "GlobalSchedules_CreateOrUpdate": { + "$ref": "./examples/GlobalSchedules_CreateOrUpdate.json" } } }, "patch": { + "operationId": "GlobalSchedules_Update", "tags": [ - "ServiceFabricSchedules" + "Schedules" ], "description": "Allows modifying tags of schedules. All other properties will be ignored.", - "operationId": "ServiceFabricSchedules_Update", "parameters": [ { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "userName", - "in": "path", - "description": "The name of the user profile.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "serviceFabricName", - "in": "path", - "description": "The name of the service fabric.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the schedule.", + "description": "The name of the Schedule", "required": true, "type": "string" }, @@ -5568,1196 +5381,1165 @@ "schema": { "$ref": "#/definitions/ScheduleFragment" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/Schedule" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ServiceFabricSchedules_Update": { - "$ref": "./examples/ServiceFabricSchedules_Update.json" + "GlobalSchedules_Update": { + "$ref": "./examples/GlobalSchedules_Update.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules/{name}/execute": { - "post": { + }, + "delete": { + "operationId": "GlobalSchedules_Delete", "tags": [ - "ServiceFabricSchedules" + "Schedules" ], - "description": "Execute a schedule. This operation can take a while to complete.", - "operationId": "ServiceFabricSchedules_Execute", + "description": "Delete schedule.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "userName", - "in": "path", - "description": "The name of the user profile.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "serviceFabricName", - "in": "path", - "description": "The name of the service fabric.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the schedule.", + "description": "The name of the Schedule", "required": true, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK" + "description": "Resource deleted successfully." }, - "202": { - "description": "Accepted" + "204": { + "description": "Resource does not exist." }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ServiceFabricSchedules_Execute": { - "$ref": "./examples/ServiceFabricSchedules_Execute.json" + "GlobalSchedules_Delete": { + "$ref": "./examples/GlobalSchedules_Delete.json" } - }, - "x-ms-long-running-operation": true + } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules/{name}/execute": { + "post": { + "operationId": "GlobalSchedules_Execute", "tags": [ - "VirtualMachines" + "Schedules" ], - "description": "List virtual machines in a given lab.", - "operationId": "VirtualMachines_List", + "description": "Execute a schedule. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" - }, - { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)'", - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "$top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "type": "integer", - "format": "int32" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "$orderby", - "in": "query", - "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "name": "name", + "in": "path", + "description": "The name of the Schedule", + "required": true, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/LabVirtualMachineList" + "description": "The request has succeeded." + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/LabVirtualMachine", "x-ms-examples": { - "VirtualMachines_List": { - "$ref": "./examples/VirtualMachines_List.json" + "GlobalSchedules_Execute": { + "$ref": "./examples/GlobalSchedules_Execute.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules/{name}/retarget": { + "post": { + "operationId": "GlobalSchedules_Retarget", "tags": [ - "VirtualMachines" + "Schedules" ], - "description": "Get virtual machine.", - "operationId": "VirtualMachines_Get", + "description": "Updates a schedule's target resource Id. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the Schedule", "required": true, "type": "string" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)'", - "type": "string" - }, - { - "$ref": "#/parameters/api-version" + "name": "retargetScheduleProperties", + "in": "body", + "description": "Properties for retargeting a virtual machine schedule.", + "required": true, + "schema": { + "$ref": "#/definitions/RetargetScheduleProperties" + } } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/LabVirtualMachine" + "description": "The request has succeeded." + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "VirtualMachines_Get": { - "$ref": "./examples/VirtualMachines_Get.json" + "GlobalSchedules_Retarget": { + "$ref": "./examples/GlobalSchedules_Retarget.json" } - } - }, - "put": { + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/secrets": { + "get": { + "operationId": "Secrets_List", "tags": [ - "VirtualMachines" + "Secrets" ], - "description": "Create or replace an existing virtual machine. This operation can take a while to complete.", - "operationId": "VirtualMachines_CreateOrUpdate", + "description": "List secrets in a given user profile.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", - "in": "path", - "description": "The name of the virtual machine.", - "required": true, + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=value)'", + "required": false, + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, "type": "string" }, { - "name": "labVirtualMachine", - "in": "body", - "description": "A virtual machine.", - "required": true, - "schema": { - "$ref": "#/definitions/LabVirtualMachine" - } + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, + "type": "integer", + "format": "int32" }, { - "$ref": "#/parameters/api-version" + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, + "type": "string" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/LabVirtualMachine" - } - }, - "201": { - "description": "Created", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/LabVirtualMachine" + "$ref": "#/definitions/SecretList" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "VirtualMachines_CreateOrUpdate": { - "$ref": "./examples/VirtualMachines_CreateOrUpdate.json" + "Secrets_List": { + "$ref": "./examples/Secrets_List.json" } }, - "x-ms-long-running-operation": true - }, - "delete": { + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/secrets/{name}": { + "get": { + "operationId": "Secrets_Get", "tags": [ - "VirtualMachines" + "Secrets" ], - "description": "Delete virtual machine. This operation can take a while to complete.", - "operationId": "VirtualMachines_Delete", + "description": "Get secret.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the secret.", "required": true, "type": "string" }, { - "$ref": "#/parameters/api-version" + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=value)'", + "required": false, + "type": "string" } ], "responses": { "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "204": { - "description": "No Content" + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Secret" + } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "VirtualMachines_Delete": { - "$ref": "./examples/VirtualMachines_Delete.json" + "Secrets_Get": { + "$ref": "./examples/Secrets_Get.json" } - }, - "x-ms-long-running-operation": true + } }, - "patch": { + "put": { + "operationId": "Secrets_CreateOrUpdate", "tags": [ - "VirtualMachines" + "Secrets" ], - "description": "Allows modifying tags of virtual machines. All other properties will be ignored.", - "operationId": "VirtualMachines_Update", + "description": "Create or replace an existing secret. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the secret.", "required": true, "type": "string" }, { - "name": "labVirtualMachine", + "name": "secret", "in": "body", - "description": "A virtual machine.", + "description": "A secret.", "required": true, "schema": { - "$ref": "#/definitions/LabVirtualMachineFragment" + "$ref": "#/definitions/Secret" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'Secret' update operation succeeded", "schema": { - "$ref": "#/definitions/LabVirtualMachine" + "$ref": "#/definitions/Secret" + } + }, + "201": { + "description": "Resource 'Secret' create operation succeeded", + "schema": { + "$ref": "#/definitions/Secret" + }, + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "VirtualMachines_Update": { - "$ref": "./examples/VirtualMachines_Update.json" + "Secrets_CreateOrUpdate": { + "$ref": "./examples/Secrets_CreateOrUpdate.json" } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/addDataDisk": { - "post": { + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Secrets_Update", "tags": [ - "VirtualMachines" + "Secrets" ], - "description": "Attach a new or existing data disk to virtual machine. This operation can take a while to complete.", - "operationId": "VirtualMachines_AddDataDisk", + "description": "Allows modifying tags of secrets. All other properties will be ignored.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the secret.", "required": true, "type": "string" }, { - "name": "dataDiskProperties", + "name": "secret", "in": "body", - "description": "Request body for adding a new or existing data disk to a virtual machine.", + "description": "A secret.", "required": true, "schema": { - "$ref": "#/definitions/DataDiskProperties" + "$ref": "#/definitions/SecretFragment" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Secret" + } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "VirtualMachines_AddDataDisk": { - "$ref": "./examples/VirtualMachines_AddDataDisk.json" + "Secrets_Update": { + "$ref": "./examples/Secrets_Update.json" } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/applyArtifacts": { - "post": { + } + }, + "delete": { + "operationId": "Secrets_Delete", "tags": [ - "VirtualMachines" + "Secrets" ], - "description": "Apply artifacts to virtual machine. This operation can take a while to complete.", - "operationId": "VirtualMachines_ApplyArtifacts", + "description": "Delete secret.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the secret.", "required": true, "type": "string" - }, - { - "name": "applyArtifactsRequest", - "in": "body", - "description": "Request body for applying artifacts to a virtual machine.", - "required": true, - "schema": { - "$ref": "#/definitions/ApplyArtifactsRequest" - } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK" + "description": "Resource deleted successfully." }, - "202": { - "description": "Accepted" + "204": { + "description": "Resource does not exist." }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "VirtualMachines_ApplyArtifacts": { - "$ref": "./examples/VirtualMachines_ApplyArtifacts.json" + "Secrets_Delete": { + "$ref": "./examples/Secrets_Delete.json" } - }, - "x-ms-long-running-operation": true + } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/claim": { - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/servicefabrics": { + "get": { + "operationId": "ServiceFabrics_List", "tags": [ - "VirtualMachines" + "ServiceFabrics" ], - "description": "Take ownership of an existing virtual machine This operation can take a while to complete.", - "operationId": "VirtualMachines_Claim", + "description": "List service fabrics in a given user profile.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($expand=applicableSchedule)'", + "required": false, "type": "string" }, { - "name": "name", - "in": "path", - "description": "The name of the virtual machine.", - "required": true, + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, "type": "string" }, { - "$ref": "#/parameters/api-version" + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, + "type": "string" } ], "responses": { "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ServiceFabricList" + } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "VirtualMachines_Claim": { - "$ref": "./examples/VirtualMachines_Claim.json" + "ServiceFabrics_List": { + "$ref": "./examples/ServiceFabrics_List.json" } }, - "x-ms-long-running-operation": true + "x-ms-pageable": { + "nextLinkName": "nextLink" + } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/detachDataDisk": { - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/servicefabrics/{name}": { + "get": { + "operationId": "ServiceFabrics_Get", "tags": [ - "VirtualMachines" + "ServiceFabrics" ], - "description": "Detach the specified disk from the virtual machine. This operation can take a while to complete.", - "operationId": "VirtualMachines_DetachDataDisk", + "description": "Get service fabric.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the service fabric.", "required": true, "type": "string" }, { - "name": "detachDataDiskProperties", - "in": "body", - "description": "Request body for detaching data disk from a virtual machine.", - "required": true, - "schema": { - "$ref": "#/definitions/DetachDataDiskProperties" - } - }, - { - "$ref": "#/parameters/api-version" + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($expand=applicableSchedule)'", + "required": false, + "type": "string" } ], "responses": { "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ServiceFabric" + } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "VirtualMachines_DetachDataDisk": { - "$ref": "./examples/VirtualMachines_DetachDataDisk.json" + "ServiceFabrics_Get": { + "$ref": "./examples/ServiceFabrics_Get.json" } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/getRdpFileContents": { - "post": { + } + }, + "put": { + "operationId": "ServiceFabrics_CreateOrUpdate", "tags": [ - "VirtualMachines" + "ServiceFabrics" ], - "description": "Gets a string that represents the contents of the RDP file for the virtual machine", - "operationId": "VirtualMachines_GetRdpFileContents", + "description": "Create or replace an existing service fabric. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the service fabric.", "required": true, "type": "string" }, { - "$ref": "#/parameters/api-version" + "name": "serviceFabric", + "in": "body", + "description": "A Service Fabric.", + "required": true, + "schema": { + "$ref": "#/definitions/ServiceFabric" + } } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'ServiceFabric' update operation succeeded", "schema": { - "$ref": "#/definitions/RdpConnection" + "$ref": "#/definitions/ServiceFabric" + } + }, + "201": { + "description": "Resource 'ServiceFabric' create operation succeeded", + "schema": { + "$ref": "#/definitions/ServiceFabric" + }, + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "VirtualMachines_GetRdpFileContents": { - "$ref": "./examples/VirtualMachines_GetRdpFileContents.json" + "ServiceFabrics_CreateOrUpdate": { + "$ref": "./examples/ServiceFabrics_CreateOrUpdate.json" } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/listApplicableSchedules": { - "post": { + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "ServiceFabrics_Update", "tags": [ - "VirtualMachines" + "ServiceFabrics" ], - "description": "Lists the applicable start/stop schedules, if any.", - "operationId": "VirtualMachines_ListApplicableSchedules", + "description": "Allows modifying tags of service fabrics. All other properties will be ignored.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the service fabric.", "required": true, "type": "string" }, { - "$ref": "#/parameters/api-version" + "name": "serviceFabric", + "in": "body", + "description": "A Service Fabric.", + "required": true, + "schema": { + "$ref": "#/definitions/ServiceFabricFragment" + } } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ApplicableSchedule" + "$ref": "#/definitions/ServiceFabric" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "VirtualMachines_ListApplicableSchedules": { - "$ref": "./examples/VirtualMachines_ListApplicableSchedules.json" + "ServiceFabrics_Update": { + "$ref": "./examples/ServiceFabrics_Update.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/redeploy": { - "post": { + }, + "delete": { + "operationId": "ServiceFabrics_Delete", "tags": [ - "VirtualMachines" + "ServiceFabrics" ], - "description": "Redeploy a virtual machine This operation can take a while to complete.", - "operationId": "VirtualMachines_Redeploy", + "description": "Delete service fabric. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the service fabric.", "required": true, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK" + "description": "Resource deleted successfully." }, "202": { - "description": "Accepted" + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "VirtualMachines_Redeploy": { - "$ref": "./examples/VirtualMachines_Redeploy.json" + "ServiceFabrics_Delete": { + "$ref": "./examples/ServiceFabrics_Delete.json" } }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/resize": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/servicefabrics/{name}/listApplicableSchedules": { "post": { + "operationId": "ServiceFabrics_ListApplicableSchedules", "tags": [ - "VirtualMachines" + "ServiceFabrics" ], - "description": "Resize Virtual Machine. This operation can take a while to complete.", - "operationId": "VirtualMachines_Resize", + "description": "Lists the applicable start/stop schedules, if any.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the service fabric.", "required": true, "type": "string" - }, - { - "name": "resizeLabVirtualMachineProperties", - "in": "body", - "description": "Request body for resizing a virtual machine.", - "required": true, - "schema": { - "$ref": "#/definitions/ResizeLabVirtualMachineProperties" - } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApplicableSchedule" + } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "VirtualMachines_Resize": { - "$ref": "./examples/VirtualMachines_Resize.json" + "ServiceFabrics_ListApplicableSchedules": { + "$ref": "./examples/ServiceFabrics_ListApplicableSchedules.json" } - }, - "x-ms-long-running-operation": true + } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/restart": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/servicefabrics/{name}/start": { "post": { + "operationId": "ServiceFabrics_Start", "tags": [ - "VirtualMachines" + "ServiceFabrics" ], - "description": "Restart a virtual machine. This operation can take a while to complete.", - "operationId": "VirtualMachines_Restart", + "description": "Start a service fabric. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the service fabric.", "required": true, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK" + "description": "The request has succeeded." }, "202": { - "description": "Accepted" + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "VirtualMachines_Restart": { - "$ref": "./examples/VirtualMachines_Restart.json" + "ServiceFabrics_Start": { + "$ref": "./examples/ServiceFabrics_Start.json" } }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/start": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/servicefabrics/{name}/stop": { "post": { + "operationId": "ServiceFabrics_Stop", "tags": [ - "VirtualMachines" + "ServiceFabrics" ], - "description": "Start a virtual machine. This operation can take a while to complete.", - "operationId": "VirtualMachines_Start", + "description": "Stop a service fabric This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the service fabric.", "required": true, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK" + "description": "The request has succeeded." }, "202": { - "description": "Accepted" + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "VirtualMachines_Start": { - "$ref": "./examples/VirtualMachines_Start.json" + "ServiceFabrics_Stop": { + "$ref": "./examples/ServiceFabrics_Stop.json" } }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/stop": { - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/servicerunners/{name}": { + "get": { + "operationId": "ServiceRunners_Get", "tags": [ - "VirtualMachines" + "ServiceRunners" ], - "description": "Stop a virtual machine This operation can take a while to complete.", - "operationId": "VirtualMachines_Stop", + "description": "Get service runner.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the service runner.", "required": true, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ServiceRunner" + } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "VirtualMachines_Stop": { - "$ref": "./examples/VirtualMachines_Stop.json" + "ServiceRunners_Get": { + "$ref": "./examples/ServiceRunners_Get.json" } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/transferDisks": { - "post": { + } + }, + "put": { + "operationId": "ServiceRunners_CreateOrUpdate", "tags": [ - "VirtualMachines" + "ServiceRunners" ], - "description": "Transfers all data disks attached to the virtual machine to be owned by the current user. This operation can take a while to complete.", - "operationId": "VirtualMachines_TransferDisks", + "description": "Create or replace an existing service runner.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the service runner.", "required": true, "type": "string" }, { - "$ref": "#/parameters/api-version" + "name": "serviceRunner", + "in": "body", + "description": "A container for a managed identity to execute DevTest lab services.", + "required": true, + "schema": { + "$ref": "#/definitions/ServiceRunner" + } } ], "responses": { "200": { - "description": "OK" + "description": "Resource 'ServiceRunner' update operation succeeded", + "schema": { + "$ref": "#/definitions/ServiceRunner" + } }, - "202": { - "description": "Accepted" + "201": { + "description": "Resource 'ServiceRunner' create operation succeeded", + "schema": { + "$ref": "#/definitions/ServiceRunner" + } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "VirtualMachines_TransferDisks": { - "$ref": "./examples/VirtualMachines_TransferDisks.json" + "ServiceRunners_CreateOrUpdate": { + "$ref": "./examples/ServiceRunners_CreateOrUpdate.json" } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/unClaim": { - "post": { + } + }, + "delete": { + "operationId": "ServiceRunners_Delete", "tags": [ - "VirtualMachines" + "ServiceRunners" ], - "description": "Release ownership of an existing virtual machine This operation can take a while to complete.", - "operationId": "VirtualMachines_UnClaim", + "description": "Delete service runner.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the service runner.", "required": true, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK" + "description": "Resource deleted successfully." }, - "202": { - "description": "Accepted" + "204": { + "description": "Resource does not exist." }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "VirtualMachines_UnClaim": { - "$ref": "./examples/VirtualMachines_UnClaim.json" + "ServiceRunners_Delete": { + "$ref": "./examples/ServiceRunners_Delete.json" } - }, - "x-ms-long-running-operation": true + } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/users": { "get": { + "operationId": "Users_List", "tags": [ - "VirtualMachineSchedules" + "Users" ], - "description": "List schedules in a given virtual machine.", - "operationId": "VirtualMachineSchedules_List", + "description": "List user profiles in a given lab.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "virtualMachineName", - "in": "path", - "description": "The name of the virtual machine.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=status)'", + "description": "Specify the $expand query. Example: 'properties($select=identity)'", + "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, "type": "integer", "format": "int32" }, @@ -6765,399 +6547,312 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ScheduleList" + "$ref": "#/definitions/UserList" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/Schedule", "x-ms-examples": { - "VirtualMachineSchedules_List": { - "$ref": "./examples/VirtualMachineSchedules_List.json" + "Users_List": { + "$ref": "./examples/Users_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/users/{name}": { "get": { + "operationId": "Users_Get", "tags": [ - "VirtualMachineSchedules" + "Users" ], - "description": "Get schedule.", - "operationId": "VirtualMachineSchedules_Get", + "description": "Get user profile.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" - }, - { - "name": "virtualMachineName", - "in": "path", - "description": "The name of the virtual machine.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the schedule.", + "description": "The name of the user profile.", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=status)'", + "description": "Specify the $expand query. Example: 'properties($select=identity)'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/User" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "VirtualMachineSchedules_Get": { - "$ref": "./examples/VirtualMachineSchedules_Get.json" + "Users_Get": { + "$ref": "./examples/Users_Get.json" } } }, "put": { + "operationId": "Users_CreateOrUpdate", "tags": [ - "VirtualMachineSchedules" + "Users" ], - "description": "Create or replace an existing schedule.", - "operationId": "VirtualMachineSchedules_CreateOrUpdate", + "description": "Create or replace an existing user profile. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "virtualMachineName", - "in": "path", - "description": "The name of the virtual machine.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the schedule.", + "description": "The name of the user profile.", "required": true, "type": "string" }, { - "name": "schedule", + "name": "user", "in": "body", - "description": "A schedule.", + "description": "Profile of a lab user.", "required": true, "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/User" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'User' update operation succeeded", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/User" } }, "201": { - "description": "Created", + "description": "Resource 'User' create operation succeeded", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/User" + }, + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "VirtualMachineSchedules_CreateOrUpdate": { - "$ref": "./examples/VirtualMachineSchedules_CreateOrUpdate.json" - } - } - }, - "delete": { - "tags": [ - "VirtualMachineSchedules" - ], - "description": "Delete schedule.", - "operationId": "VirtualMachineSchedules_Delete", - "parameters": [ - { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" - }, - { - "name": "virtualMachineName", - "in": "path", - "description": "The name of the virtual machine.", - "required": true, - "type": "string" - }, - { - "name": "name", - "in": "path", - "description": "The name of the schedule.", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/api-version" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "No Content" - }, - "default": { - "description": "BadRequest", - "schema": { - "$ref": "#/definitions/CloudError" - } + "Users_CreateOrUpdate": { + "$ref": "./examples/Users_CreateOrUpdate.json" } }, - "x-ms-examples": { - "VirtualMachineSchedules_Delete": { - "$ref": "./examples/VirtualMachineSchedules_Delete.json" - } - } + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true }, "patch": { + "operationId": "Users_Update", "tags": [ - "VirtualMachineSchedules" + "Users" ], - "description": "Allows modifying tags of schedules. All other properties will be ignored.", - "operationId": "VirtualMachineSchedules_Update", + "description": "Allows modifying tags of user profiles. All other properties will be ignored.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" - }, - { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "virtualMachineName", - "in": "path", - "description": "The name of the virtual machine.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the schedule.", + "description": "The name of the user profile.", "required": true, "type": "string" }, { - "name": "schedule", + "name": "user", "in": "body", - "description": "A schedule.", + "description": "Profile of a lab user.", "required": true, "schema": { - "$ref": "#/definitions/ScheduleFragment" + "$ref": "#/definitions/UserFragment" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/User" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "VirtualMachineSchedules_Update": { - "$ref": "./examples/VirtualMachineSchedules_Update.json" + "Users_Update": { + "$ref": "./examples/Users_Update.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules/{name}/execute": { - "post": { + }, + "delete": { + "operationId": "Users_Delete", "tags": [ - "VirtualMachineSchedules" + "Users" ], - "description": "Execute a schedule. This operation can take a while to complete.", - "operationId": "VirtualMachineSchedules_Execute", + "description": "Delete user profile. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "virtualMachineName", - "in": "path", - "description": "The name of the virtual machine.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the schedule.", + "description": "The name of the user profile.", "required": true, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK" + "description": "Resource deleted successfully." }, "202": { - "description": "Accepted" + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "VirtualMachineSchedules_Execute": { - "$ref": "./examples/VirtualMachineSchedules_Execute.json" + "Users_Delete": { + "$ref": "./examples/Users_Delete.json" } }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualnetworks": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines": { "get": { + "operationId": "VirtualMachines_List", "tags": [ - "VirtualNetworks" + "LabVirtualMachines" ], - "description": "List virtual networks in a given lab.", - "operationId": "VirtualNetworks_List", + "description": "List virtual machines in a given lab.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($expand=externalSubnets)'", + "description": "Specify the $expand query. Example: 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)'", + "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, "type": "integer", "format": "int32" }, @@ -7165,840 +6860,1111 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/VirtualNetworkList" + "$ref": "#/definitions/LabVirtualMachineList" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/VirtualNetwork", "x-ms-examples": { - "VirtualNetworks_List": { - "$ref": "./examples/VirtualNetworks_List.json" + "VirtualMachines_List": { + "$ref": "./examples/VirtualMachines_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualnetworks/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines/{name}": { "get": { + "operationId": "VirtualMachines_Get", "tags": [ - "VirtualNetworks" + "LabVirtualMachines" ], - "description": "Get virtual network.", - "operationId": "VirtualNetworks_Get", + "description": "Get virtual machine.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the virtual network.", + "description": "The name of the virtual machine.", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($expand=externalSubnets)'", + "description": "Specify the $expand query. Example: 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/VirtualNetwork" + "$ref": "#/definitions/LabVirtualMachine" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "VirtualNetworks_Get": { - "$ref": "./examples/VirtualNetworks_Get.json" + "VirtualMachines_Get": { + "$ref": "./examples/VirtualMachines_Get.json" } } }, "put": { + "operationId": "VirtualMachines_CreateOrUpdate", "tags": [ - "VirtualNetworks" + "LabVirtualMachines" ], - "description": "Create or replace an existing virtual network. This operation can take a while to complete.", - "operationId": "VirtualNetworks_CreateOrUpdate", + "description": "Create or replace an existing virtual machine. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the virtual network.", + "description": "The name of the virtual machine.", "required": true, "type": "string" }, { - "name": "virtualNetwork", + "name": "labVirtualMachine", "in": "body", - "description": "A virtual network.", + "description": "A virtual machine.", "required": true, "schema": { - "$ref": "#/definitions/VirtualNetwork" + "$ref": "#/definitions/LabVirtualMachine" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'LabVirtualMachine' update operation succeeded", "schema": { - "$ref": "#/definitions/VirtualNetwork" + "$ref": "#/definitions/LabVirtualMachine" } }, "201": { - "description": "Created", + "description": "Resource 'LabVirtualMachine' create operation succeeded", "schema": { - "$ref": "#/definitions/VirtualNetwork" + "$ref": "#/definitions/LabVirtualMachine" + }, + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "VirtualNetworks_CreateOrUpdate": { - "$ref": "./examples/VirtualNetworks_CreateOrUpdate.json" + "VirtualMachines_CreateOrUpdate": { + "$ref": "./examples/VirtualMachines_CreateOrUpdate.json" } }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-long-running-operation": true }, - "delete": { + "patch": { + "operationId": "VirtualMachines_Update", "tags": [ - "VirtualNetworks" + "LabVirtualMachines" ], - "description": "Delete virtual network. This operation can take a while to complete.", - "operationId": "VirtualNetworks_Delete", + "description": "Allows modifying tags of virtual machines. All other properties will be ignored.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", "in": "path", - "description": "The name of the lab.", + "description": "The name of the virtual machine.", "required": true, "type": "string" }, + { + "name": "labVirtualMachine", + "in": "body", + "description": "A virtual machine.", + "required": true, + "schema": { + "$ref": "#/definitions/LabVirtualMachineFragment" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/LabVirtualMachine" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualMachines_Update": { + "$ref": "./examples/VirtualMachines_Update.json" + } + } + }, + "delete": { + "operationId": "VirtualMachines_Delete", + "tags": [ + "LabVirtualMachines" + ], + "description": "Delete virtual machine. This operation can take a while to complete.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, { "name": "name", "in": "path", - "description": "The name of the virtual network.", + "description": "The name of the virtual machine.", "required": true, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK" + "description": "Resource deleted successfully." }, "202": { - "description": "Accepted" + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } }, "204": { - "description": "No Content" + "description": "Resource does not exist." }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "VirtualNetworks_Delete": { - "$ref": "./examples/VirtualNetworks_Delete.json" + "VirtualMachines_Delete": { + "$ref": "./examples/VirtualMachines_Delete.json" } }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-long-running-operation": true - }, - "patch": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines/{name}/addDataDisk": { + "post": { + "operationId": "VirtualMachines_AddDataDisk", "tags": [ - "VirtualNetworks" + "LabVirtualMachines" ], - "description": "Allows modifying tags of virtual networks. All other properties will be ignored.", - "operationId": "VirtualNetworks_Update", + "description": "Attach a new or existing data disk to virtual machine. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the virtual network.", + "description": "The name of the virtual machine.", "required": true, "type": "string" }, { - "name": "virtualNetwork", + "name": "dataDiskProperties", "in": "body", - "description": "A virtual network.", + "description": "Request body for adding a new or existing data disk to a virtual machine.", "required": true, "schema": { - "$ref": "#/definitions/VirtualNetworkFragment" + "$ref": "#/definitions/DataDiskProperties" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/VirtualNetwork" + "description": "The request has succeeded." + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "VirtualNetworks_Update": { - "$ref": "./examples/VirtualNetworks_Update.json" + "VirtualMachines_AddDataDisk": { + "$ref": "./examples/VirtualMachines_AddDataDisk.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines/{name}/applyArtifacts": { + "post": { + "operationId": "VirtualMachines_ApplyArtifacts", "tags": [ - "Labs" + "LabVirtualMachines" ], - "description": "Get lab.", - "operationId": "Labs_Get", + "description": "Apply artifacts to virtual machine. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the lab.", + "description": "The name of the virtual machine.", "required": true, "type": "string" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'", - "type": "string" + "name": "applyArtifactsRequest", + "in": "body", + "description": "Request body for applying artifacts to a virtual machine.", + "required": true, + "schema": { + "$ref": "#/definitions/ApplyArtifactsRequest" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded." + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualMachines_ApplyArtifacts": { + "$ref": "./examples/VirtualMachines_ApplyArtifacts.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines/{name}/claim": { + "post": { + "operationId": "VirtualMachines_Claim", + "tags": [ + "LabVirtualMachines" + ], + "description": "Take ownership of an existing virtual machine This operation can take a while to complete.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/api-version" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Lab" + "description": "The request has succeeded." + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Labs_Get": { - "$ref": "./examples/Labs_Get.json" + "VirtualMachines_Claim": { + "$ref": "./examples/VirtualMachines_Claim.json" } - } - }, - "put": { + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines/{name}/detachDataDisk": { + "post": { + "operationId": "VirtualMachines_DetachDataDisk", "tags": [ - "Labs" + "LabVirtualMachines" ], - "description": "Create or replace an existing lab. This operation can take a while to complete.", - "operationId": "Labs_CreateOrUpdate", + "description": "Detach the specified disk from the virtual machine. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the lab.", + "description": "The name of the virtual machine.", "required": true, "type": "string" }, { - "name": "lab", + "name": "detachDataDiskProperties", "in": "body", - "description": "A lab.", + "description": "Request body for detaching data disk from a virtual machine.", "required": true, "schema": { - "$ref": "#/definitions/Lab" + "$ref": "#/definitions/DetachDataDiskProperties" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Lab" - } + "description": "The request has succeeded." }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Lab" + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Labs_CreateOrUpdate": { - "$ref": "./examples/Labs_CreateOrUpdate.json" + "VirtualMachines_DetachDataDisk": { + "$ref": "./examples/VirtualMachines_DetachDataDisk.json" } }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-long-running-operation": true - }, - "delete": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines/{name}/getRdpFileContents": { + "post": { + "operationId": "VirtualMachines_GetRdpFileContents", "tags": [ - "Labs" + "LabVirtualMachines" ], - "description": "Delete lab. This operation can take a while to complete.", - "operationId": "Labs_Delete", + "description": "Gets a string that represents the contents of the RDP file for the virtual machine", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the lab.", + "description": "The name of the virtual machine.", "required": true, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "204": { - "description": "No Content" + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/RdpConnection" + } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Labs_Delete": { - "$ref": "./examples/Labs_Delete.json" + "VirtualMachines_GetRdpFileContents": { + "$ref": "./examples/VirtualMachines_GetRdpFileContents.json" } - }, - "x-ms-long-running-operation": true - }, - "patch": { + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines/{name}/listApplicableSchedules": { + "post": { + "operationId": "VirtualMachines_ListApplicableSchedules", "tags": [ - "Labs" + "LabVirtualMachines" ], - "description": "Allows modifying tags of labs. All other properties will be ignored.", - "operationId": "Labs_Update", + "description": "Lists the applicable start/stop schedules, if any.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the lab.", + "description": "The name of the virtual machine.", "required": true, "type": "string" - }, - { - "name": "lab", - "in": "body", - "description": "A lab.", - "required": true, - "schema": { - "$ref": "#/definitions/LabFragment" - } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Lab" + "$ref": "#/definitions/ApplicableSchedule" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Labs_Update": { - "$ref": "./examples/Labs_Update.json" + "VirtualMachines_ListApplicableSchedules": { + "$ref": "./examples/VirtualMachines_ListApplicableSchedules.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/claimAnyVm": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines/{name}/redeploy": { "post": { + "operationId": "VirtualMachines_Redeploy", "tags": [ - "Labs" + "LabVirtualMachines" ], - "description": "Claim a random claimable virtual machine in the lab. This operation can take a while to complete.", - "operationId": "Labs_ClaimAnyVm", + "description": "Redeploy a virtual machine This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the lab.", + "description": "The name of the virtual machine.", "required": true, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK" + "description": "The request has succeeded." }, "202": { - "description": "Accepted" + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Labs_ClaimAnyVm": { - "$ref": "./examples/Labs_ClaimAnyVm.json" + "VirtualMachines_Redeploy": { + "$ref": "./examples/VirtualMachines_Redeploy.json" } }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/createEnvironment": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines/{name}/resize": { "post": { + "operationId": "VirtualMachines_Resize", "tags": [ - "Labs" + "LabVirtualMachines" ], - "description": "Create virtual machines in a lab. This operation can take a while to complete.", - "operationId": "Labs_CreateEnvironment", + "description": "Resize Virtual Machine. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the lab.", + "description": "The name of the virtual machine.", "required": true, "type": "string" }, { - "name": "labVirtualMachineCreationParameter", + "name": "resizeLabVirtualMachineProperties", "in": "body", - "description": "Properties for creating a virtual machine.", + "description": "Request body for resizing a virtual machine.", "required": true, "schema": { - "$ref": "#/definitions/LabVirtualMachineCreationParameter" + "$ref": "#/definitions/ResizeLabVirtualMachineProperties" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK" + "description": "The request has succeeded." }, "202": { - "description": "Accepted" + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Labs_CreateEnvironment": { - "$ref": "./examples/Labs_CreateEnvironment.json" + "VirtualMachines_Resize": { + "$ref": "./examples/VirtualMachines_Resize.json" } }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/exportResourceUsage": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines/{name}/restart": { "post": { + "operationId": "VirtualMachines_Restart", "tags": [ - "Labs" + "LabVirtualMachines" ], - "description": "Exports the lab resource usage into a storage account This operation can take a while to complete.", - "operationId": "Labs_ExportResourceUsage", + "description": "Restart a virtual machine. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the lab.", + "description": "The name of the virtual machine.", "required": true, "type": "string" - }, - { - "name": "exportResourceUsageParameters", - "in": "body", - "description": "The parameters of the export operation.", - "required": true, - "schema": { - "$ref": "#/definitions/ExportResourceUsageParameters" - } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK" + "description": "The request has succeeded." }, "202": { - "description": "Accepted" + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Labs_ExportResourceUsage": { - "$ref": "./examples/Labs_ExportResourceUsage.json" + "VirtualMachines_Restart": { + "$ref": "./examples/VirtualMachines_Restart.json" } }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/generateUploadUri": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines/{name}/start": { "post": { + "operationId": "VirtualMachines_Start", "tags": [ - "Labs" + "LabVirtualMachines" ], - "description": "Generate a URI for uploading custom disk images to a Lab.", - "operationId": "Labs_GenerateUploadUri", + "description": "Start a virtual machine. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the lab.", + "description": "The name of the virtual machine.", "required": true, "type": "string" - }, - { - "name": "generateUploadUriParameter", - "in": "body", - "description": "Properties for generating an upload URI.", - "required": true, - "schema": { - "$ref": "#/definitions/GenerateUploadUriParameter" - } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/GenerateUploadUriResponse" + "description": "The request has succeeded." + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Labs_GenerateUploadUri": { - "$ref": "./examples/Labs_GenerateUploadUri.json" + "VirtualMachines_Start": { + "$ref": "./examples/VirtualMachines_Start.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/importVirtualMachine": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines/{name}/stop": { "post": { + "operationId": "VirtualMachines_Stop", "tags": [ - "Labs" + "LabVirtualMachines" ], - "description": "Import a virtual machine into a different lab. This operation can take a while to complete.", - "operationId": "Labs_ImportVirtualMachine", + "description": "Stop a virtual machine This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the lab.", + "description": "The name of the virtual machine.", "required": true, "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded." }, - { - "name": "importLabVirtualMachineRequest", - "in": "body", - "description": "This represents the payload required to import a virtual machine from a different lab into the current one", - "required": true, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/ImportLabVirtualMachineRequest" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } + } + }, + "x-ms-examples": { + "VirtualMachines_Stop": { + "$ref": "./examples/VirtualMachines_Stop.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines/{name}/transferDisks": { + "post": { + "operationId": "VirtualMachines_TransferDisks", + "tags": [ + "LabVirtualMachines" + ], + "description": "Transfers all data disks attached to the virtual machine to be owned by the current user. This operation can take a while to complete.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/api-version" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "OK" + "description": "The request has succeeded." }, "202": { - "description": "Accepted" + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Labs_ImportVirtualMachine": { - "$ref": "./examples/Labs_ImportVirtualMachine.json" + "VirtualMachines_TransferDisks": { + "$ref": "./examples/VirtualMachines_TransferDisks.json" } }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/listVhds": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines/{name}/unClaim": { "post": { + "operationId": "VirtualMachines_UnClaim", "tags": [ - "Labs" + "LabVirtualMachines" ], - "description": "List disk images available for custom image creation.", - "operationId": "Labs_ListVhds", + "description": "Release ownership of an existing virtual machine This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the lab.", + "description": "The name of the virtual machine.", "required": true, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/LabVhdList" + "description": "The request has succeeded." + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "Labs_ListVhds": { - "$ref": "./examples/Labs_ListVhds.json" + "VirtualMachines_UnClaim": { + "$ref": "./examples/VirtualMachines_UnClaim.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualnetworks": { "get": { + "operationId": "VirtualNetworks_List", "tags": [ - "GlobalSchedules" + "VirtualNetworks" ], - "description": "List schedules in a resource group.", - "operationId": "GlobalSchedules_ListByResourceGroup", + "description": "List virtual networks in a given lab.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=status)'", + "description": "Specify the $expand query. Example: 'properties($expand=externalSubnets)'", + "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, "type": "integer", "format": "int32" }, @@ -8006,382 +7972,309 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ScheduleList" + "$ref": "#/definitions/VirtualNetworkList" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/Schedule", "x-ms-examples": { - "GlobalSchedules_ListByResourceGroup": { - "$ref": "./examples/GlobalSchedules_ListByResourceGroup.json" + "VirtualNetworks_List": { + "$ref": "./examples/VirtualNetworks_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualnetworks/{name}": { "get": { + "operationId": "VirtualNetworks_Get", "tags": [ - "GlobalSchedules" + "VirtualNetworks" ], - "description": "Get schedule.", - "operationId": "GlobalSchedules_Get", + "description": "Get virtual network.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the schedule.", + "description": "The name of the virtual network.", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=status)'", + "description": "Specify the $expand query. Example: 'properties($expand=externalSubnets)'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/VirtualNetwork" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "GlobalSchedules_Get": { - "$ref": "./examples/GlobalSchedules_Get.json" + "VirtualNetworks_Get": { + "$ref": "./examples/VirtualNetworks_Get.json" } } }, "put": { + "operationId": "VirtualNetworks_CreateOrUpdate", "tags": [ - "GlobalSchedules" + "VirtualNetworks" ], - "description": "Create or replace an existing schedule.", - "operationId": "GlobalSchedules_CreateOrUpdate", + "description": "Create or replace an existing virtual network. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the schedule.", + "description": "The name of the virtual network.", "required": true, "type": "string" }, { - "name": "schedule", + "name": "virtualNetwork", "in": "body", - "description": "A schedule.", + "description": "A virtual network.", "required": true, "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/VirtualNetwork" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'VirtualNetwork' update operation succeeded", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/VirtualNetwork" } }, "201": { - "description": "Created", + "description": "Resource 'VirtualNetwork' create operation succeeded", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/VirtualNetwork" + }, + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "GlobalSchedules_CreateOrUpdate": { - "$ref": "./examples/GlobalSchedules_CreateOrUpdate.json" - } - } - }, - "delete": { - "tags": [ - "GlobalSchedules" - ], - "description": "Delete schedule.", - "operationId": "GlobalSchedules_Delete", - "parameters": [ - { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "name": "name", - "in": "path", - "description": "The name of the schedule.", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/api-version" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "No Content" - }, - "default": { - "description": "BadRequest", - "schema": { - "$ref": "#/definitions/CloudError" - } + "VirtualNetworks_CreateOrUpdate": { + "$ref": "./examples/VirtualNetworks_CreateOrUpdate.json" } }, - "x-ms-examples": { - "GlobalSchedules_Delete": { - "$ref": "./examples/GlobalSchedules_Delete.json" - } - } + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true }, "patch": { + "operationId": "VirtualNetworks_Update", "tags": [ - "GlobalSchedules" + "VirtualNetworks" ], - "description": "Allows modifying tags of schedules. All other properties will be ignored.", - "operationId": "GlobalSchedules_Update", + "description": "Allows modifying tags of virtual networks. All other properties will be ignored.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the schedule.", + "description": "The name of the virtual network.", "required": true, "type": "string" }, { - "name": "schedule", + "name": "virtualNetwork", "in": "body", - "description": "A schedule.", + "description": "A virtual network.", "required": true, "schema": { - "$ref": "#/definitions/ScheduleFragment" + "$ref": "#/definitions/VirtualNetworkFragment" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/VirtualNetwork" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "GlobalSchedules_Update": { - "$ref": "./examples/GlobalSchedules_Update.json" + "VirtualNetworks_Update": { + "$ref": "./examples/VirtualNetworks_Update.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules/{name}/execute": { - "post": { + }, + "delete": { + "operationId": "VirtualNetworks_Delete", "tags": [ - "GlobalSchedules" + "VirtualNetworks" ], - "description": "Execute a schedule. This operation can take a while to complete.", - "operationId": "GlobalSchedules_Execute", + "description": "Delete virtual network. This operation can take a while to complete.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "name": "name", - "in": "path", - "description": "The name of the schedule.", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/api-version" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, - "default": { - "description": "BadRequest", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "GlobalSchedules_Execute": { - "$ref": "./examples/GlobalSchedules_Execute.json" - } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules/{name}/retarget": { - "post": { - "tags": [ - "GlobalSchedules" - ], - "description": "Updates a schedule's target resource Id. This operation can take a while to complete.", - "operationId": "GlobalSchedules_Retarget", - "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the schedule.", + "description": "The name of the virtual network.", "required": true, "type": "string" - }, - { - "name": "retargetScheduleProperties", - "in": "body", - "description": "Properties for retargeting a virtual machine schedule.", - "required": true, - "schema": { - "$ref": "#/definitions/RetargetScheduleProperties" - } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK" + "description": "Resource deleted successfully." }, "202": { - "description": "Accepted" + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "GlobalSchedules_Retarget": { - "$ref": "./examples/GlobalSchedules_Retarget.json" + "VirtualNetworks_Delete": { + "$ref": "./examples/VirtualNetworks_Delete.json" } }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-long-running-operation": true } } }, "definitions": { "ApplicableSchedule": { + "type": "object", "description": "Schedules applicable to a virtual machine. The schedules may have been defined on a VM or on lab level.", + "properties": { + "properties": { + "$ref": "#/definitions/ApplicableScheduleProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + } + }, "required": [ "properties" ], - "type": "object", "allOf": [ { "$ref": "#/definitions/Resource" } - ], - "properties": { - "properties": { - "$ref": "#/definitions/ApplicableScheduleProperties", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + ] }, "ApplicableScheduleFragment": { - "description": "Schedules applicable to a virtual machine. The schedules may have been defined on a VM or on lab level.", "type": "object", + "description": "Schedules applicable to a virtual machine. The schedules may have been defined on a VM or on lab level.", "allOf": [ { "$ref": "#/definitions/UpdateResource" } - ], - "properties": {} + ] }, "ApplicableScheduleProperties": { - "description": "Properties of a schedules applicable to a virtual machine.", "type": "object", + "description": "Properties of a schedules applicable to a virtual machine.", "properties": { "labVmsShutdown": { "$ref": "#/definitions/Schedule", @@ -8393,721 +8286,686 @@ } } }, - "ApplicableSchedulePropertiesFragment": { - "description": "Properties of a schedules applicable to a virtual machine.", - "type": "object", - "properties": {} - }, "ApplyArtifactsRequest": { - "description": "Request body for applying artifacts to a virtual machine.", "type": "object", + "description": "Request body for applying artifacts to a virtual machine.", "properties": { "artifacts": { - "description": "The list of artifacts to apply.", "type": "array", + "description": "The list of artifacts to apply.", "items": { "$ref": "#/definitions/ArtifactInstallProperties" - } + }, + "x-ms-identifiers": [] } } }, "ArmTemplate": { - "description": "An Azure Resource Manager template.", - "required": [ - "properties" - ], "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], + "description": "An Azure Resource Manager template.", "properties": { "properties": { "$ref": "#/definitions/ArmTemplateProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true } - } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] }, "ArmTemplateInfo": { - "description": "Information about a generated ARM template.", "type": "object", + "description": "Information about a generated ARM template.", "properties": { "template": { + "type": "object", "description": "The template's contents.", - "type": "object" + "additionalProperties": {} }, "parameters": { + "type": "object", "description": "The parameters of the ARM template.", - "type": "object" + "additionalProperties": {} } } }, "ArmTemplateList": { - "description": "The response of a list operation.", "type": "object", + "description": "The response of a list operation.", "properties": { "value": { - "description": "Results of the list operation.", "type": "array", + "description": "The ArmTemplate items on this page", "items": { "$ref": "#/definitions/ArmTemplate" } }, "nextLink": { - "description": "Link for next set of results.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "ArmTemplateParameterProperties": { - "description": "Properties of an Azure Resource Manager template parameter.", "type": "object", + "description": "Properties of an Azure Resource Manager template parameter.", "properties": { "name": { - "description": "The name of the template parameter.", - "type": "string" + "type": "string", + "description": "The name of the template parameter." }, "value": { - "description": "The value of the template parameter.", - "type": "string" + "type": "string", + "description": "The value of the template parameter." } } }, - "ArmTemplateParameterPropertiesFragment": { - "description": "Properties of an Azure Resource Manager template parameter.", - "type": "object", - "properties": {} - }, "ArmTemplateProperties": { - "description": "Properties of an Azure Resource Manager template.", "type": "object", + "description": "Properties of an Azure Resource Manager template.", "properties": { "displayName": { - "description": "The display name of the ARM template.", "type": "string", + "description": "The display name of the ARM template.", "readOnly": true }, "description": { - "description": "The description of the ARM template.", "type": "string", + "description": "The description of the ARM template.", "readOnly": true }, "publisher": { - "description": "The publisher of the ARM template.", "type": "string", + "description": "The publisher of the ARM template.", "readOnly": true }, "icon": { - "description": "The URI to the icon of the ARM template.", "type": "string", + "description": "The URI to the icon of the ARM template.", "readOnly": true }, "contents": { - "description": "The contents of the ARM template.", "type": "object", + "description": "The contents of the ARM template.", + "additionalProperties": {}, "readOnly": true }, "createdDate": { + "type": "string", "format": "date-time", "description": "The creation date of the armTemplate.", - "type": "string", "readOnly": true }, "parametersValueFilesInfo": { - "description": "File name and parameter values information from all azuredeploy.*.parameters.json for the ARM template.", "type": "array", + "description": "File name and parameter values information from all azuredeploy.*.parameters.json for the ARM template.", "items": { "$ref": "#/definitions/ParametersValueFileInfo" }, - "readOnly": true + "readOnly": true, + "x-ms-identifiers": [] }, "enabled": { - "description": "Whether or not ARM template is enabled for use by lab user.", "type": "boolean", + "description": "Whether or not ARM template is enabled for use by lab user.", "readOnly": true } } }, "Artifact": { - "description": "An artifact.", - "required": [ - "properties" - ], "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], + "description": "An artifact.", "properties": { "properties": { "$ref": "#/definitions/ArtifactProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true } - } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] }, "ArtifactDeploymentStatusProperties": { - "description": "Properties of an artifact deployment.", "type": "object", + "description": "Properties of an artifact deployment.", "properties": { "deploymentStatus": { - "description": "The deployment status of the artifact.", - "type": "string" + "type": "string", + "description": "The deployment status of the artifact." }, "artifactsApplied": { + "type": "integer", "format": "int32", - "description": "The total count of the artifacts that were successfully applied.", - "type": "integer" + "description": "The total count of the artifacts that were successfully applied." }, "totalArtifacts": { + "type": "integer", "format": "int32", - "description": "The total count of the artifacts that were tentatively applied.", - "type": "integer" + "description": "The total count of the artifacts that were tentatively applied." } } }, - "ArtifactDeploymentStatusPropertiesFragment": { - "description": "Properties of an artifact deployment.", - "type": "object", - "properties": {} - }, "ArtifactInstallProperties": { - "description": "Properties of an artifact.", "type": "object", + "description": "Properties of an artifact.", "properties": { "artifactId": { - "description": "The artifact's identifier.", - "type": "string" + "type": "string", + "description": "The artifact's identifier." }, "artifactTitle": { - "description": "The artifact's title.", - "type": "string" + "type": "string", + "description": "The artifact's title." }, "parameters": { - "description": "The parameters of the artifact.", "type": "array", + "description": "The parameters of the artifact.", "items": { "$ref": "#/definitions/ArtifactParameterProperties" - } + }, + "x-ms-identifiers": [] }, "status": { - "description": "The status of the artifact.", - "type": "string" + "type": "string", + "description": "The status of the artifact." }, "deploymentStatusMessage": { - "description": "The status message from the deployment.", - "type": "string" + "type": "string", + "description": "The status message from the deployment." }, "vmExtensionStatusMessage": { - "description": "The status message from the virtual machine extension.", - "type": "string" + "type": "string", + "description": "The status message from the virtual machine extension." }, "installTime": { + "type": "string", "format": "date-time", - "description": "The time that the artifact starts to install on the virtual machine.", - "type": "string" + "description": "The time that the artifact starts to install on the virtual machine." } } }, - "ArtifactInstallPropertiesFragment": { - "description": "Properties of an artifact.", - "type": "object", - "properties": {} - }, "ArtifactList": { - "description": "The response of a list operation.", "type": "object", + "description": "The response of a list operation.", "properties": { "value": { - "description": "Results of the list operation.", "type": "array", + "description": "The Artifact items on this page", "items": { "$ref": "#/definitions/Artifact" } }, "nextLink": { - "description": "Link for next set of results.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "ArtifactParameterProperties": { - "description": "Properties of an artifact parameter.", "type": "object", + "description": "Properties of an artifact parameter.", "properties": { "name": { - "description": "The name of the artifact parameter.", - "type": "string" + "type": "string", + "description": "The name of the artifact parameter." }, "value": { - "description": "The value of the artifact parameter.", - "type": "string" + "type": "string", + "description": "The value of the artifact parameter." } } }, - "ArtifactParameterPropertiesFragment": { - "description": "Properties of an artifact parameter.", - "type": "object", - "properties": {} - }, "ArtifactProperties": { - "description": "Properties of an artifact.", "type": "object", + "description": "Properties of an artifact.", "properties": { "title": { - "description": "The artifact's title.", "type": "string", + "description": "The artifact's title.", "readOnly": true }, "description": { - "description": "The artifact's description.", "type": "string", + "description": "The artifact's description.", "readOnly": true }, "publisher": { - "description": "The artifact's publisher.", "type": "string", + "description": "The artifact's publisher.", "readOnly": true }, "filePath": { - "description": "The file path to the artifact.", "type": "string", + "description": "The file path to the artifact.", "readOnly": true }, "icon": { - "description": "The URI to the artifact icon.", "type": "string", + "description": "The URI to the artifact icon.", "readOnly": true }, "targetOsType": { - "description": "The artifact's target OS.", "type": "string", + "description": "The artifact's target OS.", "readOnly": true }, "parameters": { - "description": "The artifact's parameters.", "type": "object", + "description": "The artifact's parameters.", + "additionalProperties": {}, "readOnly": true }, "createdDate": { + "type": "string", "format": "date-time", "description": "The artifact's creation date.", - "type": "string", "readOnly": true } } }, "ArtifactSource": { - "description": "Properties of an artifact source.", - "required": [ - "properties" - ], "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], + "description": "Properties of an artifact source.", "properties": { "properties": { "$ref": "#/definitions/ArtifactSourceProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true } - } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] }, "ArtifactSourceFragment": { - "description": "Properties of an artifact source.", "type": "object", + "description": "Properties of an artifact source.", "allOf": [ { "$ref": "#/definitions/UpdateResource" } - ], - "properties": {} + ] }, "ArtifactSourceList": { - "description": "The response of a list operation.", "type": "object", + "description": "The response of a list operation.", "properties": { "value": { - "description": "Results of the list operation.", "type": "array", + "description": "The ArtifactSource items on this page", "items": { "$ref": "#/definitions/ArtifactSource" } }, "nextLink": { - "description": "Link for next set of results.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "ArtifactSourceProperties": { - "description": "Properties of an artifact source.", "type": "object", + "description": "Properties of an artifact source.", "properties": { "displayName": { - "description": "The artifact source's display name.", - "type": "string" + "type": "string", + "description": "The artifact source's display name." }, "uri": { - "description": "The artifact source's URI.", - "type": "string" + "type": "string", + "description": "The artifact source's URI." }, "sourceType": { - "description": "The artifact source's type.", - "enum": [ - "VsoGit", - "GitHub", - "StorageAccount" - ], - "type": "string", - "x-ms-enum": { - "name": "SourceControlType", - "modelAsString": true - } + "$ref": "#/definitions/SourceControlType", + "description": "The artifact source's type." }, "folderPath": { - "description": "The folder containing artifacts.", - "type": "string" + "type": "string", + "description": "The folder containing artifacts." }, "armTemplateFolderPath": { - "description": "The folder containing Azure Resource Manager templates.", - "type": "string" + "type": "string", + "description": "The folder containing Azure Resource Manager templates." }, "branchRef": { - "description": "The artifact source's branch reference.", - "type": "string" + "type": "string", + "description": "The artifact source's branch reference." }, "securityToken": { - "description": "The security token to authenticate to the artifact source.", - "type": "string" + "type": "string", + "description": "The security token to authenticate to the artifact source." }, "status": { - "description": "Indicates if the artifact source is enabled (values: Enabled, Disabled).", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "EnableStatus", - "modelAsString": true - } + "$ref": "#/definitions/EnableStatus", + "description": "Indicates if the artifact source is enabled (values: Enabled, Disabled)." }, "createdDate": { + "type": "string", "format": "date-time", "description": "The artifact source's creation date.", - "type": "string", "readOnly": true }, "provisioningState": { - "description": "The provisioning status of the resource.", "type": "string", + "description": "The provisioning status of the resource.", "readOnly": true }, "uniqueIdentifier": { - "description": "The unique immutable identifier of a resource (Guid).", "type": "string", + "description": "The unique immutable identifier of a resource (Guid).", "readOnly": true } } }, - "ArtifactSourcePropertiesFragment": { - "description": "Properties of an artifact source.", - "type": "object", - "properties": {} - }, "AttachDiskProperties": { - "description": "Properties of the disk to attach.", "type": "object", + "description": "Properties of the disk to attach.", "properties": { "leasedByLabVmId": { - "description": "The resource ID of the Lab virtual machine to which the disk is attached.", - "type": "string" + "type": "string", + "description": "The resource ID of the Lab virtual machine to which the disk is attached." } } }, "AttachNewDataDiskOptions": { - "description": "Properties to attach new disk to the Virtual Machine.", "type": "object", + "description": "Properties to attach new disk to the Virtual Machine.", "properties": { "diskSizeGiB": { + "type": "integer", "format": "int32", - "description": "Size of the disk to be attached in Gibibytes.", - "type": "integer" + "description": "Size of the disk to be attached in Gibibytes." }, "diskName": { - "description": "The name of the disk to be attached.", - "type": "string" + "type": "string", + "description": "The name of the disk to be attached." }, "diskType": { - "description": "The storage type for the disk (i.e. Standard, Premium).", - "enum": [ - "Standard", - "Premium", - "StandardSSD" - ], - "type": "string", - "x-ms-enum": { - "name": "StorageType", - "modelAsString": true - } + "$ref": "#/definitions/StorageType", + "description": "The storage type for the disk (i.e. Standard, Premium)." } } }, - "AttachNewDataDiskOptionsFragment": { - "description": "Properties to attach new disk to the Virtual Machine.", - "type": "object", - "properties": {} - }, "BulkCreationParameters": { - "description": "Parameters for creating multiple virtual machines as a single action.", "type": "object", + "description": "Parameters for creating multiple virtual machines as a single action.", "properties": { "instanceCount": { + "type": "integer", "format": "int32", - "description": "The number of virtual machine instances to create.", - "type": "integer" + "description": "The number of virtual machine instances to create." } } }, - "BulkCreationParametersFragment": { - "description": "Parameters for creating multiple virtual machines as a single action.", - "type": "object", - "properties": {} - }, - "CloudError": { - "description": "Error from a REST request.", - "type": "object", - "properties": { - "error": { - "$ref": "#/definitions/CloudErrorBody", - "description": "The cloud error that occurred" - } - }, - "x-ms-external": true - }, - "CloudErrorBody": { - "description": "Body of an error from a REST request.", - "type": "object", - "properties": { - "code": { - "description": "The error code.", - "type": "string" - }, - "message": { - "description": "The error message.", - "type": "string" - }, - "target": { - "description": "The error target.", - "type": "string" - }, - "details": { - "description": "Inner errors.", - "type": "array", - "items": { - "$ref": "#/definitions/CloudErrorBody" - } - } - }, - "x-ms-external": true - }, "ComputeDataDisk": { - "description": "A data disks attached to a virtual machine.", "type": "object", + "description": "A data disks attached to a virtual machine.", "properties": { "name": { - "description": "Gets data disk name.", - "type": "string" + "type": "string", + "description": "Gets data disk name." }, "diskUri": { - "description": "When backed by a blob, the URI of underlying blob.", - "type": "string" + "type": "string", + "description": "When backed by a blob, the URI of underlying blob." }, "managedDiskId": { - "description": "When backed by managed disk, this is the ID of the compute disk resource.", - "type": "string" + "type": "string", + "description": "When backed by managed disk, this is the ID of the compute disk resource." }, "diskSizeGiB": { + "type": "integer", "format": "int32", - "description": "Gets data disk size in GiB.", - "type": "integer" + "description": "Gets data disk size in GiB." } } }, - "ComputeDataDiskFragment": { - "description": "A data disks attached to a virtual machine.", - "type": "object", - "properties": {} - }, "ComputeVmInstanceViewStatus": { - "description": "Status information about a virtual machine.", "type": "object", + "description": "Status information about a virtual machine.", "properties": { "code": { - "description": "Gets the status Code.", - "type": "string" + "type": "string", + "description": "Gets the status Code." }, "displayStatus": { - "description": "Gets the short localizable label for the status.", - "type": "string" + "type": "string", + "description": "Gets the short localizable label for the status." }, "message": { - "description": "Gets the message associated with the status.", - "type": "string" + "type": "string", + "description": "Gets the message associated with the status." } } }, - "ComputeVmInstanceViewStatusFragment": { - "description": "Status information about a virtual machine.", - "type": "object", - "properties": {} - }, "ComputeVmProperties": { - "description": "Properties of a virtual machine returned by the Microsoft.Compute API.", "type": "object", + "description": "Properties of a virtual machine returned by the Microsoft.Compute API.", "properties": { "statuses": { - "description": "Gets the statuses of the virtual machine.", "type": "array", + "description": "Gets the statuses of the virtual machine.", "items": { "$ref": "#/definitions/ComputeVmInstanceViewStatus" - } + }, + "x-ms-identifiers": [] }, "osType": { - "description": "Gets the OS type of the virtual machine.", - "type": "string" + "type": "string", + "description": "Gets the OS type of the virtual machine." }, "vmSize": { - "description": "Gets the size of the virtual machine.", - "type": "string" + "type": "string", + "description": "Gets the size of the virtual machine." }, "networkInterfaceId": { - "description": "Gets the network interface ID of the virtual machine.", - "type": "string" + "type": "string", + "description": "Gets the network interface ID of the virtual machine." }, "osDiskId": { - "description": "Gets OS disk blob uri for the virtual machine.", - "type": "string" + "type": "string", + "description": "Gets OS disk blob uri for the virtual machine." }, "dataDiskIds": { - "description": "Gets data disks blob uri for the virtual machine.", "type": "array", + "description": "Gets data disks blob uri for the virtual machine.", "items": { "type": "string" } }, "dataDisks": { - "description": "Gets all data disks attached to the virtual machine.", "type": "array", + "description": "Gets all data disks attached to the virtual machine.", "items": { "$ref": "#/definitions/ComputeDataDisk" - } + }, + "x-ms-identifiers": [] } } }, - "ComputeVmPropertiesFragment": { - "description": "Properties of a virtual machine returned by the Microsoft.Compute API.", - "type": "object", - "properties": {} - }, "CostThresholdProperties": { - "description": "Properties of a cost threshold item.", "type": "object", + "description": "Properties of a cost threshold item.", "properties": { "thresholdId": { - "description": "The ID of the cost threshold item.", - "type": "string" + "type": "string", + "description": "The ID of the cost threshold item." }, "percentageThreshold": { "$ref": "#/definitions/PercentageCostThresholdProperties", "description": "The value of the percentage cost threshold." }, "displayOnChart": { - "description": "Indicates whether this threshold will be displayed on cost charts.", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "CostThresholdStatus", - "modelAsString": true - } + "$ref": "#/definitions/CostThresholdStatus", + "description": "Indicates whether this threshold will be displayed on cost charts." }, "sendNotificationWhenExceeded": { - "description": "Indicates whether notifications will be sent when this threshold is exceeded.", - "enum": [ - "Enabled", - "Disabled" - ], + "$ref": "#/definitions/CostThresholdStatus", + "description": "Indicates whether notifications will be sent when this threshold is exceeded." + }, + "notificationSent": { "type": "string", - "x-ms-enum": { - "name": "CostThresholdStatus", - "modelAsString": true + "description": "Indicates the datetime when notifications were last sent for this threshold." + } + } + }, + "CostThresholdStatus": { + "type": "string", + "description": "Indicates whether this threshold will be displayed on cost charts.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "CostThresholdStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled" + }, + { + "name": "Disabled", + "value": "Disabled" + } + ] + } + }, + "CostType": { + "type": "string", + "description": "The type of the cost.", + "enum": [ + "Unavailable", + "Reported", + "Projected" + ], + "x-ms-enum": { + "name": "CostType", + "modelAsString": true, + "values": [ + { + "name": "Unavailable", + "value": "Unavailable" + }, + { + "name": "Reported", + "value": "Reported" + }, + { + "name": "Projected", + "value": "Projected" } - }, - "notificationSent": { - "description": "Indicates the datetime when notifications were last sent for this threshold.", - "type": "string" - } + ] } }, "CustomImage": { - "description": "A custom image.", - "required": [ - "properties" - ], "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], + "description": "A custom image.", "properties": { "properties": { "$ref": "#/definitions/CustomImageProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true } - } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] }, "CustomImageFragment": { - "description": "A custom image.", "type": "object", + "description": "A custom image.", "allOf": [ { "$ref": "#/definitions/UpdateResource" } - ], - "properties": {} + ] }, "CustomImageList": { - "description": "The response of a list operation.", "type": "object", + "description": "The response of a list operation.", "properties": { "value": { - "description": "Results of the list operation.", "type": "array", + "description": "The CustomImage items on this page", "items": { "$ref": "#/definitions/CustomImage" } }, "nextLink": { - "description": "Link for next set of results.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } + }, + "required": [ + "value" + ] + }, + "CustomImageOsType": { + "type": "string", + "description": "The OS type of the custom image (i.e. Windows, Linux)", + "enum": [ + "Windows", + "Linux", + "None" + ], + "x-ms-enum": { + "name": "CustomImageOsType", + "modelAsString": true, + "values": [ + { + "name": "Windows", + "value": "Windows" + }, + { + "name": "Linux", + "value": "Linux" + }, + { + "name": "None", + "value": "None" + } + ] } }, "CustomImageProperties": { - "description": "Properties of a custom image.", "type": "object", + "description": "Properties of a custom image.", "properties": { "vm": { "$ref": "#/definitions/CustomImagePropertiesFromVm", @@ -9118,124 +8976,101 @@ "description": "The VHD from which the image is to be created." }, "description": { - "description": "The description of the custom image.", - "type": "string" + "type": "string", + "description": "The description of the custom image." }, "author": { - "description": "The author of the custom image.", - "type": "string" + "type": "string", + "description": "The author of the custom image." }, "creationDate": { + "type": "string", "format": "date-time", "description": "The creation date of the custom image.", - "type": "string", "readOnly": true }, "managedImageId": { - "description": "The Managed Image Id backing the custom image.", - "type": "string" + "type": "string", + "description": "The Managed Image Id backing the custom image." }, "managedSnapshotId": { - "description": "The Managed Snapshot Id backing the custom image.", - "type": "string" + "type": "string", + "description": "The Managed Snapshot Id backing the custom image." }, "dataDiskStorageInfo": { - "description": "Storage information about the data disks present in the custom image", "type": "array", + "description": "Storage information about the data disks present in the custom image", "items": { "$ref": "#/definitions/DataDiskStorageTypeInfo" - } + }, + "x-ms-identifiers": [] }, "customImagePlan": { "$ref": "#/definitions/CustomImagePropertiesFromPlan", "description": "Storage information about the plan related to this custom image" }, "isPlanAuthorized": { - "description": "Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment", - "type": "boolean" + "type": "boolean", + "description": "Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment" }, "provisioningState": { - "description": "The provisioning status of the resource.", "type": "string", + "description": "The provisioning status of the resource.", "readOnly": true }, "uniqueIdentifier": { - "description": "The unique immutable identifier of a resource (Guid).", "type": "string", + "description": "The unique immutable identifier of a resource (Guid).", "readOnly": true } } }, "CustomImagePropertiesCustom": { - "description": "Properties for creating a custom image from a VHD.", - "required": [ - "osType" - ], "type": "object", + "description": "Properties for creating a custom image from a VHD.", "properties": { "imageName": { - "description": "The image name.", - "type": "string" + "type": "string", + "description": "The image name." }, "sysPrep": { - "description": "Indicates whether sysprep has been run on the VHD.", - "type": "boolean" + "type": "boolean", + "description": "Indicates whether sysprep has been run on the VHD." }, "osType": { - "description": "The OS type of the custom image (i.e. Windows, Linux)", - "enum": [ - "Windows", - "Linux", - "None" - ], - "type": "string", - "x-ms-enum": { - "name": "CustomImageOsType", - "modelAsString": true - } + "$ref": "#/definitions/CustomImageOsType", + "description": "The OS type of the custom image (i.e. Windows, Linux)" } - } - }, - "CustomImagePropertiesCustomFragment": { - "description": "Properties for creating a custom image from a VHD.", - "type": "object", - "properties": {} - }, - "CustomImagePropertiesFragment": { - "description": "Properties of a custom image.", - "type": "object", - "properties": {} + }, + "required": [ + "osType" + ] }, "CustomImagePropertiesFromPlan": { - "description": "Properties for plan on a custom image.", "type": "object", + "description": "Properties for plan on a custom image.", "properties": { "id": { - "description": "The id of the plan, equivalent to name of the plan", - "type": "string" + "type": "string", + "description": "The id of the plan, equivalent to name of the plan" }, "publisher": { - "description": "The publisher for the plan from the marketplace image the custom image is derived from", - "type": "string" + "type": "string", + "description": "The publisher for the plan from the marketplace image the custom image is derived from" }, "offer": { - "description": "The offer for the plan from the marketplace image the custom image is derived from", - "type": "string" + "type": "string", + "description": "The offer for the plan from the marketplace image the custom image is derived from" } } }, - "CustomImagePropertiesFromPlanFragment": { - "description": "Properties for plan on a custom image.", - "type": "object", - "properties": {} - }, "CustomImagePropertiesFromVm": { - "description": "Properties for creating a custom image from a virtual machine.", "type": "object", + "description": "Properties for creating a custom image from a virtual machine.", "properties": { "sourceVmId": { - "description": "The source vm identifier.", - "type": "string" + "type": "string", + "description": "The source vm identifier." }, "windowsOsInfo": { "$ref": "#/definitions/WindowsOsInfo", @@ -9247,500 +9082,498 @@ } } }, - "CustomImagePropertiesFromVmFragment": { - "description": "Properties for creating a custom image from a virtual machine.", - "type": "object", - "properties": {} - }, "DataDiskProperties": { - "description": "Request body for adding a new or existing data disk to a virtual machine.", "type": "object", + "description": "Request body for adding a new or existing data disk to a virtual machine.", "properties": { "attachNewDataDiskOptions": { "$ref": "#/definitions/AttachNewDataDiskOptions", "description": "Specifies options to attach a new disk to the virtual machine." }, "existingLabDiskId": { - "description": "Specifies the existing lab disk id to attach to virtual machine.", - "type": "string" + "type": "string", + "description": "Specifies the existing lab disk id to attach to virtual machine." }, "hostCaching": { - "description": "Caching option for a data disk (i.e. None, ReadOnly, ReadWrite).", - "enum": [ - "None", - "ReadOnly", - "ReadWrite" - ], - "type": "string", - "x-ms-enum": { - "name": "HostCachingOptions", - "modelAsString": true - } + "$ref": "#/definitions/HostCachingOptions", + "description": "Caching option for a data disk (i.e. None, ReadOnly, ReadWrite)." } } }, - "DataDiskPropertiesFragment": { - "description": "Request body for adding a new or existing data disk to a virtual machine.", - "type": "object", - "properties": {} - }, "DataDiskStorageTypeInfo": { - "description": "Storage information about the data disks present in the custom image", "type": "object", + "description": "Storage information about the data disks present in the custom image", "properties": { "lun": { - "description": "Disk Lun", - "type": "string" + "type": "string", + "description": "Disk Lun" }, "storageType": { - "description": "Disk Storage Type", - "enum": [ - "Standard", - "Premium", - "StandardSSD" - ], - "type": "string", - "x-ms-enum": { - "name": "StorageType", - "modelAsString": true - } + "$ref": "#/definitions/StorageType", + "description": "Disk Storage Type" } } }, - "DataDiskStorageTypeInfoFragment": { - "description": "Storage information about the data disks present in the custom image", - "type": "object", - "properties": {} - }, "DayDetails": { - "description": "Properties of a daily schedule.", "type": "object", + "description": "Properties of a daily schedule.", "properties": { "time": { - "description": "The time of day the schedule will occur.", - "type": "string" + "type": "string", + "description": "The time of day the schedule will occur." } } }, - "DayDetailsFragment": { - "description": "Properties of a daily schedule.", - "type": "object", - "properties": {} - }, "DetachDataDiskProperties": { - "description": "Request body for detaching data disk from a virtual machine.", "type": "object", + "description": "Request body for detaching data disk from a virtual machine.", "properties": { "existingLabDiskId": { - "description": "Specifies the disk resource ID to detach from virtual machine.", - "type": "string" + "type": "string", + "description": "Specifies the disk resource ID to detach from virtual machine." } } }, "DetachDiskProperties": { - "description": "Properties of the disk to detach.", "type": "object", + "description": "Properties of the disk to detach.", "properties": { "leasedByLabVmId": { - "description": "The resource ID of the Lab VM to which the disk is attached.", - "type": "string" + "type": "string", + "description": "The resource ID of the Lab VM to which the disk is attached." } } }, "Disk": { - "description": "A Disk.", - "required": [ - "properties" - ], "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], + "description": "A Disk.", "properties": { "properties": { "$ref": "#/definitions/DiskProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true } - } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] }, "DiskFragment": { - "description": "A Disk.", "type": "object", + "description": "A Disk.", "allOf": [ { "$ref": "#/definitions/UpdateResource" } - ], - "properties": {} + ] }, "DiskList": { - "description": "The response of a list operation.", "type": "object", + "description": "The response of a list operation.", "properties": { "value": { - "description": "Results of the list operation.", "type": "array", + "description": "The Disk items on this page", "items": { "$ref": "#/definitions/Disk" } }, "nextLink": { - "description": "Link for next set of results.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "DiskProperties": { - "description": "Properties of a disk.", "type": "object", + "description": "Properties of a disk.", "properties": { "diskType": { - "description": "The storage type for the disk (i.e. Standard, Premium).", - "enum": [ - "Standard", - "Premium", - "StandardSSD" - ], - "type": "string", - "x-ms-enum": { - "name": "StorageType", - "modelAsString": true - } + "$ref": "#/definitions/StorageType", + "description": "The storage type for the disk (i.e. Standard, Premium)." }, "diskSizeGiB": { + "type": "integer", "format": "int32", - "description": "The size of the disk in Gibibytes.", - "type": "integer" + "description": "The size of the disk in Gibibytes." }, "leasedByLabVmId": { - "description": "The resource ID of the VM to which this disk is leased.", - "type": "string" + "type": "string", + "description": "The resource ID of the VM to which this disk is leased." }, "diskBlobName": { - "description": "When backed by a blob, the name of the VHD blob without extension.", - "type": "string" + "type": "string", + "description": "When backed by a blob, the name of the VHD blob without extension." }, "diskUri": { - "description": "When backed by a blob, the URI of underlying blob.", - "type": "string" + "type": "string", + "description": "When backed by a blob, the URI of underlying blob." }, "storageAccountId": { - "description": "When backed by a blob, the storage account where the blob is.", - "type": "string" + "type": "string", + "description": "When backed by a blob, the storage account where the blob is." }, "createdDate": { + "type": "string", "format": "date-time", "description": "The creation date of the disk.", - "type": "string", "readOnly": true }, "hostCaching": { - "description": "The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite).", - "type": "string" + "type": "string", + "description": "The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite)." }, "managedDiskId": { - "description": "When backed by managed disk, this is the ID of the compute disk resource.", - "type": "string" + "type": "string", + "description": "When backed by managed disk, this is the ID of the compute disk resource." }, "provisioningState": { - "description": "The provisioning status of the resource.", "type": "string", + "description": "The provisioning status of the resource.", "readOnly": true }, "uniqueIdentifier": { - "description": "The unique immutable identifier of a resource (Guid).", "type": "string", + "description": "The unique immutable identifier of a resource (Guid).", "readOnly": true } } }, - "DiskPropertiesFragment": { - "description": "Properties of a disk.", - "type": "object", - "properties": {} - }, "DtlEnvironment": { - "description": "An environment, which is essentially an ARM template deployment.", - "required": [ - "properties" - ], "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], + "description": "An environment, which is essentially an ARM template deployment.", "properties": { "properties": { "$ref": "#/definitions/EnvironmentProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true } - } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] }, "DtlEnvironmentFragment": { - "description": "An environment, which is essentially an ARM template deployment.", "type": "object", + "description": "An environment, which is essentially an ARM template deployment.", "allOf": [ { "$ref": "#/definitions/UpdateResource" } - ], - "properties": {} + ] }, "DtlEnvironmentList": { - "description": "The response of a list operation.", "type": "object", + "description": "The response of a list operation.", "properties": { "value": { - "description": "Results of the list operation.", "type": "array", + "description": "The DtlEnvironment items on this page", "items": { "$ref": "#/definitions/DtlEnvironment" } }, "nextLink": { - "description": "Link for next set of results.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } + }, + "required": [ + "value" + ] + }, + "EnableStatus": { + "type": "string", + "description": "Indicates if the artifact source is enabled (values: Enabled, Disabled).", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "EnableStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled" + }, + { + "name": "Disabled", + "value": "Disabled" + } + ] } }, "EnvironmentDeploymentProperties": { - "description": "Properties of an environment deployment.", "type": "object", + "description": "Properties of an environment deployment.", "properties": { "armTemplateId": { - "description": "The Azure Resource Manager template's identifier.", - "type": "string" + "type": "string", + "description": "The Azure Resource Manager template's identifier." }, "parameters": { - "description": "The parameters of the Azure Resource Manager template.", "type": "array", + "description": "The parameters of the Azure Resource Manager template.", "items": { "$ref": "#/definitions/ArmTemplateParameterProperties" - } + }, + "x-ms-identifiers": [] } } }, - "EnvironmentDeploymentPropertiesFragment": { - "description": "Properties of an environment deployment.", - "type": "object", - "properties": {} + "EnvironmentPermission": { + "type": "string", + "description": "The access rights to be granted to the user when provisioning an environment", + "enum": [ + "Reader", + "Contributor" + ], + "x-ms-enum": { + "name": "EnvironmentPermission", + "modelAsString": true, + "values": [ + { + "name": "Reader", + "value": "Reader" + }, + { + "name": "Contributor", + "value": "Contributor" + } + ] + } }, "EnvironmentProperties": { - "description": "Properties of an environment.", "type": "object", + "description": "Properties of an environment.", "properties": { "deploymentProperties": { "$ref": "#/definitions/EnvironmentDeploymentProperties", "description": "The deployment properties of the environment." }, "armTemplateDisplayName": { - "description": "The display name of the Azure Resource Manager template that produced the environment.", - "type": "string" + "type": "string", + "description": "The display name of the Azure Resource Manager template that produced the environment." }, "resourceGroupId": { - "description": "The identifier of the resource group containing the environment's resources.", "type": "string", + "description": "The identifier of the resource group containing the environment's resources.", "readOnly": true }, "createdByUser": { - "description": "The creator of the environment.", "type": "string", + "description": "The creator of the environment.", "readOnly": true }, "provisioningState": { - "description": "The provisioning status of the resource.", "type": "string", + "description": "The provisioning status of the resource.", "readOnly": true }, "uniqueIdentifier": { - "description": "The unique immutable identifier of a resource (Guid).", "type": "string", + "description": "The unique immutable identifier of a resource (Guid).", "readOnly": true } } }, - "EnvironmentPropertiesFragment": { - "description": "Properties of an environment.", - "type": "object", - "properties": {} - }, "EvaluatePoliciesProperties": { - "description": "Properties for evaluating a policy set.", "type": "object", + "description": "Properties for evaluating a policy set.", "properties": { "factName": { - "description": "The fact name.", - "type": "string" + "type": "string", + "description": "The fact name." }, "factData": { - "description": "The fact data.", - "type": "string" + "type": "string", + "description": "The fact data." }, "valueOffset": { - "description": "The value offset.", - "type": "string" + "type": "string", + "description": "The value offset." }, "userObjectId": { - "description": "The user for which policies will be evaluated", - "type": "string" + "type": "string", + "description": "The user for which policies will be evaluated" } } }, "EvaluatePoliciesRequest": { - "description": "Request body for evaluating a policy set.", "type": "object", + "description": "Request body for evaluating a policy set.", "properties": { "policies": { - "description": "Policies to evaluate.", "type": "array", + "description": "Policies to evaluate.", "items": { "$ref": "#/definitions/EvaluatePoliciesProperties" - } + }, + "x-ms-identifiers": [] } } }, "EvaluatePoliciesResponse": { - "description": "Response body for evaluating a policy set.", "type": "object", + "description": "Response body for evaluating a policy set.", "properties": { "results": { - "description": "Results of evaluating a policy set.", "type": "array", + "description": "Results of evaluating a policy set.", "items": { "$ref": "#/definitions/PolicySetResult" - } + }, + "x-ms-identifiers": [] } } }, "Event": { - "description": "An event to be notified for.", "type": "object", + "description": "An event to be notified for.", "properties": { "eventName": { - "description": "The event type for which this notification is enabled (i.e. AutoShutdown, Cost)", - "enum": [ - "AutoShutdown", - "Cost" - ], - "type": "string", - "x-ms-enum": { - "name": "NotificationChannelEventType", - "modelAsString": true - } + "$ref": "#/definitions/NotificationChannelEventType", + "description": "The event type for which this notification is enabled (i.e. AutoShutdown, Cost)" } } }, - "EventFragment": { - "description": "An event to be notified for.", - "type": "object", - "properties": {} - }, "ExportResourceUsageParameters": { - "description": "The parameters of the export operation.", "type": "object", + "description": "The parameters of the export operation.", "properties": { "blobStorageAbsoluteSasUri": { - "description": "The blob storage absolute sas uri with write permission to the container which the usage data needs to be uploaded to.", - "type": "string" + "type": "string", + "description": "The blob storage absolute sas uri with write permission to the container which the usage data needs to be uploaded to." }, "usageStartDate": { + "type": "string", "format": "date-time", - "description": "The start time of the usage. If not provided, usage will be reported since the beginning of data collection.", - "type": "string" + "description": "The start time of the usage. If not provided, usage will be reported since the beginning of data collection." } } }, "ExternalSubnet": { - "description": "Subnet information as returned by the Microsoft.Network API.", "type": "object", + "description": "Subnet information as returned by the Microsoft.Network API.", "properties": { "id": { - "description": "Gets or sets the identifier.", - "type": "string" + "type": "string", + "description": "Gets or sets the identifier." }, "name": { - "description": "Gets or sets the name.", - "type": "string" + "type": "string", + "description": "Gets or sets the name." } } }, - "ExternalSubnetFragment": { - "description": "Subnet information as returned by the Microsoft.Network API.", - "type": "object", - "properties": {} + "FileUploadOptions": { + "type": "string", + "description": "Options for uploading the files for the artifact. UploadFilesAndGenerateSasTokens is the default value.", + "enum": [ + "UploadFilesAndGenerateSasTokens", + "None" + ], + "x-ms-enum": { + "name": "FileUploadOptions", + "modelAsString": true, + "values": [ + { + "name": "UploadFilesAndGenerateSasTokens", + "value": "UploadFilesAndGenerateSasTokens" + }, + { + "name": "None", + "value": "None" + } + ] + } }, "Formula": { - "description": "A formula for creating a VM, specifying an image base and other parameters", - "required": [ - "properties" - ], "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], + "description": "A formula for creating a VM, specifying an image base and other parameters", "properties": { "properties": { "$ref": "#/definitions/FormulaProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true } - } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] }, "FormulaFragment": { - "description": "A formula for creating a VM, specifying an image base and other parameters", "type": "object", + "description": "A formula for creating a VM, specifying an image base and other parameters", "allOf": [ { "$ref": "#/definitions/UpdateResource" } - ], - "properties": {} + ] }, "FormulaList": { - "description": "The response of a list operation.", "type": "object", + "description": "The response of a list operation.", "properties": { "value": { - "description": "Results of the list operation.", "type": "array", + "description": "The Formula items on this page", "items": { "$ref": "#/definitions/Formula" } }, "nextLink": { - "description": "Link for next set of results.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "FormulaProperties": { - "description": "Properties of a formula.", "type": "object", + "description": "Properties of a formula.", "properties": { "description": { - "description": "The description of the formula.", - "type": "string" + "type": "string", + "description": "The description of the formula." }, "author": { - "description": "The author of the formula.", "type": "string", + "description": "The author of the formula.", "readOnly": true }, "osType": { - "description": "The OS type of the formula.", - "type": "string" + "type": "string", + "description": "The OS type of the formula." }, "creationDate": { + "type": "string", "format": "date-time", "description": "The creation date of the formula.", - "type": "string", "readOnly": true }, "formulaContent": { @@ -9752,409 +9585,615 @@ "description": "Information about a VM from which a formula is to be created." }, "provisioningState": { - "description": "The provisioning status of the resource.", "type": "string", + "description": "The provisioning status of the resource.", "readOnly": true }, "uniqueIdentifier": { - "description": "The unique immutable identifier of a resource (Guid).", "type": "string", + "description": "The unique immutable identifier of a resource (Guid).", "readOnly": true } } }, - "FormulaPropertiesFragment": { - "description": "Properties of a formula.", - "type": "object", - "properties": {} - }, "FormulaPropertiesFromVm": { - "description": "Information about a VM from which a formula is to be created.", "type": "object", + "description": "Information about a VM from which a formula is to be created.", "properties": { "labVmId": { - "description": "The identifier of the VM from which a formula is to be created.", - "type": "string" + "type": "string", + "description": "The identifier of the VM from which a formula is to be created." } } }, - "FormulaPropertiesFromVmFragment": { - "description": "Information about a VM from which a formula is to be created.", - "type": "object", - "properties": {} - }, "GalleryImage": { + "type": "object", "description": "A gallery image.", + "properties": { + "properties": { + "$ref": "#/definitions/GalleryImageProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + } + }, "required": [ "properties" ], - "type": "object", "allOf": [ { "$ref": "#/definitions/Resource" } - ], - "properties": { - "properties": { - "$ref": "#/definitions/GalleryImageProperties", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + ] }, "GalleryImageList": { - "description": "The response of a list operation.", "type": "object", + "description": "The response of a list operation.", "properties": { "value": { - "description": "Results of the list operation.", "type": "array", + "description": "The GalleryImage items on this page", "items": { "$ref": "#/definitions/GalleryImage" } }, "nextLink": { - "description": "Link for next set of results.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "GalleryImageProperties": { - "description": "Properties of a gallery image.", "type": "object", + "description": "Properties of a gallery image.", "properties": { "author": { - "description": "The author of the gallery image.", - "type": "string" + "type": "string", + "description": "The author of the gallery image." }, "createdDate": { + "type": "string", "format": "date-time", "description": "The creation date of the gallery image.", - "type": "string", "readOnly": true }, "description": { - "description": "The description of the gallery image.", - "type": "string" + "type": "string", + "description": "The description of the gallery image." }, "imageReference": { "$ref": "#/definitions/GalleryImageReference", "description": "The image reference of the gallery image." }, "icon": { - "description": "The icon of the gallery image.", - "type": "string" + "type": "string", + "description": "The icon of the gallery image." }, "enabled": { - "description": "Indicates whether this gallery image is enabled.", - "type": "boolean" + "type": "boolean", + "description": "Indicates whether this gallery image is enabled." }, "planId": { - "description": "The third party plan that applies to this image", - "type": "string" + "type": "string", + "description": "The third party plan that applies to this image" }, "isPlanAuthorized": { - "description": "Indicates if the plan has been authorized for programmatic deployment.", - "type": "boolean" + "type": "boolean", + "description": "Indicates if the plan has been authorized for programmatic deployment." } } }, "GalleryImageReference": { - "description": "The reference information for an Azure Marketplace image.", "type": "object", + "description": "The reference information for an Azure Marketplace image.", "properties": { "offer": { - "description": "The offer of the gallery image.", - "type": "string" + "type": "string", + "description": "The offer of the gallery image." }, "publisher": { - "description": "The publisher of the gallery image.", - "type": "string" + "type": "string", + "description": "The publisher of the gallery image." }, "sku": { - "description": "The SKU of the gallery image.", - "type": "string" + "type": "string", + "description": "The SKU of the gallery image." }, "osType": { - "description": "The OS type of the gallery image.", - "type": "string" + "type": "string", + "description": "The OS type of the gallery image." }, "version": { - "description": "The version of the gallery image.", - "type": "string" + "type": "string", + "description": "The version of the gallery image." } } }, - "GalleryImageReferenceFragment": { - "description": "The reference information for an Azure Marketplace image.", - "type": "object", - "properties": {} - }, "GenerateArmTemplateRequest": { - "description": "Parameters for generating an ARM template for deploying artifacts.", "type": "object", + "description": "Parameters for generating an ARM template for deploying artifacts.", "properties": { "virtualMachineName": { - "description": "The resource name of the virtual machine.", - "type": "string" + "type": "string", + "description": "The resource name of the virtual machine." }, "parameters": { - "description": "The parameters of the ARM template.", "type": "array", + "description": "The parameters of the ARM template.", "items": { "$ref": "#/definitions/ParameterInfo" - } + }, + "x-ms-identifiers": [] }, "location": { - "description": "The location of the virtual machine.", - "type": "string" + "type": "string", + "description": "The location of the virtual machine." }, "fileUploadOptions": { - "description": "Options for uploading the files for the artifact. UploadFilesAndGenerateSasTokens is the default value.", - "enum": [ - "UploadFilesAndGenerateSasTokens", - "None" - ], - "type": "string", - "x-ms-enum": { - "name": "FileUploadOptions", - "modelAsString": true - } + "$ref": "#/definitions/FileUploadOptions", + "description": "Options for uploading the files for the artifact. UploadFilesAndGenerateSasTokens is the default value." } } }, "GenerateUploadUriParameter": { - "description": "Properties for generating an upload URI.", "type": "object", + "description": "Properties for generating an upload URI.", "properties": { "blobName": { - "description": "The blob name of the upload URI.", - "type": "string" + "type": "string", + "description": "The blob name of the upload URI." } } }, "GenerateUploadUriResponse": { - "description": "Response body for generating an upload URI.", "type": "object", + "description": "Response body for generating an upload URI.", "properties": { "uploadUri": { - "description": "The upload URI for the VHD.", - "type": "string" + "type": "string", + "description": "The upload URI for the VHD." } } }, + "HostCachingOptions": { + "type": "string", + "description": "Caching option for a data disk (i.e. None, ReadOnly, ReadWrite).", + "enum": [ + "None", + "ReadOnly", + "ReadWrite" + ], + "x-ms-enum": { + "name": "HostCachingOptions", + "modelAsString": true, + "values": [ + { + "name": "None", + "value": "None" + }, + { + "name": "ReadOnly", + "value": "ReadOnly" + }, + { + "name": "ReadWrite", + "value": "ReadWrite" + } + ] + } + }, "HourDetails": { - "description": "Properties of an hourly schedule.", "type": "object", + "description": "Properties of an hourly schedule.", "properties": { "minute": { + "type": "integer", "format": "int32", - "description": "Minutes of the hour the schedule will run.", - "type": "integer" + "description": "Minutes of the hour the schedule will run." } } }, - "HourDetailsFragment": { - "description": "Properties of an hourly schedule.", - "type": "object", - "properties": {} + "HttpStatusCode": { + "type": "string", + "description": "The status code for the operation.", + "enum": [ + "Continue", + "SwitchingProtocols", + "OK", + "Created", + "Accepted", + "NonAuthoritativeInformation", + "NoContent", + "ResetContent", + "PartialContent", + "MultipleChoices", + "Ambiguous", + "MovedPermanently", + "Moved", + "Found", + "Redirect", + "SeeOther", + "RedirectMethod", + "NotModified", + "UseProxy", + "Unused", + "TemporaryRedirect", + "RedirectKeepVerb", + "BadRequest", + "Unauthorized", + "PaymentRequired", + "Forbidden", + "NotFound", + "MethodNotAllowed", + "NotAcceptable", + "ProxyAuthenticationRequired", + "RequestTimeout", + "Conflict", + "Gone", + "LengthRequired", + "PreconditionFailed", + "RequestEntityTooLarge", + "RequestUriTooLong", + "UnsupportedMediaType", + "RequestedRangeNotSatisfiable", + "ExpectationFailed", + "UpgradeRequired", + "InternalServerError", + "NotImplemented", + "BadGateway", + "ServiceUnavailable", + "GatewayTimeout", + "HttpVersionNotSupported" + ], + "x-ms-enum": { + "name": "HttpStatusCode", + "modelAsString": true, + "values": [ + { + "name": "Continue", + "value": "Continue" + }, + { + "name": "SwitchingProtocols", + "value": "SwitchingProtocols" + }, + { + "name": "OK", + "value": "OK" + }, + { + "name": "Created", + "value": "Created" + }, + { + "name": "Accepted", + "value": "Accepted" + }, + { + "name": "NonAuthoritativeInformation", + "value": "NonAuthoritativeInformation" + }, + { + "name": "NoContent", + "value": "NoContent" + }, + { + "name": "ResetContent", + "value": "ResetContent" + }, + { + "name": "PartialContent", + "value": "PartialContent" + }, + { + "name": "MultipleChoices", + "value": "MultipleChoices" + }, + { + "name": "Ambiguous", + "value": "Ambiguous" + }, + { + "name": "MovedPermanently", + "value": "MovedPermanently" + }, + { + "name": "Moved", + "value": "Moved" + }, + { + "name": "Found", + "value": "Found" + }, + { + "name": "Redirect", + "value": "Redirect" + }, + { + "name": "SeeOther", + "value": "SeeOther" + }, + { + "name": "RedirectMethod", + "value": "RedirectMethod" + }, + { + "name": "NotModified", + "value": "NotModified" + }, + { + "name": "UseProxy", + "value": "UseProxy" + }, + { + "name": "Unused", + "value": "Unused" + }, + { + "name": "TemporaryRedirect", + "value": "TemporaryRedirect" + }, + { + "name": "RedirectKeepVerb", + "value": "RedirectKeepVerb" + }, + { + "name": "BadRequest", + "value": "BadRequest" + }, + { + "name": "Unauthorized", + "value": "Unauthorized" + }, + { + "name": "PaymentRequired", + "value": "PaymentRequired" + }, + { + "name": "Forbidden", + "value": "Forbidden" + }, + { + "name": "NotFound", + "value": "NotFound" + }, + { + "name": "MethodNotAllowed", + "value": "MethodNotAllowed" + }, + { + "name": "NotAcceptable", + "value": "NotAcceptable" + }, + { + "name": "ProxyAuthenticationRequired", + "value": "ProxyAuthenticationRequired" + }, + { + "name": "RequestTimeout", + "value": "RequestTimeout" + }, + { + "name": "Conflict", + "value": "Conflict" + }, + { + "name": "Gone", + "value": "Gone" + }, + { + "name": "LengthRequired", + "value": "LengthRequired" + }, + { + "name": "PreconditionFailed", + "value": "PreconditionFailed" + }, + { + "name": "RequestEntityTooLarge", + "value": "RequestEntityTooLarge" + }, + { + "name": "RequestUriTooLong", + "value": "RequestUriTooLong" + }, + { + "name": "UnsupportedMediaType", + "value": "UnsupportedMediaType" + }, + { + "name": "RequestedRangeNotSatisfiable", + "value": "RequestedRangeNotSatisfiable" + }, + { + "name": "ExpectationFailed", + "value": "ExpectationFailed" + }, + { + "name": "UpgradeRequired", + "value": "UpgradeRequired" + }, + { + "name": "InternalServerError", + "value": "InternalServerError" + }, + { + "name": "NotImplemented", + "value": "NotImplemented" + }, + { + "name": "BadGateway", + "value": "BadGateway" + }, + { + "name": "ServiceUnavailable", + "value": "ServiceUnavailable" + }, + { + "name": "GatewayTimeout", + "value": "GatewayTimeout" + }, + { + "name": "HttpVersionNotSupported", + "value": "HttpVersionNotSupported" + } + ] + } }, "IdentityProperties": { - "description": "Properties of a managed identity", "type": "object", + "description": "Properties of a managed identity", "properties": { "type": { - "description": "Managed identity.", - "enum": [ - "None", - "SystemAssigned", - "UserAssigned", - "SystemAssigned,UserAssigned" - ], - "type": "string", - "x-ms-enum": { - "name": "ManagedIdentityType", - "modelAsString": true - } + "$ref": "#/definitions/ManagedIdentityType", + "description": "Managed identity." }, "principalId": { - "description": "The principal id of resource identity.", - "type": "string" + "type": "string", + "description": "The principal id of resource identity." }, "tenantId": { - "description": "The tenant identifier of resource.", - "type": "string" + "type": "string", + "description": "The tenant identifier of resource." }, "clientSecretUrl": { - "description": "The client secret URL of the identity.", - "type": "string" + "type": "string", + "description": "The client secret URL of the identity." } } }, "ImportLabVirtualMachineRequest": { - "description": "This represents the payload required to import a virtual machine from a different lab into the current one", "type": "object", + "description": "This represents the payload required to import a virtual machine from a different lab into the current one", "properties": { "sourceVirtualMachineResourceId": { - "description": "The full resource ID of the virtual machine to be imported.", - "type": "string" + "type": "string", + "description": "The full resource ID of the virtual machine to be imported." }, "destinationVirtualMachineName": { - "description": "The name of the virtual machine in the destination lab", - "type": "string" + "type": "string", + "description": "The name of the virtual machine in the destination lab" } } }, "InboundNatRule": { - "description": "A rule for NAT - exposing a VM's port (backendPort) on the public IP address using a load balancer.", "type": "object", + "description": "A rule for NAT - exposing a VM's port (backendPort) on the public IP address using a load balancer.", "properties": { "transportProtocol": { - "description": "The transport protocol for the endpoint.", - "enum": [ - "Tcp", - "Udp" - ], - "type": "string", - "x-ms-enum": { - "name": "TransportProtocol", - "modelAsString": true - } + "$ref": "#/definitions/TransportProtocol", + "description": "The transport protocol for the endpoint." }, "frontendPort": { + "type": "integer", "format": "int32", - "description": "The external endpoint port of the inbound connection. Possible values range between 1 and 65535, inclusive. If unspecified, a value will be allocated automatically.", - "type": "integer" + "description": "The external endpoint port of the inbound connection. Possible values range between 1 and 65535, inclusive. If unspecified, a value will be allocated automatically." }, "backendPort": { + "type": "integer", "format": "int32", - "description": "The port to which the external traffic will be redirected.", - "type": "integer" + "description": "The port to which the external traffic will be redirected." } } }, - "InboundNatRuleFragment": { - "description": "A rule for NAT - exposing a VM's port (backendPort) on the public IP address using a load balancer.", - "type": "object", - "properties": {} - }, "Lab": { - "description": "A lab.", "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], + "description": "A lab.", "properties": { "properties": { "$ref": "#/definitions/LabProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true } - } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] }, "LabAnnouncementProperties": { - "description": "Properties of a lab's announcement banner", "type": "object", + "description": "Properties of a lab's announcement banner", "properties": { "title": { - "description": "The plain text title for the lab announcement", - "type": "string" + "type": "string", + "description": "The plain text title for the lab announcement" }, "markdown": { - "description": "The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will be shown.", - "type": "string" + "type": "string", + "description": "The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will be shown." }, "enabled": { - "description": "Is the lab announcement active/enabled at this time?", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "EnableStatus", - "modelAsString": true - } + "$ref": "#/definitions/EnableStatus", + "description": "Is the lab announcement active/enabled at this time?" }, "expirationDate": { + "type": "string", "format": "date-time", - "description": "The time at which the announcement expires (null for never)", - "type": "string" + "description": "The time at which the announcement expires (null for never)" }, "expired": { - "description": "Has this announcement expired?", - "type": "boolean" + "type": "boolean", + "description": "Has this announcement expired?" }, "provisioningState": { - "description": "The provisioning status of the resource.", "type": "string", + "description": "The provisioning status of the resource.", "readOnly": true }, "uniqueIdentifier": { - "description": "The unique immutable identifier of a resource (Guid).", "type": "string", + "description": "The unique immutable identifier of a resource (Guid).", "readOnly": true } } }, - "LabAnnouncementPropertiesFragment": { - "description": "Properties of a lab's announcement banner", - "type": "object", - "properties": {} - }, "LabCost": { - "description": "A cost item.", - "required": [ - "properties" - ], "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], + "description": "A cost item.", "properties": { "properties": { "$ref": "#/definitions/LabCostProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true } - } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] }, "LabCostDetailsProperties": { - "description": "The properties of a lab cost item.", "type": "object", + "description": "The properties of a lab cost item.", "properties": { "date": { + "type": "string", "format": "date-time", - "description": "The date of the cost item.", - "type": "string" + "description": "The date of the cost item." }, "cost": { + "type": "number", "format": "double", - "description": "The cost component of the cost item.", - "type": "number" + "description": "The cost component of the cost item." }, "costType": { - "description": "The type of the cost.", - "enum": [ - "Unavailable", - "Reported", - "Projected" - ], - "type": "string", - "x-ms-enum": { - "name": "CostType", - "modelAsString": true - } + "$ref": "#/definitions/CostType", + "description": "The type of the cost." } } }, "LabCostProperties": { - "description": "Properties of a cost item.", "type": "object", + "description": "Properties of a cost item.", "properties": { "targetCost": { "$ref": "#/definitions/TargetCostProperties", @@ -10166,176 +10205,155 @@ "readOnly": true }, "labCostDetails": { - "description": "The lab cost details component of the cost data.", "type": "array", + "description": "The lab cost details component of the cost data.", "items": { "$ref": "#/definitions/LabCostDetailsProperties" }, - "readOnly": true + "readOnly": true, + "x-ms-identifiers": [] }, "resourceCosts": { - "description": "The resource cost component of the cost data.", "type": "array", + "description": "The resource cost component of the cost data.", "items": { "$ref": "#/definitions/LabResourceCostProperties" }, - "readOnly": true + "readOnly": true, + "x-ms-identifiers": [] }, "currencyCode": { - "description": "The currency code of the cost.", - "type": "string" + "type": "string", + "description": "The currency code of the cost." }, "startDateTime": { + "type": "string", "format": "date-time", - "description": "The start time of the cost data.", - "type": "string" + "description": "The start time of the cost data." }, "endDateTime": { + "type": "string", "format": "date-time", - "description": "The end time of the cost data.", - "type": "string" + "description": "The end time of the cost data." }, "createdDate": { + "type": "string", "format": "date-time", - "description": "The creation date of the cost.", - "type": "string" + "description": "The creation date of the cost." }, "provisioningState": { - "description": "The provisioning status of the resource.", "type": "string", + "description": "The provisioning status of the resource.", "readOnly": true }, "uniqueIdentifier": { - "description": "The unique immutable identifier of a resource (Guid).", "type": "string", + "description": "The unique immutable identifier of a resource (Guid).", "readOnly": true } } }, "LabCostSummaryProperties": { - "description": "The properties of the cost summary.", "type": "object", + "description": "The properties of the cost summary.", "properties": { "estimatedLabCost": { + "type": "number", "format": "double", - "description": "The cost component of the cost item.", - "type": "number" + "description": "The cost component of the cost item." } } }, "LabFragment": { - "description": "A lab.", "type": "object", + "description": "A lab.", "allOf": [ { "$ref": "#/definitions/UpdateResource" } - ], - "properties": {} + ] }, "LabList": { - "description": "The response of a list operation.", "type": "object", + "description": "The response of a list operation.", "properties": { "value": { - "description": "Results of the list operation.", "type": "array", + "description": "The Lab items on this page", "items": { "$ref": "#/definitions/Lab" } }, "nextLink": { - "description": "Link for next set of results.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "LabProperties": { - "description": "Properties of a lab.", "type": "object", + "description": "Properties of a lab.", "properties": { "defaultStorageAccount": { - "description": "The lab's default storage account.", "type": "string", + "description": "The lab's default storage account.", "readOnly": true }, "defaultPremiumStorageAccount": { - "description": "The lab's default premium storage account.", "type": "string", + "description": "The lab's default premium storage account.", "readOnly": true }, "artifactsStorageAccount": { - "description": "The lab's artifact storage account.", "type": "string", + "description": "The lab's artifact storage account.", "readOnly": true }, "premiumDataDiskStorageAccount": { - "description": "The lab's premium data disk storage account.", "type": "string", + "description": "The lab's premium data disk storage account.", "readOnly": true }, "vaultName": { - "description": "The lab's Key vault.", "type": "string", + "description": "The lab's Key vault.", "readOnly": true }, "labStorageType": { - "description": "Type of storage used by the lab. It can be either Premium or Standard. Default is Premium.", - "default": "Premium", - "enum": [ - "Standard", - "Premium", - "StandardSSD" - ], - "type": "string", - "x-ms-enum": { - "name": "StorageType", - "modelAsString": true - } + "$ref": "#/definitions/StorageType", + "description": "Type of storage used by the lab. It can be either Premium or Standard. Default is Premium." }, "mandatoryArtifactsResourceIdsLinux": { - "description": "The ordered list of artifact resource IDs that should be applied on all Linux VM creations by default, prior to the artifacts specified by the user.", "type": "array", + "description": "The ordered list of artifact resource IDs that should be applied on all Linux VM creations by default, prior to the artifacts specified by the user.", "items": { "type": "string" } }, "mandatoryArtifactsResourceIdsWindows": { - "description": "The ordered list of artifact resource IDs that should be applied on all Windows VM creations by default, prior to the artifacts specified by the user.", "type": "array", + "description": "The ordered list of artifact resource IDs that should be applied on all Windows VM creations by default, prior to the artifacts specified by the user.", "items": { "type": "string" } }, "createdDate": { + "type": "string", "format": "date-time", "description": "The creation date of the lab.", - "type": "string", "readOnly": true }, "premiumDataDisks": { - "description": "The setting to enable usage of premium data disks.\r\nWhen its value is 'Enabled', creation of standard or premium data disks is allowed.\r\nWhen its value is 'Disabled', only creation of standard data disks is allowed.", - "enum": [ - "Disabled", - "Enabled" - ], - "type": "string", - "x-ms-enum": { - "name": "PremiumDataDisk", - "modelAsString": true - } + "$ref": "#/definitions/PremiumDataDisk", + "description": "The setting to enable usage of premium data disks.\nWhen its value is 'Enabled', creation of standard or premium data disks is allowed.\nWhen its value is 'Disabled', only creation of standard data disks is allowed." }, "environmentPermission": { - "description": "The access rights to be granted to the user when provisioning an environment", - "enum": [ - "Reader", - "Contributor" - ], - "type": "string", - "x-ms-enum": { - "name": "EnvironmentPermission", - "modelAsString": true - } + "$ref": "#/definitions/EnvironmentPermission", + "description": "The access rights to be granted to the user when provisioning an environment" }, "announcement": { "$ref": "#/definitions/LabAnnouncementProperties", @@ -10346,168 +10364,154 @@ "description": "The properties of any lab support message associated with this lab" }, "vmCreationResourceGroup": { - "description": "The resource group in which all new lab virtual machines will be created. To let DevTest Labs manage resource group creation, set this value to null.", "type": "string", + "description": "The resource group in which all new lab virtual machines will be created. To let DevTest Labs manage resource group creation, set this value to null.", "readOnly": true }, "publicIpId": { - "description": "The public IP address for the lab's load balancer.", "type": "string", + "description": "The public IP address for the lab's load balancer.", "readOnly": true }, "loadBalancerId": { - "description": "The load balancer used to for lab VMs that use shared IP address.", "type": "string", + "description": "The load balancer used to for lab VMs that use shared IP address.", "readOnly": true }, "networkSecurityGroupId": { - "description": "The Network Security Group attached to the lab VMs Network interfaces to restrict open ports.", "type": "string", + "description": "The Network Security Group attached to the lab VMs Network interfaces to restrict open ports.", "readOnly": true }, "extendedProperties": { - "description": "Extended properties of the lab used for experimental features", "type": "object", + "description": "Extended properties of the lab used for experimental features", "additionalProperties": { "type": "string" } }, "provisioningState": { - "description": "The provisioning status of the resource.", "type": "string", + "description": "The provisioning status of the resource.", "readOnly": true }, "uniqueIdentifier": { - "description": "The unique immutable identifier of a resource (Guid).", "type": "string", + "description": "The unique immutable identifier of a resource (Guid).", "readOnly": true } } }, - "LabPropertiesFragment": { - "description": "Properties of a lab.", - "type": "object", - "properties": {} - }, "LabResourceCostProperties": { - "description": "The properties of a resource cost item.", "type": "object", + "description": "The properties of a resource cost item.", "properties": { "resourcename": { - "description": "The name of the resource.", - "type": "string" + "type": "string", + "description": "The name of the resource." }, "resourceUId": { - "description": "The unique identifier of the resource.", - "type": "string" + "type": "string", + "description": "The unique identifier of the resource." }, "resourceCost": { + "type": "number", "format": "double", - "description": "The cost component of the resource cost item.", - "type": "number" + "description": "The cost component of the resource cost item." }, "resourceType": { - "description": "The logical resource type (ex. virtualmachine, storageaccount)", - "type": "string" + "type": "string", + "description": "The logical resource type (ex. virtualmachine, storageaccount)" }, "resourceOwner": { - "description": "The owner of the resource (ex. janedoe@microsoft.com)", - "type": "string" + "type": "string", + "description": "The owner of the resource (ex. janedoe@microsoft.com)" }, "resourcePricingTier": { - "description": "The category of the resource (ex. Premium_LRS, Standard_DS1)", - "type": "string" + "type": "string", + "description": "The category of the resource (ex. Premium_LRS, Standard_DS1)" }, "resourceStatus": { - "description": "The status of the resource (ex. Active)", - "type": "string" + "type": "string", + "description": "The status of the resource (ex. Active)" }, "resourceId": { - "description": "The ID of the resource", - "type": "string" + "type": "string", + "description": "The ID of the resource" }, "externalResourceId": { - "description": "The ID of the external resource", - "type": "string" + "type": "string", + "description": "The ID of the external resource" } } }, "LabSupportProperties": { - "description": "Properties of a lab's support banner", "type": "object", + "description": "Properties of a lab's support banner", "properties": { "enabled": { - "description": "Is the lab support banner active/enabled at this time?", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "EnableStatus", - "modelAsString": true - } + "$ref": "#/definitions/EnableStatus", + "description": "Is the lab support banner active/enabled at this time?" }, "markdown": { - "description": "The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will be shown.", - "type": "string" + "type": "string", + "description": "The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will be shown." } } }, - "LabSupportPropertiesFragment": { - "description": "Properties of a lab's support banner", - "type": "object", - "properties": {} - }, "LabVhd": { - "description": "Properties of a VHD in the lab.", "type": "object", + "description": "Properties of a VHD in the lab.", "properties": { "id": { - "description": "The URI to the VHD.", - "type": "string" + "type": "string", + "description": "The URI to the VHD." } } }, "LabVhdList": { - "description": "The response of a list operation.", "type": "object", + "description": "The response of a list operation.", "properties": { "value": { - "description": "Results of the list operation.", "type": "array", + "description": "The LabVhd items on this page", "items": { "$ref": "#/definitions/LabVhd" } }, "nextLink": { - "description": "Link for next set of results.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "LabVirtualMachine": { - "description": "A virtual machine.", - "required": [ - "properties" - ], "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], + "description": "A virtual machine.", "properties": { "properties": { "$ref": "#/definitions/LabVirtualMachineProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true } - } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] }, "LabVirtualMachineCreationParameter": { - "description": "Properties for creating a virtual machine.", "type": "object", + "description": "Properties for creating a virtual machine.", "properties": { "properties": { "$ref": "#/definitions/LabVirtualMachineCreationParameterProperties", @@ -10515,270 +10519,265 @@ "x-ms-client-flatten": true }, "name": { - "description": "The name of the virtual machine or environment", - "type": "string" + "type": "string", + "description": "The name of the virtual machine or environment" }, "location": { - "description": "The location of the new virtual machine or environment", - "type": "string" + "type": "string", + "description": "The location of the new virtual machine or environment" }, "tags": { - "description": "The tags of the resource.", "type": "object", + "description": "The tags of the resource.", "additionalProperties": { "type": "string" } } } }, - "LabVirtualMachineCreationParameterFragment": { - "description": "Properties for creating a virtual machine.", - "type": "object", - "properties": {} - }, "LabVirtualMachineCreationParameterProperties": { - "description": "Properties for virtual machine creation.", "type": "object", + "description": "Properties for virtual machine creation.", "properties": { "bulkCreationParameters": { "$ref": "#/definitions/BulkCreationParameters", "description": "The number of virtual machine instances to create." }, "notes": { - "description": "The notes of the virtual machine.", - "type": "string" + "type": "string", + "description": "The notes of the virtual machine." }, "ownerObjectId": { + "type": "string", "description": "The object identifier of the owner of the virtual machine.", - "default": "dynamicValue", - "type": "string" + "default": "dynamicValue" }, "ownerUserPrincipalName": { - "description": "The user principal name of the virtual machine owner.", - "type": "string" + "type": "string", + "description": "The user principal name of the virtual machine owner." }, "createdDate": { + "type": "string", "format": "date-time", - "description": "The creation date of the virtual machine.", - "type": "string" + "description": "The creation date of the virtual machine." }, "customImageId": { - "description": "The custom image identifier of the virtual machine.", - "type": "string" + "type": "string", + "description": "The custom image identifier of the virtual machine." }, "size": { - "description": "The size of the virtual machine.", - "type": "string" + "type": "string", + "description": "The size of the virtual machine." }, "userName": { - "description": "The user name of the virtual machine.", - "type": "string" + "type": "string", + "description": "The user name of the virtual machine." }, "password": { - "description": "The password of the virtual machine administrator.", "type": "string", - "x-ms-secret": true + "description": "The password of the virtual machine administrator." }, "sshKey": { - "description": "The SSH key of the virtual machine administrator.", "type": "string", - "x-ms-secret": true + "description": "The SSH key of the virtual machine administrator." }, "isAuthenticationWithSshKey": { - "description": "Indicates whether this virtual machine uses an SSH key for authentication.", - "type": "boolean" + "type": "boolean", + "description": "Indicates whether this virtual machine uses an SSH key for authentication." }, "labSubnetName": { - "description": "The lab subnet name of the virtual machine.", - "type": "string" + "type": "string", + "description": "The lab subnet name of the virtual machine." }, "labVirtualNetworkId": { - "description": "The lab virtual network identifier of the virtual machine.", - "type": "string" + "type": "string", + "description": "The lab virtual network identifier of the virtual machine." }, "disallowPublicIpAddress": { - "description": "Indicates whether the virtual machine is to be created without a public IP address.", - "default": false, - "type": "boolean" + "type": "boolean", + "description": "Indicates whether the virtual machine is to be created without a public IP address." }, "artifacts": { - "description": "The artifacts to be installed on the virtual machine.", "type": "array", + "description": "The artifacts to be installed on the virtual machine.", "items": { "$ref": "#/definitions/ArtifactInstallProperties" - } + }, + "x-ms-identifiers": [] }, "galleryImageReference": { "$ref": "#/definitions/GalleryImageReference", "description": "The Microsoft Azure Marketplace image reference of the virtual machine." }, "planId": { - "description": "The id of the plan associated with the virtual machine image", - "type": "string" + "type": "string", + "description": "The id of the plan associated with the virtual machine image" }, "networkInterface": { "$ref": "#/definitions/NetworkInterfaceProperties", "description": "The network interface properties." }, "expirationDate": { + "type": "string", "format": "date-time", - "description": "The expiration date for VM.", - "type": "string" + "description": "The expiration date for VM." }, "allowClaim": { - "description": "Indicates whether another user can take ownership of the virtual machine", - "default": false, - "type": "boolean" + "type": "boolean", + "description": "Indicates whether another user can take ownership of the virtual machine" }, "storageType": { + "type": "string", "description": "Storage type to use for virtual machine (i.e. Standard, Premium).", - "default": "labStorageType", - "type": "string" + "default": "labStorageType" }, "environmentId": { - "description": "The resource ID of the environment that contains this virtual machine, if any.", - "type": "string" + "type": "string", + "description": "The resource ID of the environment that contains this virtual machine, if any." }, "dataDiskParameters": { - "description": "New or existing data disks to attach to the virtual machine after creation", "type": "array", + "description": "New or existing data disks to attach to the virtual machine after creation", "items": { "$ref": "#/definitions/DataDiskProperties" - } + }, + "x-ms-identifiers": [] }, "scheduleParameters": { - "description": "Virtual Machine schedules to be created", "type": "array", + "description": "Virtual Machine schedules to be created", "items": { "$ref": "#/definitions/ScheduleCreationParameter" - } + }, + "x-ms-identifiers": [] } } }, - "LabVirtualMachineCreationParameterPropertiesFragment": { - "description": "Properties for virtual machine creation.", - "type": "object", - "properties": {} - }, "LabVirtualMachineFragment": { - "description": "A virtual machine.", "type": "object", + "description": "A virtual machine.", "allOf": [ { "$ref": "#/definitions/UpdateResource" } - ], - "properties": {} + ] }, "LabVirtualMachineList": { - "description": "The response of a list operation.", "type": "object", + "description": "The response of a list operation.", "properties": { "value": { - "description": "Results of the list operation.", "type": "array", + "description": "The LabVirtualMachine items on this page", "items": { "$ref": "#/definitions/LabVirtualMachine" - } + }, + "x-ms-identifiers": [ + "properties/applicableSchedule/properties/labVmsShutdown/name", + "name", + "id" + ] }, "nextLink": { - "description": "Link for next set of results.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "LabVirtualMachineProperties": { - "description": "Properties of a virtual machine.", "type": "object", + "description": "Properties of a virtual machine.", "properties": { "notes": { - "description": "The notes of the virtual machine.", - "type": "string" + "type": "string", + "description": "The notes of the virtual machine." }, "ownerObjectId": { + "type": "string", "description": "The object identifier of the owner of the virtual machine.", - "default": "dynamicValue", - "type": "string" + "default": "dynamicValue" }, "ownerUserPrincipalName": { - "description": "The user principal name of the virtual machine owner.", - "type": "string" + "type": "string", + "description": "The user principal name of the virtual machine owner." }, "createdByUserId": { - "description": "The object identifier of the creator of the virtual machine.", "type": "string", + "description": "The object identifier of the creator of the virtual machine.", "readOnly": true }, "createdByUser": { - "description": "The email address of creator of the virtual machine.", "type": "string", + "description": "The email address of creator of the virtual machine.", "readOnly": true }, "createdDate": { + "type": "string", "format": "date-time", - "description": "The creation date of the virtual machine.", - "type": "string" + "description": "The creation date of the virtual machine." }, "computeId": { - "description": "The resource identifier (Microsoft.Compute) of the virtual machine.", "type": "string", + "description": "The resource identifier (Microsoft.Compute) of the virtual machine.", "readOnly": true }, "customImageId": { - "description": "The custom image identifier of the virtual machine.", - "type": "string" + "type": "string", + "description": "The custom image identifier of the virtual machine." }, "osType": { - "description": "The OS type of the virtual machine.", "type": "string", + "description": "The OS type of the virtual machine.", "readOnly": true }, "size": { - "description": "The size of the virtual machine.", - "type": "string" + "type": "string", + "description": "The size of the virtual machine." }, "userName": { - "description": "The user name of the virtual machine.", - "type": "string" + "type": "string", + "description": "The user name of the virtual machine." }, "password": { - "description": "The password of the virtual machine administrator.", "type": "string", - "x-ms-secret": true + "description": "The password of the virtual machine administrator." }, "sshKey": { - "description": "The SSH key of the virtual machine administrator.", "type": "string", - "x-ms-secret": true + "description": "The SSH key of the virtual machine administrator." }, "isAuthenticationWithSshKey": { - "description": "Indicates whether this virtual machine uses an SSH key for authentication.", - "type": "boolean" + "type": "boolean", + "description": "Indicates whether this virtual machine uses an SSH key for authentication." }, "fqdn": { - "description": "The fully-qualified domain name of the virtual machine.", "type": "string", + "description": "The fully-qualified domain name of the virtual machine.", "readOnly": true }, "labSubnetName": { - "description": "The lab subnet name of the virtual machine.", - "type": "string" + "type": "string", + "description": "The lab subnet name of the virtual machine." }, "labVirtualNetworkId": { - "description": "The lab virtual network identifier of the virtual machine.", - "type": "string" + "type": "string", + "description": "The lab virtual network identifier of the virtual machine." }, "disallowPublicIpAddress": { - "description": "Indicates whether the virtual machine is to be created without a public IP address.", - "default": false, - "type": "boolean" + "type": "boolean", + "description": "Indicates whether the virtual machine is to be created without a public IP address." }, "artifacts": { - "description": "The artifacts to be installed on the virtual machine.", "type": "array", + "description": "The artifacts to be installed on the virtual machine.", "items": { "$ref": "#/definitions/ArtifactInstallProperties" - } + }, + "x-ms-identifiers": [] }, "artifactDeploymentStatus": { "$ref": "#/definitions/ArtifactDeploymentStatusProperties", @@ -10790,8 +10789,8 @@ "description": "The Microsoft Azure Marketplace image reference of the virtual machine." }, "planId": { - "description": "The id of the plan associated with the virtual machine image", - "type": "string" + "type": "string", + "description": "The id of the plan associated with the virtual machine image" }, "computeVm": { "$ref": "#/definitions/ComputeVmProperties", @@ -10808,133 +10807,165 @@ "readOnly": true }, "expirationDate": { + "type": "string", "format": "date-time", - "description": "The expiration date for VM.", - "type": "string" + "description": "The expiration date for VM." }, "allowClaim": { - "description": "Indicates whether another user can take ownership of the virtual machine", - "default": false, - "type": "boolean" + "type": "boolean", + "description": "Indicates whether another user can take ownership of the virtual machine" }, "storageType": { + "type": "string", "description": "Storage type to use for virtual machine (i.e. Standard, Premium).", - "default": "labStorageType", - "type": "string" + "default": "labStorageType" }, "virtualMachineCreationSource": { + "$ref": "#/definitions/VirtualMachineCreationSource", "description": "Tells source of creation of lab virtual machine. Output property only.", - "enum": [ - "FromCustomImage", - "FromGalleryImage", - "FromSharedGalleryImage" - ], - "type": "string", - "readOnly": true, - "x-ms-enum": { - "name": "VirtualMachineCreationSource", - "modelAsString": true - } + "readOnly": true }, "environmentId": { - "description": "The resource ID of the environment that contains this virtual machine, if any.", - "type": "string" + "type": "string", + "description": "The resource ID of the environment that contains this virtual machine, if any." }, "dataDiskParameters": { - "description": "New or existing data disks to attach to the virtual machine after creation", "type": "array", + "description": "New or existing data disks to attach to the virtual machine after creation", "items": { "$ref": "#/definitions/DataDiskProperties" - } + }, + "x-ms-identifiers": [] }, "scheduleParameters": { - "description": "Virtual Machine schedules to be created", "type": "array", + "description": "Virtual Machine schedules to be created", "items": { "$ref": "#/definitions/ScheduleCreationParameter" - } + }, + "x-ms-identifiers": [] }, "lastKnownPowerState": { - "description": "Last known compute power state captured in DTL", "type": "string", + "description": "Last known compute power state captured in DTL", "readOnly": true }, "provisioningState": { - "description": "The provisioning status of the resource.", "type": "string", + "description": "The provisioning status of the resource.", "readOnly": true }, "uniqueIdentifier": { - "description": "The unique immutable identifier of a resource (Guid).", "type": "string", + "description": "The unique immutable identifier of a resource (Guid).", "readOnly": true } } }, - "LabVirtualMachinePropertiesFragment": { - "description": "Properties of a virtual machine.", - "type": "object", - "properties": {} - }, "LinuxOsInfo": { - "description": "Information about a Linux OS.", "type": "object", + "description": "Information about a Linux OS.", "properties": { "linuxOsState": { - "description": "The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied).", - "enum": [ - "NonDeprovisioned", - "DeprovisionRequested", - "DeprovisionApplied" - ], - "type": "string", - "x-ms-enum": { - "name": "LinuxOsState", - "modelAsString": true - } + "$ref": "#/definitions/LinuxOsState", + "description": "The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied)." } } }, - "LinuxOsInfoFragment": { - "description": "Information about a Linux OS.", - "type": "object", - "properties": {} + "LinuxOsState": { + "type": "string", + "description": "The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied).", + "enum": [ + "NonDeprovisioned", + "DeprovisionRequested", + "DeprovisionApplied" + ], + "x-ms-enum": { + "name": "LinuxOsState", + "modelAsString": true, + "values": [ + { + "name": "NonDeprovisioned", + "value": "NonDeprovisioned" + }, + { + "name": "DeprovisionRequested", + "value": "DeprovisionRequested" + }, + { + "name": "DeprovisionApplied", + "value": "DeprovisionApplied" + } + ] + } + }, + "ManagedIdentityType": { + "type": "string", + "description": "Managed identity.", + "enum": [ + "None", + "SystemAssigned", + "UserAssigned", + "SystemAssigned,UserAssigned" + ], + "x-ms-enum": { + "name": "ManagedIdentityType", + "modelAsString": true, + "values": [ + { + "name": "None", + "value": "None" + }, + { + "name": "SystemAssigned", + "value": "SystemAssigned" + }, + { + "name": "UserAssigned", + "value": "UserAssigned" + }, + { + "name": "SystemAssigned,UserAssigned", + "value": "SystemAssigned,UserAssigned" + } + ] + } }, "NetworkInterfaceProperties": { - "description": "Properties of a network interface.", "type": "object", + "description": "Properties of a network interface.", "properties": { "virtualNetworkId": { - "description": "The resource ID of the virtual network.", - "type": "string" + "type": "string", + "description": "The resource ID of the virtual network." }, "subnetId": { - "description": "The resource ID of the sub net.", - "type": "string" + "type": "string", + "description": "The resource ID of the sub net." }, "publicIpAddressId": { - "description": "The resource ID of the public IP address.", - "type": "string" + "type": "string", + "description": "The resource ID of the public IP address." }, "publicIpAddress": { - "description": "The public IP address.", - "type": "string" + "type": "string", + "description": "The public IP address." }, "privateIpAddress": { - "description": "The private IP address.", - "type": "string" + "type": "string", + "description": "The private IP address." }, "dnsName": { - "description": "The DNS name.", - "type": "string" + "type": "string", + "description": "The DNS name." }, "rdpAuthority": { - "description": "The RdpAuthority property is a server DNS host name or IP address followed by the service port number for RDP (Remote Desktop Protocol).", - "type": "string" + "type": "string", + "description": "The RdpAuthority property is a server DNS host name or IP address followed by the service port number for RDP (Remote Desktop Protocol)." }, "sshAuthority": { - "description": "The SshAuthority property is a server DNS host name or IP address followed by the service port number for SSH.", - "type": "string" + "type": "string", + "description": "The SshAuthority property is a server DNS host name or IP address followed by the service port number for SSH." }, "sharedPublicIpAddressConfiguration": { "$ref": "#/definitions/SharedPublicIpAddressConfiguration", @@ -10942,284 +10973,189 @@ } } }, - "NetworkInterfacePropertiesFragment": { - "description": "Properties of a network interface.", - "type": "object", - "properties": {} - }, "NotificationChannel": { + "type": "object", "description": "A notification.", + "properties": { + "properties": { + "$ref": "#/definitions/NotificationChannelProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + } + }, "required": [ "properties" ], - "type": "object", "allOf": [ { - "$ref": "#/definitions/Resource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" } + ] + }, + "NotificationChannelEventType": { + "type": "string", + "description": "The event type for which this notification is enabled (i.e. AutoShutdown, Cost)", + "enum": [ + "AutoShutdown", + "Cost" ], - "properties": { - "properties": { - "$ref": "#/definitions/NotificationChannelProperties", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } + "x-ms-enum": { + "name": "NotificationChannelEventType", + "modelAsString": true, + "values": [ + { + "name": "AutoShutdown", + "value": "AutoShutdown" + }, + { + "name": "Cost", + "value": "Cost" + } + ] } }, "NotificationChannelFragment": { - "description": "A notification.", "type": "object", + "description": "A notification.", "allOf": [ { "$ref": "#/definitions/UpdateResource" } - ], - "properties": {} + ] }, "NotificationChannelList": { - "description": "The response of a list operation.", "type": "object", + "description": "The response of a list operation.", "properties": { "value": { - "description": "Results of the list operation.", "type": "array", + "description": "The NotificationChannel items on this page", "items": { "$ref": "#/definitions/NotificationChannel" } }, "nextLink": { - "description": "Link for next set of results.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "NotificationChannelProperties": { - "description": "Properties of a schedule.", "type": "object", + "description": "Properties of a schedule.", "properties": { "webHookUrl": { - "description": "The webhook URL to send notifications to.", - "type": "string" + "type": "string", + "description": "The webhook URL to send notifications to." }, "emailRecipient": { - "description": "The email recipient to send notifications to (can be a list of semi-colon separated email addresses).", - "type": "string" + "type": "string", + "description": "The email recipient to send notifications to (can be a list of semi-colon separated email addresses)." }, "notificationLocale": { - "description": "The locale to use when sending a notification (fallback for unsupported languages is EN).", - "type": "string" + "type": "string", + "description": "The locale to use when sending a notification (fallback for unsupported languages is EN)." }, "description": { - "description": "Description of notification.", - "type": "string" + "type": "string", + "description": "Description of notification." }, "events": { - "description": "The list of event for which this notification is enabled.", "type": "array", + "description": "The list of event for which this notification is enabled.", "items": { "$ref": "#/definitions/Event" - } + }, + "x-ms-identifiers": [] }, "createdDate": { + "type": "string", "format": "date-time", "description": "The creation date of the notification channel.", - "type": "string", "readOnly": true }, "provisioningState": { - "description": "The provisioning status of the resource.", "type": "string", + "description": "The provisioning status of the resource.", "readOnly": true }, "uniqueIdentifier": { - "description": "The unique immutable identifier of a resource (Guid).", "type": "string", + "description": "The unique immutable identifier of a resource (Guid).", "readOnly": true } } }, - "NotificationChannelPropertiesFragment": { - "description": "Properties of a schedule.", - "type": "object", - "properties": {} - }, "NotificationSettings": { - "description": "Notification settings for a schedule.", "type": "object", + "description": "Notification settings for a schedule.", "properties": { "status": { - "description": "If notifications are enabled for this schedule (i.e. Enabled, Disabled).", - "default": "Disabled", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "EnableStatus", - "modelAsString": true - } + "$ref": "#/definitions/EnableStatus", + "description": "If notifications are enabled for this schedule (i.e. Enabled, Disabled)." }, "timeInMinutes": { + "type": "integer", "format": "int32", - "description": "Time in minutes before event at which notification will be sent.", - "type": "integer" + "description": "Time in minutes before event at which notification will be sent." }, "webhookUrl": { - "description": "The webhook URL to which the notification will be sent.", - "type": "string" + "type": "string", + "description": "The webhook URL to which the notification will be sent." }, "emailRecipient": { - "description": "The email recipient to send notifications to (can be a list of semi-colon separated email addresses).", - "type": "string" + "type": "string", + "description": "The email recipient to send notifications to (can be a list of semi-colon separated email addresses)." }, "notificationLocale": { - "description": "The locale to use when sending a notification (fallback for unsupported languages is EN).", - "type": "string" + "type": "string", + "description": "The locale to use when sending a notification (fallback for unsupported languages is EN)." } } }, - "NotificationSettingsFragment": { - "description": "Notification settings for a schedule.", - "type": "object", - "properties": {} - }, "NotifyParameters": { - "description": "Properties for generating a Notification.", "type": "object", + "description": "Properties for generating a Notification.", "properties": { "eventName": { - "description": "The type of event (i.e. AutoShutdown, Cost)", - "enum": [ - "AutoShutdown", - "Cost" - ], - "type": "string", - "x-ms-enum": { - "name": "NotificationChannelEventType", - "modelAsString": true - } + "$ref": "#/definitions/NotificationChannelEventType", + "description": "The type of event (i.e. AutoShutdown, Cost)" }, "jsonPayload": { - "description": "Properties for the notification in json format.", - "type": "string" + "type": "string", + "description": "Properties for the notification in json format." } } }, "OperationError": { - "description": "Error details for the operation in case of a failure.", "type": "object", + "description": "Error details for the operation in case of a failure.", "properties": { "code": { - "description": "The error code of the operation error.", - "type": "string" + "type": "string", + "description": "The error code of the operation error." }, "message": { - "description": "The error message of the operation error.", - "type": "string" - } - } - }, - "OperationMetadata": { - "description": "The REST API operation supported by DevTestLab ResourceProvider.", - "type": "object", - "properties": { - "name": { - "description": "Operation name: {provider}/{resource}/{operation}", - "type": "string" - }, - "display": { - "$ref": "#/definitions/OperationMetadataDisplay", - "description": "The object that describes the operations" - } - } - }, - "OperationMetadataDisplay": { - "description": "The object that describes the operations", - "type": "object", - "properties": { - "provider": { - "description": "Friendly name of the resource provider", - "type": "string" - }, - "resource": { - "description": "Resource type on which the operation is performed.", - "type": "string" - }, - "operation": { - "description": "Operation type: read, write, delete, listKeys/action, etc.", - "type": "string" - }, - "description": { - "description": "Friendly name of the operation", - "type": "string" + "type": "string", + "description": "The error message of the operation error." } } }, "OperationResult": { - "description": "An Operation Result", "type": "object", + "description": "An Operation Result", "properties": { "status": { - "description": "The operation status.", - "type": "string" + "type": "string", + "description": "The operation status." }, "statusCode": { - "description": "The status code for the operation.", - "enum": [ - "Continue", - "SwitchingProtocols", - "OK", - "Created", - "Accepted", - "NonAuthoritativeInformation", - "NoContent", - "ResetContent", - "PartialContent", - "MultipleChoices", - "Ambiguous", - "MovedPermanently", - "Moved", - "Found", - "Redirect", - "SeeOther", - "RedirectMethod", - "NotModified", - "UseProxy", - "Unused", - "TemporaryRedirect", - "RedirectKeepVerb", - "BadRequest", - "Unauthorized", - "PaymentRequired", - "Forbidden", - "NotFound", - "MethodNotAllowed", - "NotAcceptable", - "ProxyAuthenticationRequired", - "RequestTimeout", - "Conflict", - "Gone", - "LengthRequired", - "PreconditionFailed", - "RequestEntityTooLarge", - "RequestUriTooLong", - "UnsupportedMediaType", - "RequestedRangeNotSatisfiable", - "ExpectationFailed", - "UpgradeRequired", - "InternalServerError", - "NotImplemented", - "BadGateway", - "ServiceUnavailable", - "GatewayTimeout", - "HttpVersionNotSupported" - ], - "type": "string", - "x-ms-enum": { - "name": "HttpStatusCode", - "modelAsString": true - } + "$ref": "#/definitions/HttpStatusCode", + "description": "The status code for the operation." }, "error": { "$ref": "#/definitions/OperationError", @@ -11228,339 +11164,425 @@ } }, "ParameterInfo": { - "description": "Information about an artifact's parameter.", "type": "object", + "description": "Information about an artifact's parameter.", "properties": { "name": { - "description": "The name of the artifact parameter.", - "type": "string" + "type": "string", + "description": "The name of the artifact parameter." }, "value": { - "description": "The value of the artifact parameter.", - "type": "string" + "type": "string", + "description": "The value of the artifact parameter." } } }, "ParametersValueFileInfo": { - "description": "A file containing a set of parameter values for an ARM template.", "type": "object", + "description": "A file containing a set of parameter values for an ARM template.", "properties": { "fileName": { - "description": "File name.", - "type": "string" + "type": "string", + "description": "File name." }, "parametersValueInfo": { + "type": "object", "description": "Contents of the file.", - "type": "object" + "additionalProperties": {} } } }, "PercentageCostThresholdProperties": { - "description": "Properties of a percentage cost threshold.", "type": "object", + "description": "Properties of a percentage cost threshold.", "properties": { "thresholdValue": { + "type": "number", "format": "double", - "description": "The cost threshold value.", - "type": "number" + "description": "The cost threshold value." } } }, "Policy": { + "type": "object", "description": "A Policy.", + "properties": { + "properties": { + "$ref": "#/definitions/PolicyProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + } + }, "required": [ "properties" ], - "type": "object", "allOf": [ { - "$ref": "#/definitions/Resource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" } + ] + }, + "PolicyEvaluatorType": { + "type": "string", + "description": "The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy).", + "enum": [ + "AllowedValuesPolicy", + "MaxValuePolicy" ], - "properties": { - "properties": { - "$ref": "#/definitions/PolicyProperties", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } + "x-ms-enum": { + "name": "PolicyEvaluatorType", + "modelAsString": true, + "values": [ + { + "name": "AllowedValuesPolicy", + "value": "AllowedValuesPolicy" + }, + { + "name": "MaxValuePolicy", + "value": "MaxValuePolicy" + } + ] + } + }, + "PolicyFactName": { + "type": "string", + "description": "The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc.", + "enum": [ + "UserOwnedLabVmCount", + "UserOwnedLabPremiumVmCount", + "LabVmCount", + "LabPremiumVmCount", + "LabVmSize", + "GalleryImage", + "UserOwnedLabVmCountInSubnet", + "LabTargetCost", + "EnvironmentTemplate", + "ScheduleEditPermission" + ], + "x-ms-enum": { + "name": "PolicyFactName", + "modelAsString": true, + "values": [ + { + "name": "UserOwnedLabVmCount", + "value": "UserOwnedLabVmCount" + }, + { + "name": "UserOwnedLabPremiumVmCount", + "value": "UserOwnedLabPremiumVmCount" + }, + { + "name": "LabVmCount", + "value": "LabVmCount" + }, + { + "name": "LabPremiumVmCount", + "value": "LabPremiumVmCount" + }, + { + "name": "LabVmSize", + "value": "LabVmSize" + }, + { + "name": "GalleryImage", + "value": "GalleryImage" + }, + { + "name": "UserOwnedLabVmCountInSubnet", + "value": "UserOwnedLabVmCountInSubnet" + }, + { + "name": "LabTargetCost", + "value": "LabTargetCost" + }, + { + "name": "EnvironmentTemplate", + "value": "EnvironmentTemplate" + }, + { + "name": "ScheduleEditPermission", + "value": "ScheduleEditPermission" + } + ] } }, "PolicyFragment": { - "description": "A Policy.", "type": "object", + "description": "A Policy.", "allOf": [ { "$ref": "#/definitions/UpdateResource" } - ], - "properties": {} + ] }, "PolicyList": { - "description": "The response of a list operation.", "type": "object", + "description": "The response of a list operation.", "properties": { "value": { - "description": "Results of the list operation.", "type": "array", + "description": "The Policy items on this page", "items": { "$ref": "#/definitions/Policy" } }, "nextLink": { - "description": "Link for next set of results.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "PolicyProperties": { - "description": "Properties of a Policy.", "type": "object", + "description": "Properties of a Policy.", "properties": { "description": { - "description": "The description of the policy.", - "type": "string" + "type": "string", + "description": "The description of the policy." }, "status": { - "description": "The status of the policy.", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "PolicyStatus", - "modelAsString": true - } + "$ref": "#/definitions/PolicyStatus", + "description": "The status of the policy." }, "factName": { - "description": "The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc.", - "enum": [ - "UserOwnedLabVmCount", - "UserOwnedLabPremiumVmCount", - "LabVmCount", - "LabPremiumVmCount", - "LabVmSize", - "GalleryImage", - "UserOwnedLabVmCountInSubnet", - "LabTargetCost", - "EnvironmentTemplate", - "ScheduleEditPermission" - ], - "type": "string", - "x-ms-enum": { - "name": "PolicyFactName", - "modelAsString": true - } + "$ref": "#/definitions/PolicyFactName", + "description": "The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc." }, "factData": { - "description": "The fact data of the policy.", - "type": "string" + "type": "string", + "description": "The fact data of the policy." }, "threshold": { - "description": "The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy).", - "type": "string" + "type": "string", + "description": "The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy)." }, "evaluatorType": { - "description": "The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy).", - "enum": [ - "AllowedValuesPolicy", - "MaxValuePolicy" - ], - "type": "string", - "x-ms-enum": { - "name": "PolicyEvaluatorType", - "modelAsString": true - } + "$ref": "#/definitions/PolicyEvaluatorType", + "description": "The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy)." }, "createdDate": { + "type": "string", "format": "date-time", "description": "The creation date of the policy.", - "type": "string", "readOnly": true }, "provisioningState": { - "description": "The provisioning status of the resource.", "type": "string", + "description": "The provisioning status of the resource.", "readOnly": true }, "uniqueIdentifier": { - "description": "The unique immutable identifier of a resource (Guid).", "type": "string", + "description": "The unique immutable identifier of a resource (Guid).", "readOnly": true } } }, - "PolicyPropertiesFragment": { - "description": "Properties of a Policy.", - "type": "object", - "properties": {} - }, "PolicySetResult": { - "description": "Result of a policy set evaluation.", "type": "object", + "description": "Result of a policy set evaluation.", "properties": { "hasError": { - "description": "A value indicating whether this policy set evaluation has discovered violations.", - "type": "boolean" + "type": "boolean", + "description": "A value indicating whether this policy set evaluation has discovered violations." }, "policyViolations": { - "description": "The list of policy violations.", "type": "array", + "description": "The list of policy violations.", "items": { "$ref": "#/definitions/PolicyViolation" - } + }, + "x-ms-identifiers": [] } } }, + "PolicyStatus": { + "type": "string", + "description": "The status of the policy.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "PolicyStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled" + }, + { + "name": "Disabled", + "value": "Disabled" + } + ] + } + }, "PolicyViolation": { - "description": "Policy violation.", "type": "object", + "description": "Policy violation.", "properties": { "code": { - "description": "The code of the policy violation.", - "type": "string" + "type": "string", + "description": "The code of the policy violation." }, "message": { - "description": "The message of the policy violation.", - "type": "string" + "type": "string", + "description": "The message of the policy violation." } } }, "Port": { - "description": "Properties of a network port.", "type": "object", + "description": "Properties of a network port.", "properties": { "transportProtocol": { - "description": "Protocol type of the port.", - "enum": [ - "Tcp", - "Udp" - ], - "type": "string", - "x-ms-enum": { - "name": "TransportProtocol", - "modelAsString": true - } + "$ref": "#/definitions/TransportProtocol", + "description": "Protocol type of the port." }, "backendPort": { + "type": "integer", "format": "int32", - "description": "Backend port of the target virtual machine.", - "type": "integer" + "description": "Backend port of the target virtual machine." } } }, - "PortFragment": { - "description": "Properties of a network port.", - "type": "object", - "properties": {} - }, - "ProviderOperationResult": { - "description": "Result of the request to list REST API operations", - "type": "object", - "properties": { - "value": { - "description": "List of operations supported by the resource provider.", - "type": "array", - "items": { - "$ref": "#/definitions/OperationMetadata" + "PremiumDataDisk": { + "type": "string", + "description": "The setting to enable usage of premium data disks.\nWhen its value is 'Enabled', creation of standard or premium data disks is allowed.\nWhen its value is 'Disabled', only creation of standard data disks is allowed.", + "enum": [ + "Disabled", + "Enabled" + ], + "x-ms-enum": { + "name": "PremiumDataDisk", + "modelAsString": true, + "values": [ + { + "name": "Disabled", + "value": "Disabled" + }, + { + "name": "Enabled", + "value": "Enabled" } - }, - "nextLink": { - "description": "URL to get the next set of operation list results if there are any.", - "type": "string", - "readOnly": true - } + ] } }, "RdpConnection": { - "description": "Represents a .rdp file", "type": "object", + "description": "Represents a .rdp file", "properties": { "contents": { - "description": "The contents of the .rdp file", - "type": "string" + "type": "string", + "description": "The contents of the .rdp file" } } }, + "ReportingCycleType": { + "type": "string", + "description": "Reporting cycle type.", + "enum": [ + "CalendarMonth", + "Custom" + ], + "x-ms-enum": { + "name": "ReportingCycleType", + "modelAsString": true, + "values": [ + { + "name": "CalendarMonth", + "value": "CalendarMonth" + }, + { + "name": "Custom", + "value": "Custom" + } + ] + } + }, "ResizeLabVirtualMachineProperties": { - "description": "Request body for resizing a virtual machine.", "type": "object", + "description": "Request body for resizing a virtual machine.", "properties": { "size": { - "description": "Specifies the size of the virtual machine.", - "type": "string" + "type": "string", + "description": "Specifies the size of the virtual machine." } } }, "Resource": { - "description": "An Azure resource.", "type": "object", + "description": "An Azure resource.", "properties": { "id": { - "description": "The identifier of the resource.", "type": "string", + "description": "The identifier of the resource.", "readOnly": true }, "name": { - "description": "The name of the resource.", "type": "string", + "description": "The name of the resource.", "readOnly": true }, "type": { - "description": "The type of the resource.", "type": "string", + "description": "The type of the resource.", "readOnly": true }, "location": { - "description": "The location of the resource.", - "type": "string" + "type": "string", + "description": "The location of the resource." }, "tags": { - "description": "The tags of the resource.", "type": "object", + "description": "The tags of the resource.", "additionalProperties": { "type": "string" } } - }, - "x-ms-azure-resource": true + } }, "RetargetScheduleProperties": { - "description": "Properties for retargeting a virtual machine schedule.", "type": "object", + "description": "Properties for retargeting a virtual machine schedule.", "properties": { "currentResourceId": { - "description": "The resource Id of the virtual machine on which the schedule operates", - "type": "string" + "type": "string", + "description": "The resource Id of the virtual machine on which the schedule operates" }, "targetResourceId": { - "description": "The resource Id of the virtual machine that the schedule should be retargeted to", - "type": "string" + "type": "string", + "description": "The resource Id of the virtual machine that the schedule should be retargeted to" } } }, "Schedule": { - "description": "A schedule.", - "required": [ - "properties" - ], "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], + "description": "A schedule.", "properties": { "properties": { "$ref": "#/definitions/ScheduleProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true } - } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] }, "ScheduleCreationParameter": { - "description": "Properties for creating a schedule.", "type": "object", + "description": "Properties for creating a schedule.", "properties": { "properties": { "$ref": "#/definitions/ScheduleCreationParameterProperties", @@ -11568,48 +11590,34 @@ "x-ms-client-flatten": true }, "name": { - "description": "The name of the virtual machine or environment", - "type": "string" + "type": "string", + "description": "The name of the virtual machine or environment" }, "location": { - "description": "The location of the new virtual machine or environment", "type": "string", + "description": "The location of the new virtual machine or environment", "readOnly": true }, "tags": { - "description": "The tags of the resource.", "type": "object", + "description": "The tags of the resource.", "additionalProperties": { "type": "string" } } } }, - "ScheduleCreationParameterFragment": { - "description": "Properties for creating a schedule.", - "type": "object", - "properties": {} - }, "ScheduleCreationParameterProperties": { - "description": "Properties for schedule creation.", "type": "object", + "description": "Properties for schedule creation.", "properties": { "status": { - "description": "The status of the schedule (i.e. Enabled, Disabled)", - "default": "Disabled", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "EnableStatus", - "modelAsString": true - } + "$ref": "#/definitions/EnableStatus", + "description": "The status of the schedule (i.e. Enabled, Disabled)" }, "taskType": { - "description": "The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).", - "type": "string" + "type": "string", + "description": "The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart)." }, "weeklyRecurrence": { "$ref": "#/definitions/WeekDetails", @@ -11624,71 +11632,60 @@ "description": "If the schedule will occur multiple times a day, specify the hourly recurrence." }, "timeZoneId": { - "description": "The time zone ID (e.g. China Standard Time, Greenland Standard Time, Pacific Standard time, etc.). The possible values for this property can be found in `IReadOnlyCollection TimeZoneConverter.TZConvert.KnownWindowsTimeZoneIds` (https://github.com/mattjohnsonpint/TimeZoneConverter/blob/main/README.md)", - "type": "string" + "type": "string", + "description": "The time zone ID (e.g. China Standard Time, Greenland Standard Time, Pacific Standard time, etc.). The possible values for this property can be found in `IReadOnlyCollection TimeZoneConverter.TZConvert.KnownWindowsTimeZoneIds` (https://github.com/mattjohnsonpint/TimeZoneConverter/blob/main/README.md)" }, "notificationSettings": { "$ref": "#/definitions/NotificationSettings", "description": "Notification settings." }, "targetResourceId": { - "description": "The resource ID to which the schedule belongs", - "type": "string" + "type": "string", + "description": "The resource ID to which the schedule belongs" } } }, - "ScheduleCreationParameterPropertiesFragment": { - "description": "Properties for schedule creation.", - "type": "object", - "properties": {} - }, "ScheduleFragment": { - "description": "A schedule.", "type": "object", + "description": "A schedule.", "allOf": [ { "$ref": "#/definitions/UpdateResource" } - ], - "properties": {} + ] }, "ScheduleList": { - "description": "The response of a list operation.", "type": "object", + "description": "The response of a list operation.", "properties": { "value": { - "description": "Results of the list operation.", "type": "array", + "description": "The Schedule items on this page", "items": { "$ref": "#/definitions/Schedule" } }, "nextLink": { - "description": "Link for next set of results.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "ScheduleProperties": { - "description": "Properties of a schedule.", "type": "object", + "description": "Properties of a schedule.", "properties": { "status": { - "description": "The status of the schedule (i.e. Enabled, Disabled)", - "default": "Disabled", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "EnableStatus", - "modelAsString": true - } + "$ref": "#/definitions/EnableStatus", + "description": "The status of the schedule (i.e. Enabled, Disabled)" }, "taskType": { - "description": "The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).", - "type": "string" + "type": "string", + "description": "The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart)." }, "weeklyRecurrence": { "$ref": "#/definitions/WeekDetails", @@ -11703,168 +11700,169 @@ "description": "If the schedule will occur multiple times a day, specify the hourly recurrence." }, "timeZoneId": { - "description": "The time zone ID (e.g. China Standard Time, Greenland Standard Time, Pacific Standard time, etc.). The possible values for this property can be found in `IReadOnlyCollection TimeZoneConverter.TZConvert.KnownWindowsTimeZoneIds` (https://github.com/mattjohnsonpint/TimeZoneConverter/blob/main/README.md)", - "type": "string" + "type": "string", + "description": "The time zone ID (e.g. China Standard Time, Greenland Standard Time, Pacific Standard time, etc.). The possible values for this property can be found in `IReadOnlyCollection TimeZoneConverter.TZConvert.KnownWindowsTimeZoneIds` (https://github.com/mattjohnsonpint/TimeZoneConverter/blob/main/README.md)" }, "notificationSettings": { "$ref": "#/definitions/NotificationSettings", "description": "Notification settings." }, "createdDate": { + "type": "string", "format": "date-time", "description": "The creation date of the schedule.", - "type": "string", "readOnly": true }, "targetResourceId": { - "description": "The resource ID to which the schedule belongs", - "type": "string" + "type": "string", + "description": "The resource ID to which the schedule belongs" }, "provisioningState": { - "description": "The provisioning status of the resource.", "type": "string", + "description": "The provisioning status of the resource.", "readOnly": true }, "uniqueIdentifier": { - "description": "The unique immutable identifier of a resource (Guid).", "type": "string", + "description": "The unique immutable identifier of a resource (Guid).", "readOnly": true } } }, - "SchedulePropertiesFragment": { - "description": "Properties of a schedule.", - "type": "object", - "properties": {} - }, "Secret": { - "description": "A secret.", - "required": [ - "properties" - ], "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], + "description": "A secret.", "properties": { "properties": { "$ref": "#/definitions/SecretProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true } - } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] }, "SecretFragment": { - "description": "A secret.", "type": "object", + "description": "A secret.", "allOf": [ { "$ref": "#/definitions/UpdateResource" } - ], - "properties": {} + ] }, "SecretList": { - "description": "The response of a list operation.", "type": "object", + "description": "The response of a list operation.", "properties": { "value": { - "description": "Results of the list operation.", "type": "array", + "description": "The Secret items on this page", "items": { "$ref": "#/definitions/Secret" } }, "nextLink": { - "description": "Link for next set of results.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "SecretProperties": { - "description": "Properties of a secret.", "type": "object", + "description": "Properties of a secret.", "properties": { "value": { - "description": "The value of the secret for secret creation.", - "type": "string" + "type": "string", + "description": "The value of the secret for secret creation." }, "provisioningState": { - "description": "The provisioning status of the resource.", "type": "string", + "description": "The provisioning status of the resource.", "readOnly": true }, "uniqueIdentifier": { - "description": "The unique immutable identifier of a resource (Guid).", "type": "string", + "description": "The unique immutable identifier of a resource (Guid).", "readOnly": true } } }, - "SecretPropertiesFragment": { - "description": "Properties of a secret.", - "type": "object", - "properties": {} - }, "ServiceFabric": { - "description": "A Service Fabric.", - "required": [ - "properties" - ], "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], + "description": "A Service Fabric.", "properties": { "properties": { "$ref": "#/definitions/ServiceFabricProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true } - } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] }, "ServiceFabricFragment": { - "description": "A Service Fabric.", "type": "object", + "description": "A Service Fabric.", "allOf": [ { "$ref": "#/definitions/UpdateResource" } - ], - "properties": {} + ] }, "ServiceFabricList": { - "description": "The response of a list operation.", "type": "object", + "description": "The response of a list operation.", "properties": { "value": { - "description": "Results of the list operation.", "type": "array", + "description": "The ServiceFabric items on this page", "items": { "$ref": "#/definitions/ServiceFabric" - } + }, + "x-ms-identifiers": [ + "properties/applicableSchedule/properties/labVmsShutdown/name", + "name", + "id" + ] }, "nextLink": { - "description": "Link for next set of results.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "ServiceFabricProperties": { - "description": "Properties of a service fabric.", "type": "object", + "description": "Properties of a service fabric.", "properties": { "externalServiceFabricId": { - "description": "The backing service fabric resource's id", - "type": "string" + "type": "string", + "description": "The backing service fabric resource's id" }, "environmentId": { - "description": "The resource id of the environment under which the service fabric resource is present", - "type": "string" + "type": "string", + "description": "The resource id of the environment under which the service fabric resource is present" }, "applicableSchedule": { "$ref": "#/definitions/ApplicableSchedule", @@ -11872,375 +11870,367 @@ "readOnly": true }, "provisioningState": { - "description": "The provisioning status of the resource.", "type": "string", + "description": "The provisioning status of the resource.", "readOnly": true }, "uniqueIdentifier": { - "description": "The unique immutable identifier of a resource (Guid).", "type": "string", + "description": "The unique immutable identifier of a resource (Guid).", "readOnly": true } } }, - "ServiceFabricPropertiesFragment": { - "description": "Properties of a service fabric.", - "type": "object", - "properties": {} - }, "ServiceRunner": { - "description": "A container for a managed identity to execute DevTest lab services.", "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], + "description": "A container for a managed identity to execute DevTest lab services.", "properties": { + "properties": { + "type": "object", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + }, "identity": { "$ref": "#/definitions/IdentityProperties", "description": "The identity of the resource." } - } - }, - "ServiceRunnerList": { - "description": "The response of a list operation.", - "type": "object", - "properties": { - "value": { - "description": "Results of the list operation.", - "type": "array", - "items": { - "$ref": "#/definitions/ServiceRunner" - } - }, - "nextLink": { - "description": "Link for next set of results.", - "type": "string" + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" } - } + ] }, "SharedPublicIpAddressConfiguration": { - "description": "Properties of a virtual machine that determine how it is connected to a load balancer.", "type": "object", + "description": "Properties of a virtual machine that determine how it is connected to a load balancer.", "properties": { "inboundNatRules": { - "description": "The incoming NAT rules", "type": "array", + "description": "The incoming NAT rules", "items": { "$ref": "#/definitions/InboundNatRule" + }, + "x-ms-identifiers": [] + } + } + }, + "SourceControlType": { + "type": "string", + "description": "The artifact source's type.", + "enum": [ + "VsoGit", + "GitHub", + "StorageAccount" + ], + "x-ms-enum": { + "name": "SourceControlType", + "modelAsString": true, + "values": [ + { + "name": "VsoGit", + "value": "VsoGit" + }, + { + "name": "GitHub", + "value": "GitHub" + }, + { + "name": "StorageAccount", + "value": "StorageAccount" } - } + ] } }, - "SharedPublicIpAddressConfigurationFragment": { - "description": "Properties of a virtual machine that determine how it is connected to a load balancer.", - "type": "object", - "properties": {} - }, - "ShutdownNotificationContent": { - "description": "The contents of a shutdown notification. Webhooks can use this type to deserialize the request body when they get notified of an imminent shutdown.", - "type": "object", - "properties": { - "skipUrl": { - "description": "The URL to skip auto-shutdown.", - "type": "string" - }, - "delayUrl60": { - "description": "The URL to delay shutdown by 60 minutes.", - "type": "string" - }, - "delayUrl120": { - "description": "The URL to delay shutdown by 2 hours.", - "type": "string" - }, - "vmName": { - "description": "The virtual machine to be shut down.", - "type": "string" - }, - "guid": { - "description": "The GUID for the virtual machine to be shut down.", - "type": "string" - }, - "owner": { - "description": "The owner of the virtual machine.", - "type": "string" - }, - "vmUrl": { - "description": "The URL of the virtual machine.", - "type": "string" - }, - "minutesUntilShutdown": { - "description": "Minutes remaining until shutdown", - "type": "string" - }, - "eventType": { - "description": "The event for which a notification will be sent.", - "type": "string" - }, - "text": { - "description": "The text for the notification.", - "type": "string" - }, - "subscriptionId": { - "description": "The subscription ID for the schedule.", - "type": "string" - }, - "resourceGroupName": { - "description": "The resource group name for the schedule.", - "type": "string" - }, - "labName": { - "description": "The lab for the schedule.", - "type": "string" - } + "StorageType": { + "type": "string", + "description": "The storage type for the disk (i.e. Standard, Premium).", + "enum": [ + "Standard", + "Premium", + "StandardSSD" + ], + "x-ms-enum": { + "name": "StorageType", + "modelAsString": true, + "values": [ + { + "name": "Standard", + "value": "Standard" + }, + { + "name": "Premium", + "value": "Premium" + }, + { + "name": "StandardSSD", + "value": "StandardSSD" + } + ] } }, "Subnet": { - "description": "Subnet information.", "type": "object", + "description": "Subnet information.", "properties": { "resourceId": { - "description": "The resource ID of the subnet.", - "type": "string" + "type": "string", + "description": "The resource ID of the subnet." }, "labSubnetName": { - "description": "The name of the subnet as seen in the lab.", - "type": "string" + "type": "string", + "description": "The name of the subnet as seen in the lab." }, "allowPublicIp": { - "description": "The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).", - "enum": [ - "Default", - "Deny", - "Allow" - ], - "type": "string", - "x-ms-enum": { - "name": "UsagePermissionType", - "modelAsString": true - } + "$ref": "#/definitions/UsagePermissionType", + "description": "The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny))." } } }, - "SubnetFragment": { - "description": "Subnet information.", - "type": "object", - "properties": {} - }, "SubnetOverride": { - "description": "Property overrides on a subnet of a virtual network.", "type": "object", + "description": "Property overrides on a subnet of a virtual network.", "properties": { "resourceId": { - "description": "The resource ID of the subnet.", - "type": "string" + "type": "string", + "description": "The resource ID of the subnet." }, "labSubnetName": { - "description": "The name given to the subnet within the lab.", - "type": "string" + "type": "string", + "description": "The name given to the subnet within the lab." }, "useInVmCreationPermission": { - "description": "Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).", - "enum": [ - "Default", - "Deny", - "Allow" - ], - "type": "string", - "x-ms-enum": { - "name": "UsagePermissionType", - "modelAsString": true - } + "$ref": "#/definitions/UsagePermissionType", + "description": "Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny)." }, "usePublicIpAddressPermission": { - "description": "Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).", - "enum": [ - "Default", - "Deny", - "Allow" - ], - "type": "string", - "x-ms-enum": { - "name": "UsagePermissionType", - "modelAsString": true - } + "$ref": "#/definitions/UsagePermissionType", + "description": "Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny)." }, "sharedPublicIpAddressConfiguration": { "$ref": "#/definitions/SubnetSharedPublicIpAddressConfiguration", "description": "Properties that virtual machines on this subnet will share." }, "virtualNetworkPoolName": { - "description": "The virtual network pool associated with this subnet.", - "type": "string" + "type": "string", + "description": "The virtual network pool associated with this subnet." } } }, - "SubnetOverrideFragment": { - "description": "Property overrides on a subnet of a virtual network.", - "type": "object", - "properties": {} - }, "SubnetSharedPublicIpAddressConfiguration": { - "description": "Configuration for public IP address sharing.", "type": "object", + "description": "Configuration for public IP address sharing.", "properties": { "allowedPorts": { - "description": "Backend ports that virtual machines on this subnet are allowed to expose", "type": "array", + "description": "Backend ports that virtual machines on this subnet are allowed to expose", "items": { "$ref": "#/definitions/Port" - } + }, + "x-ms-identifiers": [] } } }, - "SubnetSharedPublicIpAddressConfigurationFragment": { - "description": "Configuration for public IP address sharing.", - "type": "object", - "properties": {} - }, "TargetCostProperties": { - "description": "Properties of a cost target.", "type": "object", + "description": "Properties of a cost target.", "properties": { "status": { - "description": "Target cost status", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "TargetCostStatus", - "modelAsString": true - } + "$ref": "#/definitions/TargetCostStatus", + "description": "Target cost status" }, "target": { + "type": "integer", "format": "int32", - "description": "Lab target cost", - "type": "integer" + "description": "Lab target cost" }, "costThresholds": { - "description": "Cost thresholds.", "type": "array", + "description": "Cost thresholds.", "items": { "$ref": "#/definitions/CostThresholdProperties" - } + }, + "x-ms-identifiers": [] }, "cycleStartDateTime": { + "type": "string", "format": "date-time", - "description": "Reporting cycle start date.", - "type": "string" + "description": "Reporting cycle start date." }, "cycleEndDateTime": { + "type": "string", "format": "date-time", - "description": "Reporting cycle end date.", - "type": "string" + "description": "Reporting cycle end date." }, "cycleType": { - "description": "Reporting cycle type.", - "enum": [ - "CalendarMonth", - "Custom" - ], - "type": "string", - "x-ms-enum": { - "name": "ReportingCycleType", - "modelAsString": true - } + "$ref": "#/definitions/ReportingCycleType", + "description": "Reporting cycle type." } } }, + "TargetCostStatus": { + "type": "string", + "description": "Target cost status", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "TargetCostStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled" + }, + { + "name": "Disabled", + "value": "Disabled" + } + ] + } + }, + "TransportProtocol": { + "type": "string", + "description": "The transport protocol for the endpoint.", + "enum": [ + "Tcp", + "Udp" + ], + "x-ms-enum": { + "name": "TransportProtocol", + "modelAsString": true, + "values": [ + { + "name": "Tcp", + "value": "Tcp" + }, + { + "name": "Udp", + "value": "Udp" + } + ] + } + }, + "TypeSpec.Http.OkResponse": { + "type": "object", + "description": "The request has succeeded." + }, "UpdateResource": { - "description": "Represents an update resource", "type": "object", + "description": "Represents an update resource", "properties": { "tags": { - "description": "The tags of the resource.", "type": "object", + "description": "The tags of the resource.", "additionalProperties": { "type": "string" } } } }, + "UsagePermissionType": { + "type": "string", + "description": "The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).", + "enum": [ + "Default", + "Deny", + "Allow" + ], + "x-ms-enum": { + "name": "UsagePermissionType", + "modelAsString": true, + "values": [ + { + "name": "Default", + "value": "Default" + }, + { + "name": "Deny", + "value": "Deny" + }, + { + "name": "Allow", + "value": "Allow" + } + ] + } + }, "User": { - "description": "Profile of a lab user.", "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], + "description": "Profile of a lab user.", "properties": { "properties": { "$ref": "#/definitions/UserProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true } - } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] }, "UserFragment": { - "description": "Profile of a lab user.", "type": "object", + "description": "Profile of a lab user.", "allOf": [ { "$ref": "#/definitions/UpdateResource" } - ], - "properties": {} + ] }, "UserIdentity": { - "description": "Identity attributes of a lab user.", "type": "object", + "description": "Identity attributes of a lab user.", "properties": { "principalName": { - "description": "Set to the principal name / UPN of the client JWT making the request.", - "type": "string" + "type": "string", + "description": "Set to the principal name / UPN of the client JWT making the request." }, "principalId": { - "description": "Set to the principal Id of the client JWT making the request. Service principal will not have the principal Id.", - "type": "string" + "type": "string", + "description": "Set to the principal Id of the client JWT making the request. Service principal will not have the principal Id." }, "tenantId": { - "description": "Set to the tenant ID of the client JWT making the request.", - "type": "string" + "type": "string", + "description": "Set to the tenant ID of the client JWT making the request." }, "objectId": { - "description": "Set to the object Id of the client JWT making the request. Not all users have object Id. For CSP (reseller) scenarios for example, object Id is not available.", - "type": "string" + "type": "string", + "description": "Set to the object Id of the client JWT making the request. Not all users have object Id. For CSP (reseller) scenarios for example, object Id is not available." }, "appId": { - "description": "Set to the app Id of the client JWT making the request.", - "type": "string" + "type": "string", + "description": "Set to the app Id of the client JWT making the request." } } }, - "UserIdentityFragment": { - "description": "Identity attributes of a lab user.", - "type": "object", - "properties": {} - }, "UserList": { - "description": "The response of a list operation.", "type": "object", + "description": "The response of a list operation.", "properties": { "value": { - "description": "Results of the list operation.", "type": "array", + "description": "The User items on this page", "items": { "$ref": "#/definitions/User" } }, "nextLink": { - "description": "Link for next set of results.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "UserProperties": { - "description": "Properties of a lab user profile.", "type": "object", + "description": "Properties of a lab user profile.", "properties": { "identity": { "$ref": "#/definitions/UserIdentity", @@ -12251,243 +12241,218 @@ "description": "The secret store of the user." }, "createdDate": { + "type": "string", "format": "date-time", "description": "The creation date of the user profile.", - "type": "string", "readOnly": true }, "provisioningState": { - "description": "The provisioning status of the resource.", "type": "string", + "description": "The provisioning status of the resource.", "readOnly": true }, "uniqueIdentifier": { - "description": "The unique immutable identifier of a resource (Guid).", "type": "string", + "description": "The unique immutable identifier of a resource (Guid).", "readOnly": true } } }, - "UserPropertiesFragment": { - "description": "Properties of a lab user profile.", - "type": "object", - "properties": {} - }, "UserSecretStore": { - "description": "Properties of a user's secret store.", "type": "object", + "description": "Properties of a user's secret store.", "properties": { "keyVaultUri": { - "description": "The URI of the user's Key vault.", - "type": "string" + "type": "string", + "description": "The URI of the user's Key vault." }, "keyVaultId": { - "description": "The ID of the user's Key vault.", - "type": "string" + "type": "string", + "description": "The ID of the user's Key vault." } } }, - "UserSecretStoreFragment": { - "description": "Properties of a user's secret store.", - "type": "object", - "properties": {} + "VirtualMachineCreationSource": { + "type": "string", + "description": "Tells source of creation of lab virtual machine. Output property only.", + "enum": [ + "FromCustomImage", + "FromGalleryImage", + "FromSharedGalleryImage" + ], + "x-ms-enum": { + "name": "VirtualMachineCreationSource", + "modelAsString": true, + "values": [ + { + "name": "FromCustomImage", + "value": "FromCustomImage" + }, + { + "name": "FromGalleryImage", + "value": "FromGalleryImage" + }, + { + "name": "FromSharedGalleryImage", + "value": "FromSharedGalleryImage" + } + ] + } }, "VirtualNetwork": { - "description": "A virtual network.", "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], + "description": "A virtual network.", "properties": { "properties": { "$ref": "#/definitions/VirtualNetworkProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true } - } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] }, "VirtualNetworkFragment": { - "description": "A virtual network.", "type": "object", + "description": "A virtual network.", "allOf": [ { "$ref": "#/definitions/UpdateResource" } - ], - "properties": {} + ] }, "VirtualNetworkList": { - "description": "The response of a list operation.", "type": "object", + "description": "The response of a list operation.", "properties": { "value": { - "description": "Results of the list operation.", "type": "array", + "description": "The VirtualNetwork items on this page", "items": { "$ref": "#/definitions/VirtualNetwork" } }, "nextLink": { - "description": "Link for next set of results.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "VirtualNetworkProperties": { - "description": "Properties of a virtual network.", "type": "object", + "description": "Properties of a virtual network.", "properties": { "allowedSubnets": { - "description": "The allowed subnets of the virtual network.", "type": "array", + "description": "The allowed subnets of the virtual network.", "items": { "$ref": "#/definitions/Subnet" - } + }, + "x-ms-identifiers": [] }, "description": { - "description": "The description of the virtual network.", - "type": "string" + "type": "string", + "description": "The description of the virtual network." }, "externalProviderResourceId": { - "description": "The Microsoft.Network resource identifier of the virtual network.", - "type": "string" + "type": "string", + "description": "The Microsoft.Network resource identifier of the virtual network." }, "externalSubnets": { - "description": "The external subnet properties.", "type": "array", + "description": "The external subnet properties.", "items": { "$ref": "#/definitions/ExternalSubnet" }, "readOnly": true }, "subnetOverrides": { - "description": "The subnet overrides of the virtual network.", "type": "array", + "description": "The subnet overrides of the virtual network.", "items": { "$ref": "#/definitions/SubnetOverride" - } + }, + "x-ms-identifiers": [] }, "createdDate": { + "type": "string", "format": "date-time", "description": "The creation date of the virtual network.", - "type": "string", "readOnly": true }, "provisioningState": { - "description": "The provisioning status of the resource.", "type": "string", + "description": "The provisioning status of the resource.", "readOnly": true }, "uniqueIdentifier": { - "description": "The unique immutable identifier of a resource (Guid).", "type": "string", + "description": "The unique immutable identifier of a resource (Guid).", "readOnly": true } } }, - "VirtualNetworkPropertiesFragment": { - "description": "Properties of a virtual network.", - "type": "object", - "properties": {} - }, "WeekDetails": { - "description": "Properties of a weekly schedule.", "type": "object", + "description": "Properties of a weekly schedule.", "properties": { "weekdays": { - "description": "The days of the week for which the schedule is set (e.g. Sunday, Monday, Tuesday, etc.).", "type": "array", + "description": "The days of the week for which the schedule is set (e.g. Sunday, Monday, Tuesday, etc.).", "items": { "type": "string" } }, "time": { - "description": "The time of the day the schedule will occur.", - "type": "string" + "type": "string", + "description": "The time of the day the schedule will occur." } } }, - "WeekDetailsFragment": { - "description": "Properties of a weekly schedule.", - "type": "object", - "properties": {} - }, "WindowsOsInfo": { - "description": "Information about a Windows OS.", "type": "object", + "description": "Information about a Windows OS.", "properties": { "windowsOsState": { - "description": "The state of the Windows OS (i.e. NonSysprepped, SysprepRequested, SysprepApplied).", - "enum": [ - "NonSysprepped", - "SysprepRequested", - "SysprepApplied" - ], - "type": "string", - "x-ms-enum": { - "name": "WindowsOsState", - "modelAsString": true - } + "$ref": "#/definitions/WindowsOsState", + "description": "The state of the Windows OS (i.e. NonSysprepped, SysprepRequested, SysprepApplied)." } } }, - "WindowsOsInfoFragment": { - "description": "Information about a Windows OS.", - "type": "object", - "properties": {} - } - }, - "parameters": { - "api-version": { - "name": "api-version", - "in": "query", - "description": "Client API version.", - "required": true, - "type": "string", - "default": "2018-09-15" - }, - "locationName": { - "name": "locationName", - "in": "path", - "description": "The name of the location.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "resourceGroupName": { - "name": "resourceGroupName", - "in": "path", - "description": "The name of the resource group.", - "required": true, + "WindowsOsState": { "type": "string", - "x-ms-parameter-location": "method" - }, - "subscriptionId": { - "name": "subscriptionId", - "in": "path", - "description": "The subscription ID.", - "required": true, - "type": "string" - } - }, - "securityDefinitions": { - "azure_auth": { - "flow": "implicit", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "scopes": { - "user_impersonation": "Access Microsoft Azure" - }, - "type": "oauth2", - "description": "OAuth2 Implicit Grant" + "description": "The state of the Windows OS (i.e. NonSysprepped, SysprepRequested, SysprepApplied).", + "enum": [ + "NonSysprepped", + "SysprepRequested", + "SysprepApplied" + ], + "x-ms-enum": { + "name": "WindowsOsState", + "modelAsString": true, + "values": [ + { + "name": "NonSysprepped", + "value": "NonSysprepped" + }, + { + "name": "SysprepRequested", + "value": "SysprepRequested" + }, + { + "name": "SysprepApplied", + "value": "SysprepApplied" + } + ] + } } }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ] + "parameters": {} } diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_Get.json index 256a3a892913..f017a756b1b0 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_Get.json @@ -1,40 +1,42 @@ { "parameters": { + "name": "{armTemplateName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", - "labName": "{labName}", "artifactSourceName": "{artifactSourceName}", - "name": "{armTemplateName}" + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "name": "Template1", + "type": "Microsoft.DevTestLab/labs/artifactSources/armTemplates", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}", + "location": "{location}", "properties": { - "displayName": "Template1", - "publisher": "Microsoft", "contents": { "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": {}, + "resources": [], "variables": { - "resourceNamePrefix": "[take(uniqueString(resourceGroup().id), 3)]", "hostingPlanName": "[toLower(concat(variables('resourceNamePrefix'), '-', take(uniqueString(resourceGroup().id), 6), '-sp'))]", + "resourceNamePrefix": "[take(uniqueString(resourceGroup().id), 3)]", "siteName": "[toLower(concat(variables('resourceNamePrefix'), '-', take(uniqueString(resourceGroup().id), 6)))]" - }, - "resources": [] + } }, + "displayName": "Template1", + "enabled": true, "parametersValueFilesInfo": [], - "enabled": true + "publisher": "Microsoft" }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}", - "name": "Template1", - "type": "Microsoft.DevTestLab/labs/artifactSources/armTemplates", - "location": "{location}", "tags": { "MyTag": "MyValue" } } } - } -} + }, + "operationId": "ArmTemplates_Get", + "title": "ArmTemplates_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_List.json index da36a2960411..bd1d85e2d1ab 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_List.json @@ -1,37 +1,37 @@ { "parameters": { "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", + "artifactSourceName": "{artifactSourceName}", "labName": "{labName}", - "artifactSourceName": "{artifactSourceName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { "value": [ { + "name": "Template1", + "type": "Microsoft.DevTestLab/labs/artifactSources/armTemplates", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}", + "location": "{location}", "properties": { - "displayName": "Template1", - "publisher": "Microsoft", "contents": { "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": {}, + "resources": [], "variables": { - "resourceNamePrefix": "[take(uniqueString(resourceGroup().id), 3)]", "hostingPlanName": "[toLower(concat(variables('resourceNamePrefix'), '-', take(uniqueString(resourceGroup().id), 6), '-sp'))]", + "resourceNamePrefix": "[take(uniqueString(resourceGroup().id), 3)]", "siteName": "[toLower(concat(variables('resourceNamePrefix'), '-', take(uniqueString(resourceGroup().id), 6)))]" - }, - "resources": [] + } }, + "displayName": "Template1", + "enabled": true, "parametersValueFilesInfo": [], - "enabled": true + "publisher": "Microsoft" }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}", - "name": "Template1", - "type": "Microsoft.DevTestLab/labs/artifactSources/armTemplates", - "location": "{location}", "tags": { "MyTag": "MyValue" } @@ -39,5 +39,7 @@ ] } } - } -} + }, + "operationId": "ArmTemplates_List", + "title": "ArmTemplates_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_CreateOrUpdate.json index 7b7f009c9848..9d4373f7924a 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_CreateOrUpdate.json @@ -1,46 +1,46 @@ { "parameters": { - "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", - "labName": "{labName}", "name": "{artifactSourceName}", + "api-version": "2018-09-15", "artifactSource": { "properties": { - "displayName": "{displayName}", - "uri": "{artifactSourceUri}", - "sourceType": "{VsoGit|GitHub|StorageAccount}", - "folderPath": "{folderPath}", "armTemplateFolderPath": "{armTemplateFolderPath}", "branchRef": "{branchRef}", + "displayName": "{displayName}", + "folderPath": "{folderPath}", "securityToken": "{securityToken}", - "status": "{Enabled|Disabled}" + "sourceType": "{VsoGit|GitHub|StorageAccount}", + "status": "{Enabled|Disabled}", + "uri": "{artifactSourceUri}" }, "tags": { "tagName1": "tagValue1" } - } + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "name": "{artifactSourceName}", + "type": "Microsoft.DevTestLab/labs/artifactsources", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}", + "location": "{location}", "properties": { - "displayName": "{displayName}", - "uri": "{artifactSourceUri}", - "sourceType": "{VsoGit|GitHub|StorageAccount}", - "folderPath": "{folderPath}", "armTemplateFolderPath": "{armTemplateFolderPath}", "branchRef": "{branchRef}", - "securityToken": "{securityToken}", - "status": "{Enabled|Disabled}", "createdDate": "2020-12-16T16:53:02.4830866-07:00", + "displayName": "{displayName}", + "folderPath": "{folderPath}", "provisioningState": "Succeeded", - "uniqueIdentifier": "{uniqueIdentifier}" + "securityToken": "{securityToken}", + "sourceType": "{VsoGit|GitHub|StorageAccount}", + "status": "{Enabled|Disabled}", + "uniqueIdentifier": "{uniqueIdentifier}", + "uri": "{artifactSourceUri}" }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}", - "name": "{artifactSourceName}", - "type": "Microsoft.DevTestLab/labs/artifactsources", - "location": "{location}", "tags": { "tagName1": "tagValue1" } @@ -48,27 +48,29 @@ }, "201": { "body": { + "name": "{artifactSourceName}", + "type": "Microsoft.DevTestLab/labs/artifactsources", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}", + "location": "{location}", "properties": { - "displayName": "{displayName}", - "uri": "{artifactSourceUri}", - "sourceType": "{VsoGit|GitHub|StorageAccount}", - "folderPath": "{folderPath}", "armTemplateFolderPath": "{armTemplateFolderPath}", "branchRef": "{branchRef}", - "securityToken": "{securityToken}", - "status": "{Enabled|Disabled}", "createdDate": "2020-12-16T16:53:02.4830866-07:00", + "displayName": "{displayName}", + "folderPath": "{folderPath}", "provisioningState": "Created", - "uniqueIdentifier": "{uniqueIdentifier}" + "securityToken": "{securityToken}", + "sourceType": "{VsoGit|GitHub|StorageAccount}", + "status": "{Enabled|Disabled}", + "uniqueIdentifier": "{uniqueIdentifier}", + "uri": "{artifactSourceUri}" }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}", - "name": "{artifactSourceName}", - "type": "Microsoft.DevTestLab/labs/artifactsources", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "ArtifactSources_CreateOrUpdate", + "title": "ArtifactSources_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Delete.json index 578e1c14237a..1e565af4e260 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Delete.json @@ -1,13 +1,15 @@ { "parameters": { + "name": "{artifactSourceName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{artifactSourceName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, "204": {} - } -} + }, + "operationId": "ArtifactSources_Delete", + "title": "ArtifactSources_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Get.json index 7462ce9e8a1d..ebb67aa0ec99 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Get.json @@ -1,35 +1,37 @@ { "parameters": { + "name": "{artifactSourceName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{artifactSourceName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "name": "{artifactSourceName}", + "type": "Microsoft.DevTestLab/labs/artifactsources", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}", + "location": "{location}", "properties": { - "displayName": "{displayName}", - "uri": "{artifactSourceUri}", - "sourceType": "{VsoGit|GitHub|StorageAccount}", - "folderPath": "{folderPath}", "armTemplateFolderPath": "{armTemplateFolderPath}", "branchRef": "{branchRef}", - "securityToken": "{securityToken}", - "status": "{Enabled|Disabled}", "createdDate": "2020-12-16T16:53:02.4830866-07:00", + "displayName": "{displayName}", + "folderPath": "{folderPath}", "provisioningState": "Succeeded", - "uniqueIdentifier": "{uniqueIdentifier}" + "securityToken": "{securityToken}", + "sourceType": "{VsoGit|GitHub|StorageAccount}", + "status": "{Enabled|Disabled}", + "uniqueIdentifier": "{uniqueIdentifier}", + "uri": "{artifactSourceUri}" }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}", - "name": "{artifactSourceName}", - "type": "Microsoft.DevTestLab/labs/artifactsources", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "ArtifactSources_Get", + "title": "ArtifactSources_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_List.json index 824805c6ef0e..67a7b745566a 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_List.json @@ -1,32 +1,32 @@ { "parameters": { "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", + "labName": "{labName}", "resourceGroupName": "resourceGroupName", - "labName": "{labName}" + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { "value": [ { + "name": "{artifactSourceName}", + "type": "Microsoft.DevTestLab/labs/artifactsources", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}", + "location": "{location}", "properties": { - "displayName": "{displayName}", - "uri": "{artifactSourceUri}", - "sourceType": "{VsoGit|GitHub|StorageAccount}", - "folderPath": "{folderPath}", "armTemplateFolderPath": "{armTemplateFolderPath}", "branchRef": "{branchRef}", - "securityToken": "{securityToken}", - "status": "{Enabled|Disabled}", "createdDate": "2020-12-16T16:53:02.4830866-07:00", + "displayName": "{displayName}", + "folderPath": "{folderPath}", "provisioningState": "Succeeded", - "uniqueIdentifier": "{uniqueIdentifier}" + "securityToken": "{securityToken}", + "sourceType": "{VsoGit|GitHub|StorageAccount}", + "status": "{Enabled|Disabled}", + "uniqueIdentifier": "{uniqueIdentifier}", + "uri": "{artifactSourceUri}" }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}", - "name": "{artifactSourceName}", - "type": "Microsoft.DevTestLab/labs/artifactsources", - "location": "{location}", "tags": { "tagName1": "tagValue1" } @@ -34,5 +34,7 @@ ] } } - } -} + }, + "operationId": "ArtifactSources_List", + "title": "ArtifactSources_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Update.json index 52d5dd71bd30..cdc9dd40bbff 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Update.json @@ -1,40 +1,42 @@ { "parameters": { - "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", - "labName": "{labName}", "name": "{artifactSourceName}", + "api-version": "2018-09-15", "artifactSource": { "tags": { "tagName1": "tagValue1" } - } + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "name": "{artifactSourceName}", + "type": "Microsoft.DevTestLab/labs/artifactsources", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}", + "location": "{location}", "properties": { - "displayName": "{displayName}", - "uri": "{artifactSourceUri}", - "sourceType": "{VsoGit|GitHub|StorageAccount}", - "folderPath": "{folderPath}", "armTemplateFolderPath": "{armTemplateFolderPath}", "branchRef": "{branchRef}", - "securityToken": "{securityToken}", - "status": "{Enabled|Disabled}", "createdDate": "2020-12-16T16:53:02.4830866-07:00", + "displayName": "{displayName}", + "folderPath": "{folderPath}", "provisioningState": "Succeeded", - "uniqueIdentifier": "{uniqueIdentifier}" + "securityToken": "{securityToken}", + "sourceType": "{VsoGit|GitHub|StorageAccount}", + "status": "{Enabled|Disabled}", + "uniqueIdentifier": "{uniqueIdentifier}", + "uri": "{artifactSourceUri}" }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}", - "name": "{artifactSourceName}", - "type": "Microsoft.DevTestLab/labs/artifactsources", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "ArtifactSources_Update", + "title": "ArtifactSources_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_GenerateArmTemplate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_GenerateArmTemplate.json index 46ae7179d783..98a3a3cfbbfd 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_GenerateArmTemplate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_GenerateArmTemplate.json @@ -1,68 +1,70 @@ { "parameters": { + "name": "{artifactName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", - "labName": "{labName}", "artifactSourceName": "{artifactSourceName}", - "name": "{artifactName}", "generateArmTemplateRequest": { "fileUploadOptions": "None", "location": "{location}", "virtualMachineName": "{vmName}" - } + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "parameters": { + "extensionName": { + "value": "{vmName}/CustomScriptExtension" + }, + "location": { + "value": "{location}" + } + }, "template": { "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json", "contentVersion": "1.0.0.0", "parameters": { - "location": { + "extensionName": { "type": "string" }, - "extensionName": { + "location": { "type": "string" } }, - "variables": { - "_commandToExecute": "{commandToExecute}." - }, "resources": [ { - "type": "Microsoft.Compute/virtualMachines/extensions", "name": "[parameters('extensionName')]", + "type": "Microsoft.Compute/virtualMachines/extensions", "apiVersion": "2015-06-15", "location": "[parameters('location')]", "properties": { - "publisher": "Microsoft.Compute", "type": "CustomScriptExtension", - "typeHandlerVersion": "1.9", "autoUpgradeMinorVersion": "true", "forceUpdateTag": "15/10/2018 00:00:00 +00:00", + "protectedSettings": { + "commandToExecute": "[concat('cd {MsDtlScriptFolder}/scripts && ', variables('_commandToExecute'))]" + }, + "publisher": "Microsoft.Compute", "settings": { + "commandToExecute": "", "fileUris": [ "{MsDtlArtifactFileUris}" - ], - "commandToExecute": "" + ] }, - "protectedSettings": { - "commandToExecute": "[concat('cd {MsDtlScriptFolder}/scripts && ', variables('_commandToExecute'))]" - } + "typeHandlerVersion": "1.9" } } - ] - }, - "parameters": { - "extensionName": { - "value": "{vmName}/CustomScriptExtension" - }, - "location": { - "value": "{location}" + ], + "variables": { + "_commandToExecute": "{commandToExecute}." } } } } - } -} + }, + "operationId": "Artifacts_GenerateArmTemplate", + "title": "Artifacts_GenerateArmTemplate" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_Get.json index bde3dd481677..8a2f424eae27 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_Get.json @@ -1,38 +1,40 @@ { "parameters": { + "name": "{artifactName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", - "labName": "{labName}", "artifactSourceName": "{artifactSourceName}", - "name": "{artifactName}" + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "name": "{artifactName}", + "type": "Microsoft.DevTestLab/labs/artifactSources/artifacts", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/artifacts/{artifactName}", + "location": "{location}", "properties": { - "title": "Sample Artifact Title", "description": "Sample artifact description.", - "publisher": "Microsoft", "filePath": "{artifactsPath}/{artifactName}", - "targetOsType": "Windows", "parameters": { "uri": { "type": "string", - "displayName": "Sample Parameter 1", "description": "Sample parameter 1 description.", - "defaultValue": "https://{labStorageAccount}.blob.core.windows.net/{artifactName}/..." + "defaultValue": "https://{labStorageAccount}.blob.core.windows.net/{artifactName}/...", + "displayName": "Sample Parameter 1" } - } + }, + "publisher": "Microsoft", + "targetOsType": "Windows", + "title": "Sample Artifact Title" }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/artifacts/{artifactName}", - "name": "{artifactName}", - "type": "Microsoft.DevTestLab/labs/artifactSources/artifacts", - "location": "{location}", "tags": { "MyTag": "MyValue" } } } - } -} + }, + "operationId": "Artifacts_Get", + "title": "Artifacts_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_List.json index ec9b5d2237cc..6958741acf0a 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_List.json @@ -1,35 +1,35 @@ { "parameters": { "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", + "artifactSourceName": "{artifactSourceName}", "labName": "{labName}", - "artifactSourceName": "{artifactSourceName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { "value": [ { + "name": "{artifactName}", + "type": "Microsoft.DevTestLab/labs/artifactSources/artifacts", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/artifacts/{artifactName}", + "location": "{location}", "properties": { - "title": "Sample Artifact Title", "description": "Sample artifact description.", - "publisher": "Microsoft", "filePath": "{artifactsPath}/{artifactName}", - "targetOsType": "Windows", "parameters": { "uri": { "type": "string", - "displayName": "Sample Parameter 1", "description": "Sample parameter 1 description.", - "defaultValue": "https://{labStorageAccount}.blob.core.windows.net/{artifactName}/..." + "defaultValue": "https://{labStorageAccount}.blob.core.windows.net/{artifactName}/...", + "displayName": "Sample Parameter 1" } - } + }, + "publisher": "Microsoft", + "targetOsType": "Windows", + "title": "Sample Artifact Title" }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/artifacts/{artifactName}", - "name": "{artifactName}", - "type": "Microsoft.DevTestLab/labs/artifactSources/artifacts", - "location": "{location}", "tags": { "MyTag": "MyValue" } @@ -37,5 +37,7 @@ ] } } - } -} + }, + "operationId": "Artifacts_List", + "title": "Artifacts_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_CreateOrUpdate.json index 6d7b142ec3ee..3df62456befb 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_CreateOrUpdate.json @@ -1,136 +1,136 @@ { "parameters": { - "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", - "labName": "{labName}", "name": "targetCost", + "api-version": "2018-09-15", "labCost": { "properties": { "currencyCode": "USD", - "startDateTime": "2020-12-01T00:00:00Z", "endDateTime": "2020-12-31T23:59:59Z", + "startDateTime": "2020-12-01T00:00:00Z", "targetCost": { "costThresholds": [ { - "thresholdId": "00000000-0000-0000-0000-000000000001", "displayOnChart": "Disabled", - "sendNotificationWhenExceeded": "Disabled", "percentageThreshold": { "thresholdValue": 25 - } + }, + "sendNotificationWhenExceeded": "Disabled", + "thresholdId": "00000000-0000-0000-0000-000000000001" }, { - "thresholdId": "00000000-0000-0000-0000-000000000002", "displayOnChart": "Enabled", - "sendNotificationWhenExceeded": "Enabled", "percentageThreshold": { "thresholdValue": 50 - } + }, + "sendNotificationWhenExceeded": "Enabled", + "thresholdId": "00000000-0000-0000-0000-000000000002" }, { - "thresholdId": "00000000-0000-0000-0000-000000000003", "displayOnChart": "Disabled", - "sendNotificationWhenExceeded": "Disabled", "percentageThreshold": { "thresholdValue": 75 - } + }, + "sendNotificationWhenExceeded": "Disabled", + "thresholdId": "00000000-0000-0000-0000-000000000003" }, { - "thresholdId": "00000000-0000-0000-0000-000000000004", "displayOnChart": "Disabled", - "sendNotificationWhenExceeded": "Disabled", "percentageThreshold": { "thresholdValue": 100 - } + }, + "sendNotificationWhenExceeded": "Disabled", + "thresholdId": "00000000-0000-0000-0000-000000000004" }, { - "thresholdId": "00000000-0000-0000-0000-000000000005", "displayOnChart": "Disabled", - "sendNotificationWhenExceeded": "Disabled", "percentageThreshold": { "thresholdValue": 125 - } + }, + "sendNotificationWhenExceeded": "Disabled", + "thresholdId": "00000000-0000-0000-0000-000000000005" } ], - "target": 100, - "cycleStartDateTime": "2020-12-01T00:00:00.000Z", "cycleEndDateTime": "2020-12-31T00:00:00.000Z", + "cycleStartDateTime": "2020-12-01T00:00:00.000Z", "cycleType": "CalendarMonth", - "status": "Enabled" + "status": "Enabled", + "target": 100 } } - } + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "name": "{costName}", + "type": "Microsoft.DevTestLab/labs/costs", + "id": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.devtestlab/labs/{labName}/costs/{costName}", + "location": "{location}", "properties": { + "createdDate": "2020-12-23T22:43:54.7253204+00:00", + "currencyCode": "USD", + "endDateTime": "2020-12-31T23:59:59Z", + "provisioningState": "Succeeded", + "startDateTime": "2020-12-01T00:00:00Z", "targetCost": { "costThresholds": [ { - "thresholdId": "00000000-0000-0000-0000-000000000001", + "displayOnChart": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000", "percentageThreshold": { - "thresholdValue": 25.0 + "thresholdValue": 25 }, - "displayOnChart": "Disabled", "sendNotificationWhenExceeded": "Disabled", - "notificationSent": "0001-01-01T00:00:00.0000000" + "thresholdId": "00000000-0000-0000-0000-000000000001" }, { - "thresholdId": "00000000-0000-0000-0000-000000000001", + "displayOnChart": "Enabled", + "notificationSent": "0001-01-01T00:00:00.0000000", "percentageThreshold": { - "thresholdValue": 50.0 + "thresholdValue": 50 }, - "displayOnChart": "Enabled", "sendNotificationWhenExceeded": "Enabled", - "notificationSent": "0001-01-01T00:00:00.0000000" + "thresholdId": "00000000-0000-0000-0000-000000000001" }, { - "thresholdId": "00000000-0000-0000-0000-000000000001", + "displayOnChart": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000", "percentageThreshold": { - "thresholdValue": 75.0 + "thresholdValue": 75 }, - "displayOnChart": "Disabled", "sendNotificationWhenExceeded": "Disabled", - "notificationSent": "0001-01-01T00:00:00.0000000" + "thresholdId": "00000000-0000-0000-0000-000000000001" }, { - "thresholdId": "00000000-0000-0000-0000-000000000001", + "displayOnChart": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000", "percentageThreshold": { - "thresholdValue": 100.0 + "thresholdValue": 100 }, - "displayOnChart": "Disabled", "sendNotificationWhenExceeded": "Disabled", - "notificationSent": "0001-01-01T00:00:00.0000000" + "thresholdId": "00000000-0000-0000-0000-000000000001" }, { - "thresholdId": "00000000-0000-0000-0000-000000000001", + "displayOnChart": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000", "percentageThreshold": { - "thresholdValue": 125.0 + "thresholdValue": 125 }, - "displayOnChart": "Disabled", "sendNotificationWhenExceeded": "Disabled", - "notificationSent": "0001-01-01T00:00:00.0000000" + "thresholdId": "00000000-0000-0000-0000-000000000001" } ], - "status": "Enabled", - "target": 100, - "cycleStartDateTime": "2020-12-01T00:00:00+00:00", "cycleEndDateTime": "2020-12-31T23:59:59+00:00", - "cycleType": "CalendarMonth" + "cycleStartDateTime": "2020-12-01T00:00:00+00:00", + "cycleType": "CalendarMonth", + "status": "Enabled", + "target": 100 }, - "currencyCode": "USD", - "startDateTime": "2020-12-01T00:00:00Z", - "endDateTime": "2020-12-31T23:59:59Z", - "createdDate": "2020-12-23T22:43:54.7253204+00:00", - "provisioningState": "Succeeded", "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.devtestlab/labs/{labName}/costs/{costName}", - "name": "{costName}", - "type": "Microsoft.DevTestLab/labs/costs", - "location": "{location}", "tags": { "tagName1": "tagValue1" } @@ -138,76 +138,78 @@ }, "201": { "body": { + "name": "{costName}", + "type": "Microsoft.DevTestLab/labs/costs", + "id": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.devtestlab/labs/{labName}/costs/{costName}", + "location": "{location}", "properties": { + "createdDate": "2020-12-23T22:43:54.7253204+00:00", + "currencyCode": "USD", + "endDateTime": "2020-12-31T23:59:59Z", + "provisioningState": "Creating", + "startDateTime": "2020-12-01T00:00:00Z", "targetCost": { "costThresholds": [ { - "thresholdId": "00000000-0000-0000-0000-000000000001", + "displayOnChart": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000", "percentageThreshold": { - "thresholdValue": 25.0 + "thresholdValue": 25 }, - "displayOnChart": "Disabled", "sendNotificationWhenExceeded": "Disabled", - "notificationSent": "0001-01-01T00:00:00.0000000" + "thresholdId": "00000000-0000-0000-0000-000000000001" }, { - "thresholdId": "00000000-0000-0000-0000-000000000001", + "displayOnChart": "Enabled", + "notificationSent": "0001-01-01T00:00:00.0000000", "percentageThreshold": { - "thresholdValue": 50.0 + "thresholdValue": 50 }, - "displayOnChart": "Enabled", "sendNotificationWhenExceeded": "Enabled", - "notificationSent": "0001-01-01T00:00:00.0000000" + "thresholdId": "00000000-0000-0000-0000-000000000001" }, { - "thresholdId": "00000000-0000-0000-0000-000000000001", + "displayOnChart": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000", "percentageThreshold": { - "thresholdValue": 75.0 + "thresholdValue": 75 }, - "displayOnChart": "Disabled", "sendNotificationWhenExceeded": "Disabled", - "notificationSent": "0001-01-01T00:00:00.0000000" + "thresholdId": "00000000-0000-0000-0000-000000000001" }, { - "thresholdId": "00000000-0000-0000-0000-000000000001", + "displayOnChart": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000", "percentageThreshold": { - "thresholdValue": 100.0 + "thresholdValue": 100 }, - "displayOnChart": "Disabled", "sendNotificationWhenExceeded": "Disabled", - "notificationSent": "0001-01-01T00:00:00.0000000" + "thresholdId": "00000000-0000-0000-0000-000000000001" }, { - "thresholdId": "00000000-0000-0000-0000-000000000001", + "displayOnChart": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000", "percentageThreshold": { - "thresholdValue": 125.0 + "thresholdValue": 125 }, - "displayOnChart": "Disabled", "sendNotificationWhenExceeded": "Disabled", - "notificationSent": "0001-01-01T00:00:00.0000000" + "thresholdId": "00000000-0000-0000-0000-000000000001" } ], - "status": "Enabled", - "target": 100, - "cycleStartDateTime": "2020-12-01T00:00:00+00:00", "cycleEndDateTime": "2020-12-31T23:59:59+00:00", - "cycleType": "CalendarMonth" + "cycleStartDateTime": "2020-12-01T00:00:00+00:00", + "cycleType": "CalendarMonth", + "status": "Enabled", + "target": 100 }, - "currencyCode": "USD", - "startDateTime": "2020-12-01T00:00:00Z", - "endDateTime": "2020-12-31T23:59:59Z", - "createdDate": "2020-12-23T22:43:54.7253204+00:00", - "provisioningState": "Creating", "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.devtestlab/labs/{labName}/costs/{costName}", - "name": "{costName}", - "type": "Microsoft.DevTestLab/labs/costs", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "Costs_CreateOrUpdate", + "title": "Costs_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_Get.json index b0c62f61cba4..b78510fcaeb2 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_Get.json @@ -1,84 +1,86 @@ { "parameters": { + "name": "targetCost", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "targetCost" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "name": "{costName}", + "type": "Microsoft.DevTestLab/labs/costs", + "id": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.devtestlab/labs/{labName}/costs/{costName}", + "location": "{location}", "properties": { + "createdDate": "2020-12-23T22:43:54.7253204+00:00", + "currencyCode": "USD", + "endDateTime": "2020-12-31T23:59:59Z", + "provisioningState": "Succeeded", + "startDateTime": "2020-12-01T00:00:00Z", "targetCost": { "costThresholds": [ { - "thresholdId": "00000000-0000-0000-0000-000000000001", + "displayOnChart": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000", "percentageThreshold": { - "thresholdValue": 25.0 + "thresholdValue": 25 }, - "displayOnChart": "Disabled", "sendNotificationWhenExceeded": "Disabled", - "notificationSent": "0001-01-01T00:00:00.0000000" + "thresholdId": "00000000-0000-0000-0000-000000000001" }, { - "thresholdId": "00000000-0000-0000-0000-000000000001", + "displayOnChart": "Enabled", + "notificationSent": "0001-01-01T00:00:00.0000000", "percentageThreshold": { - "thresholdValue": 50.0 + "thresholdValue": 50 }, - "displayOnChart": "Enabled", "sendNotificationWhenExceeded": "Enabled", - "notificationSent": "0001-01-01T00:00:00.0000000" + "thresholdId": "00000000-0000-0000-0000-000000000001" }, { - "thresholdId": "00000000-0000-0000-0000-000000000001", + "displayOnChart": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000", "percentageThreshold": { - "thresholdValue": 75.0 + "thresholdValue": 75 }, - "displayOnChart": "Disabled", "sendNotificationWhenExceeded": "Disabled", - "notificationSent": "0001-01-01T00:00:00.0000000" + "thresholdId": "00000000-0000-0000-0000-000000000001" }, { - "thresholdId": "00000000-0000-0000-0000-000000000001", + "displayOnChart": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000", "percentageThreshold": { - "thresholdValue": 100.0 + "thresholdValue": 100 }, - "displayOnChart": "Disabled", "sendNotificationWhenExceeded": "Disabled", - "notificationSent": "0001-01-01T00:00:00.0000000" + "thresholdId": "00000000-0000-0000-0000-000000000001" }, { - "thresholdId": "00000000-0000-0000-0000-000000000001", + "displayOnChart": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000", "percentageThreshold": { - "thresholdValue": 125.0 + "thresholdValue": 125 }, - "displayOnChart": "Disabled", "sendNotificationWhenExceeded": "Disabled", - "notificationSent": "0001-01-01T00:00:00.0000000" + "thresholdId": "00000000-0000-0000-0000-000000000001" } ], - "status": "Enabled", - "target": 100, - "cycleStartDateTime": "2020-12-01T00:00:00+00:00", "cycleEndDateTime": "2020-12-31T23:59:59+00:00", - "cycleType": "CalendarMonth" + "cycleStartDateTime": "2020-12-01T00:00:00+00:00", + "cycleType": "CalendarMonth", + "status": "Enabled", + "target": 100 }, - "currencyCode": "USD", - "startDateTime": "2020-12-01T00:00:00Z", - "endDateTime": "2020-12-31T23:59:59Z", - "createdDate": "2020-12-23T22:43:54.7253204+00:00", - "provisioningState": "Succeeded", "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.devtestlab/labs/{labName}/costs/{costName}", - "name": "{costName}", - "type": "Microsoft.DevTestLab/labs/costs", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "Costs_Get", + "title": "Costs_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_CreateOrUpdate.json index ef0ae2da61e3..c94c89d77d75 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_CreateOrUpdate.json @@ -1,44 +1,44 @@ { "parameters": { - "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", - "labName": "{labName}", "name": "{customImageName}", + "api-version": "2018-09-15", "customImage": { "properties": { + "description": "My Custom Image", "vm": { "linuxOsInfo": { "linuxOsState": "NonDeprovisioned" }, "sourceVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" - }, - "description": "My Custom Image" + } }, "tags": { "tagName1": "tagValue1" } - } + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/customimages/{customImageName}", "name": "{customImageName}", "type": "Microsoft.DevTestLab/labs/customImages", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/customimages/{customImageName}", "location": "{location}", "properties": { + "description": "My Custom Image", + "author": "{authorName}", + "creationDate": "2021-10-10T09:59:28.7985144+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}", "vm": { "linuxOsInfo": { "linuxOsState": "NonDeprovisioned" }, "sourceVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" - }, - "description": "My Custom Image", - "author": "{authorName}", - "creationDate": "2021-10-10T09:59:28.7985144+00:00", - "provisioningState": "Succeeded", - "uniqueIdentifier": "{uniqueIdentifier}" + } }, "tags": { "tagName1": "tagValue1" @@ -47,27 +47,29 @@ }, "201": { "body": { - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/customimages/{customImageName}", "name": "{customImageName}", "type": "Microsoft.DevTestLab/labs/customImages", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/customimages/{customImageName}", "location": "{location}", "properties": { + "description": "My Custom Image", + "author": "{authorName}", + "creationDate": "2021-10-10T09:59:28.7985144+00:00", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}", "vm": { "linuxOsInfo": { "linuxOsState": "NonDeprovisioned" }, "sourceVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" - }, - "description": "My Custom Image", - "author": "{authorName}", - "creationDate": "2021-10-10T09:59:28.7985144+00:00", - "provisioningState": "Creating", - "uniqueIdentifier": "{uniqueIdentifier}" + } }, "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "CustomImages_CreateOrUpdate", + "title": "CustomImages_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Delete.json index 3b21ce3d3362..e13e59e1b43c 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Delete.json @@ -1,10 +1,10 @@ { "parameters": { + "name": "{customImageName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{customImageName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, @@ -14,5 +14,7 @@ } }, "204": {} - } -} + }, + "operationId": "CustomImages_Delete", + "title": "CustomImages_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Get.json index 6d7a830fe954..f4bbbc8c2914 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Get.json @@ -1,17 +1,17 @@ { "parameters": { + "name": "{customImageName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{customImageName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/customimages/{customImageName}", "name": "{customImageName}", "type": "Microsoft.DevTestLab/labs/customImages", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/customimages/{customImageName}", "location": "{location}", "properties": { "description": "My Custom Image", @@ -20,10 +20,10 @@ "provisioningState": "Succeeded", "uniqueIdentifier": "{uniqueIdentifier}", "vm": { - "sourceVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}", "linuxOsInfo": { "linuxOsState": "NonDeprovisioned" - } + }, + "sourceVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" } }, "tags": { @@ -31,5 +31,7 @@ } } } - } -} + }, + "operationId": "CustomImages_Get", + "title": "CustomImages_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_List.json index b2ae535593ed..8bef0834c762 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_List.json @@ -1,18 +1,18 @@ { "parameters": { "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", + "labName": "{labName}", "resourceGroupName": "resourceGroupName", - "labName": "{labName}" + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/customimages/{customImageName}", "name": "{customImageName}", "type": "Microsoft.DevTestLab/labs/customImages", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/customimages/{customImageName}", "location": "{location}", "properties": { "description": "My Custom Image", @@ -21,15 +21,17 @@ "provisioningState": "Succeeded", "uniqueIdentifier": "{uniqueIdentifier}", "vm": { - "sourceVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}", "linuxOsInfo": { "linuxOsState": "NonDeprovisioned" - } + }, + "sourceVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" } } } ] } } - } -} + }, + "operationId": "CustomImages_List", + "title": "CustomImages_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Update.json index 67aa1c3e83ec..d9651d981911 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Update.json @@ -1,40 +1,42 @@ { "parameters": { - "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", - "labName": "{labName}", "name": "{customImageName}", + "api-version": "2018-09-15", "customImage": { "tags": { "tagName1": "tagValue2" } - } + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/customimages/{customImageName}", "name": "{customImageName}", "type": "Microsoft.DevTestLab/labs/customImages", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/customimages/{customImageName}", "location": "{location}", "properties": { + "description": "My Custom Image", + "author": "{authorName}", + "creationDate": "2021-10-10T09:59:28.7985144+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}", "vm": { "linuxOsInfo": { "linuxOsState": "NonDeprovisioned" }, "sourceVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" - }, - "description": "My Custom Image", - "author": "{authorName}", - "creationDate": "2021-10-10T09:59:28.7985144+00:00", - "provisioningState": "Succeeded", - "uniqueIdentifier": "{uniqueIdentifier}" + } }, "tags": { "tagName1": "tagValue2" } } } - } -} + }, + "operationId": "CustomImages_Update", + "title": "CustomImages_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Attach.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Attach.json index e0366f794a94..5d91bddf95d9 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Attach.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Attach.json @@ -1,14 +1,14 @@ { "parameters": { - "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", - "labName": "{labName}", - "userName": "{userId}", "name": "{diskName}", + "api-version": "2018-09-15", "attachDiskProperties": { "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" - } + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "{userId}" }, "responses": { "200": {}, @@ -17,5 +17,7 @@ "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" } } - } -} + }, + "operationId": "Disks_Attach", + "title": "Disks_Attach" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_CreateOrUpdate.json index 9d9e3b789b37..da80bf223947 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_CreateOrUpdate.json @@ -1,53 +1,55 @@ { "parameters": { - "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", - "labName": "{labName}", - "userName": "{userId}", "name": "{diskName}", + "api-version": "2018-09-15", "disk": { "properties": { - "diskType": "Standard", "diskSizeGiB": 1023, + "diskType": "Standard", "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/vmName" } - } + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "{userId}" }, "responses": { "200": { "body": { + "name": "{diskName}", + "type": "Microsoft.DevTestLab/labs/users/disks", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/l{labName}/users/{userId}/disks/{diskName}", "properties": { - "diskType": "Standard", + "createdDate": "2021-01-04T20:21:02.0182357+00:00", "diskSizeGiB": 1023, - "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/vmName", + "diskType": "Standard", "diskUri": "", - "createdDate": "2021-01-04T20:21:02.0182357+00:00", "hostCaching": "None", + "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/vmName", "provisioningState": "Succeeded", "uniqueIdentifier": "b7183ac5-1097-4513-b597-4d9d23e0a820" - }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/l{labName}/users/{userId}/disks/{diskName}", - "name": "{diskName}", - "type": "Microsoft.DevTestLab/labs/users/disks" + } } }, "201": { "body": { + "name": "{diskName}", + "type": "Microsoft.DevTestLab/labs/users/disks", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/l{labName}/users/{userId}/disks/{diskName}", "properties": { - "diskType": "Standard", + "createdDate": "2021-01-04T20:21:02.0182357+00:00", "diskSizeGiB": 1023, - "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/vmName", + "diskType": "Standard", "diskUri": "", - "createdDate": "2021-01-04T20:21:02.0182357+00:00", "hostCaching": "None", + "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/vmName", "provisioningState": "Creating", "uniqueIdentifier": "b7183ac5-1097-4513-b597-4d9d23e0a820" - }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/l{labName}/users/{userId}/disks/{diskName}", - "name": "{diskName}", - "type": "Microsoft.DevTestLab/labs/users/disks" + } } } - } -} + }, + "operationId": "Disks_CreateOrUpdate", + "title": "Disks_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Delete.json index 0f8fc9f833c1..e6cf24f86a11 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Delete.json @@ -1,11 +1,11 @@ { "parameters": { + "name": "{diskName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "userName": "{userId}", - "name": "{diskName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "{userId}" }, "responses": { "200": {}, @@ -15,5 +15,7 @@ } }, "204": {} - } -} + }, + "operationId": "Disks_Delete", + "title": "Disks_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Detach.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Detach.json index f24545dab045..20cf8e647567 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Detach.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Detach.json @@ -1,14 +1,14 @@ { "parameters": { - "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", - "labName": "{labName}", - "userName": "{userId}", "name": "{diskName}", + "api-version": "2018-09-15", "detachDiskProperties": { "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" - } + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "{userId}" }, "responses": { "200": {}, @@ -17,5 +17,7 @@ "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" } } - } -} + }, + "operationId": "Disks_Detach", + "title": "Disks_Detach" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Get.json index 83f49c4d0ef5..6d96b15e0542 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Get.json @@ -1,30 +1,32 @@ { "parameters": { + "name": "{diskName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{diskName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", "userName": "@me" }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userId}/disks/{diskName}", "name": "{diskName}", "type": "Microsoft.DevTestLab/labs/users/disks", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userId}/disks/{diskName}", "properties": { - "diskType": "Standard", + "createdDate": "2021-01-04T20:27:32.1445632+00:00", "diskSizeGiB": 1023, - "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/vmName", + "diskType": "Standard", "diskUri": "", - "createdDate": "2021-01-04T20:27:32.1445632+00:00", "hostCaching": "None", + "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/vmName", "managedDiskId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.compute/disks/{diskName}", "provisioningState": "Succeeded", "uniqueIdentifier": "9bf098d1-1b64-41a5-aa05-286767074a0b" } } } - } -} + }, + "operationId": "Disks_Get", + "title": "Disks_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_List.json index 7c8d9a77c86e..2337bea4c8fe 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_List.json @@ -1,10 +1,10 @@ { "parameters": { + "name": "{diskName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{diskName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", "userName": "@me" }, "responses": { @@ -12,16 +12,16 @@ "body": { "value": [ { - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userId}/disks/{diskName}", "name": "{diskName}", "type": "Microsoft.DevTestLab/labs/users/disks", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userId}/disks/{diskName}", "properties": { - "diskType": "Standard", + "createdDate": "2021-01-04T20:27:32.1445632+00:00", "diskSizeGiB": 1023, - "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/vmName", + "diskType": "Standard", "diskUri": "", - "createdDate": "2021-01-04T20:27:32.1445632+00:00", "hostCaching": "None", + "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/vmName", "managedDiskId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.compute/disks/{diskName}", "provisioningState": "Succeeded", "uniqueIdentifier": "9bf098d1-1b64-41a5-aa05-286767074a0b" @@ -30,5 +30,7 @@ ] } } - } -} + }, + "operationId": "Disks_List", + "title": "Disks_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Update.json index 251c0369afe7..24276f234a8a 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Update.json @@ -1,30 +1,30 @@ { "parameters": { - "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", - "labName": "{labName}", - "userName": "@me", "name": "diskName", + "api-version": "2018-09-15", "disk": { "tags": { "tagName1": "tagValue1" } - } + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "@me" }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{user-id}/disks/{diskName}", "name": "{disk-name}", "type": "Microsoft.DevTestLab/labs/users/disks", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{user-id}/disks/{diskName}", "properties": { - "diskType": "Standard", + "createdDate": "2021-01-04T20:21:02.0182357+00:00", "diskSizeGiB": 1023, - "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/vmName", + "diskType": "Standard", "diskUri": "", - "createdDate": "2021-01-04T20:21:02.0182357+00:00", "hostCaching": "None", + "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/vmName", "provisioningState": "Succeeded", "uniqueIdentifier": "b7183ac5-1097-4513-b597-4d9d23e0a820" }, @@ -33,5 +33,7 @@ } } } - } -} + }, + "operationId": "Disks_Update", + "title": "Disks_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_CreateOrUpdate.json index e2b8239ceed2..5f658418bf09 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_CreateOrUpdate.json @@ -1,32 +1,32 @@ { "parameters": { - "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", - "labName": "{labName}", - "userName": "@me", "name": "{environmentName}", + "api-version": "2018-09-15", "dtlEnvironment": { "properties": { "deploymentProperties": { - "parameters": [], - "armTemplateId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}" + "armTemplateId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}", + "parameters": [] } } - } + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "@me" }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{uniqueIdentifier}/environments/{environmentName}", "name": "{environmentName}", "type": "Microsoft.DevTestLab/labs/users/environments", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{uniqueIdentifier}/environments/{environmentName}", "location": "{location}", "properties": { + "createdByUser": "user@contoso.com", "deploymentProperties": { "armTemplateId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}" }, - "createdByUser": "user@contoso.com", "provisioningState": "Succeeded", "uniqueIdentifier": "{uniqueIdentifier}" }, @@ -37,15 +37,15 @@ }, "201": { "body": { - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{uniqueIdentifier}/environments/{environmentName}", "name": "{environmentName}", "type": "Microsoft.DevTestLab/labs/users/environments", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{uniqueIdentifier}/environments/{environmentName}", "location": "{location}", "properties": { + "createdByUser": "user@contoso.com", "deploymentProperties": { "armTemplateId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}" }, - "createdByUser": "user@contoso.com", "provisioningState": "Creating", "uniqueIdentifier": "{uniqueIdentifier}" }, @@ -54,5 +54,7 @@ } } } - } -} + }, + "operationId": "Environments_CreateOrUpdate", + "title": "Environments_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Delete.json index 47e4317337bc..d73488e66229 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Delete.json @@ -1,11 +1,11 @@ { "parameters": { + "name": "{environmentName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "userName": "@me", - "name": "{environmentName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "@me" }, "responses": { "200": {}, @@ -15,5 +15,7 @@ } }, "204": {} - } -} + }, + "operationId": "Environments_Delete", + "title": "Environments_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Get.json index 94797da37d8b..3ec5fd5272db 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Get.json @@ -1,24 +1,24 @@ { "parameters": { + "name": "{environmentName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "userName": "@me", - "name": "{environmentName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "@me" }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{uniqueIdentifier}/environments/{environmentName}", "name": "{environmentName}", "type": "Microsoft.DevTestLab/labs/users/environments", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{uniqueIdentifier}/environments/{environmentName}", "location": "{location}", "properties": { + "createdByUser": "user@contoso.com", "deploymentProperties": { "armTemplateId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}" }, - "createdByUser": "user@contoso.com", "provisioningState": "Succeeded", "uniqueIdentifier": "{uniqueIdentifier}" }, @@ -27,5 +27,7 @@ } } } - } -} + }, + "operationId": "Environments_Get", + "title": "Environments_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_List.json index 0e56ddf279ba..74c4cd3b3d1d 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_List.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", "userName": "@me" }, "responses": { @@ -11,15 +11,15 @@ "body": { "value": [ { - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{uniqueIdentifier}/environments/{environmentName}", "name": "{environmentName}", "type": "Microsoft.DevTestLab/labs/users/environments", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{uniqueIdentifier}/environments/{environmentName}", "location": "{location}", "properties": { + "createdByUser": "user@contoso.com", "deploymentProperties": { "armTemplateId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}" }, - "createdByUser": "user@contoso.com", "provisioningState": "Succeeded", "uniqueIdentifier": "{uniqueIdentifier}" }, @@ -30,5 +30,7 @@ ] } } - } -} + }, + "operationId": "Environments_List", + "title": "Environments_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Update.json index 33168792b7cc..1f3397ce562f 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Update.json @@ -1,29 +1,29 @@ { "parameters": { - "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", - "labName": "{labName}", - "userName": "@me", "name": "{environmentName}", + "api-version": "2018-09-15", "dtlEnvironment": { "tags": { "tagName1": "tagValue1" } - } + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "@me" }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{uniqueIdentifier}/environments/{environmentName}", "name": "{environmentName}", "type": "Microsoft.DevTestLab/labs/users/environments", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{uniqueIdentifier}/environments/{environmentName}", "location": "{location}", "properties": { + "createdByUser": "user@contoso.com", "deploymentProperties": { "armTemplateId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}" }, - "createdByUser": "user@contoso.com", "provisioningState": "Succeeded", "uniqueIdentifier": "{uniqueIdentifier}" }, @@ -32,5 +32,7 @@ } } } - } -} + }, + "operationId": "Environments_Update", + "title": "Environments_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_CreateOrUpdate.json index 77aec0ba019f..848332e0cfbe 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_CreateOrUpdate.json @@ -1,105 +1,105 @@ { "parameters": { - "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", - "labName": "{labName}", "name": "{formulaName}", + "api-version": "2018-09-15", "formula": { "location": "{location}", "properties": { "description": "Formula using a Linux base", "formulaContent": { + "location": "{location}", "properties": { - "notes": "Ubuntu Server 20.10", - "size": "Standard_B1ms", - "userName": "user", - "isAuthenticationWithSshKey": false, - "labSubnetName": "Dtl{labName}Subnet", - "labVirtualNetworkId": "/virtualnetworks/dtl{labName}", + "allowClaim": false, + "artifacts": [ + { + "artifactId": "/artifactsources/{artifactSourceName}/artifacts/linux-install-nodejs", + "parameters": [] + } + ], "disallowPublicIpAddress": true, "galleryImageReference": { "offer": "0001-com-ubuntu-server-groovy", + "osType": "Linux", "publisher": "canonical", "sku": "20_10", - "osType": "Linux", "version": "latest" }, - "artifacts": [ - { - "artifactId": "/artifactsources/{artifactSourceName}/artifacts/linux-install-nodejs", - "parameters": [] - } - ], + "isAuthenticationWithSshKey": false, + "labSubnetName": "Dtl{labName}Subnet", + "labVirtualNetworkId": "/virtualnetworks/dtl{labName}", "networkInterface": { "sharedPublicIpAddressConfiguration": { "inboundNatRules": [ { - "transportProtocol": "Tcp", - "backendPort": 22 + "backendPort": 22, + "transportProtocol": "Tcp" } ] } }, - "allowClaim": false, - "storageType": "Standard" - }, - "location": "{location}" + "notes": "Ubuntu Server 20.10", + "size": "Standard_B1ms", + "storageType": "Standard", + "userName": "user" + } } } - } + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "name": "{formulaName}", + "type": "Microsoft.DevTestLab/labs/formulas", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/formulas/{formulaName}", + "location": "{location}", "properties": { "description": "Formula using a Linux base", "author": "username@contoso.com", "creationDate": "2018-12-22T21:25:42.9254696+00:00", "formulaContent": { + "location": "{location}", "properties": { - "notes": "Ubuntu Server 20.10", - "size": "Standard_B1ms", - "userName": "user", - "isAuthenticationWithSshKey": false, - "labSubnetName": "Dtl{labName}Subnet", - "labVirtualNetworkId": "/virtualnetworks/dtl{labName}", - "disallowPublicIpAddress": true, + "allowClaim": false, "artifacts": [ { "artifactId": "/artifactsources/{artifactSourceName}/artifacts/linux-install-nodejs", "parameters": [] } ], + "disallowPublicIpAddress": true, "galleryImageReference": { "offer": "0001-com-ubuntu-server-groovy", + "osType": "Linux", "publisher": "canonical", "sku": "20_10", - "osType": "Linux", "version": "latest" }, + "isAuthenticationWithSshKey": false, + "labSubnetName": "Dtl{labName}Subnet", + "labVirtualNetworkId": "/virtualnetworks/dtl{labName}", "networkInterface": { "sharedPublicIpAddressConfiguration": { "inboundNatRules": [ { - "transportProtocol": "Tcp", - "backendPort": 22 + "backendPort": 22, + "transportProtocol": "Tcp" } ] } }, - "allowClaim": false, - "storageType": "Standard" - }, - "location": "{location}" + "notes": "Ubuntu Server 20.10", + "size": "Standard_B1ms", + "storageType": "Standard", + "userName": "user" + } }, "provisioningState": "Succeeded", "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/formulas/{formulaName}", - "name": "{formulaName}", - "type": "Microsoft.DevTestLab/labs/formulas", - "location": "{location}", "tags": { "tagName1": "tagValue1" } @@ -107,58 +107,60 @@ }, "201": { "body": { + "name": "{formulaName}", + "type": "Microsoft.DevTestLab/labs/formulas", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/formulas/{formulaName}", + "location": "{location}", "properties": { "description": "Formula using a Linux base", "author": "username@contoso.com", "creationDate": "2018-12-22T21:25:42.9254696+00:00", "formulaContent": { + "location": "{location}", "properties": { - "notes": "Ubuntu Server 20.10", - "size": "Standard_B1ms", - "userName": "user", - "isAuthenticationWithSshKey": false, - "labSubnetName": "Dtl{labName}Subnet", - "labVirtualNetworkId": "/virtualnetworks/dtl{labName}", - "disallowPublicIpAddress": true, + "allowClaim": false, "artifacts": [ { "artifactId": "/artifactsources/{artifactSourceName}/artifacts/linux-install-nodejs", "parameters": [] } ], + "disallowPublicIpAddress": true, "galleryImageReference": { "offer": "0001-com-ubuntu-server-groovy", + "osType": "Linux", "publisher": "canonical", "sku": "20_10", - "osType": "Linux", "version": "latest" }, + "isAuthenticationWithSshKey": false, + "labSubnetName": "Dtl{labName}Subnet", + "labVirtualNetworkId": "/virtualnetworks/dtl{labName}", "networkInterface": { "sharedPublicIpAddressConfiguration": { "inboundNatRules": [ { - "transportProtocol": "Tcp", - "backendPort": 22 + "backendPort": 22, + "transportProtocol": "Tcp" } ] } }, - "allowClaim": false, - "storageType": "Standard" - }, - "location": "{location}" + "notes": "Ubuntu Server 20.10", + "size": "Standard_B1ms", + "storageType": "Standard", + "userName": "user" + } }, "provisioningState": "Creating", "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/formulas/{formulaName}", - "name": "{formulaName}", - "type": "Microsoft.DevTestLab/labs/formulas", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "Formulas_CreateOrUpdate", + "title": "Formulas_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Delete.json index 949e2690afac..967c661e9a4f 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Delete.json @@ -1,13 +1,15 @@ { "parameters": { + "name": "{formulaName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{formulaName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, "204": {} - } -} + }, + "operationId": "Formulas_Delete", + "title": "Formulas_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Get.json index 7d969c8897d8..3556e5de6f7f 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Get.json @@ -1,63 +1,65 @@ { "parameters": { + "name": "{formulaName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{formulaName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/formulas/{formulaName}", "name": "{formulaName}", "type": "Microsoft.DevTestLab/labs/formulas", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/formulas/{formulaName}", "properties": { "description": "Formula used to create a Linux VM", "author": "user@contoso.com", - "osType": "Linux", "creationDate": "2018-12-22T19:13:35.9922091+00:00", "formulaContent": { + "location": "{location}", "properties": { - "notes": "Ubuntu Server 20.10", - "size": "Standard_B1ms", - "userName": "user", - "isAuthenticationWithSshKey": false, - "labSubnetName": "Dtl{labName}Subnet", - "labVirtualNetworkId": "/virtualnetworks/dtl{labName}", + "allowClaim": false, + "artifacts": [ + { + "artifactId": "/artifactsources/{artifactSourceName}/artifacts/linux-install-nodejs", + "parameters": [] + } + ], "disallowPublicIpAddress": true, "galleryImageReference": { "offer": "0001-com-ubuntu-server-groovy", + "osType": "Linux", "publisher": "canonical", "sku": "20_10", - "osType": "Linux", "version": "latest" }, - "artifacts": [ - { - "artifactId": "/artifactsources/{artifactSourceName}/artifacts/linux-install-nodejs", - "parameters": [] - } - ], + "isAuthenticationWithSshKey": false, + "labSubnetName": "Dtl{labName}Subnet", + "labVirtualNetworkId": "/virtualnetworks/dtl{labName}", "networkInterface": { "sharedPublicIpAddressConfiguration": { "inboundNatRules": [ { - "transportProtocol": "Tcp", - "backendPort": 22 + "backendPort": 22, + "transportProtocol": "Tcp" } ] } }, - "allowClaim": false, - "storageType": "Standard" - }, - "location": "{location}" + "notes": "Ubuntu Server 20.10", + "size": "Standard_B1ms", + "storageType": "Standard", + "userName": "user" + } }, + "osType": "Linux", "provisioningState": "Succeeded", "uniqueIdentifier": "7a7d20ab-8a50-46fb-8dc6-7c6c1443a01b" } } } - } -} + }, + "operationId": "Formulas_Get", + "title": "Formulas_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_List.json index d47848c5a7e8..9f61a486e3b9 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_List.json @@ -1,66 +1,68 @@ { "parameters": { "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", + "labName": "{labName}", "resourceGroupName": "resourceGroupName", - "labName": "{labName}" + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { "value": [ { + "name": "{formulaName}", + "type": "Microsoft.DevTestLab/labs/formulas", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/formulas/{formulaName}", "properties": { "description": "Formula used to create a Linux VM", "author": "user@contoso.com", - "osType": "Linux", "creationDate": "2018-12-22T19:13:35.9922091+00:00", "formulaContent": { + "location": "{location}", "properties": { - "notes": "Ubuntu Server 20.10", - "size": "Standard_B1ms", - "userName": "user", - "isAuthenticationWithSshKey": false, - "labSubnetName": "Dtl{labName}Subnet", - "labVirtualNetworkId": "/virtualnetworks/dtl{labName}", + "allowClaim": false, + "artifacts": [ + { + "artifactId": "/artifactsources/{artifactSourceName}/artifacts/linux-install-nodejs", + "parameters": [] + } + ], "disallowPublicIpAddress": true, "galleryImageReference": { "offer": "0001-com-ubuntu-server-groovy", + "osType": "Linux", "publisher": "canonical", "sku": "20_10", - "osType": "Linux", "version": "latest" }, - "artifacts": [ - { - "artifactId": "/artifactsources/{artifactSourceName}/artifacts/linux-install-nodejs", - "parameters": [] - } - ], + "isAuthenticationWithSshKey": false, + "labSubnetName": "Dtl{labName}Subnet", + "labVirtualNetworkId": "/virtualnetworks/dtl{labName}", "networkInterface": { "sharedPublicIpAddressConfiguration": { "inboundNatRules": [ { - "transportProtocol": "Tcp", - "backendPort": 22 + "backendPort": 22, + "transportProtocol": "Tcp" } ] } }, - "allowClaim": false, - "storageType": "Standard" - }, - "location": "{location}" + "notes": "Ubuntu Server 20.10", + "size": "Standard_B1ms", + "storageType": "Standard", + "userName": "user" + } }, + "osType": "Linux", "provisioningState": "Succeeded", "uniqueIdentifier": "7a7d20ab-8a50-46fb-8dc6-7c6c1443a01b" - }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/formulas/{formulaName}", - "name": "{formulaName}", - "type": "Microsoft.DevTestLab/labs/formulas" + } } ] } } - } -} + }, + "operationId": "Formulas_List", + "title": "Formulas_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Update.json index d2113559a14c..a54c2bb5d462 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Update.json @@ -1,62 +1,62 @@ { "parameters": { - "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", - "labName": "{labName}", "name": "{formulaName}", + "api-version": "2018-09-15", "formula": { "tags": { "tagName1": "tagValue1" } - } + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/formulas/{formulaName}", "name": "{formulaName}", "type": "Microsoft.DevTestLab/labs/formulas", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/formulas/{formulaName}", "properties": { "description": "Formula using a Linux base", "author": "username@contoso.com", "creationDate": "2018-12-22T21:25:42.9254696+00:00", "formulaContent": { + "location": "{location}", "properties": { - "notes": "Ubuntu Server 20.10", - "size": "Standard_B1ms", - "userName": "user", - "isAuthenticationWithSshKey": false, - "labSubnetName": "Dtl{labName}Subnet", - "labVirtualNetworkId": "/virtualnetworks/dtl{labName}", - "disallowPublicIpAddress": true, + "allowClaim": false, "artifacts": [ { "artifactId": "/artifactsources/{artifactSourceName}/artifacts/linux-install-nodejs", "parameters": [] } ], + "disallowPublicIpAddress": true, "galleryImageReference": { "offer": "0001-com-ubuntu-server-groovy", + "osType": "Linux", "publisher": "canonical", "sku": "20_10", - "osType": "Linux", "version": "latest" }, + "isAuthenticationWithSshKey": false, + "labSubnetName": "Dtl{labName}Subnet", + "labVirtualNetworkId": "/virtualnetworks/dtl{labName}", "networkInterface": { "sharedPublicIpAddressConfiguration": { "inboundNatRules": [ { - "transportProtocol": "Tcp", - "backendPort": 22 + "backendPort": 22, + "transportProtocol": "Tcp" } ] } }, - "allowClaim": false, - "storageType": "Standard" - }, - "location": "{location}" + "notes": "Ubuntu Server 20.10", + "size": "Standard_B1ms", + "storageType": "Standard", + "userName": "user" + } }, "provisioningState": "Succeeded", "uniqueIdentifier": "{uniqueIdentifier}" @@ -66,5 +66,7 @@ } } } - } -} + }, + "operationId": "Formulas_Update", + "title": "Formulas_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GalleryImages_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GalleryImages_List.json index d0f1ddf9f2f1..657979a5a6fc 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GalleryImages_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GalleryImages_List.json @@ -1,56 +1,56 @@ { "parameters": { "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", + "labName": "{labName}", "resourceGroupName": "resourceGroupName", - "labName": "{labName}" + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { "value": [ { + "name": "Ubuntu Server 20.04 LTS", + "type": "Microsoft.DevTestLab/labs/galleryImages", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/galleryimages/ubuntu server 20.04 lts", + "location": "{location}", "properties": { + "description": "Ubuntu Server is the world's most popular Linux for cloud environments. Updates and patches for Ubuntu Server 20.04 LTS will be available until April 2025. Ubuntu Server is the perfect virtual machine (VM) platform for all workloads from web applications to NoSQL databases and Hadoop. For more information see Ubuntu on Azure and using Juju to deploy your workloads.

Legal Terms

By clicking the Create button, I acknowledge that I am getting this software from Canonical and that the legal terms of Canonical apply to it. Microsoft does not provide rights for third-party software. Also see the privacy statement from Canonical.

", "author": "Canonical", "createdDate": "2020-12-14T23:43:43.7643542+00:00", - "description": "Ubuntu Server is the world's most popular Linux for cloud environments. Updates and patches for Ubuntu Server 20.04 LTS will be available until April 2025. Ubuntu Server is the perfect virtual machine (VM) platform for all workloads from web applications to NoSQL databases and Hadoop. For more information see Ubuntu on Azure and using Juju to deploy your workloads.

Legal Terms

By clicking the Create button, I acknowledge that I am getting this software from Canonical and that the legal terms of Canonical apply to it. Microsoft does not provide rights for third-party software. Also see the privacy statement from Canonical.

", + "enabled": true, + "icon": "https://106c4.wpc.azureedge.net/80106C4/Gallery-Prod/cdn/2015-02-24/prod20161101-microsoft-windowsazure-gallery/canonical.0001-com-ubuntu-server-focal20_04-lts-ARM.1.0.22/Icons/Small.png", "imageReference": { "offer": "0001-com-ubuntu-server-focal", + "osType": "Linux", "publisher": "canonical", "sku": "20_04-lts", - "osType": "Linux", "version": "latest" - }, - "icon": "https://106c4.wpc.azureedge.net/80106C4/Gallery-Prod/cdn/2015-02-24/prod20161101-microsoft-windowsazure-gallery/canonical.0001-com-ubuntu-server-focal20_04-lts-ARM.1.0.22/Icons/Small.png", - "enabled": true + } }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/galleryimages/ubuntu server 20.04 lts", - "name": "Ubuntu Server 20.04 LTS", - "type": "Microsoft.DevTestLab/labs/galleryImages", - "location": "{location}", "tags": { "tagName1": "tagValue1" } }, { + "name": "Windows 10 Enterprise, Version 20H2", + "type": "Microsoft.DevTestLab/labs/galleryImages", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/galleryimages/windows 10 enterprise, version 20h2", + "location": "{location}", "properties": { + "description": "

This software is provided by Microsoft. Use of this software in Microsoft Azure is not permitted except under a volume licensing agreement with Microsoft. By clicking Create, I acknowledge that I or the company I work for is licensed to use this software under a volume licensing agreement with Microsoft and that the right to use it will be subject to that agreement.

Legal Terms

By clicking the Create button, I acknowledge that I am getting this software from Microsoft and that the legal terms of Microsoft apply to it. Microsoft does not provide rights for third-party software. Also see the privacy statement from Microsoft.

", "author": "Microsoft", "createdDate": "2020-12-14T21:33:33.2464999+00:00", - "description": "

This software is provided by Microsoft. Use of this software in Microsoft Azure is not permitted except under a volume licensing agreement with Microsoft. By clicking Create, I acknowledge that I or the company I work for is licensed to use this software under a volume licensing agreement with Microsoft and that the right to use it will be subject to that agreement.

Legal Terms

By clicking the Create button, I acknowledge that I am getting this software from Microsoft and that the legal terms of Microsoft apply to it. Microsoft does not provide rights for third-party software. Also see the privacy statement from Microsoft.

", + "enabled": true, + "icon": "https://106c4.wpc.azureedge.net/80106C4/Gallery-Prod/cdn/2015-02-24/prod20161101-microsoft-windowsazure-gallery/microsoftwindowsdesktop.windows-1020h2-ent.1.0.238/Icons/Small.png", "imageReference": { "offer": "Windows-10", + "osType": "Windows", "publisher": "MicrosoftWindowsDesktop", "sku": "20h2-ent", - "osType": "Windows", "version": "latest" - }, - "icon": "https://106c4.wpc.azureedge.net/80106C4/Gallery-Prod/cdn/2015-02-24/prod20161101-microsoft-windowsazure-gallery/microsoftwindowsdesktop.windows-1020h2-ent.1.0.238/Icons/Small.png", - "enabled": true + } }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/galleryimages/windows 10 enterprise, version 20h2", - "name": "Windows 10 Enterprise, Version 20H2", - "type": "Microsoft.DevTestLab/labs/galleryImages", - "location": "{location}", "tags": { "tagName1": "tagValue1" } @@ -58,5 +58,7 @@ ] } } - } -} + }, + "operationId": "GalleryImages_List", + "title": "GalleryImages_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_CreateOrUpdate.json index 639b08e47064..b6e4f463c706 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_CreateOrUpdate.json @@ -1,14 +1,13 @@ { "parameters": { + "name": "labvmautostart", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", "resourceGroupName": "resourceGroupName", - "name": "labvmautostart", "schedule": { "properties": { "status": "Enabled", - "timeZoneId": "Hawaiian Standard Time", "taskType": "LabVmsStartupTask", + "timeZoneId": "Hawaiian Standard Time", "weeklyRecurrence": { "time": "0700", "weekdays": [ @@ -21,37 +20,38 @@ ] } } - } + }, + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "name": "LabVmAutoStart", + "type": "microsoft.devtestlab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/labvmautostart", + "location": "{location}", "properties": { + "createdDate": "2020-12-29T22:54:54.9335182+00:00", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 0 + }, + "provisioningState": "Succeeded", "status": "Enabled", "taskType": "LabVmsStartupTask", + "timeZoneId": "Hawaiian Standard Time", + "uniqueIdentifier": "{id}", "weeklyRecurrence": { + "time": "0700", "weekdays": [ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday" - ], - "time": "0700" - }, - "timeZoneId": "Hawaiian Standard Time", - "notificationSettings": { - "status": "Disabled", - "timeInMinutes": 0 - }, - "createdDate": "2020-12-29T22:54:54.9335182+00:00", - "provisioningState": "Succeeded", - "uniqueIdentifier": "{id}" + ] + } }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/labvmautostart", - "name": "LabVmAutoStart", - "type": "microsoft.devtestlab/labs/schedules", - "location": "{location}", "tags": { "tagName1": "tagValue1" } @@ -59,36 +59,38 @@ }, "201": { "body": { + "name": "LabVmAutoStart", + "type": "microsoft.devtestlab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/labvmautostart", + "location": "{location}", "properties": { + "createdDate": "2020-12-29T22:54:54.9335182+00:00", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 0 + }, + "provisioningState": "Succeeded", "status": "Enabled", "taskType": "LabVmsStartupTask", + "timeZoneId": "Hawaiian Standard Time", + "uniqueIdentifier": "{id}", "weeklyRecurrence": { + "time": "0700", "weekdays": [ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday" - ], - "time": "0700" - }, - "timeZoneId": "Hawaiian Standard Time", - "notificationSettings": { - "status": "Disabled", - "timeInMinutes": 0 - }, - "createdDate": "2020-12-29T22:54:54.9335182+00:00", - "provisioningState": "Succeeded", - "uniqueIdentifier": "{id}" + ] + } }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/labvmautostart", - "name": "LabVmAutoStart", - "type": "microsoft.devtestlab/labs/schedules", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "GlobalSchedules_CreateOrUpdate", + "title": "GlobalSchedules_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Delete.json index 511e24bfa6a4..29567b9b2d31 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Delete.json @@ -1,12 +1,14 @@ { "parameters": { + "name": "labvmautostart", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", "resourceGroupName": "resourceGroupName", - "name": "labvmautostart" + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, "204": {} - } -} + }, + "operationId": "GlobalSchedules_Delete", + "title": "GlobalSchedules_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Execute.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Execute.json index 16792426a141..b7a159823f81 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Execute.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Execute.json @@ -1,9 +1,9 @@ { "parameters": { + "name": "labvmautostart", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", "resourceGroupName": "resourceGroupName", - "name": "labvmautostart" + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, @@ -12,5 +12,7 @@ "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" } } - } -} + }, + "operationId": "GlobalSchedules_Execute", + "title": "GlobalSchedules_Execute" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Get.json index 2a1fef560483..d9e4e9319bc3 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Get.json @@ -1,43 +1,45 @@ { "parameters": { + "name": "labvmautostart", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", "resourceGroupName": "resourceGroupName", - "name": "labvmautostart" + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "name": "LabVmAutoStart", + "type": "microsoft.devtestlab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/labvmautostart", + "location": "{location}", "properties": { + "createdDate": "2020-12-29T22:54:54.9335182+00:00", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 0 + }, + "provisioningState": "Succeeded", "status": "Enabled", "taskType": "LabVmsStartupTask", + "timeZoneId": "Hawaiian Standard Time", + "uniqueIdentifier": "{id}", "weeklyRecurrence": { + "time": "0700", "weekdays": [ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday" - ], - "time": "0700" - }, - "timeZoneId": "Hawaiian Standard Time", - "notificationSettings": { - "status": "Disabled", - "timeInMinutes": 0 - }, - "createdDate": "2020-12-29T22:54:54.9335182+00:00", - "provisioningState": "Succeeded", - "uniqueIdentifier": "{id}" + ] + } }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/labvmautostart", - "name": "LabVmAutoStart", - "type": "microsoft.devtestlab/labs/schedules", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "GlobalSchedules_Get", + "title": "GlobalSchedules_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListByResourceGroup.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListByResourceGroup.json index b717ff966019..80ae3fcffa0c 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListByResourceGroup.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListByResourceGroup.json @@ -1,43 +1,45 @@ { "parameters": { "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/labvmautostart", "name": "LabVmAutoStart", "type": "microsoft.devtestlab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/labvmautostart", "location": "{location}", "properties": { + "createdDate": "2020-12-29T22:54:54.9335182+00:00", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 0 + }, + "provisioningState": "Succeeded", "status": "Enabled", "taskType": "LabVmsStartupTask", + "timeZoneId": "Hawaiian Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", "weeklyRecurrence": { + "time": "0700", "weekdays": [ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday" - ], - "time": "0700" - }, - "timeZoneId": "Hawaiian Standard Time", - "notificationSettings": { - "status": "Disabled", - "timeInMinutes": 0 - }, - "createdDate": "2020-12-29T22:54:54.9335182+00:00", - "provisioningState": "Succeeded", - "uniqueIdentifier": "{uniqueIdentifier}" + ] + } } } ] } } - } -} + }, + "operationId": "GlobalSchedules_ListByResourceGroup", + "title": "GlobalSchedules_ListByResourceGroup" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListBySubscription.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListBySubscription.json index ff294dcc4c3f..635d5d52e30b 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListBySubscription.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListBySubscription.json @@ -7,5 +7,7 @@ "200": { "body": {} } - } -} + }, + "operationId": "GlobalSchedules_ListBySubscription", + "title": "GlobalSchedules_ListBySubscription" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Retarget.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Retarget.json index c44f8dd61dac..13dd94ac7337 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Retarget.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Retarget.json @@ -1,13 +1,13 @@ { "parameters": { + "name": "{scheduleName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", "resourceGroupName": "resourceGroupName", - "name": "{scheduleName}", "retargetScheduleProperties": { - "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{currentLab}", - "currentResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{targetLab}" - } + "currentResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{targetLab}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{currentLab}" + }, + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, @@ -16,5 +16,7 @@ "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" } } - } -} + }, + "operationId": "GlobalSchedules_Retarget", + "title": "GlobalSchedules_Retarget" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Update.json index f31c11fcda3e..1743d5838c6b 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Update.json @@ -1,48 +1,50 @@ { "parameters": { + "name": "labvmautostart", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", "resourceGroupName": "resourceGroupName", - "name": "labvmautostart", "schedule": { "tags": { "tagName1": "tagValue1" } - } + }, + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "name": "LabVmAutoStart", + "type": "microsoft.devtestlab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/labvmautostart", + "location": "{location}", "properties": { + "createdDate": "2020-12-29T22:54:54.9335182+00:00", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 0 + }, + "provisioningState": "Succeeded", "status": "Enabled", "taskType": "LabVmsStartupTask", + "timeZoneId": "Hawaiian Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", "weeklyRecurrence": { + "time": "0700", "weekdays": [ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday" - ], - "time": "0700" - }, - "timeZoneId": "Hawaiian Standard Time", - "notificationSettings": { - "status": "Disabled", - "timeInMinutes": 0 - }, - "createdDate": "2020-12-29T22:54:54.9335182+00:00", - "provisioningState": "Succeeded", - "uniqueIdentifier": "{uniqueIdentifier}" + ] + } }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/labvmautostart", - "name": "LabVmAutoStart", - "type": "microsoft.devtestlab/labs/schedules", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "GlobalSchedules_Update", + "title": "GlobalSchedules_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ClaimAnyVm.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ClaimAnyVm.json index 4a8c78e32af0..06920966b8bd 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ClaimAnyVm.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ClaimAnyVm.json @@ -1,10 +1,10 @@ { "parameters": { + "name": "{labName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", + "monitor": "true", "resourceGroupName": "resourceGroupName", - "name": "{labName}", - "monitor": "true" + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, @@ -13,5 +13,7 @@ "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" } } - } -} + }, + "operationId": "Labs_ClaimAnyVm", + "title": "Labs_ClaimAnyVm" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateEnvironment.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateEnvironment.json index 32ff4508b05c..ad2900b89d22 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateEnvironment.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateEnvironment.json @@ -1,33 +1,33 @@ { "parameters": { - "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "name": "{labName}", + "api-version": "2018-09-15", "labVirtualMachineCreationParameter": { + "name": "{vmName}", + "location": "{location}", "properties": { - "size": "Standard_A2_v2", - "userName": "{userName}", - "password": "{userPassword}", - "labSubnetName": "{virtualnetwork-subnet-name}", - "labVirtualNetworkId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", + "allowClaim": true, "disallowPublicIpAddress": true, "galleryImageReference": { "offer": "UbuntuServer", + "osType": "Linux", "publisher": "Canonical", "sku": "16.04-LTS", - "osType": "Linux", "version": "Latest" }, - "allowClaim": true, - "storageType": "Standard" + "labSubnetName": "{virtualnetwork-subnet-name}", + "labVirtualNetworkId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", + "password": "{userPassword}", + "size": "Standard_A2_v2", + "storageType": "Standard", + "userName": "{userName}" }, - "name": "{vmName}", - "location": "{location}", "tags": { "tagName1": "tagValue1" } - } + }, + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, @@ -36,5 +36,7 @@ "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" } } - } -} + }, + "operationId": "Labs_CreateEnvironment", + "title": "Labs_CreateEnvironment" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateOrUpdate.json index 54e2c9c17dbd..40d3a69eb1d6 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateOrUpdate.json @@ -1,46 +1,46 @@ { "parameters": { - "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "name": "{labName}", + "api-version": "2018-09-15", "lab": { + "location": "{location}", "properties": { "labStorageType": "{Standard|Premium}" }, - "location": "{location}", "tags": { "tagName1": "tagValue1" } - } + }, + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "name": "{labName}", + "type": "Microsoft.DevTestLab/labs", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "location": "{location}", "properties": { + "announcement": { + "enabled": "Disabled", + "expired": false, + "markdown": "", + "title": "" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "environmentPermission": "Reader", "labStorageType": "Standard", "mandatoryArtifactsResourceIdsLinux": [], "mandatoryArtifactsResourceIdsWindows": [], - "createdDate": "2018-10-01T18:40:48.1739018-07:00", "premiumDataDisks": "Disabled", - "environmentPermission": "Reader", - "announcement": { - "title": "", - "markdown": "", - "enabled": "Disabled", - "expired": false - }, + "provisioningState": "Creating", "support": { "enabled": "Disabled", "markdown": "" }, - "provisioningState": "Creating", "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", - "name": "{labName}", - "type": "Microsoft.DevTestLab/labs", - "location": "{location}", "tags": { "tagName1": "tagValue1" } @@ -48,34 +48,36 @@ }, "201": { "body": { + "name": "{labName}", + "type": "Microsoft.DevTestLab/labs", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "location": "{location}", "properties": { + "announcement": { + "enabled": "Disabled", + "expired": false, + "markdown": "", + "title": "" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "environmentPermission": "Reader", "labStorageType": "Standard", "mandatoryArtifactsResourceIdsLinux": [], "mandatoryArtifactsResourceIdsWindows": [], - "createdDate": "2018-10-01T18:40:48.1739018-07:00", "premiumDataDisks": "Disabled", - "environmentPermission": "Reader", - "announcement": { - "title": "", - "markdown": "", - "enabled": "Disabled", - "expired": false - }, + "provisioningState": "Creating", "support": { "enabled": "Disabled", "markdown": "" }, - "provisioningState": "Creating", "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", - "name": "{labName}", - "type": "Microsoft.DevTestLab/labs", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "Labs_CreateOrUpdate", + "title": "Labs_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Delete.json index 97a0d9b71459..306b9a9bcd0a 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Delete.json @@ -1,9 +1,9 @@ { "parameters": { + "name": "{labName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", "resourceGroupName": "resourceGroupName", - "name": "{labName}" + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, @@ -13,5 +13,7 @@ } }, "204": {} - } -} + }, + "operationId": "Labs_Delete", + "title": "Labs_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ExportResourceUsage.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ExportResourceUsage.json index bf3d9d2b6d1f..7d1e561924e9 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ExportResourceUsage.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ExportResourceUsage.json @@ -1,13 +1,13 @@ { "parameters": { - "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "name": "{labName}", + "api-version": "2018-09-15", "exportResourceUsageParameters": { "blobStorageAbsoluteSasUri": "https://invalid.blob.core.windows.net/export.blob?sv=2015-07-08&sig={sas}&sp=rcw", "usageStartDate": "2020-12-01T00:00:00Z" - } + }, + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, @@ -16,5 +16,7 @@ "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" } } - } -} + }, + "operationId": "Labs_ExportResourceUsage", + "title": "Labs_ExportResourceUsage" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_GenerateUploadUri.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_GenerateUploadUri.json index 566933707217..36d06f281323 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_GenerateUploadUri.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_GenerateUploadUri.json @@ -1,12 +1,12 @@ { "parameters": { - "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "name": "{labName}", + "api-version": "2018-09-15", "generateUploadUriParameter": { "blobName": "{blob-name}" - } + }, + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { @@ -14,5 +14,7 @@ "uploadUri": "https://{storageName}.blob.core.windows.net/uploads/{blobName}?sv=2017-04-17&sr=b&sig={signature}&st=2018-10-02T01:55:24Z&se=2018-10-03T02:10:23Z&sp=rcw" } } - } -} + }, + "operationId": "Labs_GenerateUploadUri", + "title": "Labs_GenerateUploadUri" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Get.json index a0a415d4d74b..76ded1b6c611 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Get.json @@ -1,46 +1,48 @@ { "parameters": { + "name": "{labName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", "resourceGroupName": "resourceGroupName", - "name": "{labName}" + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "name": "{labName}", + "type": "Microsoft.DevTestLab/labs", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "location": "{location}", "properties": { - "defaultStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", - "defaultPremiumStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "announcement": { + "enabled": "Disabled", + "expired": false, + "markdown": "", + "title": "" + }, "artifactsStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", - "premiumDataDiskStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", - "vaultName": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/{keyVaultName}", + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "defaultPremiumStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "defaultStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "environmentPermission": "Reader", "labStorageType": "Standard", "mandatoryArtifactsResourceIdsLinux": [], "mandatoryArtifactsResourceIdsWindows": [], - "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "premiumDataDiskStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", "premiumDataDisks": "Disabled", - "environmentPermission": "Reader", - "announcement": { - "title": "", - "markdown": "", - "enabled": "Disabled", - "expired": false - }, + "provisioningState": "Succeeded", "support": { "enabled": "Disabled", "markdown": "" }, - "provisioningState": "Succeeded", - "uniqueIdentifier": "{uniqueIdentifier}" + "uniqueIdentifier": "{uniqueIdentifier}", + "vaultName": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/{keyVaultName}" }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", - "name": "{labName}", - "type": "Microsoft.DevTestLab/labs", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "Labs_Get", + "title": "Labs_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ImportVirtualMachine.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ImportVirtualMachine.json index a08bf42c04e2..4d680cc7491b 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ImportVirtualMachine.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ImportVirtualMachine.json @@ -1,13 +1,13 @@ { "parameters": { - "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "name": "{labName}", + "api-version": "2018-09-15", "importLabVirtualMachineRequest": { - "sourceVirtualMachineResourceId": "/subscriptions/{subscriptionId}/resourceGroups/{otherResourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", - "destinationVirtualMachineName": "{vmName}" - } + "destinationVirtualMachineName": "{vmName}", + "sourceVirtualMachineResourceId": "/subscriptions/{subscriptionId}/resourceGroups/{otherResourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}" + }, + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, @@ -16,5 +16,7 @@ "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" } } - } -} + }, + "operationId": "Labs_ImportVirtualMachine", + "title": "Labs_ImportVirtualMachine" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListByResourceGroup.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListByResourceGroup.json index df7a0c1352dc..067f8c5f1f04 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListByResourceGroup.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListByResourceGroup.json @@ -1,39 +1,39 @@ { "parameters": { "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { "value": [ { + "name": "{labName}", + "type": "Microsoft.DevTestLab/labs", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "location": "{location}", "properties": { - "vaultName": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/{keyVaultName}", + "announcement": { + "enabled": "Disabled", + "expired": false, + "markdown": "", + "title": "" + }, + "createdDate": "2018-10-02T10:23:20.9573599-07:00", + "environmentPermission": "Reader", "labStorageType": "Standard", "mandatoryArtifactsResourceIdsLinux": [], "mandatoryArtifactsResourceIdsWindows": [], - "createdDate": "2018-10-02T10:23:20.9573599-07:00", "premiumDataDisks": "Disabled", - "environmentPermission": "Reader", - "announcement": { - "title": "", - "markdown": "", - "enabled": "Disabled", - "expired": false - }, + "provisioningState": "Succeeded", "support": { "enabled": "Disabled", "markdown": "" }, - "provisioningState": "Succeeded", - "uniqueIdentifier": "{uniqueIdentifier}" + "uniqueIdentifier": "{uniqueIdentifier}", + "vaultName": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/{keyVaultName}" }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", - "name": "{labName}", - "type": "Microsoft.DevTestLab/labs", - "location": "{location}", "tags": { "tagName1": "tagValue1" } @@ -41,5 +41,7 @@ ] } } - } -} + }, + "operationId": "Labs_ListByResourceGroup", + "title": "Labs_ListByResourceGroup" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListBySubscription.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListBySubscription.json index c381a81ac1f0..f1066e4cc506 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListBySubscription.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListBySubscription.json @@ -8,69 +8,69 @@ "body": { "value": [ { + "name": "{labName1}", + "type": "Microsoft.DevTestLab/labs", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName1}", + "location": "westcentralus", "properties": { - "defaultStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", - "defaultPremiumStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "announcement": { + "enabled": "Disabled", + "expired": false, + "markdown": "", + "title": "" + }, "artifactsStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", - "premiumDataDiskStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", - "vaultName": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/{keyVaultName}", + "createdDate": "2018-09-30T08:38:13.1973609-07:00", + "defaultPremiumStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "defaultStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "environmentPermission": "Reader", "labStorageType": "Premium", "mandatoryArtifactsResourceIdsLinux": [], "mandatoryArtifactsResourceIdsWindows": [], - "createdDate": "2018-09-30T08:38:13.1973609-07:00", + "premiumDataDiskStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", "premiumDataDisks": "Disabled", - "environmentPermission": "Reader", - "announcement": { - "title": "", - "markdown": "", - "enabled": "Disabled", - "expired": false - }, + "provisioningState": "Succeeded", "support": { "enabled": "Disabled", "markdown": "" }, - "provisioningState": "Succeeded", - "uniqueIdentifier": "{uniqueIdentifier}" + "uniqueIdentifier": "{uniqueIdentifier}", + "vaultName": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/{keyVaultName}" }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName1}", - "name": "{labName1}", - "type": "Microsoft.DevTestLab/labs", - "location": "westcentralus", "tags": { "tagName1": "tagValue1" } }, { + "name": "{labName2}", + "type": "Microsoft.DevTestLab/labs", + "id": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName2}/providers/microsoft.devtestlab/labs/{labName2}", + "location": "japaneast", "properties": { - "defaultStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName2}/providers/Microsoft.Storage/storageAccounts/{storageAccountName2}", - "defaultPremiumStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName2}/providers/Microsoft.Storage/storageAccounts/{storageAccountName2}", + "announcement": { + "enabled": "Disabled", + "expired": false, + "markdown": "", + "title": "" + }, "artifactsStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName2}/providers/Microsoft.Storage/storageAccounts/{storageAccountName2}", - "premiumDataDiskStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName2}/providers/Microsoft.Storage/storageAccounts/{storageAccountName2}", - "vaultName": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName2}/providers/Microsoft.KeyVault/vaults/{keyVaultName2}", + "createdDate": "2018-09-30T09:37:52.9675083-07:00", + "defaultPremiumStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName2}/providers/Microsoft.Storage/storageAccounts/{storageAccountName2}", + "defaultStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName2}/providers/Microsoft.Storage/storageAccounts/{storageAccountName2}", + "environmentPermission": "Reader", "labStorageType": "Premium", "mandatoryArtifactsResourceIdsLinux": [], "mandatoryArtifactsResourceIdsWindows": [], - "createdDate": "2018-09-30T09:37:52.9675083-07:00", + "premiumDataDiskStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName2}/providers/Microsoft.Storage/storageAccounts/{storageAccountName2}", "premiumDataDisks": "Disabled", - "environmentPermission": "Reader", - "announcement": { - "title": "", - "markdown": "", - "enabled": "Disabled", - "expired": false - }, + "provisioningState": "Succeeded", "support": { "enabled": "Disabled", "markdown": "" }, - "provisioningState": "Succeeded", - "uniqueIdentifier": "{uniqueIdentifier}" + "uniqueIdentifier": "{uniqueIdentifier}", + "vaultName": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName2}/providers/Microsoft.KeyVault/vaults/{keyVaultName2}" }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName2}/providers/microsoft.devtestlab/labs/{labName2}", - "name": "{labName2}", - "type": "Microsoft.DevTestLab/labs", - "location": "japaneast", "tags": { "tagName1": "tagValue1" } @@ -78,5 +78,7 @@ ] } } - } -} + }, + "operationId": "Labs_ListBySubscription", + "title": "Labs_ListBySubscription" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListVhds.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListVhds.json index 0c51db641f2c..6dc1ea1101c1 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListVhds.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListVhds.json @@ -1,9 +1,9 @@ { "parameters": { + "name": "{labName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", "resourceGroupName": "resourceGroupName", - "name": "{labName}" + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { @@ -18,5 +18,7 @@ ] } } - } -} + }, + "operationId": "Labs_ListVhds", + "title": "Labs_ListVhds" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Update.json index ad69884d157f..4b1b9d21b744 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Update.json @@ -1,43 +1,45 @@ { "parameters": { + "name": "{labName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", + "lab": {}, "resourceGroupName": "resourceGroupName", - "name": "{labName}", - "lab": {} + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "name": "{labName}", + "type": "Microsoft.DevTestLab/labs", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "location": "{location}", "properties": { - "vaultName": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/{keyVaultName}", + "announcement": { + "enabled": "Disabled", + "expired": false, + "markdown": "", + "title": "" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "environmentPermission": "Reader", "labStorageType": "Standard", "mandatoryArtifactsResourceIdsLinux": [], "mandatoryArtifactsResourceIdsWindows": [], - "createdDate": "2018-10-01T18:40:48.1739018-07:00", "premiumDataDisks": "Disabled", - "environmentPermission": "Reader", - "announcement": { - "title": "", - "markdown": "", - "enabled": "Disabled", - "expired": false - }, + "provisioningState": "Succeeded", "support": { "enabled": "Disabled", "markdown": "" }, - "provisioningState": "Succeeded", - "uniqueIdentifier": "{uniqueIdentifier}" + "uniqueIdentifier": "{uniqueIdentifier}", + "vaultName": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/{keyVaultName}" }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", - "name": "{labName}", - "type": "Microsoft.DevTestLab/labs", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "Labs_Update", + "title": "Labs_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_CreateOrUpdate.json index 918867c894fa..2e1f03d4a63e 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_CreateOrUpdate.json @@ -1,45 +1,45 @@ { "parameters": { + "name": "{notificationChannelName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{notificationChannelName}", "notificationChannel": { "properties": { "description": "Integration configured for auto-shutdown", + "emailRecipient": "{email}", "events": [ { "eventName": "AutoShutdown" } ], - "webHookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "en" + "notificationLocale": "en", + "webHookUrl": "{webhookUrl}" } - } + }, + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "name": "{notificationChannelName}", + "type": "Microsoft.DevTestLab/labs/notificationChannels", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/notificationChannels/{notificationChannelName}", + "location": "{location}", "properties": { - "webHookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "en", "description": "Integration configured for auto-shutdown", + "createdDate": "2021-01-05T02:14:05.2392034+00:00", + "emailRecipient": "{email}", "events": [ { "eventName": "AutoShutdown" } ], - "createdDate": "2021-01-05T02:14:05.2392034+00:00", + "notificationLocale": "en", "provisioningState": "Succeeded", - "uniqueIdentifier": "{uniqueIdentifier}" + "uniqueIdentifier": "{uniqueIdentifier}", + "webHookUrl": "{webhookUrl}" }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/notificationChannels/{notificationChannelName}", - "name": "{notificationChannelName}", - "type": "Microsoft.DevTestLab/labs/notificationChannels", - "location": "{location}", "tags": { "tagName1": "tagValue1" } @@ -47,28 +47,30 @@ }, "201": { "body": { + "name": "{notificationChannelName}", + "type": "Microsoft.DevTestLab/labs/notificationChannels", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/notificationChannels/{notificationChannelName}", + "location": "{location}", "properties": { - "webHookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "en", "description": "Integration configured for auto-shutdown", + "createdDate": "2021-01-05T02:14:05.2392034+00:00", + "emailRecipient": "{email}", "events": [ { "eventName": "AutoShutdown" } ], - "createdDate": "2021-01-05T02:14:05.2392034+00:00", + "notificationLocale": "en", "provisioningState": "Creating", - "uniqueIdentifier": "{uniqueIdentifier}" + "uniqueIdentifier": "{uniqueIdentifier}", + "webHookUrl": "{webhookUrl}" }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/notificationChannels/{notificationChannelName}", - "name": "{notificationChannelName}", - "type": "Microsoft.DevTestLab/labs/notificationChannels", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "NotificationChannels_CreateOrUpdate", + "title": "NotificationChannels_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Delete.json index c6016c7324a8..71c07fcd0ba5 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Delete.json @@ -1,13 +1,15 @@ { "parameters": { + "name": "{notificationChannelName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{notificationChannelName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, "204": {} - } -} + }, + "operationId": "NotificationChannels_Delete", + "title": "NotificationChannels_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Get.json index e59ca23b17f8..be5dad100fd0 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Get.json @@ -1,36 +1,38 @@ { "parameters": { + "name": "{notificationChannelName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{notificationChannelName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "name": "{notificationChannelName}", + "type": "Microsoft.DevTestLab/labs/notificationChannels", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/notificationChannels/{notificationChannelName}", + "location": "{location}", "properties": { - "webHookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "en", "description": "Integration configured for auto-shutdown", + "createdDate": "2021-01-05T02:14:05.2392034+00:00", + "emailRecipient": "{email}", "events": [ { "eventName": "AutoShutdown" } ], - "createdDate": "2021-01-05T02:14:05.2392034+00:00", + "notificationLocale": "en", "provisioningState": "Succeeded", - "uniqueIdentifier": "{uniqueIdentifier}" + "uniqueIdentifier": "{uniqueIdentifier}", + "webHookUrl": "{webhookUrl}" }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/notificationChannels/{notificationChannelName}", - "name": "{notificationChannelName}", - "type": "Microsoft.DevTestLab/labs/notificationChannels", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "NotificationChannels_Get", + "title": "NotificationChannels_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_List.json index 7723abf785f1..99bf97116afa 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_List.json @@ -1,55 +1,55 @@ { "parameters": { "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", + "labName": "{labName}", "resourceGroupName": "resourceGroupName", - "labName": "{labName}" + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { "value": [ { + "name": "autoshutdown", + "type": "Microsoft.DevTestLab/labs/notificationChannels", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/notificationChannels/{notificationChannelName}", + "location": "{location}", "properties": { - "webHookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "en", "description": "Integration configured for auto-shutdown", + "createdDate": "2021-01-05T02:12:10.6566371+00:00", + "emailRecipient": "{email}", "events": [ { "eventName": "AutoShutdown" } ], - "createdDate": "2021-01-05T02:12:10.6566371+00:00", + "notificationLocale": "en", "provisioningState": "Succeeded", - "uniqueIdentifier": "{uniqueIdentifier}" + "uniqueIdentifier": "{uniqueIdentifier}", + "webHookUrl": "{webhookUrl}" }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/notificationChannels/{notificationChannelName}", - "name": "autoshutdown", - "type": "Microsoft.DevTestLab/labs/notificationChannels", - "location": "{location}", "tags": { "tagName1": "tagValue1" } }, { + "name": "costThreshold", + "type": "Microsoft.DevTestLab/labs/notificationChannels", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/notificationChannels/{notificationChannelName}", + "location": "{location}", "properties": { - "webHookUrl": "{webhookUrl}", - "notificationLocale": "en", "description": "Integration configured for cost", + "createdDate": "2021-01-05T02:14:05.2392034+00:00", "events": [ { "eventName": "Cost" } ], - "createdDate": "2021-01-05T02:14:05.2392034+00:00", + "notificationLocale": "en", "provisioningState": "Succeeded", - "uniqueIdentifier": "{uniqueIdentifier}" + "uniqueIdentifier": "{uniqueIdentifier}", + "webHookUrl": "{webhookUrl}" }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/notificationChannels/{notificationChannelName}", - "name": "costThreshold", - "type": "Microsoft.DevTestLab/labs/notificationChannels", - "location": "{location}", "tags": { "tagName1": "tagValue1" } @@ -57,5 +57,7 @@ ] } } - } -} + }, + "operationId": "NotificationChannels_List", + "title": "NotificationChannels_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Notify.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Notify.json index fc9c74f6928d..148f61eaa06c 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Notify.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Notify.json @@ -1,16 +1,18 @@ { "parameters": { + "name": "{notificationChannelName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{notificationChannelName}", "notifyParameters": { "eventName": "AutoShutdown", "jsonPayload": "{\"eventType\":\"AutoShutdown\",\"subscriptionId\":\"{subscriptionId}\",\"resourceGroupName\":\"resourceGroupName\",\"labName\":\"{labName}\"}" - } + }, + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {} - } -} + }, + "operationId": "NotificationChannels_Notify", + "title": "NotificationChannels_Notify" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Update.json index 2135cb607801..984f119350ae 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Update.json @@ -1,37 +1,39 @@ { "parameters": { + "name": "{notificationChannelName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{notificationChannelName}", - "notificationChannel": {} + "notificationChannel": {}, + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "name": "{notificationChannelName}", + "type": "Microsoft.DevTestLab/labs/notificationChannels", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/notificationChannels/{notificationChannelName}", + "location": "{location}", "properties": { - "webHookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "en", "description": "Integration configured for auto-shutdown", + "createdDate": "2021-01-05T02:14:05.2392034+00:00", + "emailRecipient": "{email}", "events": [ { "eventName": "AutoShutdown" } ], - "createdDate": "2021-01-05T02:14:05.2392034+00:00", + "notificationLocale": "en", "provisioningState": "Succeeded", - "uniqueIdentifier": "{uniqueIdentifier}" + "uniqueIdentifier": "{uniqueIdentifier}", + "webHookUrl": "{webhookUrl}" }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/notificationChannels/{notificationChannelName}", - "name": "{notificationChannelName}", - "type": "Microsoft.DevTestLab/labs/notificationChannels", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "NotificationChannels_Update", + "title": "NotificationChannels_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Operations_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Operations_Get.json index 2b31221157f0..cd27a572cd78 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Operations_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Operations_Get.json @@ -1,9 +1,9 @@ { "parameters": { + "name": "{operationName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", "locationName": "{locationName}", - "name": "{operationName}" + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { @@ -18,5 +18,7 @@ "statusCode": "Accepted" } } - } -} + }, + "operationId": "Operations_Get", + "title": "Operations_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_CreateOrUpdate.json index 97926527b254..44bfcbfc4f03 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_CreateOrUpdate.json @@ -1,42 +1,42 @@ { "parameters": { + "name": "{policyName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "policySetName": "{policySetName}", - "name": "{policyName}", "policy": { "location": "{location}", - "tags": { - "tagName1": "tagValue1" - }, "properties": { "description": "{policyDescription}", - "status": "{policyStatus}", - "factName": "{policyFactName}", + "evaluatorType": "{policyEvaluatorType}", "factData": "{policyFactData}", - "threshold": "{policyThreshold}", - "evaluatorType": "{policyEvaluatorType}" + "factName": "{policyFactName}", + "status": "{policyStatus}", + "threshold": "{policyThreshold}" + }, + "tags": { + "tagName1": "tagValue1" } - } + }, + "policySetName": "{policySetName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{policyName}", "name": "{labName}", "type": "Microsoft.DevTestLab/labs/policies", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{policyName}", "location": "{location}", "properties": { "description": "{policyDescription}", - "status": "{policyStatus}", - "factName": "{policyFactName}", - "factData": "{policyFactData}", - "threshold": "{policyThreshold}", - "evaluatorType": "{policyEvaluatorType}", "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "evaluatorType": "{policyEvaluatorType}", + "factData": "{policyFactData}", + "factName": "{policyFactName}", "provisioningState": "Succeeded", + "status": "{policyStatus}", + "threshold": "{policyThreshold}", "uniqueIdentifier": "{uniqueIdentifier}" } }, @@ -46,19 +46,19 @@ }, "201": { "body": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{policyName}", "name": "{labName}", "type": "Microsoft.DevTestLab/labs/policySets/policies", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{policyName}", "location": "{location}", "properties": { "description": "{policyDescription}", - "status": "{policyStatus}", - "factName": "{policyFactName}", - "factData": "{policyFactData}", - "threshold": "{policyThreshold}", - "evaluatorType": "{policyEvaluatorType}", "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "evaluatorType": "{policyEvaluatorType}", + "factData": "{policyFactData}", + "factName": "{policyFactName}", "provisioningState": "Succeeded", + "status": "{policyStatus}", + "threshold": "{policyThreshold}", "uniqueIdentifier": "{uniqueIdentifier}" } }, @@ -66,5 +66,7 @@ "tagName1": "tagValue1" } } - } -} + }, + "operationId": "Policies_CreateOrUpdate", + "title": "Policies_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Delete.json index 896696109998..484dd846ee71 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Delete.json @@ -1,14 +1,16 @@ { "parameters": { + "name": "{policyName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", "policySetName": "{policySetName}", - "name": "{policyName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, "204": {} - } -} + }, + "operationId": "Policies_Delete", + "title": "Policies_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Get.json index e2b4eb6f9872..835bdceeb068 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Get.json @@ -1,34 +1,36 @@ { "parameters": { + "name": "{policyName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", "policySetName": "{policySetName}", - "name": "{policyName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "name": "{labName}", + "type": "Microsoft.DevTestLab/labs/policySets/policies", + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{policyName}", + "location": "{location}", "properties": { "description": "{policyDescription}", - "status": "{policyStatus}", - "factName": "{policyFactName}", - "factData": "{policyFactData}", - "threshold": "{policyThreshold}", - "evaluatorType": "{policyEvaluatorType}", "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "evaluatorType": "{policyEvaluatorType}", + "factData": "{policyFactData}", + "factName": "{policyFactName}", "provisioningState": "Succeeded", + "status": "{policyStatus}", + "threshold": "{policyThreshold}", "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{policyName}", - "name": "{labName}", - "type": "Microsoft.DevTestLab/labs/policySets/policies", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "Policies_Get", + "title": "Policies_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_List.json index e419f2c69e08..fd502d322b37 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_List.json @@ -1,32 +1,32 @@ { "parameters": { + "name": "{policyName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", "policySetName": "{policySetName}", - "name": "{policyName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { "value": [ { + "name": "{labName}", + "type": "Microsoft.DevTestLab/labs/policySets/policies", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{policyName}", + "location": "{location}", "properties": { "description": "{policyDescription}", - "status": "{policyStatus}", - "factName": "{policyFactName}", - "factData": "{policyFactData}", - "threshold": "{policyThreshold}", - "evaluatorType": "{policyEvaluatorType}", "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "evaluatorType": "{policyEvaluatorType}", + "factData": "{policyFactData}", + "factName": "{policyFactName}", "provisioningState": "Succeeded", + "status": "{policyStatus}", + "threshold": "{policyThreshold}", "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{policyName}", - "name": "{labName}", - "type": "Microsoft.DevTestLab/labs/policySets/policies", - "location": "{location}", "tags": { "tagName1": "tagValue1" } @@ -34,5 +34,7 @@ ] } } - } -} + }, + "operationId": "Policies_List", + "title": "Policies_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Update.json index aa1a9957a355..c65763f0b7ce 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Update.json @@ -1,33 +1,33 @@ { "parameters": { + "name": "{policyName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "policySetName": "{policySetName}", - "name": "{policyName}", "policy": { "tags": { "tagName1": "tagValue1" } - } + }, + "policySetName": "{policySetName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{policyName}", "name": "{labName}", "type": "Microsoft.DevTestLab/labs/policies", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{policyName}", "location": "{location}", "properties": { "description": "{policyDescription}", - "status": "{policyStatus}", - "factName": "{policyFactName}", - "factData": "{policyFactData}", - "threshold": "{policyThreshold}", - "evaluatorType": "{policyEvaluatorType}", "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "evaluatorType": "{policyEvaluatorType}", + "factData": "{policyFactData}", + "factName": "{policyFactName}", "provisioningState": "Succeeded", + "status": "{policyStatus}", + "threshold": "{policyThreshold}", "uniqueIdentifier": "{uniqueIdentifier}" } }, @@ -35,5 +35,7 @@ "tagName1": "tagValue1" } } - } -} + }, + "operationId": "Policies_Update", + "title": "Policies_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json index 551545c15666..2189a3ee66ab 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json @@ -1,10 +1,7 @@ { "parameters": { - "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", - "labName": "{labName}", "name": "{policySetName}", + "api-version": "2018-09-15", "evaluatePoliciesRequest": { "policies": [ { @@ -12,7 +9,10 @@ "valueOffset": "1" } ] - } + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { @@ -30,5 +30,7 @@ ] } } - } -} + }, + "operationId": "PolicySets_EvaluatePolicies", + "title": "PolicySets_EvaluatePolicies" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_CreateOrUpdate.json index 3da352bda297..cf897518558c 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_CreateOrUpdate.json @@ -1,81 +1,81 @@ { "parameters": { + "name": "{scheduleName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{scheduleName}", + "resourceGroupName": "resourceGroupName", "schedule": { + "location": "{location}", "properties": { - "status": "{Enabled|Disabled}", - "taskType": "{myLabVmTaskType}", - "weeklyRecurrence": { - "weekdays": [ - "Monday", - "Wednesday", - "Friday" - ], - "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" - }, "dailyRecurrence": { "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" }, "hourlyRecurrence": { "minute": 30 }, - "timeZoneId": "Pacific Standard Time", "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", "status": "{Enabled|Disabled}", "timeInMinutes": 15, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" + "webhookUrl": "{webhookUrl}" }, - "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}" + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } }, - "location": "{location}", "tags": { "tagName1": "tagValue1" } - } + }, + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", "properties": { - "status": "{Enabled|Disabled}", - "taskType": "{myLabVmTaskType}", - "weeklyRecurrence": { - "weekdays": [ - "Monday", - "Wednesday", - "Friday" - ], - "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" - }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", "dailyRecurrence": { "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" }, "hourlyRecurrence": { "minute": 30 }, - "timeZoneId": "Pacific Standard Time", "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", "status": "{Enabled|Disabled}", "timeInMinutes": 15, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" + "webhookUrl": "{webhookUrl}" }, - "createdDate": "2018-10-01T18:40:48.1739018-07:00", - "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", "provisioningState": "Creating", - "uniqueIdentifier": "{uniqueIdentifier}" + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", - "name": "{scheduleName}", - "type": "Microsoft.DevTestLab/labs/schedules", - "location": "{location}", "tags": { "tagName1": "tagValue1" } @@ -83,44 +83,46 @@ }, "201": { "body": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", "properties": { - "status": "{Enabled|Disabled}", - "taskType": "{myLabVmTaskType}", - "weeklyRecurrence": { - "weekdays": [ - "Monday", - "Wednesday", - "Friday" - ], - "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" - }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", "dailyRecurrence": { "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" }, "hourlyRecurrence": { "minute": 30 }, - "timeZoneId": "Pacific Standard Time", "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", "status": "{Enabled|Disabled}", "timeInMinutes": 15, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" + "webhookUrl": "{webhookUrl}" }, - "createdDate": "2018-10-01T18:40:48.1739018-07:00", - "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", "provisioningState": "Creating", - "uniqueIdentifier": "{uniqueIdentifier}" + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", - "name": "{scheduleName}", - "type": "Microsoft.DevTestLab/labs/schedules", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "Schedules_CreateOrUpdate", + "title": "Schedules_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Delete.json index c42f7b046183..6049b7fbc45d 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Delete.json @@ -1,13 +1,15 @@ { "parameters": { + "name": "{scheduleName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{scheduleName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, "204": {} - } -} + }, + "operationId": "Schedules_Delete", + "title": "Schedules_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Execute.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Execute.json index 5d018df62813..16513c9c5d5c 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Execute.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Execute.json @@ -1,10 +1,10 @@ { "parameters": { + "name": "{scheduleName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{scheduleName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, @@ -13,5 +13,7 @@ "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" } } - } -} + }, + "operationId": "Schedules_Execute", + "title": "Schedules_Execute" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Get.json index da04dd288866..fafdb792a4bf 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Get.json @@ -1,52 +1,54 @@ { "parameters": { + "name": "{scheduleName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{scheduleName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", "properties": { - "status": "{Enabled|Disabled}", - "taskType": "{myLabVmTaskType}", - "weeklyRecurrence": { - "weekdays": [ - "Monday", - "Wednesday", - "Friday" - ], - "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" - }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", "dailyRecurrence": { "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" }, "hourlyRecurrence": { "minute": 30 }, - "timeZoneId": "Pacific Standard Time", "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", "status": "{Enabled|Disabled}", "timeInMinutes": 15, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" + "webhookUrl": "{webhookUrl}" }, - "createdDate": "2018-10-01T18:40:48.1739018-07:00", - "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", "provisioningState": "Creating", - "uniqueIdentifier": "{uniqueIdentifier}" + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", - "name": "{scheduleName}", - "type": "Microsoft.DevTestLab/labs/schedules", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "Schedules_Get", + "title": "Schedules_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_List.json index 330e80fe2c19..19031aa5d97d 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_List.json @@ -1,49 +1,49 @@ { "parameters": { "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", + "labName": "{labName}", "resourceGroupName": "resourceGroupName", - "labName": "{labName}" + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { "value": [ { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", "properties": { - "status": "{Enabled|Disabled}", - "taskType": "{myLabVmTaskType}", - "weeklyRecurrence": { - "weekdays": [ - "Monday", - "Wednesday", - "Friday" - ], - "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" - }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", "dailyRecurrence": { "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" }, "hourlyRecurrence": { "minute": 30 }, - "timeZoneId": "Pacific Standard Time", "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", "status": "{Enabled|Disabled}", "timeInMinutes": 15, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" + "webhookUrl": "{webhookUrl}" }, - "createdDate": "2018-10-01T18:40:48.1739018-07:00", - "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", "provisioningState": "Creating", - "uniqueIdentifier": "{uniqueIdentifier}" + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", - "name": "{scheduleName}", - "type": "Microsoft.DevTestLab/labs/schedules", - "location": "{location}", "tags": { "tagName1": "tagValue1" } @@ -51,5 +51,7 @@ ] } } - } -} + }, + "operationId": "Schedules_List", + "title": "Schedules_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_ListApplicable.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_ListApplicable.json index df90a36c097b..0b4e36b31f62 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_ListApplicable.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_ListApplicable.json @@ -1,50 +1,50 @@ { "parameters": { + "name": "{scheduleName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{scheduleName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { "value": [ { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", "properties": { - "status": "{Enabled|Disabled}", - "taskType": "{myLabVmTaskType}", - "weeklyRecurrence": { - "weekdays": [ - "Monday", - "Wednesday", - "Friday" - ], - "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" - }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", "dailyRecurrence": { "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" }, "hourlyRecurrence": { "minute": 30 }, - "timeZoneId": "Pacific Standard Time", "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", "status": "{Enabled|Disabled}", "timeInMinutes": 15, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" + "webhookUrl": "{webhookUrl}" }, - "createdDate": "2018-10-01T18:40:48.1739018-07:00", - "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", "provisioningState": "Creating", - "uniqueIdentifier": "{uniqueIdentifier}" + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", - "name": "{scheduleName}", - "type": "Microsoft.DevTestLab/labs/schedules", - "location": "{location}", "tags": { "tagName1": "tagValue1" } @@ -52,5 +52,7 @@ ] } } - } -} + }, + "operationId": "Schedules_ListApplicable", + "title": "Schedules_ListApplicable" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Update.json index 407f17837a6b..51a8975e65ac 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Update.json @@ -1,57 +1,59 @@ { "parameters": { + "name": "{scheduleName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{scheduleName}", + "resourceGroupName": "resourceGroupName", "schedule": { "tags": { "tagName1": "tagValue1" } - } + }, + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", "properties": { - "status": "{Enabled|Disabled}", - "taskType": "{myLabVmTaskType}", - "weeklyRecurrence": { - "weekdays": [ - "Monday", - "Wednesday", - "Friday" - ], - "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" - }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", "dailyRecurrence": { "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" }, "hourlyRecurrence": { "minute": 30 }, - "timeZoneId": "Pacific Standard Time", "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", "status": "{Enabled|Disabled}", "timeInMinutes": 15, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" + "webhookUrl": "{webhookUrl}" }, - "createdDate": "2018-10-01T18:40:48.1739018-07:00", - "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", "provisioningState": "Creating", - "uniqueIdentifier": "{uniqueIdentifier}" + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", - "name": "{scheduleName}", - "type": "Microsoft.DevTestLab/labs/schedules", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "Schedules_Update", + "title": "Schedules_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_CreateOrUpdate.json index c4165ca23f8f..643ac4815a47 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_CreateOrUpdate.json @@ -1,37 +1,39 @@ { "parameters": { + "name": "{secretName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "userName": "{userName}", - "name": "{secretName}", + "resourceGroupName": "resourceGroupName", "secret": { "properties": { "value": "{secret}" } - } + }, + "subscriptionId": "{subscriptionId}", + "userName": "{userName}" }, "responses": { "200": { "body": { + "name": "{secretName}", + "type": "Microsoft.DevTestLab/labs/users/secrets", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/secrets/{secretName}", "properties": { "uniqueIdentifier": "00000000-0000-0000-0000-000000000000" - }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/secrets/{secretName}", - "name": "{secretName}", - "type": "Microsoft.DevTestLab/labs/users/secrets" + } } }, "201": { "body": { + "name": "{secretName}", + "type": "Microsoft.DevTestLab/labs/users/secrets", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/secrets/{secretName}", "properties": { "uniqueIdentifier": "00000000-0000-0000-0000-000000000000" - }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/secrets/{secretName}", - "name": "{secretName}", - "type": "Microsoft.DevTestLab/labs/users/secrets" + } } } - } -} + }, + "operationId": "Secrets_CreateOrUpdate", + "title": "Secrets_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Delete.json index c90cc62c868c..068d64a0ee8a 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Delete.json @@ -1,14 +1,16 @@ { "parameters": { + "name": "{secretName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "userName": "{userName}", - "name": "{secretName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "{userName}" }, "responses": { "200": {}, "204": {} - } -} + }, + "operationId": "Secrets_Delete", + "title": "Secrets_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Get.json index ad0c8c5355eb..df74669e6ca9 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Get.json @@ -1,22 +1,24 @@ { "parameters": { + "name": "{secretName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "userName": "{userName}", - "name": "{secretName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "{userName}" }, "responses": { "200": { "body": { + "name": "{secretName}", + "type": "Microsoft.DevTestLab/labs/users/secrets", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/secrets/{secretName}", "properties": { "uniqueIdentifier": "00000000-0000-0000-0000-000000000000" - }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/secrets/{secretName}", - "name": "{secretName}", - "type": "Microsoft.DevTestLab/labs/users/secrets" + } } } - } -} + }, + "operationId": "Secrets_Get", + "title": "Secrets_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_List.json index aa23320df573..df2e35f93e53 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_List.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", "userName": "{userName}" }, "responses": { @@ -11,23 +11,25 @@ "body": { "value": [ { + "name": "secret1", + "type": "Microsoft.DevTestLab/labs/users/secrets", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/secrets/secret1", "properties": { "uniqueIdentifier": "00000000-0000-0000-0000-000000000000" - }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/secrets/secret1", - "name": "secret1", - "type": "Microsoft.DevTestLab/labs/users/secrets" + } }, { + "name": "secret2", + "type": "Microsoft.DevTestLab/labs/users/secrets", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/secrets/secret2", "properties": { "uniqueIdentifier": "00000000-0000-0000-0000-000000000000" - }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/secrets/secret2", - "name": "secret2", - "type": "Microsoft.DevTestLab/labs/users/secrets" + } } ] } } - } -} + }, + "operationId": "Secrets_List", + "title": "Secrets_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Update.json index 9f938c6220a4..7544258d58d5 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Update.json @@ -1,27 +1,29 @@ { "parameters": { + "name": "{secretName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "userName": "{userName}", - "name": "{secretName}", + "resourceGroupName": "resourceGroupName", "secret": { "tags": { "tagName1": "tagValue1" } - } + }, + "subscriptionId": "{subscriptionId}", + "userName": "{userName}" }, "responses": { "200": { "body": { + "name": "{secretName}", + "type": "Microsoft.DevTestLab/labs/users/secrets", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/secrets/{secretName}", "properties": { "uniqueIdentifier": "00000000-0000-0000-0000-000000000000" - }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/secrets/{secretName}", - "name": "{secretName}", - "type": "Microsoft.DevTestLab/labs/users/secrets" + } } } - } -} + }, + "operationId": "Secrets_Update", + "title": "Secrets_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_CreateOrUpdate.json index fe45fc60d4ab..9c3b0e016d6b 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_CreateOrUpdate.json @@ -1,18 +1,31 @@ { "parameters": { + "name": "{scheduleName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "userName": "@me", - "serviceFabricName": "{serviceFrabicName}", - "name": "{scheduleName}", + "resourceGroupName": "resourceGroupName", "schedule": { "location": "{location}", "properties": { + "dailyRecurrence": { + "time": "19:00" + }, + "hourlyRecurrence": { + "minute": 0 + }, + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhoolUrl}" + }, "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}", "taskType": "{Unknown|LabVmsShutdownTask|LabVmsStartupTask|LabVmReclamationTask|ComputeVmShutdownTask}", + "timeZoneId": "Pacific Standard Time", "weeklyRecurrence": { + "time": "19:00", "weekdays": [ "Monday", "Tuesday", @@ -21,37 +34,41 @@ "Friday", "Saturday", "Sunday" - ], - "time": "19:00" - }, - "dailyRecurrence": { - "time": "19:00" - }, - "hourlyRecurrence": { - "minute": 0 - }, - "timeZoneId": "Pacific Standard Time", - "notificationSettings": { - "status": "{Enabled|Disabled}", - "timeInMinutes": 15, - "webhookUrl": "{webhoolUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" - }, - "targetResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}" + ] + } }, "tags": { "tagName1": "tagValue1" } - } + }, + "serviceFabricName": "{serviceFrabicName}", + "subscriptionId": "{subscriptionId}", + "userName": "@me" }, "responses": { "200": { "body": { + "name": "{scheduleName}", + "type": "microsoft.devtestlab/labs/users/servicefabrics/schedules", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}/schedules/{scheduleName}", + "location": "{location}", "properties": { + "createdDate": "2018-09-15T00:00:00.0000000-00:00", + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "Disabled", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Succeeded", "status": "Enabled", + "targetResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}", "taskType": "Unknown", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", "weeklyRecurrence": { + "time": "1900", "weekdays": [ "Sunday", "Monday", @@ -60,26 +77,9 @@ "Thursday", "Friday", "Saturday" - ], - "time": "1900" - }, - "timeZoneId": "Pacific Standard Time", - "notificationSettings": { - "status": "Disabled", - "timeInMinutes": 15, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" - }, - "createdDate": "2018-09-15T00:00:00.0000000-00:00", - "targetResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}", - "provisioningState": "Succeeded", - "uniqueIdentifier": "{uniqueIdentifier}" + ] + } }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}/schedules/{scheduleName}", - "name": "{scheduleName}", - "type": "microsoft.devtestlab/labs/users/servicefabrics/schedules", - "location": "{location}", "tags": { "tagName1": "tagValue1" } @@ -87,10 +87,27 @@ }, "201": { "body": { + "name": "{scheduleName}", + "type": "microsoft.devtestlab/labs/users/servicefabrics/schedules", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}/schedules/{scheduleName}", + "location": "{location}", "properties": { + "createdDate": "2018-09-15T00:00:00.0000000-00:00", + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "Disabled", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Succeeded", "status": "Enabled", + "targetResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}", "taskType": "Unknown", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", "weeklyRecurrence": { + "time": "1900", "weekdays": [ "Sunday", "Monday", @@ -99,30 +116,15 @@ "Thursday", "Friday", "Saturday" - ], - "time": "1900" - }, - "timeZoneId": "Pacific Standard Time", - "notificationSettings": { - "status": "Disabled", - "timeInMinutes": 15, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" - }, - "createdDate": "2018-09-15T00:00:00.0000000-00:00", - "targetResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}", - "provisioningState": "Succeeded", - "uniqueIdentifier": "{uniqueIdentifier}" + ] + } }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}/schedules/{scheduleName}", - "name": "{scheduleName}", - "type": "microsoft.devtestlab/labs/users/servicefabrics/schedules", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "ServiceFabricSchedules_CreateOrUpdate", + "title": "ServiceFabricSchedules_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Delete.json index 22616b091427..3451e5e99849 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Delete.json @@ -1,15 +1,17 @@ { "parameters": { + "name": "{scheduleName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "userName": "@me", + "resourceGroupName": "resourceGroupName", "serviceFabricName": "{serviceFrabicName}", - "name": "{scheduleName}" + "subscriptionId": "{subscriptionId}", + "userName": "@me" }, "responses": { "200": {}, "204": {} - } -} + }, + "operationId": "ServiceFabricSchedules_Delete", + "title": "ServiceFabricSchedules_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Execute.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Execute.json index 908bf066b3a5..4cb21d55c5f5 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Execute.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Execute.json @@ -1,12 +1,12 @@ { "parameters": { + "name": "{scheduleName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "userName": "@me", + "resourceGroupName": "resourceGroupName", "serviceFabricName": "{serviceFrabicName}", - "name": "{scheduleName}" + "subscriptionId": "{subscriptionId}", + "userName": "@me" }, "responses": { "200": {}, @@ -15,5 +15,7 @@ "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" } } - } -} + }, + "operationId": "ServiceFabricSchedules_Execute", + "title": "ServiceFabricSchedules_Execute" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Get.json index a3ae785deb4d..d4ea1780fb55 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Get.json @@ -1,20 +1,37 @@ { "parameters": { + "name": "{scheduleName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "userName": "@me", + "resourceGroupName": "resourceGroupName", "serviceFabricName": "{serviceFrabicName}", - "name": "{scheduleName}" + "subscriptionId": "{subscriptionId}", + "userName": "@me" }, "responses": { "200": { "body": { + "name": "{scheduleName}", + "type": "microsoft.devtestlab/labs/users/servicefabrics/schedules", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}/schedules/{scheduleName}", + "location": "{location}", "properties": { + "createdDate": "2018-09-15T00:00:00.0000000-00:00", + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "Disabled", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Succeeded", "status": "Enabled", + "targetResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}", "taskType": "Unknown", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", "weeklyRecurrence": { + "time": "1900", "weekdays": [ "Sunday", "Monday", @@ -23,30 +40,15 @@ "Thursday", "Friday", "Saturday" - ], - "time": "1900" - }, - "timeZoneId": "Pacific Standard Time", - "notificationSettings": { - "status": "Disabled", - "timeInMinutes": 15, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" - }, - "createdDate": "2018-09-15T00:00:00.0000000-00:00", - "targetResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}", - "provisioningState": "Succeeded", - "uniqueIdentifier": "{uniqueIdentifier}" + ] + } }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}/schedules/{scheduleName}", - "name": "{scheduleName}", - "type": "microsoft.devtestlab/labs/users/servicefabrics/schedules", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "ServiceFabricSchedules_Get", + "title": "ServiceFabricSchedules_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_List.json index 1e925dce6c48..c6be9125f350 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_List.json @@ -1,21 +1,38 @@ { "parameters": { "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "userName": "@me", - "serviceFabricName": "{serviceFrabicName}" + "resourceGroupName": "resourceGroupName", + "serviceFabricName": "{serviceFrabicName}", + "subscriptionId": "{subscriptionId}", + "userName": "@me" }, "responses": { "200": { "body": { "value": [ { + "name": "{scheduleName}", + "type": "microsoft.devtestlab/labs/users/servicefabrics/schedules", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}/schedules/{scheduleName}", + "location": "{location}", "properties": { + "createdDate": "2018-09-15T00:00:00.0000000-00:00", + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "Disabled", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Succeeded", "status": "Enabled", + "targetResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}", "taskType": "Unknown", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", "weeklyRecurrence": { + "time": "1900", "weekdays": [ "Sunday", "Monday", @@ -24,26 +41,9 @@ "Thursday", "Friday", "Saturday" - ], - "time": "1900" - }, - "timeZoneId": "Pacific Standard Time", - "notificationSettings": { - "status": "Disabled", - "timeInMinutes": 15, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" - }, - "createdDate": "2018-09-15T00:00:00.0000000-00:00", - "targetResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}", - "provisioningState": "Succeeded", - "uniqueIdentifier": "{uniqueIdentifier}" + ] + } }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}/schedules/{scheduleName}", - "name": "{scheduleName}", - "type": "microsoft.devtestlab/labs/users/servicefabrics/schedules", - "location": "{location}", "tags": { "tagName1": "tagValue1" } @@ -51,5 +51,7 @@ ] } } - } -} + }, + "operationId": "ServiceFabricSchedules_List", + "title": "ServiceFabricSchedules_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Update.json index 906353aa75b6..96a7701556cc 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Update.json @@ -1,25 +1,42 @@ { "parameters": { + "name": "{scheduleName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "userName": "@me", - "serviceFabricName": "{serviceFrabicName}", - "name": "{scheduleName}", + "resourceGroupName": "resourceGroupName", "schedule": { "tags": { "tagName1": "tagValue1" } - } + }, + "serviceFabricName": "{serviceFrabicName}", + "subscriptionId": "{subscriptionId}", + "userName": "@me" }, "responses": { "200": { "body": { + "name": "{scheduleName}", + "type": "microsoft.devtestlab/labs/users/servicefabrics/schedules", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}/schedules/{scheduleName}", + "location": "{location}", "properties": { + "createdDate": "2018-09-15T00:00:00.0000000-00:00", + "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", + "status": "Disabled", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}" + }, + "provisioningState": "Succeeded", "status": "Disabled", + "targetResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}", "taskType": "Unknown", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", "weeklyRecurrence": { + "time": "1900", "weekdays": [ "Sunday", "Monday", @@ -28,30 +45,15 @@ "Thursday", "Friday", "Saturday" - ], - "time": "1900" - }, - "timeZoneId": "Pacific Standard Time", - "notificationSettings": { - "status": "Disabled", - "timeInMinutes": 15, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" - }, - "createdDate": "2018-09-15T00:00:00.0000000-00:00", - "targetResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}", - "provisioningState": "Succeeded", - "uniqueIdentifier": "{uniqueIdentifier}" + ] + } }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}/schedules/{scheduleName}", - "name": "{scheduleName}", - "type": "microsoft.devtestlab/labs/users/servicefabrics/schedules", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "ServiceFabricSchedules_Update", + "title": "ServiceFabricSchedules_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_CreateOrUpdate.json index 14c2b35de6ca..c7f6d8a78d1f 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_CreateOrUpdate.json @@ -1,115 +1,115 @@ { "parameters": { + "name": "{serviceFabricName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "userName": "{userName}", - "name": "{serviceFabricName}", + "resourceGroupName": "resourceGroupName", "serviceFabric": { + "location": "{location}", "properties": { "environmentId": "{environmentId}", "externalServiceFabricId": "{serviceFabricId}" }, - "location": "{location}", "tags": { "tagName1": "tagValue1" } - } + }, + "subscriptionId": "{subscriptionId}", + "userName": "{userName}" }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}", "name": "{serviceFabricName}", "type": "Microsoft.DevTestLab/labs/users/serviceFabrics", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}", "location": "{location}", "properties": { "applicableSchedule": { + "name": "{scheduleName}", + "type": "{scheduleType}", "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{scheduleName}", "location": "{location}", - "name": "{scheduleName}", "properties": { "labVmsShutdown": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", "properties": { - "status": "{Enabled|Disabled}", - "taskType": "{myLabVmTaskType}", - "weeklyRecurrence": { - "weekdays": [ - "Monday", - "Wednesday", - "Friday" - ], - "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" - }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", "dailyRecurrence": { "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" }, "hourlyRecurrence": { "minute": 30 }, - "timeZoneId": "Pacific Standard Time", "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", "status": "{Enabled|Disabled}", "timeInMinutes": 15, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" + "webhookUrl": "{webhookUrl}" }, - "createdDate": "2018-10-01T18:40:48.1739018-07:00", - "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", "provisioningState": "Creating", - "uniqueIdentifier": "{uniqueIdentifier}" - }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", - "name": "{scheduleName}", - "type": "Microsoft.DevTestLab/labs/schedules", - "location": "{location}", - "tags": { - "tagName1": "tagValue1" - } - }, - "labVmsStartup": { - "properties": { "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", "weekdays": [ "Monday", "Wednesday", "Friday" - ], - "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" - }, + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "labVmsStartup": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", "dailyRecurrence": { "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" }, "hourlyRecurrence": { "minute": 30 }, - "timeZoneId": "Pacific Standard Time", "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", "status": "{Enabled|Disabled}", "timeInMinutes": 15, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" + "webhookUrl": "{webhookUrl}" }, - "createdDate": "2018-10-01T18:40:48.1739018-07:00", - "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", "provisioningState": "Creating", - "uniqueIdentifier": "{uniqueIdentifier}" + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", - "name": "{scheduleName}", - "type": "Microsoft.DevTestLab/labs/schedules", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } }, - "type": "{scheduleType}", "tags": { "tagName1": "tagValue1" } @@ -126,96 +126,96 @@ }, "201": { "body": { - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}", "name": "{serviceFabricName}", "type": "Microsoft.DevTestLab/labs/users/serviceFabrics", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}", "location": "{location}", "properties": { "applicableSchedule": { + "name": "{scheduleName}", + "type": "{scheduleType}", "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{scheduleName}", "location": "{location}", - "name": "{scheduleName}", "properties": { "labVmsShutdown": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", "properties": { - "status": "{Enabled|Disabled}", - "taskType": "{myLabVmTaskType}", - "weeklyRecurrence": { - "weekdays": [ - "Monday", - "Wednesday", - "Friday" - ], - "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" - }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", "dailyRecurrence": { "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" }, "hourlyRecurrence": { "minute": 30 }, - "timeZoneId": "Pacific Standard Time", "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", "status": "{Enabled|Disabled}", "timeInMinutes": 15, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" + "webhookUrl": "{webhookUrl}" }, - "createdDate": "2018-10-01T18:40:48.1739018-07:00", - "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", "provisioningState": "Creating", - "uniqueIdentifier": "{uniqueIdentifier}" - }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", - "name": "{scheduleName}", - "type": "Microsoft.DevTestLab/labs/schedules", - "location": "{location}", - "tags": { - "tagName1": "tagValue1" - } - }, - "labVmsStartup": { - "properties": { "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", "weekdays": [ "Monday", "Wednesday", "Friday" - ], - "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" - }, + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "labVmsStartup": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", "dailyRecurrence": { "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" }, "hourlyRecurrence": { "minute": 30 }, - "timeZoneId": "Pacific Standard Time", "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", "status": "{Enabled|Disabled}", "timeInMinutes": 15, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" + "webhookUrl": "{webhookUrl}" }, - "createdDate": "2018-10-01T18:40:48.1739018-07:00", - "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", "provisioningState": "Creating", - "uniqueIdentifier": "{uniqueIdentifier}" + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", - "name": "{scheduleName}", - "type": "Microsoft.DevTestLab/labs/schedules", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } }, - "type": "{scheduleType}", "tags": { "tagName1": "tagValue1" } @@ -230,5 +230,7 @@ } } } - } -} + }, + "operationId": "ServiceFabrics_CreateOrUpdate", + "title": "ServiceFabrics_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Delete.json index ed44d94badca..e69e19ce508a 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Delete.json @@ -1,11 +1,11 @@ { "parameters": { + "name": "{serviceFabricName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "userName": "{userName}", - "name": "{serviceFabricName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "{userName}" }, "responses": { "200": {}, @@ -15,5 +15,7 @@ } }, "204": {} - } -} + }, + "operationId": "ServiceFabrics_Delete", + "title": "ServiceFabrics_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Get.json index 6138b1eb11b9..5a14ac108fbc 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Get.json @@ -1,105 +1,105 @@ { "parameters": { + "name": "{serviceFabricName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "userName": "{userName}", - "name": "{serviceFabricName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "{userName}" }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}", "name": "{serviceFabricName}", "type": "Microsoft.DevTestLab/labs/users/serviceFabrics", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}", "location": "{location}", "properties": { "applicableSchedule": { + "name": "{scheduleName}", + "type": "{scheduleType}", "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{scheduleName}", "location": "{location}", - "name": "{scheduleName}", "properties": { "labVmsShutdown": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", "properties": { - "status": "{Enabled|Disabled}", - "taskType": "{myLabVmTaskType}", - "weeklyRecurrence": { - "weekdays": [ - "Monday", - "Wednesday", - "Friday" - ], - "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" - }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", "dailyRecurrence": { "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" }, "hourlyRecurrence": { "minute": 30 }, - "timeZoneId": "Pacific Standard Time", "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", "status": "{Enabled|Disabled}", "timeInMinutes": 15, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" + "webhookUrl": "{webhookUrl}" }, - "createdDate": "2018-10-01T18:40:48.1739018-07:00", - "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", "provisioningState": "Creating", - "uniqueIdentifier": "{uniqueIdentifier}" - }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", - "name": "{scheduleName}", - "type": "Microsoft.DevTestLab/labs/schedules", - "location": "{location}", - "tags": { - "tagName1": "tagValue1" - } - }, - "labVmsStartup": { - "properties": { "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", "weekdays": [ "Monday", "Wednesday", "Friday" - ], - "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" - }, + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "labVmsStartup": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", "dailyRecurrence": { "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" }, "hourlyRecurrence": { "minute": 30 }, - "timeZoneId": "Pacific Standard Time", "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", "status": "{Enabled|Disabled}", "timeInMinutes": 15, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" + "webhookUrl": "{webhookUrl}" }, - "createdDate": "2018-10-01T18:40:48.1739018-07:00", - "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", "provisioningState": "Creating", - "uniqueIdentifier": "{uniqueIdentifier}" + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", - "name": "{scheduleName}", - "type": "Microsoft.DevTestLab/labs/schedules", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } }, - "type": "{scheduleType}", "tags": { "tagName1": "tagValue1" } @@ -114,5 +114,7 @@ } } } - } -} + }, + "operationId": "ServiceFabrics_Get", + "title": "ServiceFabrics_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_List.json index 404314057355..2e4be9d8a67c 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_List.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", "userName": "{userName}" }, "responses": { @@ -11,96 +11,96 @@ "body": { "value": [ { - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}", "name": "{serviceFabricName}", "type": "Microsoft.DevTestLab/labs/users/serviceFabrics", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}", "location": "{location}", "properties": { "applicableSchedule": { + "name": "{scheduleName}", + "type": "{scheduleType}", "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{scheduleName}", "location": "{location}", - "name": "{scheduleName}", "properties": { "labVmsShutdown": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", "properties": { - "status": "{Enabled|Disabled}", - "taskType": "{myLabVmTaskType}", - "weeklyRecurrence": { - "weekdays": [ - "Monday", - "Wednesday", - "Friday" - ], - "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" - }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", "dailyRecurrence": { "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" }, "hourlyRecurrence": { "minute": 30 }, - "timeZoneId": "Pacific Standard Time", "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", "status": "{Enabled|Disabled}", "timeInMinutes": 15, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" + "webhookUrl": "{webhookUrl}" }, - "createdDate": "2018-10-01T18:40:48.1739018-07:00", - "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", "provisioningState": "Creating", - "uniqueIdentifier": "{uniqueIdentifier}" - }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", - "name": "{scheduleName}", - "type": "Microsoft.DevTestLab/labs/schedules", - "location": "{location}", - "tags": { - "tagName1": "tagValue1" - } - }, - "labVmsStartup": { - "properties": { "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", "weekdays": [ "Monday", "Wednesday", "Friday" - ], - "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" - }, + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "labVmsStartup": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", "dailyRecurrence": { "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" }, "hourlyRecurrence": { "minute": 30 }, - "timeZoneId": "Pacific Standard Time", "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", "status": "{Enabled|Disabled}", "timeInMinutes": 15, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" + "webhookUrl": "{webhookUrl}" }, - "createdDate": "2018-10-01T18:40:48.1739018-07:00", - "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", "provisioningState": "Creating", - "uniqueIdentifier": "{uniqueIdentifier}" + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", - "name": "{scheduleName}", - "type": "Microsoft.DevTestLab/labs/schedules", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } }, - "type": "{scheduleType}", "tags": { "tagName1": "tagValue1" } @@ -117,5 +117,7 @@ ] } } - } -} + }, + "operationId": "ServiceFabrics_List", + "title": "ServiceFabrics_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_ListApplicableSchedules.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_ListApplicableSchedules.json index 29a071f07508..762c3fe79370 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_ListApplicableSchedules.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_ListApplicableSchedules.json @@ -1,103 +1,105 @@ { "parameters": { + "name": "{serviceFabricName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "userName": "{userName}", - "name": "{serviceFabricName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "{userName}" }, "responses": { "200": { "body": { + "name": "{scheduleName}", + "type": "{scheduleType}", "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{scheduleName}", "location": "{location}", - "name": "{scheduleName}", "properties": { "labVmsShutdown": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", "properties": { - "status": "{Enabled|Disabled}", - "taskType": "{myLabVmTaskType}", - "weeklyRecurrence": { - "weekdays": [ - "Monday", - "Wednesday", - "Friday" - ], - "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" - }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", "dailyRecurrence": { "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" }, "hourlyRecurrence": { "minute": 30 }, - "timeZoneId": "Pacific Standard Time", "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", "status": "{Enabled|Disabled}", "timeInMinutes": 15, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" + "webhookUrl": "{webhookUrl}" }, - "createdDate": "2018-10-01T18:40:48.1739018-07:00", - "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", "provisioningState": "Creating", - "uniqueIdentifier": "{uniqueIdentifier}" - }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", - "name": "{scheduleName}", - "type": "Microsoft.DevTestLab/labs/schedules", - "location": "{location}", - "tags": { - "tagName1": "tagValue1" - } - }, - "labVmsStartup": { - "properties": { "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", "weekdays": [ "Monday", "Wednesday", "Friday" - ], - "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" - }, + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "labVmsStartup": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", "dailyRecurrence": { "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" }, "hourlyRecurrence": { "minute": 30 }, - "timeZoneId": "Pacific Standard Time", "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", "status": "{Enabled|Disabled}", "timeInMinutes": 15, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" + "webhookUrl": "{webhookUrl}" }, - "createdDate": "2018-10-01T18:40:48.1739018-07:00", - "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", "provisioningState": "Creating", - "uniqueIdentifier": "{uniqueIdentifier}" + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", - "name": "{scheduleName}", - "type": "Microsoft.DevTestLab/labs/schedules", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } }, - "type": "{scheduleType}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "ServiceFabrics_ListApplicableSchedules", + "title": "ServiceFabrics_ListApplicableSchedules" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Start.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Start.json index 9d93cf468751..c17021f8902e 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Start.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Start.json @@ -1,11 +1,11 @@ { "parameters": { + "name": "{serviceFabricName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "userName": "{userName}", - "name": "{serviceFabricName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "{userName}" }, "responses": { "200": {}, @@ -14,5 +14,7 @@ "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" } } - } -} + }, + "operationId": "ServiceFabrics_Start", + "title": "ServiceFabrics_Start" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Stop.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Stop.json index 9d93cf468751..7c9220afccfa 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Stop.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Stop.json @@ -1,11 +1,11 @@ { "parameters": { + "name": "{serviceFabricName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "userName": "{userName}", - "name": "{serviceFabricName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "{userName}" }, "responses": { "200": {}, @@ -14,5 +14,7 @@ "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" } } - } -} + }, + "operationId": "ServiceFabrics_Stop", + "title": "ServiceFabrics_Stop" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Update.json index 7a0c1acc8c84..c36b3f97ffb3 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Update.json @@ -1,110 +1,110 @@ { "parameters": { + "name": "{serviceFabricName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "userName": "{userName}", - "name": "{serviceFabricName}", + "resourceGroupName": "resourceGroupName", "serviceFabric": { "tags": { "tagName1": "tagValue1" } - } + }, + "subscriptionId": "{subscriptionId}", + "userName": "{userName}" }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}", "name": "{serviceFabricName}", "type": "Microsoft.DevTestLab/labs/users/serviceFabrics", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}", "location": "{location}", "properties": { "applicableSchedule": { + "name": "{scheduleName}", + "type": "{scheduleType}", "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{scheduleName}", "location": "{location}", - "name": "{scheduleName}", "properties": { "labVmsShutdown": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", "properties": { - "status": "{Enabled|Disabled}", - "taskType": "{myLabVmTaskType}", - "weeklyRecurrence": { - "weekdays": [ - "Monday", - "Wednesday", - "Friday" - ], - "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" - }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", "dailyRecurrence": { "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" }, "hourlyRecurrence": { "minute": 30 }, - "timeZoneId": "Pacific Standard Time", "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", "status": "{Enabled|Disabled}", "timeInMinutes": 15, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" + "webhookUrl": "{webhookUrl}" }, - "createdDate": "2018-10-01T18:40:48.1739018-07:00", - "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", "provisioningState": "Creating", - "uniqueIdentifier": "{uniqueIdentifier}" - }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", - "name": "{scheduleName}", - "type": "Microsoft.DevTestLab/labs/schedules", - "location": "{location}", - "tags": { - "tagName1": "tagValue1" - } - }, - "labVmsStartup": { - "properties": { "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", "weekdays": [ "Monday", "Wednesday", "Friday" - ], - "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" - }, + ] + } + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "labVmsStartup": { + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", "dailyRecurrence": { "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" }, "hourlyRecurrence": { "minute": 30 }, - "timeZoneId": "Pacific Standard Time", "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", "status": "{Enabled|Disabled}", "timeInMinutes": 15, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" + "webhookUrl": "{webhookUrl}" }, - "createdDate": "2018-10-01T18:40:48.1739018-07:00", - "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", "provisioningState": "Creating", - "uniqueIdentifier": "{uniqueIdentifier}" + "status": "{Enabled|Disabled}", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "taskType": "{myLabVmTaskType}", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}", + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ] + } }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", - "name": "{scheduleName}", - "type": "Microsoft.DevTestLab/labs/schedules", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } }, - "type": "{scheduleType}", "tags": { "tagName1": "tagValue1" } @@ -119,5 +119,7 @@ } } } - } -} + }, + "operationId": "ServiceFabrics_Update", + "title": "ServiceFabrics_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_CreateOrUpdate.json index 7dc07259dbaa..b2310d44670a 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_CreateOrUpdate.json @@ -1,35 +1,35 @@ { "parameters": { + "name": "{servicerunnerName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{devtestlabName}", - "name": "{servicerunnerName}", + "resourceGroupName": "resourceGroupName", "serviceRunner": { - "location": "{location}", - "tags": { - "tagName1": "tagValue1" - }, "identity": { "type": "{identityType}", + "clientSecretUrl": "{identityClientSecretUrl}", "principalId": "{identityPrincipalId}", - "tenantId": "{identityTenantId}", - "clientSecretUrl": "{identityClientSecretUrl}" + "tenantId": "{identityTenantId}" + }, + "location": "{location}", + "tags": { + "tagName1": "tagValue1" } - } + }, + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "name": "{serviceRunnerName}", + "type": "Microsoft.DevTestLab/labs/serviceRunners", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/serviceRunners/{serviceRunnerName}", "identity": { "type": "{identityType}", + "clientSecretUrl": "{identityClientSecretUrl}", "principalId": "{identityPrincipalId}", - "tenantId": "{identityTenantId}", - "clientSecretUrl": "{identityClientSecretUrl}" + "tenantId": "{identityTenantId}" }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/serviceRunners/{serviceRunnerName}", - "name": "{serviceRunnerName}", - "type": "Microsoft.DevTestLab/labs/serviceRunners", "location": "{location}", "tags": { "tagName1": "tagValue1" @@ -38,20 +38,22 @@ }, "201": { "body": { + "name": "{serviceRunnerName}", + "type": "Microsoft.DevTestLab/labs/serviceRunners", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/serviceRunners/{serviceRunnerName}", "identity": { "type": "{identityType}", + "clientSecretUrl": "{identityClientSecretUrl}", "principalId": "{identityPrincipalId}", - "tenantId": "{identityTenantId}", - "clientSecretUrl": "{identityClientSecretUrl}" + "tenantId": "{identityTenantId}" }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/serviceRunners/{serviceRunnerName}", - "name": "{serviceRunnerName}", - "type": "Microsoft.DevTestLab/labs/serviceRunners", "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "ServiceRunners_CreateOrUpdate", + "title": "ServiceRunners_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Delete.json index 6c34c7502026..926cfeb255a6 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Delete.json @@ -1,13 +1,15 @@ { "parameters": { + "name": "{servicerunnerName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{devtestlabName}", - "name": "{servicerunnerName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, "204": {} - } -} + }, + "operationId": "ServiceRunners_Delete", + "title": "ServiceRunners_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Get.json index ef2d8ea9dea4..63e9e222f0bb 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Get.json @@ -1,28 +1,30 @@ { "parameters": { + "name": "{servicerunnerName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{devtestlabName}", - "name": "{servicerunnerName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "name": "{serviceRunnerName}", + "type": "Microsoft.DevTestLab/labs/serviceRunners", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/serviceRunners/{serviceRunnerName}", "identity": { "type": "{identityType}", + "clientSecretUrl": "{identityClientSecretUrl}", "principalId": "{identityPrincipalId}", - "tenantId": "{identityTenantId}", - "clientSecretUrl": "{identityClientSecretUrl}" + "tenantId": "{identityTenantId}" }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/serviceRunners/{serviceRunnerName}", - "name": "{serviceRunnerName}", - "type": "Microsoft.DevTestLab/labs/serviceRunners", "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "ServiceRunners_Get", + "title": "ServiceRunners_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_CreateOrUpdate.json index 55e45a1408a1..45a2be58bb91 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_CreateOrUpdate.json @@ -1,53 +1,53 @@ { "parameters": { + "name": "{userName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{devtestlabName}", - "name": "{userName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", "user": { "location": "{location}", - "tags": { - "tagName1": "tagValue1" - }, "properties": { "identity": { - "principalName": "{principalName}", - "principalId": "{principalId}", - "tenantId": "{tenantId}", + "appId": "{appId}", "objectId": "{objectId}", - "appId": "{appId}" + "principalId": "{principalId}", + "principalName": "{principalName}", + "tenantId": "{tenantId}" }, "secretStore": { - "keyVaultUri": "{keyVaultUri}", - "keyVaultId": "{keyVaultId}" + "keyVaultId": "{keyVaultId}", + "keyVaultUri": "{keyVaultUri}" } + }, + "tags": { + "tagName1": "tagValue1" } } }, "responses": { "200": { "body": { + "name": "{userName}", + "type": "Microsoft.DevTestLab/labs/users", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}", + "location": "{location}", "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", "identity": { - "principalName": "{principalName}", - "principalId": "{principalId}", - "tenantId": "{tenantId}", + "appId": "{appId}", "objectId": "{objectId}", - "appId": "{appId}" + "principalId": "{principalId}", + "principalName": "{principalName}", + "tenantId": "{tenantId}" }, + "provisioningState": "Succeeded", "secretStore": { - "keyVaultUri": "{keyVaultUri}", - "keyVaultId": "{keyVaultId}" + "keyVaultId": "{keyVaultId}", + "keyVaultUri": "{keyVaultUri}" }, - "createdDate": "2018-10-01T18:40:48.1739018-07:00", - "provisioningState": "Succeeded", "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}", - "name": "{userName}", - "type": "Microsoft.DevTestLab/labs/users", - "location": "{location}", "tags": { "tagName1": "tagValue1" } @@ -55,30 +55,32 @@ }, "201": { "body": { + "name": "{userName}", + "type": "Microsoft.DevTestLab/labs/users", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}", + "location": "{location}", "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", "identity": { - "principalName": "{principalName}", - "principalId": "{principalId}", - "tenantId": "{tenantId}", + "appId": "{appId}", "objectId": "{objectId}", - "appId": "{appId}" + "principalId": "{principalId}", + "principalName": "{principalName}", + "tenantId": "{tenantId}" }, + "provisioningState": "Succeeded", "secretStore": { - "keyVaultUri": "{keyVaultUri}", - "keyVaultId": "{keyVaultId}" + "keyVaultId": "{keyVaultId}", + "keyVaultUri": "{keyVaultUri}" }, - "createdDate": "2018-10-01T18:40:48.1739018-07:00", - "provisioningState": "Succeeded", "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}", - "name": "{userName}", - "type": "Microsoft.DevTestLab/labs/users", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "Users_CreateOrUpdate", + "title": "Users_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Delete.json index 1f66f9e61f5e..6d3e3e554867 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Delete.json @@ -1,10 +1,10 @@ { "parameters": { + "name": "{userName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{devtestlabName}", - "name": "{userName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, @@ -14,5 +14,7 @@ } }, "204": {} - } -} + }, + "operationId": "Users_Delete", + "title": "Users_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Get.json index 15a41b03c614..92439518e374 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Get.json @@ -1,38 +1,40 @@ { "parameters": { + "name": "{userName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{devtestlabName}", - "name": "{userName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "name": "{userName}", + "type": "Microsoft.DevTestLab/labs/users", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}", + "location": "{location}", "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", "identity": { - "principalName": "{principalName}", - "principalId": "{principalId}", - "tenantId": "{tenantId}", + "appId": "{appId}", "objectId": "{objectId}", - "appId": "{appId}" + "principalId": "{principalId}", + "principalName": "{principalName}", + "tenantId": "{tenantId}" }, + "provisioningState": "Succeeded", "secretStore": { - "keyVaultUri": "{keyVaultUri}", - "keyVaultId": "{keyVaultId}" + "keyVaultId": "{keyVaultId}", + "keyVaultUri": "{keyVaultUri}" }, - "createdDate": "2018-10-01T18:40:48.1739018-07:00", - "provisioningState": "Succeeded", "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}", - "name": "{userName}", - "type": "Microsoft.DevTestLab/labs/users", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "Users_Get", + "title": "Users_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_List.json index 61d9fb05ba79..e2f62e929a36 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_List.json @@ -1,35 +1,35 @@ { "parameters": { "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", + "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", - "labName": "{devtestlabName}" + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { "value": [ { + "name": "{userName}", + "type": "Microsoft.DevTestLab/labs/users", + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}", + "location": "{location}", "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", "identity": { - "principalName": "{principalName}", - "principalId": "{principalId}", - "tenantId": "{tenantId}", + "appId": "{appId}", "objectId": "{objectId}", - "appId": "{appId}" + "principalId": "{principalId}", + "principalName": "{principalName}", + "tenantId": "{tenantId}" }, + "provisioningState": "Succeeded", "secretStore": { - "keyVaultUri": "{keyVaultUri}", - "keyVaultId": "{keyVaultId}" + "keyVaultId": "{keyVaultId}", + "keyVaultUri": "{keyVaultUri}" }, - "createdDate": "2018-10-01T18:40:48.1739018-07:00", - "provisioningState": "Succeeded", "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}", - "name": "{userName}", - "type": "Microsoft.DevTestLab/labs/users", - "location": "{location}", "tags": { "tagName1": "tagValue1" } @@ -37,5 +37,7 @@ ] } } - } -} + }, + "operationId": "Users_List", + "title": "Users_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Update.json index 82c8198f3612..18162040ced6 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Update.json @@ -1,10 +1,10 @@ { "parameters": { + "name": "{userName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{devtestlabName}", - "name": "{userName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", "user": { "tags": { "tagName1": "tagValue1" @@ -13,31 +13,33 @@ }, "responses": { "200": { + "name": "{userName}", + "type": "Microsoft.DevTestLab/labs/users", "body": { "properties": { + "createdDate": "2018-10-01T18:40:48.1739018-07:00", "identity": { - "principalName": "{principalName}", - "principalId": "{principalId}", - "tenantId": "{tenantId}", + "appId": "{appId}", "objectId": "{objectId}", - "appId": "{appId}" + "principalId": "{principalId}", + "principalName": "{principalName}", + "tenantId": "{tenantId}" }, + "provisioningState": "Succeeded", "secretStore": { - "keyVaultUri": "users/{userName}", - "keyVaultId": "{keyVaultId}" + "keyVaultId": "{keyVaultId}", + "keyVaultUri": "users/{userName}" }, - "createdDate": "2018-10-01T18:40:48.1739018-07:00", - "provisioningState": "Succeeded", "uniqueIdentifier": "{uniqueIdentifier}" } }, "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}", - "name": "{userName}", - "type": "Microsoft.DevTestLab/labs/users", "location": "{location}", "tags": { "tagName1": "tagValue1" } } - } -} + }, + "operationId": "Users_Update", + "title": "Users_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_CreateOrUpdate.json index 163dddcb27e0..f9d40b3f404f 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_CreateOrUpdate.json @@ -1,81 +1,81 @@ { "parameters": { + "name": "LabVmsShutdown", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "virtualMachineName": "{vmName}", - "name": "LabVmsShutdown", + "resourceGroupName": "resourceGroupName", "schedule": { + "location": "{location}", "properties": { - "status": "Enabled", - "taskType": "LabVmsShutdownTask", - "weeklyRecurrence": { - "weekdays": [ - "Friday", - "Saturday", - "Sunday" - ], - "time": "1700" - }, "dailyRecurrence": { "time": "1900" }, "hourlyRecurrence": { "minute": 30 }, - "timeZoneId": "Pacific Standard Time", "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", "status": "Enabled", "timeInMinutes": 30, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" + "webhookUrl": "{webhookUrl}" }, - "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}" + "status": "Enabled", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}", + "taskType": "LabVmsShutdownTask", + "timeZoneId": "Pacific Standard Time", + "weeklyRecurrence": { + "time": "1700", + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ] + } }, - "location": "{location}", "tags": { "tagName1": "tagValue1" } - } + }, + "subscriptionId": "{subscriptionId}", + "virtualMachineName": "{vmName}" }, "responses": { "200": { "body": { + "name": "LabVmsShutdown", + "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}/schedules/LabVmsShutdown", + "location": "{location}", "properties": { - "status": "Enabled", - "taskType": "LabVmsShutdownTask", "createdDate": "2020-12-31T18:40:48.1739018-07:00", - "provisioningState": "Created", - "weeklyRecurrence": { - "weekdays": [ - "Friday", - "Saturday", - "Sunday" - ], - "time": "1700" - }, "dailyRecurrence": { "time": "1900" }, "hourlyRecurrence": { "minute": 30 }, - "timeZoneId": "Pacific Standard Time", "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", "status": "Enabled", "timeInMinutes": 30, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" + "webhookUrl": "{webhookUrl}" }, - "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}" + "provisioningState": "Created", + "status": "Enabled", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}", + "taskType": "LabVmsShutdownTask", + "timeZoneId": "Pacific Standard Time", + "weeklyRecurrence": { + "time": "1700", + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ] + } }, - "location": "{location}", - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}/schedules/LabVmsShutdown", - "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", - "name": "LabVmsShutdown", "tags": { "tagName1": "tagValue1" } @@ -83,43 +83,45 @@ }, "201": { "body": { + "name": "LabVmsShutdown", + "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}/schedules/LabVmsShutdown", + "location": "{location}", "properties": { - "status": "Enabled", - "taskType": "LabVmsShutdownTask", "createdDate": "2020-12-31T18:40:48.1739018-07:00", - "provisioningState": "Created", - "weeklyRecurrence": { - "weekdays": [ - "Friday", - "Saturday", - "Sunday" - ], - "time": "1700" - }, "dailyRecurrence": { "time": "1900" }, "hourlyRecurrence": { "minute": 30 }, - "timeZoneId": "Pacific Standard Time", "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", "status": "Enabled", "timeInMinutes": 30, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" + "webhookUrl": "{webhookUrl}" }, - "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}" + "provisioningState": "Created", + "status": "Enabled", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}", + "taskType": "LabVmsShutdownTask", + "timeZoneId": "Pacific Standard Time", + "weeklyRecurrence": { + "time": "1700", + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ] + } }, - "location": "{location}", - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}/schedules/LabVmsShutdown", - "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", - "name": "LabVmsShutdown", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "VirtualMachineSchedules_CreateOrUpdate", + "title": "VirtualMachineSchedules_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Delete.json index 58cfb84c7381..6d1ab802ea5b 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Delete.json @@ -1,14 +1,16 @@ { "parameters": { + "name": "LabVmsShutdown", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "virtualMachineName": "{vmName}", - "name": "LabVmsShutdown" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "virtualMachineName": "{vmName}" }, "responses": { "200": {}, "204": {} - } -} + }, + "operationId": "VirtualMachineSchedules_Delete", + "title": "VirtualMachineSchedules_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Execute.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Execute.json index 4d74e17297a3..ff00dbff4f1e 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Execute.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Execute.json @@ -1,11 +1,11 @@ { "parameters": { + "name": "LabVmsShutdown", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "virtualMachineName": "{vmName}", - "name": "LabVmsShutdown" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "virtualMachineName": "{vmName}" }, "responses": { "200": {}, @@ -14,5 +14,7 @@ "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" } } - } -} + }, + "operationId": "VirtualMachineSchedules_Execute", + "title": "VirtualMachineSchedules_Execute" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Get.json index c53d38dd8e88..c0de83a4424d 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Get.json @@ -1,52 +1,54 @@ { "parameters": { + "name": "LabVmsShutdown", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "virtualMachineName": "{vmName}", - "name": "LabVmsShutdown" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "virtualMachineName": "{vmName}" }, "responses": { "200": { "body": { + "name": "LabVmsShutdown", + "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}/schedules/mySchedule", + "location": "{location}", "properties": { - "status": "Enabled", - "taskType": "LabVmsShutdownTask", "createdDate": "2020-12-31T18:40:48.1739018-07:00", - "provisioningState": "Succeeded", - "weeklyRecurrence": { - "weekdays": [ - "Friday", - "Saturday", - "Sunday" - ], - "time": "1700" - }, "dailyRecurrence": { "time": "1900" }, "hourlyRecurrence": { "minute": 30 }, - "timeZoneId": "Pacific Standard Time", "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", "status": "Enabled", "timeInMinutes": 30, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" + "webhookUrl": "{webhookUrl}" }, - "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}" + "provisioningState": "Succeeded", + "status": "Enabled", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}", + "taskType": "LabVmsShutdownTask", + "timeZoneId": "Pacific Standard Time", + "weeklyRecurrence": { + "time": "1700", + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ] + } }, - "location": "{location}", - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}/schedules/mySchedule", - "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", - "name": "LabVmsShutdown", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "VirtualMachineSchedules_Get", + "title": "VirtualMachineSchedules_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_List.json index 7e303deffc3c..ea4e2a532c78 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_List.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", "virtualMachineName": "{vmName}" }, "responses": { @@ -11,39 +11,39 @@ "body": { "value": [ { + "name": "LabVmsShutdown", + "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}/schedules/mySchedule", + "location": "{location}", "properties": { - "status": "Enabled", - "taskType": "LabVmsShutdownTask", "createdDate": "2020-12-31T18:40:48.1739018-07:00", - "provisioningState": "Succeeded", - "weeklyRecurrence": { - "weekdays": [ - "Friday", - "Saturday", - "Sunday" - ], - "time": "1700" - }, "dailyRecurrence": { "time": "1900" }, "hourlyRecurrence": { "minute": 30 }, - "timeZoneId": "Pacific Standard Time", "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", "status": "Enabled", "timeInMinutes": 30, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" + "webhookUrl": "{webhookUrl}" }, - "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/labName}/virtualMachines/{vmName}" + "provisioningState": "Succeeded", + "status": "Enabled", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/labName}/virtualMachines/{vmName}", + "taskType": "LabVmsShutdownTask", + "timeZoneId": "Pacific Standard Time", + "weeklyRecurrence": { + "time": "1700", + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ] + } }, - "location": "{location}", - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}/schedules/mySchedule", - "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", - "name": "LabVmsShutdown", "tags": { "tagName1": "tagValue1" } @@ -51,5 +51,7 @@ ] } } - } -} + }, + "operationId": "VirtualMachineSchedules_List", + "title": "VirtualMachineSchedules_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Update.json index 4c7537fb0a50..7bfc5eac1618 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Update.json @@ -1,57 +1,59 @@ { "parameters": { + "name": "LabVmsShutdown", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "virtualMachineName": "{vmName}", - "name": "LabVmsShutdown", + "resourceGroupName": "resourceGroupName", "schedule": { "tags": { "tagName1": "tagValue1" } - } + }, + "subscriptionId": "{subscriptionId}", + "virtualMachineName": "{vmName}" }, "responses": { "200": { "body": { + "name": "LabVmsShutdown", + "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}/schedules/mySchedule", + "location": "{location}", "properties": { - "status": "Enabled", - "taskType": "LabVmsShutdownTask", "createdDate": "2020-12-31T18:40:48.1739018-07:00", - "provisioningState": "Succeeded", - "weeklyRecurrence": { - "weekdays": [ - "Friday", - "Saturday", - "Sunday" - ], - "time": "1700" - }, "dailyRecurrence": { "time": "1900" }, "hourlyRecurrence": { "minute": 30 }, - "timeZoneId": "Pacific Standard Time", "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", "status": "Enabled", "timeInMinutes": 30, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" + "webhookUrl": "{webhookUrl}" }, - "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}" + "provisioningState": "Succeeded", + "status": "Enabled", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}", + "taskType": "LabVmsShutdownTask", + "timeZoneId": "Pacific Standard Time", + "weeklyRecurrence": { + "time": "1700", + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ] + } }, - "location": "{location}", - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}/schedules/mySchedule", - "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", - "name": "LabVmsShutdown", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "VirtualMachineSchedules_Update", + "title": "VirtualMachineSchedules_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_AddDataDisk.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_AddDataDisk.json index 5b121132c4d2..c4fd98d25dd1 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_AddDataDisk.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_AddDataDisk.json @@ -1,18 +1,18 @@ { "parameters": { - "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", - "labName": "{labName}", "name": "{virtualMachineName}", + "api-version": "2018-09-15", "dataDiskProperties": { "attachNewDataDiskOptions": { - "diskSizeGiB": 127, "diskName": "{diskName}", + "diskSizeGiB": 127, "diskType": "{diskType}" } }, - "hostCaching": "none|readOnly|readWrite" + "hostCaching": "none|readOnly|readWrite", + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, @@ -21,5 +21,7 @@ "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" } } - } -} + }, + "operationId": "VirtualMachines_AddDataDisk", + "title": "VirtualMachines_AddDataDisk" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_ApplyArtifacts.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_ApplyArtifacts.json index 512c3eedf0fe..2582d98d0c47 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_ApplyArtifacts.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_ApplyArtifacts.json @@ -1,17 +1,17 @@ { "parameters": { - "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", - "labName": "{labName}", "name": "{vmName}", + "api-version": "2018-09-15", "applyArtifactsRequest": { "artifacts": [ { "artifactId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/public repo/artifacts/windows-restart" } ] - } + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, @@ -20,5 +20,7 @@ "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" } } - } -} + }, + "operationId": "VirtualMachines_ApplyArtifacts", + "title": "VirtualMachines_ApplyArtifacts" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Claim.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Claim.json index 017924f2b4f1..886ea7ad5a82 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Claim.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Claim.json @@ -1,10 +1,10 @@ { "parameters": { + "name": "{vmName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{vmName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, @@ -13,5 +13,7 @@ "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" } } - } -} + }, + "operationId": "VirtualMachines_Claim", + "title": "VirtualMachines_Claim" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_CreateOrUpdate.json index 9c695f3613de..bd8e5d6be401 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_CreateOrUpdate.json @@ -1,71 +1,71 @@ { "parameters": { + "name": "{vmName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{vmName}", "labVirtualMachine": { + "location": "{location}", "properties": { - "size": "Standard_A2_v2", - "userName": "{userName}", - "password": "{userPassword}", - "labSubnetName": "{virtualNetworkName}Subnet", - "labVirtualNetworkId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", + "allowClaim": true, "disallowPublicIpAddress": true, "galleryImageReference": { "offer": "UbuntuServer", + "osType": "Linux", "publisher": "Canonical", "sku": "16.04-LTS", - "osType": "Linux", "version": "Latest" }, - "allowClaim": true, - "storageType": "Standard" + "labSubnetName": "{virtualNetworkName}Subnet", + "labVirtualNetworkId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", + "password": "{userPassword}", + "size": "Standard_A2_v2", + "storageType": "Standard", + "userName": "{userName}" }, - "location": "{location}", "tags": { "tagName1": "tagValue1" } - } + }, + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "name": "{vmName}", + "type": "Microsoft.DevTestLab/labs/virtualMachines", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}", + "location": "{location}", "properties": { - "ownerObjectId": "", - "ownerUserPrincipalName": "", - "createdByUserId": "", - "createdByUser": "", - "createdDate": "2018-10-01T16:53:02.4830866-07:00", - "size": "Standard_A2_v2", - "userName": "{userName}", - "labSubnetName": "{virtualNetworkName}Subnet", - "labVirtualNetworkId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", - "disallowPublicIpAddress": true, + "allowClaim": true, "artifactDeploymentStatus": { "artifactsApplied": 0, "totalArtifacts": 0 }, + "createdByUser": "", + "createdByUserId": "", + "createdDate": "2018-10-01T16:53:02.4830866-07:00", + "dataDiskParameters": [], + "disallowPublicIpAddress": true, "galleryImageReference": { "offer": "UbuntuServer", + "osType": "Linux", "publisher": "Canonical", "sku": "16.04-LTS", - "osType": "Linux", "version": "Latest" }, + "labSubnetName": "{virtualNetworkName}Subnet", + "labVirtualNetworkId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", "networkInterface": {}, - "allowClaim": true, - "storageType": "Standard", - "virtualMachineCreationSource": "FromGalleryImage", - "dataDiskParameters": [], + "ownerObjectId": "", + "ownerUserPrincipalName": "", "provisioningState": "Creating", - "uniqueIdentifier": "{uniqueIdentifier}" + "size": "Standard_A2_v2", + "storageType": "Standard", + "uniqueIdentifier": "{uniqueIdentifier}", + "userName": "{userName}", + "virtualMachineCreationSource": "FromGalleryImage" }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}", - "name": "{vmName}", - "type": "Microsoft.DevTestLab/labs/virtualMachines", - "location": "{location}", "tags": { "tagName1": "tagValue1" } @@ -73,44 +73,46 @@ }, "201": { "body": { + "name": "{vmName}", + "type": "Microsoft.DevTestLab/labs/virtualMachines", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}", + "location": "{location}", "properties": { - "ownerObjectId": "", - "ownerUserPrincipalName": "", - "createdByUserId": "", - "createdByUser": "", - "createdDate": "2018-10-01T16:53:02.4830866-07:00", - "size": "Standard_A2_v2", - "userName": "{userName}", - "labSubnetName": "{virtualNetworkName}Subnet", - "labVirtualNetworkId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", - "disallowPublicIpAddress": true, + "allowClaim": true, "artifactDeploymentStatus": { "artifactsApplied": 0, "totalArtifacts": 0 }, + "createdByUser": "", + "createdByUserId": "", + "createdDate": "2018-10-01T16:53:02.4830866-07:00", + "dataDiskParameters": [], + "disallowPublicIpAddress": true, "galleryImageReference": { "offer": "UbuntuServer", + "osType": "Linux", "publisher": "Canonical", "sku": "16.04-LTS", - "osType": "Linux", "version": "Latest" }, + "labSubnetName": "{virtualNetworkName}Subnet", + "labVirtualNetworkId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", "networkInterface": {}, - "allowClaim": true, - "storageType": "Standard", - "virtualMachineCreationSource": "FromGalleryImage", - "dataDiskParameters": [], + "ownerObjectId": "", + "ownerUserPrincipalName": "", "provisioningState": "Creating", - "uniqueIdentifier": "{uniqueIdentifier}" + "size": "Standard_A2_v2", + "storageType": "Standard", + "uniqueIdentifier": "{uniqueIdentifier}", + "userName": "{userName}", + "virtualMachineCreationSource": "FromGalleryImage" }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}", - "name": "{vmName}", - "type": "Microsoft.DevTestLab/labs/virtualMachines", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "VirtualMachines_CreateOrUpdate", + "title": "VirtualMachines_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Delete.json index e2d9f389cc24..26e18b8b089b 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Delete.json @@ -1,10 +1,10 @@ { "parameters": { + "name": "{vmName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{vmName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, @@ -14,5 +14,7 @@ } }, "204": {} - } -} + }, + "operationId": "VirtualMachines_Delete", + "title": "VirtualMachines_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_DetachDataDisk.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_DetachDataDisk.json index 643254f5623f..49cc11d05379 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_DetachDataDisk.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_DetachDataDisk.json @@ -1,13 +1,13 @@ { "parameters": { - "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", - "labName": "{labName}", "name": "{virtualMachineName}", + "api-version": "2018-09-15", "detachDataDiskProperties": { "existingLabDiskId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{virtualMachineName}" - } + }, + "labName": "{labName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, @@ -16,5 +16,7 @@ "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" } } - } -} + }, + "operationId": "VirtualMachines_DetachDataDisk", + "title": "VirtualMachines_DetachDataDisk" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Get.json index fc67f9ece136..05a429b64f27 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Get.json @@ -1,54 +1,56 @@ { "parameters": { + "name": "{vmName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{vmName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "name": "{vmName}", + "type": "Microsoft.DevTestLab/labs/virtualMachines", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}", + "location": "{location}", "properties": { - "ownerObjectId": "", - "ownerUserPrincipalName": "", - "createdByUserId": "", - "createdByUser": "", - "createdDate": "2018-10-01T16:53:02.4830866-07:00", - "computeId": "/subscriptions/{subscriptionId}/resourceGroups/{labName}-{vmName}-{randomSuffix}/providers/Microsoft.Compute/virtualMachines/{vmName}", - "osType": "Linux", - "size": "Standard_A2_v2", - "userName": "{userName}", - "labSubnetName": "{virtualNetworkName}Subnet", - "labVirtualNetworkId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", - "disallowPublicIpAddress": true, + "allowClaim": true, "artifactDeploymentStatus": { "artifactsApplied": 0, "totalArtifacts": 0 }, + "computeId": "/subscriptions/{subscriptionId}/resourceGroups/{labName}-{vmName}-{randomSuffix}/providers/Microsoft.Compute/virtualMachines/{vmName}", + "createdByUser": "", + "createdByUserId": "", + "createdDate": "2018-10-01T16:53:02.4830866-07:00", + "dataDiskParameters": [], + "disallowPublicIpAddress": true, "galleryImageReference": { "offer": "UbuntuServer", + "osType": "Linux", "publisher": "Canonical", "sku": "16.04-LTS", - "osType": "Linux", "version": "Latest" }, + "labSubnetName": "{virtualNetworkName}Subnet", + "labVirtualNetworkId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", "networkInterface": {}, - "allowClaim": true, - "storageType": "Standard", - "virtualMachineCreationSource": "FromGalleryImage", - "dataDiskParameters": [], + "osType": "Linux", + "ownerObjectId": "", + "ownerUserPrincipalName": "", "provisioningState": "Succeeded", - "uniqueIdentifier": "{uniqueIdentifier}" + "size": "Standard_A2_v2", + "storageType": "Standard", + "uniqueIdentifier": "{uniqueIdentifier}", + "userName": "{userName}", + "virtualMachineCreationSource": "FromGalleryImage" }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}", - "name": "{vmName}", - "type": "Microsoft.DevTestLab/labs/virtualMachines", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "VirtualMachines_Get", + "title": "VirtualMachines_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_GetRdpFileContents.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_GetRdpFileContents.json index 0f96308651c7..467839ecee56 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_GetRdpFileContents.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_GetRdpFileContents.json @@ -1,10 +1,10 @@ { "parameters": { + "name": "{vmName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{vmName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { @@ -12,5 +12,7 @@ "contents": "full address:s:10.0.0.4\r\nprompt for credentials:i:1\r\nusername:s:{vmName}\\{userName}\r\n" } } - } -} + }, + "operationId": "VirtualMachines_GetRdpFileContents", + "title": "VirtualMachines_GetRdpFileContents" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_List.json index b287ca5a0a0b..d598b41c88b7 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_List.json @@ -1,51 +1,51 @@ { "parameters": { "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", + "labName": "{labName}", "resourceGroupName": "resourceGroupName", - "labName": "{labName}" + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { "value": [ { + "name": "{vmName}", + "type": "Microsoft.DevTestLab/labs/virtualMachines", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}", + "location": "{location}", "properties": { - "ownerObjectId": "", - "ownerUserPrincipalName": "", - "createdByUserId": "", - "createdByUser": "", - "createdDate": "2018-10-01T16:53:02.4830866-07:00", - "computeId": "/subscriptions/{subscriptionId}/resourceGroups/{labName}-{vmName}-{randomSuffix}/providers/Microsoft.Compute/virtualMachines/{vmName}", - "osType": "Linux", - "size": "Standard_A2_v2", - "userName": "{userName}", - "labSubnetName": "{virtualNetworkName}Subnet", - "labVirtualNetworkId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", - "disallowPublicIpAddress": true, + "allowClaim": true, "artifactDeploymentStatus": { "artifactsApplied": 0, "totalArtifacts": 0 }, + "computeId": "/subscriptions/{subscriptionId}/resourceGroups/{labName}-{vmName}-{randomSuffix}/providers/Microsoft.Compute/virtualMachines/{vmName}", + "createdByUser": "", + "createdByUserId": "", + "createdDate": "2018-10-01T16:53:02.4830866-07:00", + "dataDiskParameters": [], + "disallowPublicIpAddress": true, "galleryImageReference": { "offer": "UbuntuServer", + "osType": "Linux", "publisher": "Canonical", "sku": "16.04-LTS", - "osType": "Linux", "version": "Latest" }, + "labSubnetName": "{virtualNetworkName}Subnet", + "labVirtualNetworkId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", "networkInterface": {}, - "allowClaim": true, - "storageType": "Standard", - "virtualMachineCreationSource": "FromGalleryImage", - "dataDiskParameters": [], + "osType": "Linux", + "ownerObjectId": "", + "ownerUserPrincipalName": "", "provisioningState": "Succeeded", - "uniqueIdentifier": "{uniqueIdentifier}" + "size": "Standard_A2_v2", + "storageType": "Standard", + "uniqueIdentifier": "{uniqueIdentifier}", + "userName": "{userName}", + "virtualMachineCreationSource": "FromGalleryImage" }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}", - "name": "{vmName}", - "type": "Microsoft.DevTestLab/labs/virtualMachines", - "location": "{location}", "tags": { "tagName1": "tagValue1" } @@ -53,5 +53,7 @@ ] } } - } -} + }, + "operationId": "VirtualMachines_List", + "title": "VirtualMachines_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_ListApplicableSchedules.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_ListApplicableSchedules.json index dc5587c5e036..45b6e9212204 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_ListApplicableSchedules.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_ListApplicableSchedules.json @@ -1,88 +1,90 @@ { "parameters": { + "name": "{vmName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{vmName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { "properties": { "labVmsShutdown": { + "name": "LabVmsShutdown", + "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/myAutoShutdownSchedule", + "location": "{location}", "properties": { - "status": "Enabled", - "taskType": "LabVmsShutdownTask", - "weeklyRecurrence": { - "weekdays": [ - "Friday", - "Saturday", - "Sunday" - ], - "time": "1700" - }, + "createdDate": "2020-12-29T21:48:14.1369355+00:00", "dailyRecurrence": { "time": "1900" }, "hourlyRecurrence": { "minute": 30 }, - "timeZoneId": "Pacific Standard Time", "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", "status": "Enabled", "timeInMinutes": 30, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" + "webhookUrl": "{webhookUrl}" }, - "createdDate": "2020-12-29T21:48:14.1369355+00:00", - "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{vmName}", "provisioningState": "Succeeded", - "uniqueIdentifier": "4acf0408-1c10-49cb-96b7-28ce655c8320" - }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/myAutoShutdownSchedule", - "name": "LabVmsShutdown", - "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", - "location": "{location}" - }, - "labVmsStartup": { - "properties": { "status": "Enabled", - "taskType": "LabVmsStartupTask", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{vmName}", + "taskType": "LabVmsShutdownTask", + "timeZoneId": "Pacific Standard Time", + "uniqueIdentifier": "4acf0408-1c10-49cb-96b7-28ce655c8320", "weeklyRecurrence": { + "time": "1700", "weekdays": [ "Friday", "Saturday", "Sunday" - ], - "time": "1000" - }, + ] + } + } + }, + "labVmsStartup": { + "name": "LabVmAutoStart", + "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/myAutoStartSchedule", + "location": "{location}", + "properties": { + "createdDate": "2020-12-29T21:46:37.0473976+00:00", "dailyRecurrence": { "time": "0900" }, "hourlyRecurrence": { "minute": 30 }, - "timeZoneId": "Pacific Standard Time", "notificationSettings": { + "emailRecipient": "{email}", + "notificationLocale": "EN", "status": "Enabled", "timeInMinutes": 30, - "webhookUrl": "{webhookUrl}", - "emailRecipient": "{email}", - "notificationLocale": "EN" + "webhookUrl": "{webhookUrl}" }, - "createdDate": "2020-12-29T21:46:37.0473976+00:00", + "provisioningState": "Succeeded", + "status": "Enabled", "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{vmName}", - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/myAutoStartSchedule", - "name": "LabVmAutoStart", - "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", - "location": "{location}" + "taskType": "LabVmsStartupTask", + "timeZoneId": "Pacific Standard Time", + "weeklyRecurrence": { + "time": "1000", + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ] + } + } } } } } - } -} + }, + "operationId": "VirtualMachines_ListApplicableSchedules", + "title": "VirtualMachines_ListApplicableSchedules" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Redeploy.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Redeploy.json index 56c50f7c9baa..312ba83f4a75 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Redeploy.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Redeploy.json @@ -1,11 +1,11 @@ { "parameters": { + "name": "{vmName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{vmName}", - "monitor": "true" + "monitor": "true", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, @@ -14,5 +14,7 @@ "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" } } - } -} + }, + "operationId": "VirtualMachines_Redeploy", + "title": "VirtualMachines_Redeploy" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Resize.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Resize.json index 0e257230389e..7bb01f0f082a 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Resize.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Resize.json @@ -1,14 +1,14 @@ { "parameters": { + "name": "{vmName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{vmName}", "monitor": "true", "resizeLabVirtualMachineProperties": { "size": "Standard_A4_v2" - } + }, + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, @@ -17,5 +17,7 @@ "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" } } - } -} + }, + "operationId": "VirtualMachines_Resize", + "title": "VirtualMachines_Resize" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Restart.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Restart.json index 56c50f7c9baa..0bd8b7cb883f 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Restart.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Restart.json @@ -1,11 +1,11 @@ { "parameters": { + "name": "{vmName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{vmName}", - "monitor": "true" + "monitor": "true", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, @@ -14,5 +14,7 @@ "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" } } - } -} + }, + "operationId": "VirtualMachines_Restart", + "title": "VirtualMachines_Restart" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Start.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Start.json index 56c50f7c9baa..80ed19f88473 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Start.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Start.json @@ -1,11 +1,11 @@ { "parameters": { + "name": "{vmName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{vmName}", - "monitor": "true" + "monitor": "true", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, @@ -14,5 +14,7 @@ "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" } } - } -} + }, + "operationId": "VirtualMachines_Start", + "title": "VirtualMachines_Start" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Stop.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Stop.json index 017924f2b4f1..f2857a1e580e 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Stop.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Stop.json @@ -1,10 +1,10 @@ { "parameters": { + "name": "{vmName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{vmName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, @@ -13,5 +13,7 @@ "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" } } - } -} + }, + "operationId": "VirtualMachines_Stop", + "title": "VirtualMachines_Stop" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_TransferDisks.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_TransferDisks.json index 87f60ec7401d..97ce8e5bcc8f 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_TransferDisks.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_TransferDisks.json @@ -1,10 +1,10 @@ { "parameters": { + "name": "{virtualmachineName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{virtualmachineName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, @@ -13,5 +13,7 @@ "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" } } - } -} + }, + "operationId": "VirtualMachines_TransferDisks", + "title": "VirtualMachines_TransferDisks" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_UnClaim.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_UnClaim.json index 56c50f7c9baa..ab0cd802c505 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_UnClaim.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_UnClaim.json @@ -1,11 +1,11 @@ { "parameters": { + "name": "{vmName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{vmName}", - "monitor": "true" + "monitor": "true", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, @@ -14,5 +14,7 @@ "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.DevTestLabs/locations/{location}" } } - } -} + }, + "operationId": "VirtualMachines_UnClaim", + "title": "VirtualMachines_UnClaim" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Update.json index fdf8f531b30a..0038e75acc52 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Update.json @@ -1,55 +1,57 @@ { "parameters": { + "name": "{vmName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{vmName}", - "labVirtualMachine": {} + "labVirtualMachine": {}, + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "name": "{vmName}", + "type": "Microsoft.DevTestLab/labs/virtualMachines", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}", + "location": "{location}", "properties": { - "ownerObjectId": "", - "ownerUserPrincipalName": "", - "createdByUserId": "", - "createdByUser": "", - "createdDate": "2018-10-01T16:53:02.4830866-07:00", - "computeId": "/subscriptions/{subscriptionId}/resourceGroups/{labName}-{vmName}-{randomSuffix}/providers/Microsoft.Compute/virtualMachines/{vmName}", - "osType": "Linux", - "size": "Standard_A2_v2", - "userName": "{userName}", - "labSubnetName": "{virtualNetworkName}Subnet", - "labVirtualNetworkId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", - "disallowPublicIpAddress": true, + "allowClaim": true, "artifactDeploymentStatus": { "artifactsApplied": 0, "totalArtifacts": 0 }, + "computeId": "/subscriptions/{subscriptionId}/resourceGroups/{labName}-{vmName}-{randomSuffix}/providers/Microsoft.Compute/virtualMachines/{vmName}", + "createdByUser": "", + "createdByUserId": "", + "createdDate": "2018-10-01T16:53:02.4830866-07:00", + "dataDiskParameters": [], + "disallowPublicIpAddress": true, "galleryImageReference": { "offer": "UbuntuServer", + "osType": "Linux", "publisher": "Canonical", "sku": "16.04-LTS", - "osType": "Linux", "version": "Latest" }, + "labSubnetName": "{virtualNetworkName}Subnet", + "labVirtualNetworkId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", "networkInterface": {}, - "allowClaim": true, - "storageType": "Standard", - "virtualMachineCreationSource": "FromGalleryImage", - "dataDiskParameters": [], + "osType": "Linux", + "ownerObjectId": "", + "ownerUserPrincipalName": "", "provisioningState": "Succeeded", - "uniqueIdentifier": "{uniqueIdentifier}" + "size": "Standard_A2_v2", + "storageType": "Standard", + "uniqueIdentifier": "{uniqueIdentifier}", + "userName": "{userName}", + "virtualMachineCreationSource": "FromGalleryImage" }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}", - "name": "{vmName}", - "type": "Microsoft.DevTestLab/labs/virtualMachines", - "location": "{location}", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "VirtualMachines_Update", + "title": "VirtualMachines_Update" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json index 8430de043975..641cafcbf593 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json @@ -1,10 +1,10 @@ { "parameters": { + "name": "{virtualNetworkName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{virtualNetworkName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", "virtualNetwork": { "location": "{location}", "tags": { @@ -15,14 +15,14 @@ "responses": { "200": { "body": { + "name": "{virtualNetworkName}", + "type": "Microsoft.DevTestLab/labs/virtualNetworks", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", "properties": { "createdDate": "2018-10-01T13:01:44.6005134-07:00", "provisioningState": "Creating", "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", - "name": "{virtualNetworkName}", - "type": "Microsoft.DevTestLab/labs/virtualNetworks", "tags": { "tagName1": "tagValue1" } @@ -30,18 +30,20 @@ }, "201": { "body": { + "name": "{virtualNetworkName}", + "type": "Microsoft.DevTestLab/labs/virtualNetworks", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", "properties": { "createdDate": "2018-10-01T13:01:44.6005134-07:00", "provisioningState": "Creating", "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", - "name": "{virtualNetworkName}", - "type": "Microsoft.DevTestLab/labs/virtualNetworks", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "VirtualNetworks_CreateOrUpdate", + "title": "VirtualNetworks_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Delete.json index 471bac86f413..862a877b643b 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Delete.json @@ -1,10 +1,10 @@ { "parameters": { + "name": "{virtualNetworkName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{virtualNetworkName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": {}, @@ -14,5 +14,7 @@ } }, "204": {} - } -} + }, + "operationId": "VirtualNetworks_Delete", + "title": "VirtualNetworks_Delete" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Get.json index b32f9e475555..4d891a5be7dd 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Get.json @@ -1,54 +1,56 @@ { "parameters": { + "name": "{virtualNetworkName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{virtualNetworkName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { + "name": "{virtualNetworkName}", + "type": "Microsoft.DevTestLab/labs/virtualNetworks", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", "properties": { "allowedSubnets": [ { - "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{virtualNetworkName}Subnet", + "allowPublicIp": "Allow", "labSubnetName": "{virtualNetworkName}Subnet", - "allowPublicIp": "Allow" + "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{virtualNetworkName}Subnet" } ], + "createdDate": "2018-10-01T13:01:44.6005134-07:00", "externalProviderResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", + "provisioningState": "Succeeded", "subnetOverrides": [ { - "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{virtualNetworkName}Subnet", "labSubnetName": "{virtualNetworkName}Subnet", - "useInVmCreationPermission": "Allow", - "usePublicIpAddressPermission": "Allow", + "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{virtualNetworkName}Subnet", "sharedPublicIpAddressConfiguration": { "allowedPorts": [ { - "transportProtocol": "Tcp", - "backendPort": 3389 + "backendPort": 3389, + "transportProtocol": "Tcp" }, { - "transportProtocol": "Tcp", - "backendPort": 22 + "backendPort": 22, + "transportProtocol": "Tcp" } ] - } + }, + "useInVmCreationPermission": "Allow", + "usePublicIpAddressPermission": "Allow" } ], - "createdDate": "2018-10-01T13:01:44.6005134-07:00", - "provisioningState": "Succeeded", "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", - "name": "{virtualNetworkName}", - "type": "Microsoft.DevTestLab/labs/virtualNetworks", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "VirtualNetworks_Get", + "title": "VirtualNetworks_Get" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_List.json index f4ef4126dea3..a73e4edd5f54 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_List.json @@ -1,51 +1,51 @@ { "parameters": { "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", + "labName": "{labName}", "resourceGroupName": "resourceGroupName", - "labName": "{labName}" + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { "body": { "value": [ { + "name": "{virtualNetworkName}", + "type": "Microsoft.DevTestLab/labs/virtualNetworks", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", "properties": { "allowedSubnets": [ { - "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{virtualNetworkName}Subnet", + "allowPublicIp": "Allow", "labSubnetName": "{virtualNetworkName}Subnet", - "allowPublicIp": "Allow" + "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{virtualNetworkName}Subnet" } ], + "createdDate": "2018-10-01T13:01:44.6005134-07:00", "externalProviderResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", + "provisioningState": "Succeeded", "subnetOverrides": [ { - "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{virtualNetworkName}Subnet", "labSubnetName": "{virtualNetworkName}Subnet", - "useInVmCreationPermission": "Allow", - "usePublicIpAddressPermission": "Allow", + "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{virtualNetworkName}Subnet", "sharedPublicIpAddressConfiguration": { "allowedPorts": [ { - "transportProtocol": "Tcp", - "backendPort": 3389 + "backendPort": 3389, + "transportProtocol": "Tcp" }, { - "transportProtocol": "Tcp", - "backendPort": 22 + "backendPort": 22, + "transportProtocol": "Tcp" } ] - } + }, + "useInVmCreationPermission": "Allow", + "usePublicIpAddressPermission": "Allow" } ], - "createdDate": "2018-10-01T13:01:44.6005134-07:00", - "provisioningState": "Succeeded", "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", - "name": "{virtualNetworkName}", - "type": "Microsoft.DevTestLab/labs/virtualNetworks", "tags": { "tagName1": "tagValue1" } @@ -53,5 +53,7 @@ ] } } - } -} + }, + "operationId": "VirtualNetworks_List", + "title": "VirtualNetworks_List" +} \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Update.json index 90c3b01a3f51..fd1d4c372389 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Update.json @@ -1,10 +1,10 @@ { "parameters": { + "name": "{virtualNetworkName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{virtualNetworkName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", "virtualNetwork": { "tags": { "tagName1": "tagValue1" @@ -14,39 +14,41 @@ "responses": { "200": { "body": { + "name": "{virtualNetworkName}", + "type": "Microsoft.DevTestLab/labs/virtualNetworks", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", "properties": { + "createdDate": "2018-10-01T13:01:44.6005134-07:00", "externalProviderResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", + "provisioningState": "Succeeded", "subnetOverrides": [ { - "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{virtualNetworkName}Subnet", "labSubnetName": "{virtualNetworkName}Subnet", - "useInVmCreationPermission": "Allow", - "usePublicIpAddressPermission": "Allow", + "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{virtualNetworkName}Subnet", "sharedPublicIpAddressConfiguration": { "allowedPorts": [ { - "transportProtocol": "Tcp", - "backendPort": 3389 + "backendPort": 3389, + "transportProtocol": "Tcp" }, { - "transportProtocol": "Tcp", - "backendPort": 22 + "backendPort": 22, + "transportProtocol": "Tcp" } ] - } + }, + "useInVmCreationPermission": "Allow", + "usePublicIpAddressPermission": "Allow" } ], - "createdDate": "2018-10-01T13:01:44.6005134-07:00", - "provisioningState": "Succeeded", "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", - "name": "{virtualNetworkName}", - "type": "Microsoft.DevTestLab/labs/virtualNetworks", "tags": { "tagName1": "tagValue1" } } } - } -} + }, + "operationId": "VirtualNetworks_Update", + "title": "VirtualNetworks_Update" +} \ No newline at end of file From a5b9ac65cf3a416eb60fa3f0e242a5045f8ac9ea Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Wed, 18 Jun 2025 10:47:54 -0700 Subject: [PATCH 02/59] Suppressions --- .../LabCost.tsp | 1 + .../ServiceRunner.tsp | 2 + .../models.tsp | 40 +++++++++++++++++++ .../routes.tsp | 1 + 4 files changed, 44 insertions(+) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp index 6e637b4142e9..3b9e3338dbfb 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp @@ -23,6 +23,7 @@ model LabCost >; } +#suppress "@azure-tools/typespec-azure-resource-manager/no-resource-delete-operation" "For backward compatibility" @armResourceOperations interface LabCosts { /** diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp index 6bcfddea94ce..9d6d8dbbc10b 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp @@ -14,6 +14,8 @@ namespace Microsoft.DevTestLab; /** * A container for a managed identity to execute DevTest lab services. */ +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" model ServiceRunner is Azure.ResourceManager.TrackedResource<{}> { ...ResourceNameParameter< Resource = ServiceRunner, diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp index 13715f3a31f5..e20a9228a6c3 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp @@ -966,6 +966,7 @@ model ArmTemplateProperties { /** * The contents of the ARM template. */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" @visibility(Lifecycle.Read) contents?: Record; @@ -980,6 +981,7 @@ model ArmTemplateProperties { * File name and parameter values information from all azuredeploy.*.parameters.json for the ARM template. */ @visibility(Lifecycle.Read) + @OpenAPI.extension("x-ms-identifiers", #[]) parametersValueFilesInfo?: ParametersValueFileInfo[]; /** @@ -1001,6 +1003,7 @@ model ParametersValueFileInfo { /** * Contents of the file. */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" parametersValueInfo?: Record; } @@ -1053,6 +1056,7 @@ model ArtifactProperties { /** * The artifact's parameters. */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" @visibility(Lifecycle.Read) parameters?: Record; @@ -1111,11 +1115,13 @@ model ArmTemplateInfo { /** * The template's contents. */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" template?: Record; /** * The parameters of the ARM template. */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" parameters?: Record; } @@ -1123,6 +1129,7 @@ model ArmTemplateInfo { * Properties of an artifact source. */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "For backward compatibility" model ArtifactSourceFragment extends UpdateResource {} /** @@ -1155,12 +1162,14 @@ model LabCostProperties { * The lab cost details component of the cost data. */ @visibility(Lifecycle.Read) + @OpenAPI.extension("x-ms-identifiers", #[]) labCostDetails?: LabCostDetailsProperties[]; /** * The resource cost component of the cost data. */ @visibility(Lifecycle.Read) + @OpenAPI.extension("x-ms-identifiers", #[]) resourceCosts?: LabResourceCostProperties[]; /** @@ -1217,6 +1226,7 @@ model TargetCostProperties { /** * Cost thresholds. */ + @OpenAPI.extension("x-ms-identifiers", #[]) costThresholds?: CostThresholdProperties[]; /** @@ -1320,6 +1330,7 @@ model LabResourceCostProperties { /** * The unique identifier of the resource. */ + #suppress "@azure-tools/typespec-azure-core/casing-style" "For backward compatibility" resourceUId?: string; /** @@ -1405,6 +1416,7 @@ model CustomImageProperties { /** * Storage information about the data disks present in the custom image */ + @OpenAPI.extension("x-ms-identifiers", #[]) dataDiskStorageInfo?: DataDiskStorageTypeInfo[]; /** @@ -1530,6 +1542,7 @@ model CustomImagePropertiesFromPlan { * A custom image. */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "For backward compatibility" model CustomImageFragment extends UpdateResource {} /** @@ -1694,6 +1707,7 @@ model LabVirtualMachineCreationParameterProperties { /** * The artifacts to be installed on the virtual machine. */ + @OpenAPI.extension("x-ms-identifiers", #[]) artifacts?: ArtifactInstallProperties[]; /** @@ -1735,6 +1749,7 @@ model LabVirtualMachineCreationParameterProperties { /** * New or existing data disks to attach to the virtual machine after creation */ + @OpenAPI.extension("x-ms-identifiers", #[]) dataDiskParameters?: DataDiskProperties[]; /** @@ -1896,6 +1911,7 @@ model SharedPublicIpAddressConfiguration { /** * The incoming NAT rules */ + @OpenAPI.extension("x-ms-identifiers", #[]) inboundNatRules?: InboundNatRule[]; } @@ -2047,6 +2063,7 @@ model FormulaPropertiesFromVm { * A formula for creating a VM, specifying an image base and other parameters */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "For backward compatibility" model FormulaFragment extends UpdateResource {} /** @@ -2146,6 +2163,7 @@ model NotificationChannelProperties { /** * The list of event for which this notification is enabled. */ + @OpenAPI.extension("x-ms-identifiers", #[]) events?: Event[]; /** @@ -2183,6 +2201,7 @@ model Event { * A notification. */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "For backward compatibility" model NotificationChannelFragment extends UpdateResource {} /** @@ -2207,6 +2226,7 @@ model EvaluatePoliciesRequest { /** * Policies to evaluate. */ + @OpenAPI.extension("x-ms-identifiers", #[]) policies?: EvaluatePoliciesProperties[]; } @@ -2242,6 +2262,7 @@ model EvaluatePoliciesResponse { /** * Results of evaluating a policy set. */ + @OpenAPI.extension("x-ms-identifiers", #[]) results?: PolicySetResult[]; } @@ -2257,6 +2278,7 @@ model PolicySetResult { /** * The list of policy violations. */ + @OpenAPI.extension("x-ms-identifiers", #[]) policyViolations?: PolicyViolation[]; } @@ -2339,12 +2361,14 @@ model PolicyProperties { * A Policy. */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "For backward compatibility" model PolicyFragment extends UpdateResource {} /** * A schedule. */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "For backward compatibility" model ScheduleFragment extends UpdateResource {} /** @@ -2461,6 +2485,7 @@ model UserSecretStore { * Profile of a lab user. */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "For backward compatibility" model UserFragment extends UpdateResource {} /** @@ -2537,6 +2562,7 @@ model DiskProperties { * A Disk. */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "For backward compatibility" model DiskFragment extends UpdateResource {} /** @@ -2638,6 +2664,7 @@ model ArmTemplateParameterProperties { * An environment, which is essentially an ARM template deployment. */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "For backward compatibility" model DtlEnvironmentFragment extends UpdateResource {} /** @@ -2672,6 +2699,7 @@ model SecretProperties { * A secret. */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "For backward compatibility" model SecretFragment extends UpdateResource {} /** @@ -2745,6 +2773,7 @@ model ApplicableScheduleProperties { * A Service Fabric. */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "For backward compatibility" model ServiceFabricFragment extends UpdateResource {} /** @@ -2855,6 +2884,7 @@ model LabVirtualMachineProperties { /** * The artifacts to be installed on the virtual machine. */ + @OpenAPI.extension("x-ms-identifiers", #[]) artifacts?: ArtifactInstallProperties[]; /** @@ -2920,6 +2950,7 @@ model LabVirtualMachineProperties { /** * New or existing data disks to attach to the virtual machine after creation */ + @OpenAPI.extension("x-ms-identifiers", #[]) dataDiskParameters?: DataDiskProperties[]; /** @@ -2974,6 +3005,7 @@ model ComputeVmProperties { /** * Gets the statuses of the virtual machine. */ + @OpenAPI.extension("x-ms-identifiers", #[]) statuses?: ComputeVmInstanceViewStatus[]; /** @@ -3056,6 +3088,7 @@ model ComputeDataDisk { * A virtual machine. */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "For backward compatibility" model LabVirtualMachineFragment extends UpdateResource {} /** @@ -3065,6 +3098,7 @@ model ApplyArtifactsRequest { /** * The list of artifacts to apply. */ + @OpenAPI.extension("x-ms-identifiers", #[]) artifacts?: ArtifactInstallProperties[]; } @@ -3110,6 +3144,7 @@ model VirtualNetworkProperties { /** * The allowed subnets of the virtual network. */ + @OpenAPI.extension("x-ms-identifiers", #[]) allowedSubnets?: Subnet[]; /** @@ -3131,6 +3166,7 @@ model VirtualNetworkProperties { /** * The subnet overrides of the virtual network. */ + @OpenAPI.extension("x-ms-identifiers", #[]) subnetOverrides?: SubnetOverride[]; /** @@ -3231,6 +3267,7 @@ model SubnetSharedPublicIpAddressConfiguration { /** * Backend ports that virtual machines on this subnet are allowed to expose */ + @OpenAPI.extension("x-ms-identifiers", #[]) allowedPorts?: Port[]; } @@ -3253,12 +3290,14 @@ model Port { * A virtual network. */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "For backward compatibility" model VirtualNetworkFragment extends UpdateResource {} /** * A lab. */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "For backward compatibility" model LabFragment extends UpdateResource {} /** @@ -3346,6 +3385,7 @@ model RetargetScheduleProperties { * Schedules applicable to a virtual machine. The schedules may have been defined on a VM or on lab level. */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "For backward compatibility" model ApplicableScheduleFragment extends UpdateResource {} /** diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/routes.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/routes.tsp index 119140f46c27..762e12f8a80b 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/routes.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/routes.tsp @@ -18,6 +18,7 @@ interface OperationsOperationGroup { /** * Get operation. */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("Operations_Get") @route("/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/locations/{locationName}/operations/{name}") From 62416f4161a16eb347bd953f7f16891f20b40e2b Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Wed, 18 Jun 2025 10:50:36 -0700 Subject: [PATCH 03/59] Remove unused usings --- .../Microsoft.DevTestLab.Management/ArmTemplate.tsp | 2 -- .../devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp | 1 - .../Microsoft.DevTestLab.Management/NotificationChannel.tsp | 2 -- .../devtestlabs/Microsoft.DevTestLab.Management/main.tsp | 4 ---- .../devtestlabs/Microsoft.DevTestLab.Management/models.tsp | 5 ----- 5 files changed, 14 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp index d8388a906214..9aa587179f90 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp @@ -4,10 +4,8 @@ import "@typespec/openapi"; import "@typespec/rest"; import "./models.tsp"; -using TypeSpec.Rest; using Azure.ResourceManager; using TypeSpec.Http; -using TypeSpec.OpenAPI; namespace Microsoft.DevTestLab; /** diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp index 3b9e3338dbfb..233814b8166f 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp @@ -4,7 +4,6 @@ import "@typespec/openapi"; import "@typespec/rest"; import "./models.tsp"; -using TypeSpec.Rest; using Azure.ResourceManager; using TypeSpec.Http; using TypeSpec.OpenAPI; diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp index 9ec57b132468..662cdd1805b6 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp @@ -4,10 +4,8 @@ import "@typespec/openapi"; import "@typespec/rest"; import "./models.tsp"; -using TypeSpec.Rest; using Azure.ResourceManager; using TypeSpec.Http; -using TypeSpec.OpenAPI; namespace Microsoft.DevTestLab; /** diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/main.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/main.tsp index 87b927126bed..8132a7774d4f 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/main.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/main.tsp @@ -33,10 +33,6 @@ import "./LabVirtualMachine.tsp"; import "./VirtualNetwork.tsp"; import "./routes.tsp"; -using TypeSpec.Rest; -using TypeSpec.Http; -using Azure.ResourceManager.Foundations; -using Azure.Core; using Azure.ResourceManager; using TypeSpec.Versioning; /** diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp index e20a9228a6c3..80da497b5c09 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp @@ -3,11 +3,6 @@ import "@typespec/http"; import "@azure-tools/typespec-azure-core"; import "@azure-tools/typespec-azure-resource-manager"; -using TypeSpec.Rest; -using TypeSpec.Http; -using Azure.ResourceManager; -using Azure.ResourceManager.Foundations; - namespace Microsoft.DevTestLab; /** From 297de32c8000357ce06f741dacba466a83f74270 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Wed, 18 Jun 2025 11:35:50 -0700 Subject: [PATCH 04/59] Prettier fix --- .../examples/2018-09-15/ArmTemplates_Get.json | 2 +- .../examples/2018-09-15/ArmTemplates_List.json | 2 +- .../examples/2018-09-15/ArtifactSources_CreateOrUpdate.json | 2 +- .../stable/2018-09-15/examples/ArmTemplates_Get.json | 2 +- .../stable/2018-09-15/examples/ArmTemplates_List.json | 2 +- .../2018-09-15/examples/ArtifactSources_CreateOrUpdate.json | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArmTemplates_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArmTemplates_Get.json index f017a756b1b0..f92e3693667a 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArmTemplates_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArmTemplates_Get.json @@ -39,4 +39,4 @@ }, "operationId": "ArmTemplates_Get", "title": "ArmTemplates_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArmTemplates_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArmTemplates_List.json index bd1d85e2d1ab..76ca5212d59f 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArmTemplates_List.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArmTemplates_List.json @@ -42,4 +42,4 @@ }, "operationId": "ArmTemplates_List", "title": "ArmTemplates_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_CreateOrUpdate.json index 9d4373f7924a..43527ac67a0f 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_CreateOrUpdate.json @@ -73,4 +73,4 @@ }, "operationId": "ArtifactSources_CreateOrUpdate", "title": "ArtifactSources_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_Get.json index f017a756b1b0..f92e3693667a 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_Get.json @@ -39,4 +39,4 @@ }, "operationId": "ArmTemplates_Get", "title": "ArmTemplates_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_List.json index bd1d85e2d1ab..76ca5212d59f 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_List.json @@ -42,4 +42,4 @@ }, "operationId": "ArmTemplates_List", "title": "ArmTemplates_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_CreateOrUpdate.json index 9d4373f7924a..43527ac67a0f 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_CreateOrUpdate.json @@ -73,4 +73,4 @@ }, "operationId": "ArtifactSources_CreateOrUpdate", "title": "ArtifactSources_CreateOrUpdate" -} \ No newline at end of file +} From 9370f81df021ae8b6c88f6f2f5d161e84487623f Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Wed, 18 Jun 2025 11:51:41 -0700 Subject: [PATCH 05/59] tspconfig update --- .../Microsoft.DevTestLab.Management/tspconfig.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml b/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml index 4f6903f9947c..f8f11e7352a8 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml @@ -8,6 +8,12 @@ options: output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/DTL.json" examples-dir: "{project-root}/examples" arm-resource-flattening: true + "@azure-tools/typespec-csharp": + flavor: azure + package-dir: "Azure.ResourceManager.DevTestLabs" + clear-output-folder: true + model-namespace: true + namespace: "Microsoft.Azure.Management.DevTestLabs" linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" From afc52039c775460b428e1943d4cec9de5f16d76e Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Wed, 18 Jun 2025 12:07:06 -0700 Subject: [PATCH 06/59] SDK generation update --- .../tspconfig.yaml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml b/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml index f8f11e7352a8..6464408ab64b 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml @@ -14,6 +14,33 @@ options: clear-output-folder: true model-namespace: true namespace: "Microsoft.Azure.Management.DevTestLabs" + "@azure-tools/typespec-python": + namespace: "azure.mgmt.devtestlabs" + package-name: "azure-mgmt-devtestlabs" + payload-flattening-threshold: 2 + generate-test: true + generate-sample: true + license-header: MICROSOFT_MIT_NO_VERSION + flavor: "azure" + "@azure-tools/typespec-java": + package-dir: "azure-mgmt-devtestlabs" + namespace: "com.microsoft.azure.management.devtestlabs" + service-name: "DevTestLabs" + license-header: MICROSOFT_MIT_NO_CODEGEN + payload-flattening-threshold: 1 + flavor: azure + "@azure-tools/typespec-ts": + package-dir: "arm-devtestlabs" + flavor: azure + experimental-extensible-enums: true + generate-metadata: true + package-details: + name: "@azure/arm-devtestlabs" + "@azure-tools/typespec-go": + module-name: "sdk/resourcemanager/devtestlabs/armdevtestlabs" + module: "github.com/Azure/azure-sdk-for-go/{module-name}" + license-header: MICROSOFT_MIT_NO_VERSION + flavor: "azure" linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" From ca91c2a5b49869b143f7e1ebfa30dda2f7f2cdcd Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Wed, 18 Jun 2025 12:18:58 -0700 Subject: [PATCH 07/59] Prettier fix --- .../examples/2018-09-15/ArtifactSources_Delete.json | 2 +- .../examples/2018-09-15/ArtifactSources_Get.json | 2 +- .../examples/2018-09-15/ArtifactSources_List.json | 2 +- .../examples/2018-09-15/ArtifactSources_Update.json | 2 +- .../examples/2018-09-15/Artifacts_GenerateArmTemplate.json | 2 +- .../examples/2018-09-15/Artifacts_Get.json | 2 +- .../examples/2018-09-15/Artifacts_List.json | 2 +- .../examples/2018-09-15/Costs_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/Costs_Get.json | 2 +- .../examples/2018-09-15/CustomImages_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/CustomImages_Delete.json | 2 +- .../examples/2018-09-15/CustomImages_Get.json | 2 +- .../examples/2018-09-15/CustomImages_List.json | 2 +- .../examples/2018-09-15/CustomImages_Update.json | 2 +- .../examples/2018-09-15/Disks_Attach.json | 2 +- .../examples/2018-09-15/Disks_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/Disks_Delete.json | 2 +- .../examples/2018-09-15/Disks_Detach.json | 2 +- .../examples/2018-09-15/Disks_Get.json | 2 +- .../examples/2018-09-15/Disks_List.json | 2 +- .../examples/2018-09-15/Disks_Update.json | 2 +- .../examples/2018-09-15/Environments_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/Environments_Delete.json | 2 +- .../examples/2018-09-15/Environments_Get.json | 2 +- .../examples/2018-09-15/Environments_List.json | 2 +- .../examples/2018-09-15/Environments_Update.json | 2 +- .../examples/2018-09-15/Formulas_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/Formulas_Delete.json | 2 +- .../examples/2018-09-15/Formulas_Get.json | 2 +- .../examples/2018-09-15/Formulas_List.json | 2 +- .../examples/2018-09-15/Formulas_Update.json | 2 +- .../examples/2018-09-15/GalleryImages_List.json | 2 +- .../examples/2018-09-15/GlobalSchedules_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/GlobalSchedules_Delete.json | 2 +- .../examples/2018-09-15/GlobalSchedules_Execute.json | 2 +- .../examples/2018-09-15/GlobalSchedules_Get.json | 2 +- .../2018-09-15/GlobalSchedules_ListByResourceGroup.json | 2 +- .../examples/2018-09-15/GlobalSchedules_ListBySubscription.json | 2 +- .../examples/2018-09-15/GlobalSchedules_Retarget.json | 2 +- .../examples/2018-09-15/GlobalSchedules_Update.json | 2 +- .../examples/2018-09-15/Labs_ClaimAnyVm.json | 2 +- .../examples/2018-09-15/Labs_CreateEnvironment.json | 2 +- .../examples/2018-09-15/Labs_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/Labs_Delete.json | 2 +- .../examples/2018-09-15/Labs_ExportResourceUsage.json | 2 +- .../examples/2018-09-15/Labs_GenerateUploadUri.json | 2 +- .../examples/2018-09-15/Labs_Get.json | 2 +- .../examples/2018-09-15/Labs_ImportVirtualMachine.json | 2 +- .../examples/2018-09-15/Labs_ListByResourceGroup.json | 2 +- .../examples/2018-09-15/Labs_ListBySubscription.json | 2 +- .../examples/2018-09-15/Labs_ListVhds.json | 2 +- .../examples/2018-09-15/Labs_Update.json | 2 +- .../2018-09-15/NotificationChannels_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/NotificationChannels_Delete.json | 2 +- .../examples/2018-09-15/NotificationChannels_Get.json | 2 +- .../examples/2018-09-15/NotificationChannels_List.json | 2 +- .../examples/2018-09-15/NotificationChannels_Notify.json | 2 +- .../examples/2018-09-15/NotificationChannels_Update.json | 2 +- .../examples/2018-09-15/Operations_Get.json | 2 +- .../examples/2018-09-15/Policies_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/Policies_Delete.json | 2 +- .../examples/2018-09-15/Policies_Get.json | 2 +- .../examples/2018-09-15/Policies_List.json | 2 +- .../examples/2018-09-15/Policies_Update.json | 2 +- .../examples/2018-09-15/PolicySets_EvaluatePolicies.json | 2 +- .../examples/2018-09-15/ProviderOperations_List.json | 2 +- .../examples/2018-09-15/Schedules_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/Schedules_Delete.json | 2 +- .../examples/2018-09-15/Schedules_Execute.json | 2 +- .../examples/2018-09-15/Schedules_Get.json | 2 +- .../examples/2018-09-15/Schedules_List.json | 2 +- .../examples/2018-09-15/Schedules_ListApplicable.json | 2 +- .../examples/2018-09-15/Schedules_Update.json | 2 +- .../examples/2018-09-15/Secrets_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/Secrets_Delete.json | 2 +- .../examples/2018-09-15/Secrets_Get.json | 2 +- .../examples/2018-09-15/Secrets_List.json | 2 +- .../examples/2018-09-15/Secrets_Update.json | 2 +- .../2018-09-15/ServiceFabricSchedules_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/ServiceFabricSchedules_Delete.json | 2 +- .../examples/2018-09-15/ServiceFabricSchedules_Execute.json | 2 +- .../examples/2018-09-15/ServiceFabricSchedules_Get.json | 2 +- .../examples/2018-09-15/ServiceFabricSchedules_List.json | 2 +- .../examples/2018-09-15/ServiceFabricSchedules_Update.json | 2 +- .../examples/2018-09-15/ServiceFabrics_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/ServiceFabrics_Delete.json | 2 +- .../examples/2018-09-15/ServiceFabrics_Get.json | 2 +- .../examples/2018-09-15/ServiceFabrics_List.json | 2 +- .../2018-09-15/ServiceFabrics_ListApplicableSchedules.json | 2 +- .../examples/2018-09-15/ServiceFabrics_Start.json | 2 +- .../examples/2018-09-15/ServiceFabrics_Stop.json | 2 +- .../examples/2018-09-15/ServiceFabrics_Update.json | 2 +- .../examples/2018-09-15/ServiceRunners_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/ServiceRunners_Delete.json | 2 +- .../examples/2018-09-15/ServiceRunners_Get.json | 2 +- .../examples/2018-09-15/Users_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/Users_Delete.json | 2 +- .../examples/2018-09-15/Users_Get.json | 2 +- .../examples/2018-09-15/Users_List.json | 2 +- .../examples/2018-09-15/Users_Update.json | 2 +- .../2018-09-15/VirtualMachineSchedules_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/VirtualMachineSchedules_Delete.json | 2 +- .../examples/2018-09-15/VirtualMachineSchedules_Execute.json | 2 +- .../examples/2018-09-15/VirtualMachineSchedules_Get.json | 2 +- .../examples/2018-09-15/VirtualMachineSchedules_List.json | 2 +- .../examples/2018-09-15/VirtualMachineSchedules_Update.json | 2 +- .../examples/2018-09-15/VirtualMachines_AddDataDisk.json | 2 +- .../examples/2018-09-15/VirtualMachines_ApplyArtifacts.json | 2 +- .../examples/2018-09-15/VirtualMachines_Claim.json | 2 +- .../examples/2018-09-15/VirtualMachines_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/VirtualMachines_Delete.json | 2 +- .../examples/2018-09-15/VirtualMachines_DetachDataDisk.json | 2 +- .../examples/2018-09-15/VirtualMachines_Get.json | 2 +- .../examples/2018-09-15/VirtualMachines_GetRdpFileContents.json | 2 +- .../examples/2018-09-15/VirtualMachines_List.json | 2 +- .../2018-09-15/VirtualMachines_ListApplicableSchedules.json | 2 +- .../examples/2018-09-15/VirtualMachines_Redeploy.json | 2 +- .../examples/2018-09-15/VirtualMachines_Resize.json | 2 +- .../examples/2018-09-15/VirtualMachines_Restart.json | 2 +- .../examples/2018-09-15/VirtualMachines_Start.json | 2 +- .../examples/2018-09-15/VirtualMachines_Stop.json | 2 +- .../examples/2018-09-15/VirtualMachines_TransferDisks.json | 2 +- .../examples/2018-09-15/VirtualMachines_UnClaim.json | 2 +- .../examples/2018-09-15/VirtualMachines_Update.json | 2 +- .../examples/2018-09-15/VirtualNetworks_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/VirtualNetworks_Delete.json | 2 +- .../examples/2018-09-15/VirtualNetworks_Get.json | 2 +- .../examples/2018-09-15/VirtualNetworks_List.json | 2 +- .../examples/2018-09-15/VirtualNetworks_Update.json | 2 +- .../stable/2018-09-15/examples/ArtifactSources_Delete.json | 2 +- .../stable/2018-09-15/examples/ArtifactSources_Get.json | 2 +- .../stable/2018-09-15/examples/ArtifactSources_List.json | 2 +- .../stable/2018-09-15/examples/ArtifactSources_Update.json | 2 +- .../2018-09-15/examples/Artifacts_GenerateArmTemplate.json | 2 +- .../stable/2018-09-15/examples/Artifacts_Get.json | 2 +- .../stable/2018-09-15/examples/Artifacts_List.json | 2 +- .../stable/2018-09-15/examples/Costs_CreateOrUpdate.json | 2 +- .../stable/2018-09-15/examples/Costs_Get.json | 2 +- .../stable/2018-09-15/examples/CustomImages_CreateOrUpdate.json | 2 +- .../stable/2018-09-15/examples/CustomImages_Delete.json | 2 +- .../stable/2018-09-15/examples/CustomImages_Get.json | 2 +- .../stable/2018-09-15/examples/CustomImages_List.json | 2 +- .../stable/2018-09-15/examples/CustomImages_Update.json | 2 +- .../stable/2018-09-15/examples/Disks_Attach.json | 2 +- .../stable/2018-09-15/examples/Disks_CreateOrUpdate.json | 2 +- .../stable/2018-09-15/examples/Disks_Delete.json | 2 +- .../stable/2018-09-15/examples/Disks_Detach.json | 2 +- .../stable/2018-09-15/examples/Disks_Get.json | 2 +- .../stable/2018-09-15/examples/Disks_List.json | 2 +- .../stable/2018-09-15/examples/Disks_Update.json | 2 +- .../stable/2018-09-15/examples/Environments_CreateOrUpdate.json | 2 +- .../stable/2018-09-15/examples/Environments_Delete.json | 2 +- .../stable/2018-09-15/examples/Environments_Get.json | 2 +- .../stable/2018-09-15/examples/Environments_List.json | 2 +- .../stable/2018-09-15/examples/Environments_Update.json | 2 +- .../stable/2018-09-15/examples/Formulas_CreateOrUpdate.json | 2 +- .../stable/2018-09-15/examples/Formulas_Delete.json | 2 +- .../stable/2018-09-15/examples/Formulas_Get.json | 2 +- .../stable/2018-09-15/examples/Formulas_List.json | 2 +- .../stable/2018-09-15/examples/Formulas_Update.json | 2 +- .../stable/2018-09-15/examples/GalleryImages_List.json | 2 +- .../2018-09-15/examples/GlobalSchedules_CreateOrUpdate.json | 2 +- .../stable/2018-09-15/examples/GlobalSchedules_Delete.json | 2 +- .../stable/2018-09-15/examples/GlobalSchedules_Execute.json | 2 +- .../stable/2018-09-15/examples/GlobalSchedules_Get.json | 2 +- .../examples/GlobalSchedules_ListByResourceGroup.json | 2 +- .../2018-09-15/examples/GlobalSchedules_ListBySubscription.json | 2 +- .../stable/2018-09-15/examples/GlobalSchedules_Retarget.json | 2 +- .../stable/2018-09-15/examples/GlobalSchedules_Update.json | 2 +- .../stable/2018-09-15/examples/Labs_ClaimAnyVm.json | 2 +- .../stable/2018-09-15/examples/Labs_CreateEnvironment.json | 2 +- .../stable/2018-09-15/examples/Labs_CreateOrUpdate.json | 2 +- .../stable/2018-09-15/examples/Labs_Delete.json | 2 +- .../stable/2018-09-15/examples/Labs_ExportResourceUsage.json | 2 +- .../stable/2018-09-15/examples/Labs_GenerateUploadUri.json | 2 +- .../stable/2018-09-15/examples/Labs_Get.json | 2 +- .../stable/2018-09-15/examples/Labs_ImportVirtualMachine.json | 2 +- .../stable/2018-09-15/examples/Labs_ListByResourceGroup.json | 2 +- .../stable/2018-09-15/examples/Labs_ListBySubscription.json | 2 +- .../stable/2018-09-15/examples/Labs_ListVhds.json | 2 +- .../stable/2018-09-15/examples/Labs_Update.json | 2 +- .../examples/NotificationChannels_CreateOrUpdate.json | 2 +- .../stable/2018-09-15/examples/NotificationChannels_Delete.json | 2 +- .../stable/2018-09-15/examples/NotificationChannels_Get.json | 2 +- .../stable/2018-09-15/examples/NotificationChannels_List.json | 2 +- .../stable/2018-09-15/examples/NotificationChannels_Notify.json | 2 +- .../stable/2018-09-15/examples/NotificationChannels_Update.json | 2 +- .../stable/2018-09-15/examples/Operations_Get.json | 2 +- .../stable/2018-09-15/examples/Policies_CreateOrUpdate.json | 2 +- .../stable/2018-09-15/examples/Policies_Delete.json | 2 +- .../stable/2018-09-15/examples/Policies_Get.json | 2 +- .../stable/2018-09-15/examples/Policies_List.json | 2 +- .../stable/2018-09-15/examples/Policies_Update.json | 2 +- .../stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json | 2 +- .../stable/2018-09-15/examples/Schedules_CreateOrUpdate.json | 2 +- .../stable/2018-09-15/examples/Schedules_Delete.json | 2 +- .../stable/2018-09-15/examples/Schedules_Execute.json | 2 +- .../stable/2018-09-15/examples/Schedules_Get.json | 2 +- .../stable/2018-09-15/examples/Schedules_List.json | 2 +- .../stable/2018-09-15/examples/Schedules_ListApplicable.json | 2 +- .../stable/2018-09-15/examples/Schedules_Update.json | 2 +- .../stable/2018-09-15/examples/Secrets_CreateOrUpdate.json | 2 +- .../stable/2018-09-15/examples/Secrets_Delete.json | 2 +- .../stable/2018-09-15/examples/Secrets_Get.json | 2 +- .../stable/2018-09-15/examples/Secrets_List.json | 2 +- .../stable/2018-09-15/examples/Secrets_Update.json | 2 +- .../examples/ServiceFabricSchedules_CreateOrUpdate.json | 2 +- .../2018-09-15/examples/ServiceFabricSchedules_Delete.json | 2 +- .../2018-09-15/examples/ServiceFabricSchedules_Execute.json | 2 +- .../stable/2018-09-15/examples/ServiceFabricSchedules_Get.json | 2 +- .../stable/2018-09-15/examples/ServiceFabricSchedules_List.json | 2 +- .../2018-09-15/examples/ServiceFabricSchedules_Update.json | 2 +- .../2018-09-15/examples/ServiceFabrics_CreateOrUpdate.json | 2 +- .../stable/2018-09-15/examples/ServiceFabrics_Delete.json | 2 +- .../stable/2018-09-15/examples/ServiceFabrics_Get.json | 2 +- .../stable/2018-09-15/examples/ServiceFabrics_List.json | 2 +- .../examples/ServiceFabrics_ListApplicableSchedules.json | 2 +- .../stable/2018-09-15/examples/ServiceFabrics_Start.json | 2 +- .../stable/2018-09-15/examples/ServiceFabrics_Stop.json | 2 +- .../stable/2018-09-15/examples/ServiceFabrics_Update.json | 2 +- .../2018-09-15/examples/ServiceRunners_CreateOrUpdate.json | 2 +- .../stable/2018-09-15/examples/ServiceRunners_Delete.json | 2 +- .../stable/2018-09-15/examples/ServiceRunners_Get.json | 2 +- .../stable/2018-09-15/examples/Users_CreateOrUpdate.json | 2 +- .../stable/2018-09-15/examples/Users_Delete.json | 2 +- .../stable/2018-09-15/examples/Users_Get.json | 2 +- .../stable/2018-09-15/examples/Users_List.json | 2 +- .../stable/2018-09-15/examples/Users_Update.json | 2 +- .../examples/VirtualMachineSchedules_CreateOrUpdate.json | 2 +- .../2018-09-15/examples/VirtualMachineSchedules_Delete.json | 2 +- .../2018-09-15/examples/VirtualMachineSchedules_Execute.json | 2 +- .../stable/2018-09-15/examples/VirtualMachineSchedules_Get.json | 2 +- .../2018-09-15/examples/VirtualMachineSchedules_List.json | 2 +- .../2018-09-15/examples/VirtualMachineSchedules_Update.json | 2 +- .../stable/2018-09-15/examples/VirtualMachines_AddDataDisk.json | 2 +- .../2018-09-15/examples/VirtualMachines_ApplyArtifacts.json | 2 +- .../stable/2018-09-15/examples/VirtualMachines_Claim.json | 2 +- .../2018-09-15/examples/VirtualMachines_CreateOrUpdate.json | 2 +- .../stable/2018-09-15/examples/VirtualMachines_Delete.json | 2 +- .../2018-09-15/examples/VirtualMachines_DetachDataDisk.json | 2 +- .../stable/2018-09-15/examples/VirtualMachines_Get.json | 2 +- .../2018-09-15/examples/VirtualMachines_GetRdpFileContents.json | 2 +- .../stable/2018-09-15/examples/VirtualMachines_List.json | 2 +- .../examples/VirtualMachines_ListApplicableSchedules.json | 2 +- .../stable/2018-09-15/examples/VirtualMachines_Redeploy.json | 2 +- .../stable/2018-09-15/examples/VirtualMachines_Resize.json | 2 +- .../stable/2018-09-15/examples/VirtualMachines_Restart.json | 2 +- .../stable/2018-09-15/examples/VirtualMachines_Start.json | 2 +- .../stable/2018-09-15/examples/VirtualMachines_Stop.json | 2 +- .../2018-09-15/examples/VirtualMachines_TransferDisks.json | 2 +- .../stable/2018-09-15/examples/VirtualMachines_UnClaim.json | 2 +- .../stable/2018-09-15/examples/VirtualMachines_Update.json | 2 +- .../2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json | 2 +- .../stable/2018-09-15/examples/VirtualNetworks_Delete.json | 2 +- .../stable/2018-09-15/examples/VirtualNetworks_Get.json | 2 +- .../stable/2018-09-15/examples/VirtualNetworks_List.json | 2 +- .../stable/2018-09-15/examples/VirtualNetworks_Update.json | 2 +- 257 files changed, 257 insertions(+), 257 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Delete.json index 1e565af4e260..c243741e5378 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Delete.json @@ -12,4 +12,4 @@ }, "operationId": "ArtifactSources_Delete", "title": "ArtifactSources_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Get.json index ebb67aa0ec99..0f56aaf30a09 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Get.json @@ -34,4 +34,4 @@ }, "operationId": "ArtifactSources_Get", "title": "ArtifactSources_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_List.json index 67a7b745566a..b8471dd5df16 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_List.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_List.json @@ -37,4 +37,4 @@ }, "operationId": "ArtifactSources_List", "title": "ArtifactSources_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Update.json index cdc9dd40bbff..ad5daa171224 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Update.json @@ -39,4 +39,4 @@ }, "operationId": "ArtifactSources_Update", "title": "ArtifactSources_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_GenerateArmTemplate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_GenerateArmTemplate.json index 98a3a3cfbbfd..0acb236e641c 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_GenerateArmTemplate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_GenerateArmTemplate.json @@ -67,4 +67,4 @@ }, "operationId": "Artifacts_GenerateArmTemplate", "title": "Artifacts_GenerateArmTemplate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_Get.json index 8a2f424eae27..263790c8e021 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_Get.json @@ -37,4 +37,4 @@ }, "operationId": "Artifacts_Get", "title": "Artifacts_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_List.json index 6958741acf0a..2fbff482c60b 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_List.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_List.json @@ -40,4 +40,4 @@ }, "operationId": "Artifacts_List", "title": "Artifacts_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_CreateOrUpdate.json index 3df62456befb..b00243b84b04 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_CreateOrUpdate.json @@ -212,4 +212,4 @@ }, "operationId": "Costs_CreateOrUpdate", "title": "Costs_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_Get.json index b78510fcaeb2..4cd5b3cc261f 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_Get.json @@ -83,4 +83,4 @@ }, "operationId": "Costs_Get", "title": "Costs_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_CreateOrUpdate.json index c94c89d77d75..73f523e29d0d 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_CreateOrUpdate.json @@ -72,4 +72,4 @@ }, "operationId": "CustomImages_CreateOrUpdate", "title": "CustomImages_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Delete.json index e13e59e1b43c..82bc6b75b285 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Delete.json @@ -17,4 +17,4 @@ }, "operationId": "CustomImages_Delete", "title": "CustomImages_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Get.json index f4bbbc8c2914..13be3e2ca428 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Get.json @@ -34,4 +34,4 @@ }, "operationId": "CustomImages_Get", "title": "CustomImages_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_List.json index 8bef0834c762..6d9dae96fe4c 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_List.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_List.json @@ -34,4 +34,4 @@ }, "operationId": "CustomImages_List", "title": "CustomImages_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Update.json index d9651d981911..3106d5b207bd 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Update.json @@ -39,4 +39,4 @@ }, "operationId": "CustomImages_Update", "title": "CustomImages_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Attach.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Attach.json index 5d91bddf95d9..72dd79a80de6 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Attach.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Attach.json @@ -20,4 +20,4 @@ }, "operationId": "Disks_Attach", "title": "Disks_Attach" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_CreateOrUpdate.json index da80bf223947..7ec1e3222dbf 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_CreateOrUpdate.json @@ -52,4 +52,4 @@ }, "operationId": "Disks_CreateOrUpdate", "title": "Disks_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Delete.json index e6cf24f86a11..511644128abe 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Delete.json @@ -18,4 +18,4 @@ }, "operationId": "Disks_Delete", "title": "Disks_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Detach.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Detach.json index 20cf8e647567..e883f33f41b9 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Detach.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Detach.json @@ -20,4 +20,4 @@ }, "operationId": "Disks_Detach", "title": "Disks_Detach" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Get.json index 6d96b15e0542..49f3973a823e 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Get.json @@ -29,4 +29,4 @@ }, "operationId": "Disks_Get", "title": "Disks_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_List.json index 2337bea4c8fe..a3cde4e2a95d 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_List.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_List.json @@ -33,4 +33,4 @@ }, "operationId": "Disks_List", "title": "Disks_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Update.json index 24276f234a8a..d3cf6d1632f6 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Update.json @@ -36,4 +36,4 @@ }, "operationId": "Disks_Update", "title": "Disks_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_CreateOrUpdate.json index 5f658418bf09..b09582120db9 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_CreateOrUpdate.json @@ -57,4 +57,4 @@ }, "operationId": "Environments_CreateOrUpdate", "title": "Environments_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Delete.json index d73488e66229..87ab6bb3145a 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Delete.json @@ -18,4 +18,4 @@ }, "operationId": "Environments_Delete", "title": "Environments_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Get.json index 3ec5fd5272db..b8765a870d43 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Get.json @@ -30,4 +30,4 @@ }, "operationId": "Environments_Get", "title": "Environments_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_List.json index 74c4cd3b3d1d..e16a9c9cb781 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_List.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_List.json @@ -33,4 +33,4 @@ }, "operationId": "Environments_List", "title": "Environments_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Update.json index 1f3397ce562f..0ac4d2350493 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Update.json @@ -35,4 +35,4 @@ }, "operationId": "Environments_Update", "title": "Environments_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_CreateOrUpdate.json index 848332e0cfbe..255aecd3efa7 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_CreateOrUpdate.json @@ -163,4 +163,4 @@ }, "operationId": "Formulas_CreateOrUpdate", "title": "Formulas_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Delete.json index 967c661e9a4f..15416a09a159 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Delete.json @@ -12,4 +12,4 @@ }, "operationId": "Formulas_Delete", "title": "Formulas_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Get.json index 3556e5de6f7f..44ac7238ab5b 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Get.json @@ -62,4 +62,4 @@ }, "operationId": "Formulas_Get", "title": "Formulas_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_List.json index 9f61a486e3b9..92d40854e2e9 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_List.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_List.json @@ -65,4 +65,4 @@ }, "operationId": "Formulas_List", "title": "Formulas_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Update.json index a54c2bb5d462..3e47f7bdf256 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Update.json @@ -69,4 +69,4 @@ }, "operationId": "Formulas_Update", "title": "Formulas_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GalleryImages_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GalleryImages_List.json index 657979a5a6fc..62d6dc4c5828 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GalleryImages_List.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GalleryImages_List.json @@ -61,4 +61,4 @@ }, "operationId": "GalleryImages_List", "title": "GalleryImages_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_CreateOrUpdate.json index b6e4f463c706..b2c4ebd72863 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_CreateOrUpdate.json @@ -93,4 +93,4 @@ }, "operationId": "GlobalSchedules_CreateOrUpdate", "title": "GlobalSchedules_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Delete.json index 29567b9b2d31..dd9e34e31e45 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Delete.json @@ -11,4 +11,4 @@ }, "operationId": "GlobalSchedules_Delete", "title": "GlobalSchedules_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Execute.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Execute.json index b7a159823f81..4e5c1d45335a 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Execute.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Execute.json @@ -15,4 +15,4 @@ }, "operationId": "GlobalSchedules_Execute", "title": "GlobalSchedules_Execute" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Get.json index d9e4e9319bc3..3530e0027f28 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Get.json @@ -42,4 +42,4 @@ }, "operationId": "GlobalSchedules_Get", "title": "GlobalSchedules_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_ListByResourceGroup.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_ListByResourceGroup.json index 80ae3fcffa0c..4180b1bc1f25 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_ListByResourceGroup.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_ListByResourceGroup.json @@ -42,4 +42,4 @@ }, "operationId": "GlobalSchedules_ListByResourceGroup", "title": "GlobalSchedules_ListByResourceGroup" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_ListBySubscription.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_ListBySubscription.json index 635d5d52e30b..e2654bb23605 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_ListBySubscription.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_ListBySubscription.json @@ -10,4 +10,4 @@ }, "operationId": "GlobalSchedules_ListBySubscription", "title": "GlobalSchedules_ListBySubscription" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Retarget.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Retarget.json index 13dd94ac7337..44ef6c77761e 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Retarget.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Retarget.json @@ -19,4 +19,4 @@ }, "operationId": "GlobalSchedules_Retarget", "title": "GlobalSchedules_Retarget" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Update.json index 1743d5838c6b..4d26babda70d 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_Update.json @@ -47,4 +47,4 @@ }, "operationId": "GlobalSchedules_Update", "title": "GlobalSchedules_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ClaimAnyVm.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ClaimAnyVm.json index 06920966b8bd..854b75d5cd23 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ClaimAnyVm.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ClaimAnyVm.json @@ -16,4 +16,4 @@ }, "operationId": "Labs_ClaimAnyVm", "title": "Labs_ClaimAnyVm" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateEnvironment.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateEnvironment.json index ad2900b89d22..5d8349e7fef2 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateEnvironment.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateEnvironment.json @@ -39,4 +39,4 @@ }, "operationId": "Labs_CreateEnvironment", "title": "Labs_CreateEnvironment" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateOrUpdate.json index 40d3a69eb1d6..23be3b348a50 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateOrUpdate.json @@ -80,4 +80,4 @@ }, "operationId": "Labs_CreateOrUpdate", "title": "Labs_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Delete.json index 306b9a9bcd0a..4f142111991b 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Delete.json @@ -16,4 +16,4 @@ }, "operationId": "Labs_Delete", "title": "Labs_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ExportResourceUsage.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ExportResourceUsage.json index 7d1e561924e9..6ef5ee9c9bb6 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ExportResourceUsage.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ExportResourceUsage.json @@ -19,4 +19,4 @@ }, "operationId": "Labs_ExportResourceUsage", "title": "Labs_ExportResourceUsage" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_GenerateUploadUri.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_GenerateUploadUri.json index 36d06f281323..8ee7a4128bd4 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_GenerateUploadUri.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_GenerateUploadUri.json @@ -17,4 +17,4 @@ }, "operationId": "Labs_GenerateUploadUri", "title": "Labs_GenerateUploadUri" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Get.json index 76ded1b6c611..2e555f7b602d 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Get.json @@ -45,4 +45,4 @@ }, "operationId": "Labs_Get", "title": "Labs_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ImportVirtualMachine.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ImportVirtualMachine.json index 4d680cc7491b..ec2d8f1390d7 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ImportVirtualMachine.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ImportVirtualMachine.json @@ -19,4 +19,4 @@ }, "operationId": "Labs_ImportVirtualMachine", "title": "Labs_ImportVirtualMachine" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListByResourceGroup.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListByResourceGroup.json index 067f8c5f1f04..8a9e116f548a 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListByResourceGroup.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListByResourceGroup.json @@ -44,4 +44,4 @@ }, "operationId": "Labs_ListByResourceGroup", "title": "Labs_ListByResourceGroup" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListBySubscription.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListBySubscription.json index f1066e4cc506..79a6a0940d6d 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListBySubscription.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListBySubscription.json @@ -81,4 +81,4 @@ }, "operationId": "Labs_ListBySubscription", "title": "Labs_ListBySubscription" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListVhds.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListVhds.json index 6dc1ea1101c1..779547ca97c4 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListVhds.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListVhds.json @@ -21,4 +21,4 @@ }, "operationId": "Labs_ListVhds", "title": "Labs_ListVhds" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Update.json index 4b1b9d21b744..f781f867ed90 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Update.json @@ -42,4 +42,4 @@ }, "operationId": "Labs_Update", "title": "Labs_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_CreateOrUpdate.json index 2e1f03d4a63e..1be5876a5f23 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_CreateOrUpdate.json @@ -73,4 +73,4 @@ }, "operationId": "NotificationChannels_CreateOrUpdate", "title": "NotificationChannels_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Delete.json index 71c07fcd0ba5..181dde96bc7f 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Delete.json @@ -12,4 +12,4 @@ }, "operationId": "NotificationChannels_Delete", "title": "NotificationChannels_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Get.json index be5dad100fd0..72d37f63062c 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Get.json @@ -35,4 +35,4 @@ }, "operationId": "NotificationChannels_Get", "title": "NotificationChannels_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_List.json index 99bf97116afa..0d16e0487c0a 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_List.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_List.json @@ -60,4 +60,4 @@ }, "operationId": "NotificationChannels_List", "title": "NotificationChannels_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Notify.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Notify.json index 148f61eaa06c..266171432b44 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Notify.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Notify.json @@ -15,4 +15,4 @@ }, "operationId": "NotificationChannels_Notify", "title": "NotificationChannels_Notify" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Update.json index 984f119350ae..5e1609cfaf39 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Update.json @@ -36,4 +36,4 @@ }, "operationId": "NotificationChannels_Update", "title": "NotificationChannels_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Operations_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Operations_Get.json index cd27a572cd78..33d69e1f5223 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Operations_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Operations_Get.json @@ -21,4 +21,4 @@ }, "operationId": "Operations_Get", "title": "Operations_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_CreateOrUpdate.json index 44bfcbfc4f03..038bcc90c202 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_CreateOrUpdate.json @@ -69,4 +69,4 @@ }, "operationId": "Policies_CreateOrUpdate", "title": "Policies_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_Delete.json index 484dd846ee71..f9139b2dc873 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_Delete.json @@ -13,4 +13,4 @@ }, "operationId": "Policies_Delete", "title": "Policies_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_Get.json index 835bdceeb068..1b5745f169e8 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_Get.json @@ -33,4 +33,4 @@ }, "operationId": "Policies_Get", "title": "Policies_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_List.json index fd502d322b37..cbebe4fd94cb 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_List.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_List.json @@ -37,4 +37,4 @@ }, "operationId": "Policies_List", "title": "Policies_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_Update.json index c65763f0b7ce..ca6b90d2952f 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Policies_Update.json @@ -38,4 +38,4 @@ }, "operationId": "Policies_Update", "title": "Policies_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/PolicySets_EvaluatePolicies.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/PolicySets_EvaluatePolicies.json index 2189a3ee66ab..804a9e935e33 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/PolicySets_EvaluatePolicies.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/PolicySets_EvaluatePolicies.json @@ -33,4 +33,4 @@ }, "operationId": "PolicySets_EvaluatePolicies", "title": "PolicySets_EvaluatePolicies" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ProviderOperations_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ProviderOperations_List.json index b38ae25d0407..1f18bab05135 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ProviderOperations_List.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ProviderOperations_List.json @@ -858,4 +858,4 @@ }, "operationId": "ProviderOperations_List", "title": "ProviderOperations_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_CreateOrUpdate.json index cf897518558c..d7ccdbf71e6d 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_CreateOrUpdate.json @@ -125,4 +125,4 @@ }, "operationId": "Schedules_CreateOrUpdate", "title": "Schedules_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Delete.json index 6049b7fbc45d..628b987dd9cb 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Delete.json @@ -12,4 +12,4 @@ }, "operationId": "Schedules_Delete", "title": "Schedules_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Execute.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Execute.json index 16513c9c5d5c..18f4b19de759 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Execute.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Execute.json @@ -16,4 +16,4 @@ }, "operationId": "Schedules_Execute", "title": "Schedules_Execute" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Get.json index fafdb792a4bf..c32a2985cb4f 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Get.json @@ -51,4 +51,4 @@ }, "operationId": "Schedules_Get", "title": "Schedules_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_List.json index 19031aa5d97d..29c942143860 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_List.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_List.json @@ -54,4 +54,4 @@ }, "operationId": "Schedules_List", "title": "Schedules_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_ListApplicable.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_ListApplicable.json index 0b4e36b31f62..605bf7142b1a 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_ListApplicable.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_ListApplicable.json @@ -55,4 +55,4 @@ }, "operationId": "Schedules_ListApplicable", "title": "Schedules_ListApplicable" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Update.json index 51a8975e65ac..1a05dffc7637 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Schedules_Update.json @@ -56,4 +56,4 @@ }, "operationId": "Schedules_Update", "title": "Schedules_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_CreateOrUpdate.json index 643ac4815a47..ee35f8641802 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_CreateOrUpdate.json @@ -36,4 +36,4 @@ }, "operationId": "Secrets_CreateOrUpdate", "title": "Secrets_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Delete.json index 068d64a0ee8a..67d580ca9b81 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Delete.json @@ -13,4 +13,4 @@ }, "operationId": "Secrets_Delete", "title": "Secrets_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Get.json index df74669e6ca9..dc38d4422be8 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Get.json @@ -21,4 +21,4 @@ }, "operationId": "Secrets_Get", "title": "Secrets_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_List.json index df2e35f93e53..0ba1b168f7e9 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_List.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_List.json @@ -32,4 +32,4 @@ }, "operationId": "Secrets_List", "title": "Secrets_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Update.json index 7544258d58d5..7ded3937f8b2 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Update.json @@ -26,4 +26,4 @@ }, "operationId": "Secrets_Update", "title": "Secrets_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_CreateOrUpdate.json index 9c3b0e016d6b..ad01b56fde27 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_CreateOrUpdate.json @@ -127,4 +127,4 @@ }, "operationId": "ServiceFabricSchedules_CreateOrUpdate", "title": "ServiceFabricSchedules_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Delete.json index 3451e5e99849..cc151ce16bfb 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Delete.json @@ -14,4 +14,4 @@ }, "operationId": "ServiceFabricSchedules_Delete", "title": "ServiceFabricSchedules_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Execute.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Execute.json index 4cb21d55c5f5..1bf76912abd2 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Execute.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Execute.json @@ -18,4 +18,4 @@ }, "operationId": "ServiceFabricSchedules_Execute", "title": "ServiceFabricSchedules_Execute" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Get.json index d4ea1780fb55..72e8f82cc1e8 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Get.json @@ -51,4 +51,4 @@ }, "operationId": "ServiceFabricSchedules_Get", "title": "ServiceFabricSchedules_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_List.json index c6be9125f350..47d64d59f2cb 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_List.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_List.json @@ -54,4 +54,4 @@ }, "operationId": "ServiceFabricSchedules_List", "title": "ServiceFabricSchedules_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Update.json index 96a7701556cc..e0a05f1d823c 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabricSchedules_Update.json @@ -56,4 +56,4 @@ }, "operationId": "ServiceFabricSchedules_Update", "title": "ServiceFabricSchedules_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_CreateOrUpdate.json index c7f6d8a78d1f..b613efd85302 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_CreateOrUpdate.json @@ -233,4 +233,4 @@ }, "operationId": "ServiceFabrics_CreateOrUpdate", "title": "ServiceFabrics_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Delete.json index e69e19ce508a..2dbe4a6197bb 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Delete.json @@ -18,4 +18,4 @@ }, "operationId": "ServiceFabrics_Delete", "title": "ServiceFabrics_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Get.json index 5a14ac108fbc..7d6a473b1458 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Get.json @@ -117,4 +117,4 @@ }, "operationId": "ServiceFabrics_Get", "title": "ServiceFabrics_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_List.json index 2e4be9d8a67c..5970cc04e13c 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_List.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_List.json @@ -120,4 +120,4 @@ }, "operationId": "ServiceFabrics_List", "title": "ServiceFabrics_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_ListApplicableSchedules.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_ListApplicableSchedules.json index 762c3fe79370..a815504446c4 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_ListApplicableSchedules.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_ListApplicableSchedules.json @@ -102,4 +102,4 @@ }, "operationId": "ServiceFabrics_ListApplicableSchedules", "title": "ServiceFabrics_ListApplicableSchedules" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Start.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Start.json index c17021f8902e..d9995665cc75 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Start.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Start.json @@ -17,4 +17,4 @@ }, "operationId": "ServiceFabrics_Start", "title": "ServiceFabrics_Start" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Stop.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Stop.json index 7c9220afccfa..c6020eface0a 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Stop.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Stop.json @@ -17,4 +17,4 @@ }, "operationId": "ServiceFabrics_Stop", "title": "ServiceFabrics_Stop" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Update.json index c36b3f97ffb3..1d2cbec7ff36 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Update.json @@ -122,4 +122,4 @@ }, "operationId": "ServiceFabrics_Update", "title": "ServiceFabrics_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_CreateOrUpdate.json index b2310d44670a..d61c8d98fa5f 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_CreateOrUpdate.json @@ -56,4 +56,4 @@ }, "operationId": "ServiceRunners_CreateOrUpdate", "title": "ServiceRunners_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Delete.json index 926cfeb255a6..74af4b262d1c 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Delete.json @@ -12,4 +12,4 @@ }, "operationId": "ServiceRunners_Delete", "title": "ServiceRunners_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Get.json index 63e9e222f0bb..05027cbb83a1 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Get.json @@ -27,4 +27,4 @@ }, "operationId": "ServiceRunners_Get", "title": "ServiceRunners_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_CreateOrUpdate.json index 45a2be58bb91..69daa78e6d03 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_CreateOrUpdate.json @@ -83,4 +83,4 @@ }, "operationId": "Users_CreateOrUpdate", "title": "Users_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Delete.json index 6d3e3e554867..4f9c6fe50d41 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Delete.json @@ -17,4 +17,4 @@ }, "operationId": "Users_Delete", "title": "Users_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Get.json index 92439518e374..07888edd26d4 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Get.json @@ -37,4 +37,4 @@ }, "operationId": "Users_Get", "title": "Users_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_List.json index e2f62e929a36..5d7361c328b4 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_List.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_List.json @@ -40,4 +40,4 @@ }, "operationId": "Users_List", "title": "Users_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Update.json index 18162040ced6..854d1cd637fe 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Update.json @@ -42,4 +42,4 @@ }, "operationId": "Users_Update", "title": "Users_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_CreateOrUpdate.json index f9d40b3f404f..ab880b3a89d9 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_CreateOrUpdate.json @@ -124,4 +124,4 @@ }, "operationId": "VirtualMachineSchedules_CreateOrUpdate", "title": "VirtualMachineSchedules_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Delete.json index 6d1ab802ea5b..f5f81911ceb8 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Delete.json @@ -13,4 +13,4 @@ }, "operationId": "VirtualMachineSchedules_Delete", "title": "VirtualMachineSchedules_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Execute.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Execute.json index ff00dbff4f1e..38d13297ff4b 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Execute.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Execute.json @@ -17,4 +17,4 @@ }, "operationId": "VirtualMachineSchedules_Execute", "title": "VirtualMachineSchedules_Execute" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Get.json index c0de83a4424d..e5be2ab5479b 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Get.json @@ -51,4 +51,4 @@ }, "operationId": "VirtualMachineSchedules_Get", "title": "VirtualMachineSchedules_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_List.json index ea4e2a532c78..f27c9fe8828d 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_List.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_List.json @@ -54,4 +54,4 @@ }, "operationId": "VirtualMachineSchedules_List", "title": "VirtualMachineSchedules_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Update.json index 7bfc5eac1618..b7527cf8c708 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachineSchedules_Update.json @@ -56,4 +56,4 @@ }, "operationId": "VirtualMachineSchedules_Update", "title": "VirtualMachineSchedules_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_AddDataDisk.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_AddDataDisk.json index c4fd98d25dd1..bbfdc5149ef8 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_AddDataDisk.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_AddDataDisk.json @@ -24,4 +24,4 @@ }, "operationId": "VirtualMachines_AddDataDisk", "title": "VirtualMachines_AddDataDisk" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_ApplyArtifacts.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_ApplyArtifacts.json index 2582d98d0c47..104c1c6e9088 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_ApplyArtifacts.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_ApplyArtifacts.json @@ -23,4 +23,4 @@ }, "operationId": "VirtualMachines_ApplyArtifacts", "title": "VirtualMachines_ApplyArtifacts" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Claim.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Claim.json index 886ea7ad5a82..0ed82f2b076d 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Claim.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Claim.json @@ -16,4 +16,4 @@ }, "operationId": "VirtualMachines_Claim", "title": "VirtualMachines_Claim" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_CreateOrUpdate.json index bd8e5d6be401..4ba31c051205 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_CreateOrUpdate.json @@ -115,4 +115,4 @@ }, "operationId": "VirtualMachines_CreateOrUpdate", "title": "VirtualMachines_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Delete.json index 26e18b8b089b..91fbfc00b8b7 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Delete.json @@ -17,4 +17,4 @@ }, "operationId": "VirtualMachines_Delete", "title": "VirtualMachines_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_DetachDataDisk.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_DetachDataDisk.json index 49cc11d05379..cdefea609245 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_DetachDataDisk.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_DetachDataDisk.json @@ -19,4 +19,4 @@ }, "operationId": "VirtualMachines_DetachDataDisk", "title": "VirtualMachines_DetachDataDisk" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Get.json index 05a429b64f27..b609eca03f97 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Get.json @@ -53,4 +53,4 @@ }, "operationId": "VirtualMachines_Get", "title": "VirtualMachines_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_GetRdpFileContents.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_GetRdpFileContents.json index 467839ecee56..d999cc7a2d7f 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_GetRdpFileContents.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_GetRdpFileContents.json @@ -15,4 +15,4 @@ }, "operationId": "VirtualMachines_GetRdpFileContents", "title": "VirtualMachines_GetRdpFileContents" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_List.json index d598b41c88b7..36a9fc33b715 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_List.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_List.json @@ -56,4 +56,4 @@ }, "operationId": "VirtualMachines_List", "title": "VirtualMachines_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_ListApplicableSchedules.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_ListApplicableSchedules.json index 45b6e9212204..b878e1ded820 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_ListApplicableSchedules.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_ListApplicableSchedules.json @@ -87,4 +87,4 @@ }, "operationId": "VirtualMachines_ListApplicableSchedules", "title": "VirtualMachines_ListApplicableSchedules" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Redeploy.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Redeploy.json index 312ba83f4a75..a82ca58b75a7 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Redeploy.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Redeploy.json @@ -17,4 +17,4 @@ }, "operationId": "VirtualMachines_Redeploy", "title": "VirtualMachines_Redeploy" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Resize.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Resize.json index 7bb01f0f082a..d3cdcc8e30e2 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Resize.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Resize.json @@ -20,4 +20,4 @@ }, "operationId": "VirtualMachines_Resize", "title": "VirtualMachines_Resize" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Restart.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Restart.json index 0bd8b7cb883f..bc85a8990a52 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Restart.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Restart.json @@ -17,4 +17,4 @@ }, "operationId": "VirtualMachines_Restart", "title": "VirtualMachines_Restart" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Start.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Start.json index 80ed19f88473..7a970b7cd54c 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Start.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Start.json @@ -17,4 +17,4 @@ }, "operationId": "VirtualMachines_Start", "title": "VirtualMachines_Start" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Stop.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Stop.json index f2857a1e580e..9e160ff47fc3 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Stop.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Stop.json @@ -16,4 +16,4 @@ }, "operationId": "VirtualMachines_Stop", "title": "VirtualMachines_Stop" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_TransferDisks.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_TransferDisks.json index 97ce8e5bcc8f..f92da98a1888 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_TransferDisks.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_TransferDisks.json @@ -16,4 +16,4 @@ }, "operationId": "VirtualMachines_TransferDisks", "title": "VirtualMachines_TransferDisks" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_UnClaim.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_UnClaim.json index ab0cd802c505..0b3b9b9d2c9c 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_UnClaim.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_UnClaim.json @@ -17,4 +17,4 @@ }, "operationId": "VirtualMachines_UnClaim", "title": "VirtualMachines_UnClaim" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Update.json index 0038e75acc52..44a7e16f2135 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_Update.json @@ -54,4 +54,4 @@ }, "operationId": "VirtualMachines_Update", "title": "VirtualMachines_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_CreateOrUpdate.json index 641cafcbf593..67ecc134909a 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_CreateOrUpdate.json @@ -46,4 +46,4 @@ }, "operationId": "VirtualNetworks_CreateOrUpdate", "title": "VirtualNetworks_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Delete.json index 862a877b643b..0afd481bedec 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Delete.json @@ -17,4 +17,4 @@ }, "operationId": "VirtualNetworks_Delete", "title": "VirtualNetworks_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Get.json index 4d891a5be7dd..2bb4fe724969 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Get.json @@ -53,4 +53,4 @@ }, "operationId": "VirtualNetworks_Get", "title": "VirtualNetworks_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_List.json index a73e4edd5f54..df963297cf04 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_List.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_List.json @@ -56,4 +56,4 @@ }, "operationId": "VirtualNetworks_List", "title": "VirtualNetworks_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Update.json index fd1d4c372389..efbb53085882 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Update.json @@ -51,4 +51,4 @@ }, "operationId": "VirtualNetworks_Update", "title": "VirtualNetworks_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Delete.json index 1e565af4e260..c243741e5378 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Delete.json @@ -12,4 +12,4 @@ }, "operationId": "ArtifactSources_Delete", "title": "ArtifactSources_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Get.json index ebb67aa0ec99..0f56aaf30a09 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Get.json @@ -34,4 +34,4 @@ }, "operationId": "ArtifactSources_Get", "title": "ArtifactSources_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_List.json index 67a7b745566a..b8471dd5df16 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_List.json @@ -37,4 +37,4 @@ }, "operationId": "ArtifactSources_List", "title": "ArtifactSources_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Update.json index cdc9dd40bbff..ad5daa171224 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Update.json @@ -39,4 +39,4 @@ }, "operationId": "ArtifactSources_Update", "title": "ArtifactSources_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_GenerateArmTemplate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_GenerateArmTemplate.json index 98a3a3cfbbfd..0acb236e641c 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_GenerateArmTemplate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_GenerateArmTemplate.json @@ -67,4 +67,4 @@ }, "operationId": "Artifacts_GenerateArmTemplate", "title": "Artifacts_GenerateArmTemplate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_Get.json index 8a2f424eae27..263790c8e021 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_Get.json @@ -37,4 +37,4 @@ }, "operationId": "Artifacts_Get", "title": "Artifacts_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_List.json index 6958741acf0a..2fbff482c60b 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_List.json @@ -40,4 +40,4 @@ }, "operationId": "Artifacts_List", "title": "Artifacts_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_CreateOrUpdate.json index 3df62456befb..b00243b84b04 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_CreateOrUpdate.json @@ -212,4 +212,4 @@ }, "operationId": "Costs_CreateOrUpdate", "title": "Costs_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_Get.json index b78510fcaeb2..4cd5b3cc261f 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_Get.json @@ -83,4 +83,4 @@ }, "operationId": "Costs_Get", "title": "Costs_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_CreateOrUpdate.json index c94c89d77d75..73f523e29d0d 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_CreateOrUpdate.json @@ -72,4 +72,4 @@ }, "operationId": "CustomImages_CreateOrUpdate", "title": "CustomImages_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Delete.json index e13e59e1b43c..82bc6b75b285 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Delete.json @@ -17,4 +17,4 @@ }, "operationId": "CustomImages_Delete", "title": "CustomImages_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Get.json index f4bbbc8c2914..13be3e2ca428 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Get.json @@ -34,4 +34,4 @@ }, "operationId": "CustomImages_Get", "title": "CustomImages_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_List.json index 8bef0834c762..6d9dae96fe4c 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_List.json @@ -34,4 +34,4 @@ }, "operationId": "CustomImages_List", "title": "CustomImages_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Update.json index d9651d981911..3106d5b207bd 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Update.json @@ -39,4 +39,4 @@ }, "operationId": "CustomImages_Update", "title": "CustomImages_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Attach.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Attach.json index 5d91bddf95d9..72dd79a80de6 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Attach.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Attach.json @@ -20,4 +20,4 @@ }, "operationId": "Disks_Attach", "title": "Disks_Attach" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_CreateOrUpdate.json index da80bf223947..7ec1e3222dbf 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_CreateOrUpdate.json @@ -52,4 +52,4 @@ }, "operationId": "Disks_CreateOrUpdate", "title": "Disks_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Delete.json index e6cf24f86a11..511644128abe 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Delete.json @@ -18,4 +18,4 @@ }, "operationId": "Disks_Delete", "title": "Disks_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Detach.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Detach.json index 20cf8e647567..e883f33f41b9 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Detach.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Detach.json @@ -20,4 +20,4 @@ }, "operationId": "Disks_Detach", "title": "Disks_Detach" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Get.json index 6d96b15e0542..49f3973a823e 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Get.json @@ -29,4 +29,4 @@ }, "operationId": "Disks_Get", "title": "Disks_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_List.json index 2337bea4c8fe..a3cde4e2a95d 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_List.json @@ -33,4 +33,4 @@ }, "operationId": "Disks_List", "title": "Disks_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Update.json index 24276f234a8a..d3cf6d1632f6 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Update.json @@ -36,4 +36,4 @@ }, "operationId": "Disks_Update", "title": "Disks_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_CreateOrUpdate.json index 5f658418bf09..b09582120db9 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_CreateOrUpdate.json @@ -57,4 +57,4 @@ }, "operationId": "Environments_CreateOrUpdate", "title": "Environments_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Delete.json index d73488e66229..87ab6bb3145a 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Delete.json @@ -18,4 +18,4 @@ }, "operationId": "Environments_Delete", "title": "Environments_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Get.json index 3ec5fd5272db..b8765a870d43 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Get.json @@ -30,4 +30,4 @@ }, "operationId": "Environments_Get", "title": "Environments_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_List.json index 74c4cd3b3d1d..e16a9c9cb781 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_List.json @@ -33,4 +33,4 @@ }, "operationId": "Environments_List", "title": "Environments_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Update.json index 1f3397ce562f..0ac4d2350493 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Update.json @@ -35,4 +35,4 @@ }, "operationId": "Environments_Update", "title": "Environments_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_CreateOrUpdate.json index 848332e0cfbe..255aecd3efa7 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_CreateOrUpdate.json @@ -163,4 +163,4 @@ }, "operationId": "Formulas_CreateOrUpdate", "title": "Formulas_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Delete.json index 967c661e9a4f..15416a09a159 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Delete.json @@ -12,4 +12,4 @@ }, "operationId": "Formulas_Delete", "title": "Formulas_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Get.json index 3556e5de6f7f..44ac7238ab5b 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Get.json @@ -62,4 +62,4 @@ }, "operationId": "Formulas_Get", "title": "Formulas_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_List.json index 9f61a486e3b9..92d40854e2e9 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_List.json @@ -65,4 +65,4 @@ }, "operationId": "Formulas_List", "title": "Formulas_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Update.json index a54c2bb5d462..3e47f7bdf256 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Update.json @@ -69,4 +69,4 @@ }, "operationId": "Formulas_Update", "title": "Formulas_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GalleryImages_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GalleryImages_List.json index 657979a5a6fc..62d6dc4c5828 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GalleryImages_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GalleryImages_List.json @@ -61,4 +61,4 @@ }, "operationId": "GalleryImages_List", "title": "GalleryImages_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_CreateOrUpdate.json index b6e4f463c706..b2c4ebd72863 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_CreateOrUpdate.json @@ -93,4 +93,4 @@ }, "operationId": "GlobalSchedules_CreateOrUpdate", "title": "GlobalSchedules_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Delete.json index 29567b9b2d31..dd9e34e31e45 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Delete.json @@ -11,4 +11,4 @@ }, "operationId": "GlobalSchedules_Delete", "title": "GlobalSchedules_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Execute.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Execute.json index b7a159823f81..4e5c1d45335a 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Execute.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Execute.json @@ -15,4 +15,4 @@ }, "operationId": "GlobalSchedules_Execute", "title": "GlobalSchedules_Execute" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Get.json index d9e4e9319bc3..3530e0027f28 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Get.json @@ -42,4 +42,4 @@ }, "operationId": "GlobalSchedules_Get", "title": "GlobalSchedules_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListByResourceGroup.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListByResourceGroup.json index 80ae3fcffa0c..4180b1bc1f25 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListByResourceGroup.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListByResourceGroup.json @@ -42,4 +42,4 @@ }, "operationId": "GlobalSchedules_ListByResourceGroup", "title": "GlobalSchedules_ListByResourceGroup" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListBySubscription.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListBySubscription.json index 635d5d52e30b..e2654bb23605 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListBySubscription.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListBySubscription.json @@ -10,4 +10,4 @@ }, "operationId": "GlobalSchedules_ListBySubscription", "title": "GlobalSchedules_ListBySubscription" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Retarget.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Retarget.json index 13dd94ac7337..44ef6c77761e 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Retarget.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Retarget.json @@ -19,4 +19,4 @@ }, "operationId": "GlobalSchedules_Retarget", "title": "GlobalSchedules_Retarget" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Update.json index 1743d5838c6b..4d26babda70d 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Update.json @@ -47,4 +47,4 @@ }, "operationId": "GlobalSchedules_Update", "title": "GlobalSchedules_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ClaimAnyVm.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ClaimAnyVm.json index 06920966b8bd..854b75d5cd23 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ClaimAnyVm.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ClaimAnyVm.json @@ -16,4 +16,4 @@ }, "operationId": "Labs_ClaimAnyVm", "title": "Labs_ClaimAnyVm" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateEnvironment.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateEnvironment.json index ad2900b89d22..5d8349e7fef2 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateEnvironment.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateEnvironment.json @@ -39,4 +39,4 @@ }, "operationId": "Labs_CreateEnvironment", "title": "Labs_CreateEnvironment" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateOrUpdate.json index 40d3a69eb1d6..23be3b348a50 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateOrUpdate.json @@ -80,4 +80,4 @@ }, "operationId": "Labs_CreateOrUpdate", "title": "Labs_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Delete.json index 306b9a9bcd0a..4f142111991b 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Delete.json @@ -16,4 +16,4 @@ }, "operationId": "Labs_Delete", "title": "Labs_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ExportResourceUsage.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ExportResourceUsage.json index 7d1e561924e9..6ef5ee9c9bb6 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ExportResourceUsage.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ExportResourceUsage.json @@ -19,4 +19,4 @@ }, "operationId": "Labs_ExportResourceUsage", "title": "Labs_ExportResourceUsage" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_GenerateUploadUri.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_GenerateUploadUri.json index 36d06f281323..8ee7a4128bd4 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_GenerateUploadUri.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_GenerateUploadUri.json @@ -17,4 +17,4 @@ }, "operationId": "Labs_GenerateUploadUri", "title": "Labs_GenerateUploadUri" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Get.json index 76ded1b6c611..2e555f7b602d 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Get.json @@ -45,4 +45,4 @@ }, "operationId": "Labs_Get", "title": "Labs_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ImportVirtualMachine.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ImportVirtualMachine.json index 4d680cc7491b..ec2d8f1390d7 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ImportVirtualMachine.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ImportVirtualMachine.json @@ -19,4 +19,4 @@ }, "operationId": "Labs_ImportVirtualMachine", "title": "Labs_ImportVirtualMachine" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListByResourceGroup.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListByResourceGroup.json index 067f8c5f1f04..8a9e116f548a 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListByResourceGroup.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListByResourceGroup.json @@ -44,4 +44,4 @@ }, "operationId": "Labs_ListByResourceGroup", "title": "Labs_ListByResourceGroup" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListBySubscription.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListBySubscription.json index f1066e4cc506..79a6a0940d6d 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListBySubscription.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListBySubscription.json @@ -81,4 +81,4 @@ }, "operationId": "Labs_ListBySubscription", "title": "Labs_ListBySubscription" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListVhds.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListVhds.json index 6dc1ea1101c1..779547ca97c4 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListVhds.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListVhds.json @@ -21,4 +21,4 @@ }, "operationId": "Labs_ListVhds", "title": "Labs_ListVhds" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Update.json index 4b1b9d21b744..f781f867ed90 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Update.json @@ -42,4 +42,4 @@ }, "operationId": "Labs_Update", "title": "Labs_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_CreateOrUpdate.json index 2e1f03d4a63e..1be5876a5f23 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_CreateOrUpdate.json @@ -73,4 +73,4 @@ }, "operationId": "NotificationChannels_CreateOrUpdate", "title": "NotificationChannels_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Delete.json index 71c07fcd0ba5..181dde96bc7f 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Delete.json @@ -12,4 +12,4 @@ }, "operationId": "NotificationChannels_Delete", "title": "NotificationChannels_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Get.json index be5dad100fd0..72d37f63062c 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Get.json @@ -35,4 +35,4 @@ }, "operationId": "NotificationChannels_Get", "title": "NotificationChannels_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_List.json index 99bf97116afa..0d16e0487c0a 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_List.json @@ -60,4 +60,4 @@ }, "operationId": "NotificationChannels_List", "title": "NotificationChannels_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Notify.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Notify.json index 148f61eaa06c..266171432b44 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Notify.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Notify.json @@ -15,4 +15,4 @@ }, "operationId": "NotificationChannels_Notify", "title": "NotificationChannels_Notify" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Update.json index 984f119350ae..5e1609cfaf39 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Update.json @@ -36,4 +36,4 @@ }, "operationId": "NotificationChannels_Update", "title": "NotificationChannels_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Operations_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Operations_Get.json index cd27a572cd78..33d69e1f5223 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Operations_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Operations_Get.json @@ -21,4 +21,4 @@ }, "operationId": "Operations_Get", "title": "Operations_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_CreateOrUpdate.json index 44bfcbfc4f03..038bcc90c202 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_CreateOrUpdate.json @@ -69,4 +69,4 @@ }, "operationId": "Policies_CreateOrUpdate", "title": "Policies_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Delete.json index 484dd846ee71..f9139b2dc873 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Delete.json @@ -13,4 +13,4 @@ }, "operationId": "Policies_Delete", "title": "Policies_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Get.json index 835bdceeb068..1b5745f169e8 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Get.json @@ -33,4 +33,4 @@ }, "operationId": "Policies_Get", "title": "Policies_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_List.json index fd502d322b37..cbebe4fd94cb 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_List.json @@ -37,4 +37,4 @@ }, "operationId": "Policies_List", "title": "Policies_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Update.json index c65763f0b7ce..ca6b90d2952f 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Update.json @@ -38,4 +38,4 @@ }, "operationId": "Policies_Update", "title": "Policies_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json index 2189a3ee66ab..804a9e935e33 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json @@ -33,4 +33,4 @@ }, "operationId": "PolicySets_EvaluatePolicies", "title": "PolicySets_EvaluatePolicies" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_CreateOrUpdate.json index cf897518558c..d7ccdbf71e6d 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_CreateOrUpdate.json @@ -125,4 +125,4 @@ }, "operationId": "Schedules_CreateOrUpdate", "title": "Schedules_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Delete.json index 6049b7fbc45d..628b987dd9cb 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Delete.json @@ -12,4 +12,4 @@ }, "operationId": "Schedules_Delete", "title": "Schedules_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Execute.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Execute.json index 16513c9c5d5c..18f4b19de759 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Execute.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Execute.json @@ -16,4 +16,4 @@ }, "operationId": "Schedules_Execute", "title": "Schedules_Execute" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Get.json index fafdb792a4bf..c32a2985cb4f 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Get.json @@ -51,4 +51,4 @@ }, "operationId": "Schedules_Get", "title": "Schedules_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_List.json index 19031aa5d97d..29c942143860 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_List.json @@ -54,4 +54,4 @@ }, "operationId": "Schedules_List", "title": "Schedules_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_ListApplicable.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_ListApplicable.json index 0b4e36b31f62..605bf7142b1a 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_ListApplicable.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_ListApplicable.json @@ -55,4 +55,4 @@ }, "operationId": "Schedules_ListApplicable", "title": "Schedules_ListApplicable" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Update.json index 51a8975e65ac..1a05dffc7637 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Update.json @@ -56,4 +56,4 @@ }, "operationId": "Schedules_Update", "title": "Schedules_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_CreateOrUpdate.json index 643ac4815a47..ee35f8641802 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_CreateOrUpdate.json @@ -36,4 +36,4 @@ }, "operationId": "Secrets_CreateOrUpdate", "title": "Secrets_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Delete.json index 068d64a0ee8a..67d580ca9b81 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Delete.json @@ -13,4 +13,4 @@ }, "operationId": "Secrets_Delete", "title": "Secrets_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Get.json index df74669e6ca9..dc38d4422be8 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Get.json @@ -21,4 +21,4 @@ }, "operationId": "Secrets_Get", "title": "Secrets_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_List.json index df2e35f93e53..0ba1b168f7e9 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_List.json @@ -32,4 +32,4 @@ }, "operationId": "Secrets_List", "title": "Secrets_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Update.json index 7544258d58d5..7ded3937f8b2 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Update.json @@ -26,4 +26,4 @@ }, "operationId": "Secrets_Update", "title": "Secrets_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_CreateOrUpdate.json index 9c3b0e016d6b..ad01b56fde27 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_CreateOrUpdate.json @@ -127,4 +127,4 @@ }, "operationId": "ServiceFabricSchedules_CreateOrUpdate", "title": "ServiceFabricSchedules_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Delete.json index 3451e5e99849..cc151ce16bfb 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Delete.json @@ -14,4 +14,4 @@ }, "operationId": "ServiceFabricSchedules_Delete", "title": "ServiceFabricSchedules_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Execute.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Execute.json index 4cb21d55c5f5..1bf76912abd2 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Execute.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Execute.json @@ -18,4 +18,4 @@ }, "operationId": "ServiceFabricSchedules_Execute", "title": "ServiceFabricSchedules_Execute" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Get.json index d4ea1780fb55..72e8f82cc1e8 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Get.json @@ -51,4 +51,4 @@ }, "operationId": "ServiceFabricSchedules_Get", "title": "ServiceFabricSchedules_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_List.json index c6be9125f350..47d64d59f2cb 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_List.json @@ -54,4 +54,4 @@ }, "operationId": "ServiceFabricSchedules_List", "title": "ServiceFabricSchedules_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Update.json index 96a7701556cc..e0a05f1d823c 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Update.json @@ -56,4 +56,4 @@ }, "operationId": "ServiceFabricSchedules_Update", "title": "ServiceFabricSchedules_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_CreateOrUpdate.json index c7f6d8a78d1f..b613efd85302 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_CreateOrUpdate.json @@ -233,4 +233,4 @@ }, "operationId": "ServiceFabrics_CreateOrUpdate", "title": "ServiceFabrics_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Delete.json index e69e19ce508a..2dbe4a6197bb 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Delete.json @@ -18,4 +18,4 @@ }, "operationId": "ServiceFabrics_Delete", "title": "ServiceFabrics_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Get.json index 5a14ac108fbc..7d6a473b1458 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Get.json @@ -117,4 +117,4 @@ }, "operationId": "ServiceFabrics_Get", "title": "ServiceFabrics_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_List.json index 2e4be9d8a67c..5970cc04e13c 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_List.json @@ -120,4 +120,4 @@ }, "operationId": "ServiceFabrics_List", "title": "ServiceFabrics_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_ListApplicableSchedules.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_ListApplicableSchedules.json index 762c3fe79370..a815504446c4 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_ListApplicableSchedules.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_ListApplicableSchedules.json @@ -102,4 +102,4 @@ }, "operationId": "ServiceFabrics_ListApplicableSchedules", "title": "ServiceFabrics_ListApplicableSchedules" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Start.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Start.json index c17021f8902e..d9995665cc75 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Start.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Start.json @@ -17,4 +17,4 @@ }, "operationId": "ServiceFabrics_Start", "title": "ServiceFabrics_Start" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Stop.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Stop.json index 7c9220afccfa..c6020eface0a 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Stop.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Stop.json @@ -17,4 +17,4 @@ }, "operationId": "ServiceFabrics_Stop", "title": "ServiceFabrics_Stop" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Update.json index c36b3f97ffb3..1d2cbec7ff36 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Update.json @@ -122,4 +122,4 @@ }, "operationId": "ServiceFabrics_Update", "title": "ServiceFabrics_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_CreateOrUpdate.json index b2310d44670a..d61c8d98fa5f 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_CreateOrUpdate.json @@ -56,4 +56,4 @@ }, "operationId": "ServiceRunners_CreateOrUpdate", "title": "ServiceRunners_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Delete.json index 926cfeb255a6..74af4b262d1c 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Delete.json @@ -12,4 +12,4 @@ }, "operationId": "ServiceRunners_Delete", "title": "ServiceRunners_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Get.json index 63e9e222f0bb..05027cbb83a1 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Get.json @@ -27,4 +27,4 @@ }, "operationId": "ServiceRunners_Get", "title": "ServiceRunners_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_CreateOrUpdate.json index 45a2be58bb91..69daa78e6d03 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_CreateOrUpdate.json @@ -83,4 +83,4 @@ }, "operationId": "Users_CreateOrUpdate", "title": "Users_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Delete.json index 6d3e3e554867..4f9c6fe50d41 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Delete.json @@ -17,4 +17,4 @@ }, "operationId": "Users_Delete", "title": "Users_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Get.json index 92439518e374..07888edd26d4 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Get.json @@ -37,4 +37,4 @@ }, "operationId": "Users_Get", "title": "Users_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_List.json index e2f62e929a36..5d7361c328b4 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_List.json @@ -40,4 +40,4 @@ }, "operationId": "Users_List", "title": "Users_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Update.json index 18162040ced6..854d1cd637fe 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Update.json @@ -42,4 +42,4 @@ }, "operationId": "Users_Update", "title": "Users_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_CreateOrUpdate.json index f9d40b3f404f..ab880b3a89d9 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_CreateOrUpdate.json @@ -124,4 +124,4 @@ }, "operationId": "VirtualMachineSchedules_CreateOrUpdate", "title": "VirtualMachineSchedules_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Delete.json index 6d1ab802ea5b..f5f81911ceb8 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Delete.json @@ -13,4 +13,4 @@ }, "operationId": "VirtualMachineSchedules_Delete", "title": "VirtualMachineSchedules_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Execute.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Execute.json index ff00dbff4f1e..38d13297ff4b 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Execute.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Execute.json @@ -17,4 +17,4 @@ }, "operationId": "VirtualMachineSchedules_Execute", "title": "VirtualMachineSchedules_Execute" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Get.json index c0de83a4424d..e5be2ab5479b 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Get.json @@ -51,4 +51,4 @@ }, "operationId": "VirtualMachineSchedules_Get", "title": "VirtualMachineSchedules_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_List.json index ea4e2a532c78..f27c9fe8828d 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_List.json @@ -54,4 +54,4 @@ }, "operationId": "VirtualMachineSchedules_List", "title": "VirtualMachineSchedules_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Update.json index 7bfc5eac1618..b7527cf8c708 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Update.json @@ -56,4 +56,4 @@ }, "operationId": "VirtualMachineSchedules_Update", "title": "VirtualMachineSchedules_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_AddDataDisk.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_AddDataDisk.json index c4fd98d25dd1..bbfdc5149ef8 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_AddDataDisk.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_AddDataDisk.json @@ -24,4 +24,4 @@ }, "operationId": "VirtualMachines_AddDataDisk", "title": "VirtualMachines_AddDataDisk" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_ApplyArtifacts.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_ApplyArtifacts.json index 2582d98d0c47..104c1c6e9088 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_ApplyArtifacts.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_ApplyArtifacts.json @@ -23,4 +23,4 @@ }, "operationId": "VirtualMachines_ApplyArtifacts", "title": "VirtualMachines_ApplyArtifacts" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Claim.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Claim.json index 886ea7ad5a82..0ed82f2b076d 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Claim.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Claim.json @@ -16,4 +16,4 @@ }, "operationId": "VirtualMachines_Claim", "title": "VirtualMachines_Claim" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_CreateOrUpdate.json index bd8e5d6be401..4ba31c051205 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_CreateOrUpdate.json @@ -115,4 +115,4 @@ }, "operationId": "VirtualMachines_CreateOrUpdate", "title": "VirtualMachines_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Delete.json index 26e18b8b089b..91fbfc00b8b7 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Delete.json @@ -17,4 +17,4 @@ }, "operationId": "VirtualMachines_Delete", "title": "VirtualMachines_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_DetachDataDisk.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_DetachDataDisk.json index 49cc11d05379..cdefea609245 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_DetachDataDisk.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_DetachDataDisk.json @@ -19,4 +19,4 @@ }, "operationId": "VirtualMachines_DetachDataDisk", "title": "VirtualMachines_DetachDataDisk" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Get.json index 05a429b64f27..b609eca03f97 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Get.json @@ -53,4 +53,4 @@ }, "operationId": "VirtualMachines_Get", "title": "VirtualMachines_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_GetRdpFileContents.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_GetRdpFileContents.json index 467839ecee56..d999cc7a2d7f 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_GetRdpFileContents.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_GetRdpFileContents.json @@ -15,4 +15,4 @@ }, "operationId": "VirtualMachines_GetRdpFileContents", "title": "VirtualMachines_GetRdpFileContents" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_List.json index d598b41c88b7..36a9fc33b715 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_List.json @@ -56,4 +56,4 @@ }, "operationId": "VirtualMachines_List", "title": "VirtualMachines_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_ListApplicableSchedules.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_ListApplicableSchedules.json index 45b6e9212204..b878e1ded820 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_ListApplicableSchedules.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_ListApplicableSchedules.json @@ -87,4 +87,4 @@ }, "operationId": "VirtualMachines_ListApplicableSchedules", "title": "VirtualMachines_ListApplicableSchedules" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Redeploy.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Redeploy.json index 312ba83f4a75..a82ca58b75a7 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Redeploy.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Redeploy.json @@ -17,4 +17,4 @@ }, "operationId": "VirtualMachines_Redeploy", "title": "VirtualMachines_Redeploy" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Resize.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Resize.json index 7bb01f0f082a..d3cdcc8e30e2 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Resize.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Resize.json @@ -20,4 +20,4 @@ }, "operationId": "VirtualMachines_Resize", "title": "VirtualMachines_Resize" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Restart.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Restart.json index 0bd8b7cb883f..bc85a8990a52 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Restart.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Restart.json @@ -17,4 +17,4 @@ }, "operationId": "VirtualMachines_Restart", "title": "VirtualMachines_Restart" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Start.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Start.json index 80ed19f88473..7a970b7cd54c 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Start.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Start.json @@ -17,4 +17,4 @@ }, "operationId": "VirtualMachines_Start", "title": "VirtualMachines_Start" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Stop.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Stop.json index f2857a1e580e..9e160ff47fc3 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Stop.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Stop.json @@ -16,4 +16,4 @@ }, "operationId": "VirtualMachines_Stop", "title": "VirtualMachines_Stop" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_TransferDisks.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_TransferDisks.json index 97ce8e5bcc8f..f92da98a1888 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_TransferDisks.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_TransferDisks.json @@ -16,4 +16,4 @@ }, "operationId": "VirtualMachines_TransferDisks", "title": "VirtualMachines_TransferDisks" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_UnClaim.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_UnClaim.json index ab0cd802c505..0b3b9b9d2c9c 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_UnClaim.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_UnClaim.json @@ -17,4 +17,4 @@ }, "operationId": "VirtualMachines_UnClaim", "title": "VirtualMachines_UnClaim" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Update.json index 0038e75acc52..44a7e16f2135 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Update.json @@ -54,4 +54,4 @@ }, "operationId": "VirtualMachines_Update", "title": "VirtualMachines_Update" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json index 641cafcbf593..67ecc134909a 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json @@ -46,4 +46,4 @@ }, "operationId": "VirtualNetworks_CreateOrUpdate", "title": "VirtualNetworks_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Delete.json index 862a877b643b..0afd481bedec 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Delete.json @@ -17,4 +17,4 @@ }, "operationId": "VirtualNetworks_Delete", "title": "VirtualNetworks_Delete" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Get.json index 4d891a5be7dd..2bb4fe724969 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Get.json @@ -53,4 +53,4 @@ }, "operationId": "VirtualNetworks_Get", "title": "VirtualNetworks_Get" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_List.json index a73e4edd5f54..df963297cf04 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_List.json @@ -56,4 +56,4 @@ }, "operationId": "VirtualNetworks_List", "title": "VirtualNetworks_List" -} \ No newline at end of file +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Update.json index fd1d4c372389..efbb53085882 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Update.json @@ -51,4 +51,4 @@ }, "operationId": "VirtualNetworks_Update", "title": "VirtualNetworks_Update" -} \ No newline at end of file +} From f3545ce2753b70a4f240d8ead4660ae13ff8d9e3 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Wed, 18 Jun 2025 15:02:56 -0700 Subject: [PATCH 08/59] Parent update --- .../Artifact.tsp | 2 +- .../ArtifactSource.tsp | 2 +- .../CustomImage.tsp | 1 + .../Microsoft.DevTestLab.Management/Disk.tsp | 2 +- .../DtlEnvironment.tsp | 2 +- .../Formula.tsp | 2 +- .../Microsoft.DevTestLab.Management/Lab.tsp | 2 +- .../LabCost.tsp | 3 +- .../LabVirtualMachine.tsp | 1 + .../NotificationChannel.tsp | 3 +- .../Schedule.tsp | 2 +- .../Secret.tsp | 2 +- .../ServiceFabric.tsp | 2 +- .../ServiceRunner.tsp | 2 +- .../Microsoft.DevTestLab.Management/User.tsp | 2 +- .../VirtualNetwork.tsp | 1 + .../tspconfig.yaml | 3 + .../stable/2018-09-15/DTL.json | 5633 ++++++++++------- specification/devtestlabs/suppressions.yaml | 3 + 19 files changed, 3229 insertions(+), 2441 deletions(-) create mode 100644 specification/devtestlabs/suppressions.yaml diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp index dedc650952cf..25ff1d81a00c 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp @@ -13,11 +13,11 @@ namespace Microsoft.DevTestLab; /** * An artifact. */ +@parentResource(ArtifactSource) model Artifact is Azure.ResourceManager.TrackedResource { ...ResourceNameParameter< Resource = Artifact, - KeyName = "name", SegmentName = "artifacts", NamePattern = "" >; diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp index 516e4e65cf4d..9981ec2350fa 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp @@ -13,11 +13,11 @@ namespace Microsoft.DevTestLab; /** * Properties of an artifact source. */ +@parentResource(Lab) model ArtifactSource is Azure.ResourceManager.TrackedResource { ...ResourceNameParameter< Resource = ArtifactSource, - KeyName = "name", SegmentName = "artifactsources", NamePattern = "" >; diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp index a469bbc9796a..8f856a9f1518 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp @@ -13,6 +13,7 @@ namespace Microsoft.DevTestLab; /** * A custom image. */ +@parentResource(Lab) model CustomImage is Azure.ResourceManager.TrackedResource { ...ResourceNameParameter< diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp index f9ae68b3ff7f..07d0dd14a767 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp @@ -13,10 +13,10 @@ namespace Microsoft.DevTestLab; /** * A Disk. */ +@parentResource(User) model Disk is Azure.ResourceManager.TrackedResource { ...ResourceNameParameter< Resource = Disk, - KeyName = "name", SegmentName = "disks", NamePattern = "" >; diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp index 980364a23085..401dd54c4cc1 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp @@ -13,11 +13,11 @@ namespace Microsoft.DevTestLab; /** * An environment, which is essentially an ARM template deployment. */ +@parentResource(User) model DtlEnvironment is Azure.ResourceManager.TrackedResource { ...ResourceNameParameter< Resource = DtlEnvironment, - KeyName = "name", SegmentName = "environments", NamePattern = "" >; diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp index 288ff7d42f54..e204d80cfecf 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp @@ -13,11 +13,11 @@ namespace Microsoft.DevTestLab; /** * A formula for creating a VM, specifying an image base and other parameters */ +@parentResource(Lab) model Formula is Azure.ResourceManager.TrackedResource { ...ResourceNameParameter< Resource = Formula, - KeyName = "name", SegmentName = "formulas", NamePattern = "" >; diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp index 9efb851727e4..39d3af046eb0 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp @@ -16,7 +16,7 @@ namespace Microsoft.DevTestLab; model Lab is Azure.ResourceManager.TrackedResource { ...ResourceNameParameter< Resource = Lab, - KeyName = "name", + KeyName = "devtestLabName", SegmentName = "labs", NamePattern = "" >; diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp index 233814b8166f..375988f109f2 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp @@ -4,6 +4,7 @@ import "@typespec/openapi"; import "@typespec/rest"; import "./models.tsp"; +using TypeSpec.Rest; using Azure.ResourceManager; using TypeSpec.Http; using TypeSpec.OpenAPI; @@ -12,11 +13,11 @@ namespace Microsoft.DevTestLab; /** * A cost item. */ +@parentResource(Lab) model LabCost is Azure.ResourceManager.TrackedResource { ...ResourceNameParameter< Resource = LabCost, - KeyName = "name", SegmentName = "costs", NamePattern = "" >; diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp index ab43f1981cf9..b50e28c9a24e 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp @@ -13,6 +13,7 @@ namespace Microsoft.DevTestLab; /** * A virtual machine. */ +@parentResource(Lab) model LabVirtualMachine is Azure.ResourceManager.TrackedResource { ...ResourceNameParameter< diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp index 662cdd1805b6..6c33e882d244 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp @@ -6,11 +6,13 @@ import "./models.tsp"; using Azure.ResourceManager; using TypeSpec.Http; +using TypeSpec.Rest; namespace Microsoft.DevTestLab; /** * A notification. */ +@parentResource(Lab) model NotificationChannel is Azure.ResourceManager.TrackedResource< NotificationChannelProperties, @@ -18,7 +20,6 @@ model NotificationChannel > { ...ResourceNameParameter< Resource = NotificationChannel, - KeyName = "name", SegmentName = "notificationchannels", NamePattern = "" >; diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp index eea1335576ca..ca4ddd764971 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp @@ -13,11 +13,11 @@ namespace Microsoft.DevTestLab; /** * A schedule. */ +@parentResource(Lab) model Schedule is Azure.ResourceManager.TrackedResource { ...ResourceNameParameter< Resource = Schedule, - KeyName = "name", SegmentName = "schedules", NamePattern = "" >; diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp index e12a2b834022..cc23d9c7f9f2 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp @@ -13,10 +13,10 @@ namespace Microsoft.DevTestLab; /** * A secret. */ +@parentResource(User) model Secret is Azure.ResourceManager.TrackedResource { ...ResourceNameParameter< Resource = Secret, - KeyName = "name", SegmentName = "secrets", NamePattern = "" >; diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp index a6ce9ce71134..488e1d381980 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp @@ -13,11 +13,11 @@ namespace Microsoft.DevTestLab; /** * A Service Fabric. */ +@parentResource(User) model ServiceFabric is Azure.ResourceManager.TrackedResource { ...ResourceNameParameter< Resource = ServiceFabric, - KeyName = "name", SegmentName = "servicefabrics", NamePattern = "" >; diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp index 9d6d8dbbc10b..20dfe8e6a3b2 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp @@ -16,10 +16,10 @@ namespace Microsoft.DevTestLab; */ #suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "For backward compatibility" #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +@parentResource(Lab) model ServiceRunner is Azure.ResourceManager.TrackedResource<{}> { ...ResourceNameParameter< Resource = ServiceRunner, - KeyName = "name", SegmentName = "servicerunners", NamePattern = "" >; diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp index d9e95e34f445..326ee10b6548 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp @@ -13,10 +13,10 @@ namespace Microsoft.DevTestLab; /** * Profile of a lab user. */ +@parentResource(Lab) model User is Azure.ResourceManager.TrackedResource { ...ResourceNameParameter< Resource = User, - KeyName = "name", SegmentName = "users", NamePattern = "" >; diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp index a70f73131157..0a72296089ab 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp @@ -13,6 +13,7 @@ namespace Microsoft.DevTestLab; /** * A virtual network. */ +@parentResource(Lab) model VirtualNetwork is Azure.ResourceManager.TrackedResource { ...ResourceNameParameter< diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml b/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml index 6464408ab64b..d7177e39efb7 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml @@ -1,5 +1,8 @@ emit: - "@azure-tools/typespec-autorest" +parameters: + service-dir: + default: "{project-root}" options: "@azure-tools/typespec-autorest": omit-unreachable-types: true diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index 41dbc6239525..a6c09b976596 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -206,10 +206,13 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/locations/{locationName}/operations/{name}": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/schedules": { "get": { - "operationId": "Operations_Get", - "description": "Get operation.", + "operationId": "GlobalSchedules_ListBySubscription", + "tags": [ + "Schedules" + ], + "description": "List schedules in a subscription.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -218,17 +221,39 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "locationName", + "name": "devtestLabName", "in": "path", - "description": "The name of the location.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "name", - "in": "path", - "description": "The name of the operation.", - "required": true, + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=status)'", + "required": false, + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, "type": "string" } ], @@ -236,7 +261,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/OperationResult" + "$ref": "#/definitions/ScheduleList" } }, "default": { @@ -247,19 +272,19 @@ } }, "x-ms-examples": { - "Operations_Get": { - "$ref": "./examples/Operations_Get.json" + "GlobalSchedules_ListBySubscription": { + "$ref": "./examples/GlobalSchedules_ListBySubscription.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/schedules": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/locations/{locationName}/operations/{name}": { "get": { - "operationId": "GlobalSchedules_ListBySubscription", - "tags": [ - "Schedules" - ], - "description": "List schedules in a subscription.", + "operationId": "Operations_Get", + "description": "Get operation.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -268,32 +293,17 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=status)'", - "required": false, - "type": "string" - }, - { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, + "name": "locationName", + "in": "path", + "description": "The name of the location.", + "required": true, "type": "string" }, { - "name": "$top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, - "type": "integer", - "format": "int32" - }, - { - "name": "$orderby", - "in": "query", - "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, + "name": "name", + "in": "path", + "description": "The name of the operation.", + "required": true, "type": "string" } ], @@ -301,7 +311,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ScheduleList" + "$ref": "#/definitions/OperationResult" } }, "default": { @@ -312,12 +322,9 @@ } }, "x-ms-examples": { - "GlobalSchedules_ListBySubscription": { - "$ref": "./examples/GlobalSchedules_ListBySubscription.json" + "Operations_Get": { + "$ref": "./examples/Operations_Get.json" } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } } }, @@ -445,13 +452,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/artifacts": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs": { "get": { - "operationId": "Artifacts_List", + "operationId": "Labs_ListByResourceGroup", "tags": [ - "Artifacts" + "Labs" ], - "description": "List artifacts in a given artifact source.", + "description": "List labs in a resource group.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -465,7 +472,7 @@ { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=title)'", + "description": "Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'", "required": false, "type": "string" }, @@ -496,7 +503,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ArtifactList" + "$ref": "#/definitions/LabList" } }, "default": { @@ -507,8 +514,8 @@ } }, "x-ms-examples": { - "Artifacts_List": { - "$ref": "./examples/Artifacts_List.json" + "Labs_ListByResourceGroup": { + "$ref": "./examples/Labs_ListByResourceGroup.json" } }, "x-ms-pageable": { @@ -516,13 +523,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/artifacts/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}": { "get": { - "operationId": "Artifacts_Get", + "operationId": "Labs_Get", "tags": [ - "Artifacts" + "Labs" ], - "description": "Get artifact.", + "description": "Get lab.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -534,16 +541,16 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the artifact.", + "description": "The name of the lab.", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=title)'", + "description": "Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'", "required": false, "type": "string" } @@ -552,7 +559,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Artifact" + "$ref": "#/definitions/Lab" } }, "default": { @@ -563,19 +570,17 @@ } }, "x-ms-examples": { - "Artifacts_Get": { - "$ref": "./examples/Artifacts_Get.json" + "Labs_Get": { + "$ref": "./examples/Labs_Get.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/artifacts/{name}/generateArmTemplate": { - "post": { - "operationId": "Artifacts_GenerateArmTemplate", + }, + "put": { + "operationId": "Labs_CreateOrUpdate", "tags": [ - "Artifacts" + "Labs" ], - "description": "Generates an ARM template for the given artifact, uploads the required files to a storage account, and validates the generated artifact.", + "description": "Create or replace an existing lab. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -587,27 +592,44 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the artifact.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "generateArmTemplateRequest", + "name": "lab", "in": "body", - "description": "Parameters for generating an ARM template for deploying artifacts.", + "description": "A lab.", "required": true, "schema": { - "$ref": "#/definitions/GenerateArmTemplateRequest" + "$ref": "#/definitions/Lab" } } ], "responses": { "200": { - "description": "Azure operation completed successfully.", + "description": "Resource 'Lab' update operation succeeded", "schema": { - "$ref": "#/definitions/ArmTemplateInfo" + "$ref": "#/definitions/Lab" + } + }, + "201": { + "description": "Resource 'Lab' create operation succeeded", + "schema": { + "$ref": "#/definitions/Lab" + }, + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { @@ -618,19 +640,21 @@ } }, "x-ms-examples": { - "Artifacts_GenerateArmTemplate": { - "$ref": "./examples/Artifacts_GenerateArmTemplate.json" + "Labs_CreateOrUpdate": { + "$ref": "./examples/Labs_CreateOrUpdate.json" } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/artifactsources": { - "get": { - "operationId": "ArtifactSources_List", + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Labs_Update", "tags": [ - "ArtifactSources" + "Labs" ], - "description": "List artifact sources in a given lab.", + "description": "Allows modifying tags of labs. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -642,40 +666,27 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=displayName)'", - "required": false, - "type": "string" - }, - { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, "type": "string" }, { - "name": "$top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, - "type": "integer", - "format": "int32" - }, - { - "name": "$orderby", - "in": "query", - "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, - "type": "string" + "name": "lab", + "in": "body", + "description": "A lab.", + "required": true, + "schema": { + "$ref": "#/definitions/LabFragment" + } } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ArtifactSourceList" + "$ref": "#/definitions/Lab" } }, "default": { @@ -686,22 +697,17 @@ } }, "x-ms-examples": { - "ArtifactSources_List": { - "$ref": "./examples/ArtifactSources_List.json" + "Labs_Update": { + "$ref": "./examples/Labs_Update.json" } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/artifactsources/{name}": { - "get": { - "operationId": "ArtifactSources_Get", + }, + "delete": { + "operationId": "Labs_Delete", "tags": [ - "ArtifactSources" + "Labs" ], - "description": "Get artifact source.", + "description": "Delete lab. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -713,27 +719,34 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the artifact source.", + "description": "The name of the lab.", "required": true, "type": "string" - }, - { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=displayName)'", - "required": false, - "type": "string" } ], "responses": { "200": { - "description": "Azure operation completed successfully.", - "schema": { - "$ref": "#/definitions/ArtifactSource" + "description": "Resource deleted successfully." + }, + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, + "204": { + "description": "Resource does not exist." + }, "default": { "description": "An unexpected error response.", "schema": { @@ -742,17 +755,23 @@ } }, "x-ms-examples": { - "ArtifactSources_Get": { - "$ref": "./examples/ArtifactSources_Get.json" + "Labs_Delete": { + "$ref": "./examples/Labs_Delete.json" } - } - }, - "put": { - "operationId": "ArtifactSources_CreateOrUpdate", + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/{labName}/evaluatePolicies": { + "post": { + "operationId": "PolicySets_EvaluatePolicies", "tags": [ - "ArtifactSources" + "Labs" ], - "description": "Create or replace an existing artifact source.", + "description": "Evaluates lab policy.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -764,33 +783,34 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the artifact source.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "artifactSource", + "name": "labName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, + { + "name": "evaluatePoliciesRequest", "in": "body", - "description": "Properties of an artifact source.", + "description": "Request body for evaluating a policy set.", "required": true, "schema": { - "$ref": "#/definitions/ArtifactSource" + "$ref": "#/definitions/EvaluatePoliciesRequest" } } ], "responses": { "200": { - "description": "Resource 'ArtifactSource' update operation succeeded", - "schema": { - "$ref": "#/definitions/ArtifactSource" - } - }, - "201": { - "description": "Resource 'ArtifactSource' create operation succeeded", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ArtifactSource" + "$ref": "#/definitions/EvaluatePoliciesResponse" } }, "default": { @@ -801,17 +821,19 @@ } }, "x-ms-examples": { - "ArtifactSources_CreateOrUpdate": { - "$ref": "./examples/ArtifactSources_CreateOrUpdate.json" + "PolicySets_EvaluatePolicies": { + "$ref": "./examples/PolicySets_EvaluatePolicies.json" } } - }, - "patch": { - "operationId": "ArtifactSources_Update", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/{labName}/galleryimages": { + "get": { + "operationId": "GalleryImages_List", "tags": [ - "ArtifactSources" + "Labs" ], - "description": "Allows modifying tags of artifact sources. All other properties will be ignored.", + "description": "List gallery images in a given lab.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -823,27 +845,54 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the artifact source.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "artifactSource", - "in": "body", - "description": "Properties of an artifact source.", + "name": "labName", + "in": "path", + "description": "The name of the lab.", "required": true, - "schema": { - "$ref": "#/definitions/ArtifactSourceFragment" - } + "type": "string" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=author)'", + "required": false, + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, + "type": "string" } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ArtifactSource" + "$ref": "#/definitions/GalleryImageList" } }, "default": { @@ -854,17 +903,22 @@ } }, "x-ms-examples": { - "ArtifactSources_Update": { - "$ref": "./examples/ArtifactSources_Update.json" + "GalleryImages_List": { + "$ref": "./examples/GalleryImages_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "delete": { - "operationId": "ArtifactSources_Delete", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/artifactsources": { + "get": { + "operationId": "ArtifactSources_List", "tags": [ "ArtifactSources" ], - "description": "Delete artifact source.", + "description": "List artifact sources in a given lab.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -876,19 +930,48 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the artifact source.", + "description": "The name of the lab.", "required": true, "type": "string" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=displayName)'", + "required": false, + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, + "type": "string" } ], "responses": { "200": { - "description": "Resource deleted successfully." - }, - "204": { - "description": "Resource does not exist." + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ArtifactSourceList" + } }, "default": { "description": "An unexpected error response.", @@ -898,19 +981,22 @@ } }, "x-ms-examples": { - "ArtifactSources_Delete": { - "$ref": "./examples/ArtifactSources_Delete.json" + "ArtifactSources_List": { + "$ref": "./examples/ArtifactSources_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/costs/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/artifactsources/{artifactSourceName}": { "get": { - "operationId": "Costs_Get", + "operationId": "ArtifactSources_Get", "tags": [ - "LabCosts" + "ArtifactSources" ], - "description": "Get cost.", + "description": "Get artifact source.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -922,16 +1008,23 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the cost.", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, + { + "name": "artifactSourceName", + "in": "path", + "description": "The name of the artifact source.", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($expand=labCostDetails)'", + "description": "Specify the $expand query. Example: 'properties($select=displayName)'", "required": false, "type": "string" } @@ -940,7 +1033,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/LabCost" + "$ref": "#/definitions/ArtifactSource" } }, "default": { @@ -951,17 +1044,17 @@ } }, "x-ms-examples": { - "Costs_Get": { - "$ref": "./examples/Costs_Get.json" + "ArtifactSources_Get": { + "$ref": "./examples/ArtifactSources_Get.json" } } }, "put": { - "operationId": "Costs_CreateOrUpdate", + "operationId": "ArtifactSources_CreateOrUpdate", "tags": [ - "LabCosts" + "ArtifactSources" ], - "description": "Create or replace an existing cost.", + "description": "Create or replace an existing artifact source.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -973,33 +1066,40 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the cost.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "labCost", + "name": "artifactSourceName", + "in": "path", + "description": "The name of the artifact source.", + "required": true, + "type": "string" + }, + { + "name": "artifactSource", "in": "body", - "description": "A cost item.", + "description": "Properties of an artifact source.", "required": true, "schema": { - "$ref": "#/definitions/LabCost" + "$ref": "#/definitions/ArtifactSource" } } ], "responses": { "200": { - "description": "Resource 'LabCost' update operation succeeded", + "description": "Resource 'ArtifactSource' update operation succeeded", "schema": { - "$ref": "#/definitions/LabCost" + "$ref": "#/definitions/ArtifactSource" } }, "201": { - "description": "Resource 'LabCost' create operation succeeded", + "description": "Resource 'ArtifactSource' create operation succeeded", "schema": { - "$ref": "#/definitions/LabCost" + "$ref": "#/definitions/ArtifactSource" } }, "default": { @@ -1010,19 +1110,17 @@ } }, "x-ms-examples": { - "Costs_CreateOrUpdate": { - "$ref": "./examples/Costs_CreateOrUpdate.json" + "ArtifactSources_CreateOrUpdate": { + "$ref": "./examples/ArtifactSources_CreateOrUpdate.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/customimages": { - "get": { - "operationId": "CustomImages_List", + }, + "patch": { + "operationId": "ArtifactSources_Update", "tags": [ - "CustomImages" + "ArtifactSources" ], - "description": "List custom images in a given lab.", + "description": "Allows modifying tags of artifact sources. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1033,10 +1131,137 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, + { + "name": "artifactSourceName", + "in": "path", + "description": "The name of the artifact source.", + "required": true, + "type": "string" + }, + { + "name": "artifactSource", + "in": "body", + "description": "Properties of an artifact source.", + "required": true, + "schema": { + "$ref": "#/definitions/ArtifactSourceFragment" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ArtifactSource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ArtifactSources_Update": { + "$ref": "./examples/ArtifactSources_Update.json" + } + } + }, + "delete": { + "operationId": "ArtifactSources_Delete", + "tags": [ + "ArtifactSources" + ], + "description": "Delete artifact source.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, + { + "name": "artifactSourceName", + "in": "path", + "description": "The name of the artifact source.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ArtifactSources_Delete": { + "$ref": "./examples/ArtifactSources_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/artifactsources/{artifactSourceName}/artifacts": { + "get": { + "operationId": "Artifacts_List", + "tags": [ + "Artifacts" + ], + "description": "List artifacts in a given artifact source.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, + { + "name": "artifactSourceName", + "in": "path", + "description": "The name of the artifact source.", + "required": true, + "type": "string" + }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=vm)'", + "description": "Specify the $expand query. Example: 'properties($select=title)'", "required": false, "type": "string" }, @@ -1067,7 +1292,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/CustomImageList" + "$ref": "#/definitions/ArtifactList" } }, "default": { @@ -1078,8 +1303,8 @@ } }, "x-ms-examples": { - "CustomImages_List": { - "$ref": "./examples/CustomImages_List.json" + "Artifacts_List": { + "$ref": "./examples/Artifacts_List.json" } }, "x-ms-pageable": { @@ -1087,13 +1312,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/customimages/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/artifactsources/{artifactSourceName}/artifacts/{artifactName}": { "get": { - "operationId": "CustomImages_Get", + "operationId": "Artifacts_Get", "tags": [ - "CustomImages" + "Artifacts" ], - "description": "Get custom image.", + "description": "Get artifact.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1105,16 +1330,30 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the custom image.", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, + { + "name": "artifactSourceName", + "in": "path", + "description": "The name of the artifact source.", + "required": true, + "type": "string" + }, + { + "name": "artifactName", + "in": "path", + "description": "The name of the artifact.", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=vm)'", + "description": "Specify the $expand query. Example: 'properties($select=title)'", "required": false, "type": "string" } @@ -1123,7 +1362,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/CustomImage" + "$ref": "#/definitions/Artifact" } }, "default": { @@ -1134,17 +1373,19 @@ } }, "x-ms-examples": { - "CustomImages_Get": { - "$ref": "./examples/CustomImages_Get.json" + "Artifacts_Get": { + "$ref": "./examples/Artifacts_Get.json" } } - }, - "put": { - "operationId": "CustomImages_CreateOrUpdate", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/artifactsources/{artifactSourceName}/artifacts/{artifactName}/generateArmTemplate": { + "post": { + "operationId": "Artifacts_GenerateArmTemplate", "tags": [ - "CustomImages" + "Artifacts" ], - "description": "Create or replace an existing custom image. This operation can take a while to complete.", + "description": "Generates an ARM template for the given artifact, uploads the required files to a storage account, and validates the generated artifact.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1156,34 +1397,88 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the custom image.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "customImage", + "name": "artifactSourceName", + "in": "path", + "description": "The name of the artifact source.", + "required": true, + "type": "string" + }, + { + "name": "artifactName", + "in": "path", + "description": "The name of the artifact.", + "required": true, + "type": "string" + }, + { + "name": "generateArmTemplateRequest", "in": "body", - "description": "A custom image.", + "description": "Parameters for generating an ARM template for deploying artifacts.", "required": true, "schema": { - "$ref": "#/definitions/CustomImage" + "$ref": "#/definitions/GenerateArmTemplateRequest" } } ], "responses": { "200": { - "description": "Resource 'CustomImage' update operation succeeded", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/CustomImage" + "$ref": "#/definitions/ArmTemplateInfo" } }, - "201": { - "description": "Resource 'CustomImage' create operation succeeded", + "default": { + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CustomImage" - }, + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Artifacts_GenerateArmTemplate": { + "$ref": "./examples/Artifacts_GenerateArmTemplate.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/claimAnyVm": { + "post": { + "operationId": "Labs_ClaimAnyVm", + "tags": [ + "Labs" + ], + "description": "Claim a random claimable virtual machine in the lab. This operation can take a while to complete.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded." + }, + "202": { + "description": "Resource operation accepted.", "headers": { "Location": { "type": "string", @@ -1204,21 +1499,23 @@ } }, "x-ms-examples": { - "CustomImages_CreateOrUpdate": { - "$ref": "./examples/CustomImages_CreateOrUpdate.json" + "Labs_ClaimAnyVm": { + "$ref": "./examples/Labs_ClaimAnyVm.json" } }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, "x-ms-long-running-operation": true - }, - "patch": { - "operationId": "CustomImages_Update", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/costs/{labCostName}": { + "get": { + "operationId": "Costs_Get", "tags": [ - "CustomImages" + "LabCosts" ], - "description": "Allows modifying tags of custom images. All other properties will be ignored.", + "description": "Get cost.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1230,27 +1527,98 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the custom image.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "customImage", + "name": "labCostName", + "in": "path", + "description": "The name of the cost.", + "required": true, + "type": "string" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($expand=labCostDetails)'", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/LabCost" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Costs_Get": { + "$ref": "./examples/Costs_Get.json" + } + } + }, + "put": { + "operationId": "Costs_CreateOrUpdate", + "tags": [ + "LabCosts" + ], + "description": "Create or replace an existing cost.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, + { + "name": "labCostName", + "in": "path", + "description": "The name of the cost.", + "required": true, + "type": "string" + }, + { + "name": "labCost", "in": "body", - "description": "A custom image.", + "description": "A cost item.", "required": true, "schema": { - "$ref": "#/definitions/CustomImageFragment" + "$ref": "#/definitions/LabCost" } } ], "responses": { "200": { - "description": "Azure operation completed successfully.", + "description": "Resource 'LabCost' update operation succeeded", "schema": { - "$ref": "#/definitions/CustomImage" + "$ref": "#/definitions/LabCost" + } + }, + "201": { + "description": "Resource 'LabCost' create operation succeeded", + "schema": { + "$ref": "#/definitions/LabCost" } }, "default": { @@ -1261,17 +1629,19 @@ } }, "x-ms-examples": { - "CustomImages_Update": { - "$ref": "./examples/CustomImages_Update.json" + "Costs_CreateOrUpdate": { + "$ref": "./examples/Costs_CreateOrUpdate.json" } } - }, - "delete": { - "operationId": "CustomImages_Delete", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/createEnvironment": { + "post": { + "operationId": "Labs_CreateEnvironment", "tags": [ - "CustomImages" + "Labs" ], - "description": "Delete custom image. This operation can take a while to complete.", + "description": "Create virtual machines in a lab. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1283,19 +1653,28 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the custom image.", + "description": "The name of the lab.", "required": true, "type": "string" + }, + { + "name": "labVirtualMachineCreationParameter", + "in": "body", + "description": "Properties for creating a virtual machine.", + "required": true, + "schema": { + "$ref": "#/definitions/LabVirtualMachineCreationParameter" + } } ], "responses": { "200": { - "description": "Resource deleted successfully." + "description": "The request has succeeded." }, "202": { - "description": "Resource deletion accepted.", + "description": "Resource operation accepted.", "headers": { "Location": { "type": "string", @@ -1308,9 +1687,6 @@ } } }, - "204": { - "description": "Resource does not exist." - }, "default": { "description": "An unexpected error response.", "schema": { @@ -1319,8 +1695,8 @@ } }, "x-ms-examples": { - "CustomImages_Delete": { - "$ref": "./examples/CustomImages_Delete.json" + "Labs_CreateEnvironment": { + "$ref": "./examples/Labs_CreateEnvironment.json" } }, "x-ms-long-running-operation-options": { @@ -1329,13 +1705,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/disks": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/customimages": { "get": { - "operationId": "Disks_List", + "operationId": "CustomImages_List", "tags": [ - "Disks" + "CustomImages" ], - "description": "List disks in a given user profile.", + "description": "List custom images in a given lab.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1346,10 +1722,17 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=diskType)'", + "description": "Specify the $expand query. Example: 'properties($select=vm)'", "required": false, "type": "string" }, @@ -1380,7 +1763,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DiskList" + "$ref": "#/definitions/CustomImageList" } }, "default": { @@ -1391,8 +1774,8 @@ } }, "x-ms-examples": { - "Disks_List": { - "$ref": "./examples/Disks_List.json" + "CustomImages_List": { + "$ref": "./examples/CustomImages_List.json" } }, "x-ms-pageable": { @@ -1400,13 +1783,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/disks/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/customimages/{name}": { "get": { - "operationId": "Disks_Get", + "operationId": "CustomImages_Get", "tags": [ - "Disks" + "CustomImages" ], - "description": "Get disk.", + "description": "Get custom image.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1417,17 +1800,24 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", - "description": "The name of the disk.", + "description": "The name of the custom image.", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=diskType)'", + "description": "Specify the $expand query. Example: 'properties($select=vm)'", "required": false, "type": "string" } @@ -1436,7 +1826,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Disk" + "$ref": "#/definitions/CustomImage" } }, "default": { @@ -1447,17 +1837,17 @@ } }, "x-ms-examples": { - "Disks_Get": { - "$ref": "./examples/Disks_Get.json" + "CustomImages_Get": { + "$ref": "./examples/CustomImages_Get.json" } } }, "put": { - "operationId": "Disks_CreateOrUpdate", + "operationId": "CustomImages_CreateOrUpdate", "tags": [ - "Disks" + "CustomImages" ], - "description": "Create or replace an existing disk. This operation can take a while to complete.", + "description": "Create or replace an existing custom image. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1468,34 +1858,41 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", - "description": "The name of the disk.", + "description": "The name of the custom image.", "required": true, "type": "string" }, { - "name": "disk", + "name": "customImage", "in": "body", - "description": "A Disk.", + "description": "A custom image.", "required": true, "schema": { - "$ref": "#/definitions/Disk" + "$ref": "#/definitions/CustomImage" } } ], "responses": { "200": { - "description": "Resource 'Disk' update operation succeeded", + "description": "Resource 'CustomImage' update operation succeeded", "schema": { - "$ref": "#/definitions/Disk" + "$ref": "#/definitions/CustomImage" } }, "201": { - "description": "Resource 'Disk' create operation succeeded", + "description": "Resource 'CustomImage' create operation succeeded", "schema": { - "$ref": "#/definitions/Disk" + "$ref": "#/definitions/CustomImage" }, "headers": { "Location": { @@ -1517,8 +1914,8 @@ } }, "x-ms-examples": { - "Disks_CreateOrUpdate": { - "$ref": "./examples/Disks_CreateOrUpdate.json" + "CustomImages_CreateOrUpdate": { + "$ref": "./examples/CustomImages_CreateOrUpdate.json" } }, "x-ms-long-running-operation-options": { @@ -1527,11 +1924,11 @@ "x-ms-long-running-operation": true }, "patch": { - "operationId": "Disks_Update", + "operationId": "CustomImages_Update", "tags": [ - "Disks" + "CustomImages" ], - "description": "Allows modifying tags of disks. All other properties will be ignored.", + "description": "Allows modifying tags of custom images. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1542,20 +1939,27 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", - "description": "The name of the disk.", + "description": "The name of the custom image.", "required": true, "type": "string" }, { - "name": "disk", + "name": "customImage", "in": "body", - "description": "A Disk.", + "description": "A custom image.", "required": true, "schema": { - "$ref": "#/definitions/DiskFragment" + "$ref": "#/definitions/CustomImageFragment" } } ], @@ -1563,7 +1967,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Disk" + "$ref": "#/definitions/CustomImage" } }, "default": { @@ -1574,17 +1978,17 @@ } }, "x-ms-examples": { - "Disks_Update": { - "$ref": "./examples/Disks_Update.json" + "CustomImages_Update": { + "$ref": "./examples/CustomImages_Update.json" } } }, "delete": { - "operationId": "Disks_Delete", + "operationId": "CustomImages_Delete", "tags": [ - "Disks" + "CustomImages" ], - "description": "Delete disk. This operation can take a while to complete.", + "description": "Delete custom image. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1595,10 +1999,17 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", - "description": "The name of the disk.", + "description": "The name of the custom image.", "required": true, "type": "string" } @@ -1632,8 +2043,8 @@ } }, "x-ms-examples": { - "Disks_Delete": { - "$ref": "./examples/Disks_Delete.json" + "CustomImages_Delete": { + "$ref": "./examples/CustomImages_Delete.json" } }, "x-ms-long-running-operation-options": { @@ -1642,13 +2053,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/disks/{name}/attach": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/exportResourceUsage": { "post": { - "operationId": "Disks_Attach", + "operationId": "Labs_ExportResourceUsage", "tags": [ - "Disks" + "Labs" ], - "description": "Attach and create the lease of the disk to the virtual machine. This operation can take a while to complete.", + "description": "Exports the lab resource usage into a storage account This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1660,19 +2071,19 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the disk.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "attachDiskProperties", + "name": "exportResourceUsageParameters", "in": "body", - "description": "Properties of the disk to attach.", + "description": "The parameters of the export operation.", "required": true, "schema": { - "$ref": "#/definitions/AttachDiskProperties" + "$ref": "#/definitions/ExportResourceUsageParameters" } } ], @@ -1702,8 +2113,8 @@ } }, "x-ms-examples": { - "Disks_Attach": { - "$ref": "./examples/Disks_Attach.json" + "Labs_ExportResourceUsage": { + "$ref": "./examples/Labs_ExportResourceUsage.json" } }, "x-ms-long-running-operation-options": { @@ -1712,13 +2123,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/disks/{name}/detach": { - "post": { - "operationId": "Disks_Detach", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/formulas": { + "get": { + "operationId": "Formulas_List", "tags": [ - "Disks" + "Formulas" ], - "description": "Detach and break the lease of the disk attached to the virtual machine. This operation can take a while to complete.", + "description": "List formulas in a given lab.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1730,79 +2141,16 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the disk.", + "description": "The name of the lab.", "required": true, "type": "string" }, - { - "name": "detachDiskProperties", - "in": "body", - "description": "Properties of the disk to detach.", - "required": true, - "schema": { - "$ref": "#/definitions/DetachDiskProperties" - } - } - ], - "responses": { - "200": { - "description": "The request has succeeded." - }, - "202": { - "description": "Resource operation accepted.", - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Disks_Detach": { - "$ref": "./examples/Disks_Detach.json" - } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/environments": { - "get": { - "operationId": "Environments_List", - "tags": [ - "DtlEnvironments" - ], - "description": "List environments in a given user profile.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=deploymentProperties)'", + "description": "Specify the $expand query. Example: 'properties($select=description)'", "required": false, "type": "string" }, @@ -1833,7 +2181,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DtlEnvironmentList" + "$ref": "#/definitions/FormulaList" } }, "default": { @@ -1844,8 +2192,8 @@ } }, "x-ms-examples": { - "Environments_List": { - "$ref": "./examples/Environments_List.json" + "Formulas_List": { + "$ref": "./examples/Formulas_List.json" } }, "x-ms-pageable": { @@ -1853,13 +2201,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/environments/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/formulas/{formulaName}": { "get": { - "operationId": "Environments_Get", + "operationId": "Formulas_Get", "tags": [ - "DtlEnvironments" + "Formulas" ], - "description": "Get environment.", + "description": "Get formula.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1871,16 +2219,23 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the environment.", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, + { + "name": "formulaName", + "in": "path", + "description": "The name of the formula.", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=deploymentProperties)'", + "description": "Specify the $expand query. Example: 'properties($select=description)'", "required": false, "type": "string" } @@ -1889,7 +2244,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DtlEnvironment" + "$ref": "#/definitions/Formula" } }, "default": { @@ -1900,17 +2255,17 @@ } }, "x-ms-examples": { - "Environments_Get": { - "$ref": "./examples/Environments_Get.json" + "Formulas_Get": { + "$ref": "./examples/Formulas_Get.json" } } }, "put": { - "operationId": "Environments_CreateOrUpdate", + "operationId": "Formulas_CreateOrUpdate", "tags": [ - "DtlEnvironments" + "Formulas" ], - "description": "Create or replace an existing environment. This operation can take a while to complete.", + "description": "Create or replace an existing formula. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1922,33 +2277,40 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the environment.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "dtlEnvironment", + "name": "formulaName", + "in": "path", + "description": "The name of the formula.", + "required": true, + "type": "string" + }, + { + "name": "formula", "in": "body", - "description": "An environment, which is essentially an ARM template deployment.", + "description": "A formula for creating a VM, specifying an image base and other parameters", "required": true, "schema": { - "$ref": "#/definitions/DtlEnvironment" + "$ref": "#/definitions/Formula" } } ], "responses": { "200": { - "description": "Resource 'DtlEnvironment' update operation succeeded", + "description": "Resource 'Formula' update operation succeeded", "schema": { - "$ref": "#/definitions/DtlEnvironment" + "$ref": "#/definitions/Formula" } }, "201": { - "description": "Resource 'DtlEnvironment' create operation succeeded", + "description": "Resource 'Formula' create operation succeeded", "schema": { - "$ref": "#/definitions/DtlEnvironment" + "$ref": "#/definitions/Formula" }, "headers": { "Location": { @@ -1970,8 +2332,8 @@ } }, "x-ms-examples": { - "Environments_CreateOrUpdate": { - "$ref": "./examples/Environments_CreateOrUpdate.json" + "Formulas_CreateOrUpdate": { + "$ref": "./examples/Formulas_CreateOrUpdate.json" } }, "x-ms-long-running-operation-options": { @@ -1980,11 +2342,11 @@ "x-ms-long-running-operation": true }, "patch": { - "operationId": "Environments_Update", + "operationId": "Formulas_Update", "tags": [ - "DtlEnvironments" + "Formulas" ], - "description": "Allows modifying tags of environments. All other properties will be ignored.", + "description": "Allows modifying tags of formulas. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1996,19 +2358,26 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the environment.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "dtlEnvironment", + "name": "formulaName", + "in": "path", + "description": "The name of the formula.", + "required": true, + "type": "string" + }, + { + "name": "formula", "in": "body", - "description": "An environment, which is essentially an ARM template deployment.", + "description": "A formula for creating a VM, specifying an image base and other parameters", "required": true, "schema": { - "$ref": "#/definitions/DtlEnvironmentFragment" + "$ref": "#/definitions/FormulaFragment" } } ], @@ -2016,7 +2385,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DtlEnvironment" + "$ref": "#/definitions/Formula" } }, "default": { @@ -2027,17 +2396,17 @@ } }, "x-ms-examples": { - "Environments_Update": { - "$ref": "./examples/Environments_Update.json" + "Formulas_Update": { + "$ref": "./examples/Formulas_Update.json" } } }, "delete": { - "operationId": "Environments_Delete", + "operationId": "Formulas_Delete", "tags": [ - "DtlEnvironments" + "Formulas" ], - "description": "Delete environment. This operation can take a while to complete.", + "description": "Delete formula.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -2049,9 +2418,16 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the environment.", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, + { + "name": "formulaName", + "in": "path", + "description": "The name of the formula.", "required": true, "type": "string" } @@ -2060,20 +2436,6 @@ "200": { "description": "Resource deleted successfully." }, - "202": { - "description": "Resource deletion accepted.", - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } - } - }, "204": { "description": "Resource does not exist." }, @@ -2085,23 +2447,19 @@ } }, "x-ms-examples": { - "Environments_Delete": { - "$ref": "./examples/Environments_Delete.json" + "Formulas_Delete": { + "$ref": "./examples/Formulas_Delete.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true + } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/formulas": { - "get": { - "operationId": "Formulas_List", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/generateUploadUri": { + "post": { + "operationId": "Labs_GenerateUploadUri", "tags": [ - "Formulas" + "Labs" ], - "description": "List formulas in a given lab.", + "description": "Generate a URI for uploading custom disk images to a Lab.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -2113,40 +2471,27 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=description)'", - "required": false, - "type": "string" - }, - { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, "type": "string" }, { - "name": "$top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, - "type": "integer", - "format": "int32" - }, - { - "name": "$orderby", - "in": "query", - "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, - "type": "string" + "name": "generateUploadUriParameter", + "in": "body", + "description": "Properties for generating an upload URI.", + "required": true, + "schema": { + "$ref": "#/definitions/GenerateUploadUriParameter" + } } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/FormulaList" + "$ref": "#/definitions/GenerateUploadUriResponse" } }, "default": { @@ -2157,73 +2502,19 @@ } }, "x-ms-examples": { - "Formulas_List": { - "$ref": "./examples/Formulas_List.json" + "Labs_GenerateUploadUri": { + "$ref": "./examples/Labs_GenerateUploadUri.json" } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/formulas/{name}": { - "get": { - "operationId": "Formulas_Get", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/importVirtualMachine": { + "post": { + "operationId": "Labs_ImportVirtualMachine", "tags": [ - "Formulas" - ], - "description": "Get formula.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "name", - "in": "path", - "description": "The name of the formula.", - "required": true, - "type": "string" - }, - { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=description)'", - "required": false, - "type": "string" - } - ], - "responses": { - "200": { - "description": "Azure operation completed successfully.", - "schema": { - "$ref": "#/definitions/Formula" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Formulas_Get": { - "$ref": "./examples/Formulas_Get.json" - } - } - }, - "put": { - "operationId": "Formulas_CreateOrUpdate", - "tags": [ - "Formulas" + "Labs" ], - "description": "Create or replace an existing formula. This operation can take a while to complete.", + "description": "Import a virtual machine into a different lab. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -2235,34 +2526,28 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the formula.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "formula", + "name": "importLabVirtualMachineRequest", "in": "body", - "description": "A formula for creating a VM, specifying an image base and other parameters", + "description": "This represents the payload required to import a virtual machine from a different lab into the current one", "required": true, "schema": { - "$ref": "#/definitions/Formula" + "$ref": "#/definitions/ImportLabVirtualMachineRequest" } } ], "responses": { "200": { - "description": "Resource 'Formula' update operation succeeded", - "schema": { - "$ref": "#/definitions/Formula" - } + "description": "The request has succeeded." }, - "201": { - "description": "Resource 'Formula' create operation succeeded", - "schema": { - "$ref": "#/definitions/Formula" - }, + "202": { + "description": "Resource operation accepted.", "headers": { "Location": { "type": "string", @@ -2283,21 +2568,23 @@ } }, "x-ms-examples": { - "Formulas_CreateOrUpdate": { - "$ref": "./examples/Formulas_CreateOrUpdate.json" + "Labs_ImportVirtualMachine": { + "$ref": "./examples/Labs_ImportVirtualMachine.json" } }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, "x-ms-long-running-operation": true - }, - "patch": { - "operationId": "Formulas_Update", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/listVhds": { + "post": { + "operationId": "Labs_ListVhds", "tags": [ - "Formulas" + "Labs" ], - "description": "Allows modifying tags of formulas. All other properties will be ignored.", + "description": "List disk images available for custom image creation.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -2309,27 +2596,18 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the formula.", + "description": "The name of the lab.", "required": true, "type": "string" - }, - { - "name": "formula", - "in": "body", - "description": "A formula for creating a VM, specifying an image base and other parameters", - "required": true, - "schema": { - "$ref": "#/definitions/FormulaFragment" - } } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Formula" + "$ref": "#/definitions/LabVhdList" } }, "default": { @@ -2340,17 +2618,22 @@ } }, "x-ms-examples": { - "Formulas_Update": { - "$ref": "./examples/Formulas_Update.json" + "Labs_ListVhds": { + "$ref": "./examples/Labs_ListVhds.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "delete": { - "operationId": "Formulas_Delete", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/notificationchannels": { + "get": { + "operationId": "NotificationChannels_List", "tags": [ - "Formulas" + "NotificationChannels" ], - "description": "Delete formula.", + "description": "List notification channels in a given lab.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -2362,55 +2645,16 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the formula.", + "description": "The name of the lab.", "required": true, "type": "string" - } - ], - "responses": { - "200": { - "description": "Resource deleted successfully." - }, - "204": { - "description": "Resource does not exist." - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Formulas_Delete": { - "$ref": "./examples/Formulas_Delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs": { - "get": { - "operationId": "Labs_ListByResourceGroup", - "tags": [ - "Labs" - ], - "description": "List labs in a resource group.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'", + "description": "Specify the $expand query. Example: 'properties($select=webHookUrl)'", "required": false, "type": "string" }, @@ -2441,7 +2685,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/LabList" + "$ref": "#/definitions/NotificationChannelList" } }, "default": { @@ -2452,8 +2696,8 @@ } }, "x-ms-examples": { - "Labs_ListByResourceGroup": { - "$ref": "./examples/Labs_ListByResourceGroup.json" + "NotificationChannels_List": { + "$ref": "./examples/NotificationChannels_List.json" } }, "x-ms-pageable": { @@ -2461,13 +2705,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/notificationchannels/{notificationChannelName}": { "get": { - "operationId": "Labs_Get", + "operationId": "NotificationChannels_Get", "tags": [ - "Labs" + "NotificationChannels" ], - "description": "Get lab.", + "description": "Get notification channel.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -2479,16 +2723,23 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", "description": "The name of the lab.", "required": true, "type": "string" }, + { + "name": "notificationChannelName", + "in": "path", + "description": "The name of the notification channel.", + "required": true, + "type": "string" + }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'", + "description": "Specify the $expand query. Example: 'properties($select=webHookUrl)'", "required": false, "type": "string" } @@ -2497,7 +2748,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Lab" + "$ref": "#/definitions/NotificationChannel" } }, "default": { @@ -2508,17 +2759,17 @@ } }, "x-ms-examples": { - "Labs_Get": { - "$ref": "./examples/Labs_Get.json" + "NotificationChannels_Get": { + "$ref": "./examples/NotificationChannels_Get.json" } } }, "put": { - "operationId": "Labs_CreateOrUpdate", + "operationId": "NotificationChannels_CreateOrUpdate", "tags": [ - "Labs" + "NotificationChannels" ], - "description": "Create or replace an existing lab. This operation can take a while to complete.", + "description": "Create or replace an existing notification channel.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -2530,44 +2781,40 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "lab", + "name": "notificationChannelName", + "in": "path", + "description": "The name of the notification channel.", + "required": true, + "type": "string" + }, + { + "name": "notificationChannel", "in": "body", - "description": "A lab.", + "description": "A notification.", "required": true, "schema": { - "$ref": "#/definitions/Lab" + "$ref": "#/definitions/NotificationChannel" } } ], "responses": { "200": { - "description": "Resource 'Lab' update operation succeeded", + "description": "Resource 'NotificationChannel' update operation succeeded", "schema": { - "$ref": "#/definitions/Lab" + "$ref": "#/definitions/NotificationChannel" } }, "201": { - "description": "Resource 'Lab' create operation succeeded", + "description": "Resource 'NotificationChannel' create operation succeeded", "schema": { - "$ref": "#/definitions/Lab" - }, - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } + "$ref": "#/definitions/NotificationChannel" } }, "default": { @@ -2578,21 +2825,17 @@ } }, "x-ms-examples": { - "Labs_CreateOrUpdate": { - "$ref": "./examples/Labs_CreateOrUpdate.json" + "NotificationChannels_CreateOrUpdate": { + "$ref": "./examples/NotificationChannels_CreateOrUpdate.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true + } }, "patch": { - "operationId": "Labs_Update", + "operationId": "NotificationChannels_Update", "tags": [ - "Labs" + "NotificationChannels" ], - "description": "Allows modifying tags of labs. All other properties will be ignored.", + "description": "Allows modifying tags of notification channels. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -2604,19 +2847,26 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "lab", - "in": "body", - "description": "A lab.", + "name": "notificationChannelName", + "in": "path", + "description": "The name of the notification channel.", "required": true, - "schema": { - "$ref": "#/definitions/LabFragment" + "type": "string" + }, + { + "name": "notificationChannel", + "in": "body", + "description": "A notification.", + "required": true, + "schema": { + "$ref": "#/definitions/NotificationChannelFragment" } } ], @@ -2624,7 +2874,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Lab" + "$ref": "#/definitions/NotificationChannel" } }, "default": { @@ -2635,17 +2885,17 @@ } }, "x-ms-examples": { - "Labs_Update": { - "$ref": "./examples/Labs_Update.json" + "NotificationChannels_Update": { + "$ref": "./examples/NotificationChannels_Update.json" } } }, "delete": { - "operationId": "Labs_Delete", + "operationId": "NotificationChannels_Delete", "tags": [ - "Labs" + "NotificationChannels" ], - "description": "Delete lab. This operation can take a while to complete.", + "description": "Delete notification channel.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -2657,31 +2907,24 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", "description": "The name of the lab.", "required": true, "type": "string" + }, + { + "name": "notificationChannelName", + "in": "path", + "description": "The name of the notification channel.", + "required": true, + "type": "string" } ], "responses": { "200": { "description": "Resource deleted successfully." }, - "202": { - "description": "Resource deletion accepted.", - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } - } - }, "204": { "description": "Resource does not exist." }, @@ -2693,23 +2936,19 @@ } }, "x-ms-examples": { - "Labs_Delete": { - "$ref": "./examples/Labs_Delete.json" + "NotificationChannels_Delete": { + "$ref": "./examples/NotificationChannels_Delete.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true + } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/{labName}/evaluatePolicies": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/notificationchannels/{notificationChannelName}/notify": { "post": { - "operationId": "PolicySets_EvaluatePolicies", + "operationId": "NotificationChannels_Notify", "tags": [ - "Labs" + "NotificationChannels" ], - "description": "Evaluates lab policy.", + "description": "Send notification to provided channel.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -2721,35 +2960,32 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "labName", + "name": "notificationChannelName", "in": "path", - "description": "The name of the lab.", + "description": "The name of the notification channel.", "required": true, "type": "string" }, { - "name": "evaluatePoliciesRequest", + "name": "notifyParameters", "in": "body", - "description": "Request body for evaluating a policy set.", + "description": "Properties for generating a Notification.", "required": true, "schema": { - "$ref": "#/definitions/EvaluatePoliciesRequest" + "$ref": "#/definitions/NotifyParameters" } } ], "responses": { "200": { - "description": "Azure operation completed successfully.", - "schema": { - "$ref": "#/definitions/EvaluatePoliciesResponse" - } + "description": "The request has succeeded." }, "default": { "description": "An unexpected error response.", @@ -2759,19 +2995,19 @@ } }, "x-ms-examples": { - "PolicySets_EvaluatePolicies": { - "$ref": "./examples/PolicySets_EvaluatePolicies.json" + "NotificationChannels_Notify": { + "$ref": "./examples/NotificationChannels_Notify.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/{labName}/galleryimages": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules": { "get": { - "operationId": "GalleryImages_List", + "operationId": "Schedules_List", "tags": [ - "Labs" + "ScheduleOperationGroup" ], - "description": "List gallery images in a given lab.", + "description": "List schedules in a given lab.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -2782,24 +3018,17 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, - { - "name": "name", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" - }, { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=author)'", + "description": "Specify the $expand query. Example: 'properties($select=status)'", "required": false, "type": "string" }, @@ -2830,7 +3059,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/GalleryImageList" + "$ref": "#/definitions/ScheduleList" } }, "default": { @@ -2841,8 +3070,8 @@ } }, "x-ms-examples": { - "GalleryImages_List": { - "$ref": "./examples/GalleryImages_List.json" + "Schedules_List": { + "$ref": "./examples/Schedules_List.json" } }, "x-ms-pageable": { @@ -2850,13 +3079,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/claimAnyVm": { - "post": { - "operationId": "Labs_ClaimAnyVm", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}": { + "get": { + "operationId": "Schedules_Get", "tags": [ - "Labs" + "ScheduleOperationGroup" ], - "description": "Claim a random claimable virtual machine in the lab. This operation can take a while to complete.", + "description": "Get schedule.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -2867,30 +3096,33 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "labName", + "in": "path", + "description": "labs", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", - "description": "The name of the lab.", + "description": "The name of the Schedule", "required": true, "type": "string" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=status)'", + "required": false, + "type": "string" } ], "responses": { "200": { - "description": "The request has succeeded." - }, - "202": { - "description": "Resource operation accepted.", - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Schedule" } }, "default": { @@ -2901,23 +3133,17 @@ } }, "x-ms-examples": { - "Labs_ClaimAnyVm": { - "$ref": "./examples/Labs_ClaimAnyVm.json" + "Schedules_Get": { + "$ref": "./examples/Schedules_Get.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/createEnvironment": { - "post": { - "operationId": "Labs_CreateEnvironment", + } + }, + "put": { + "operationId": "Schedules_CreateOrUpdate", "tags": [ - "Labs" + "ScheduleOperationGroup" ], - "description": "Create virtual machines in a lab. This operation can take a while to complete.", + "description": "Create or replace an existing schedule.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -2928,39 +3154,41 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "labName", + "in": "path", + "description": "labs", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", - "description": "The name of the lab.", + "description": "The name of the Schedule", "required": true, "type": "string" }, { - "name": "labVirtualMachineCreationParameter", + "name": "schedule", "in": "body", - "description": "Properties for creating a virtual machine.", + "description": "A schedule.", "required": true, "schema": { - "$ref": "#/definitions/LabVirtualMachineCreationParameter" + "$ref": "#/definitions/Schedule" } } ], "responses": { "200": { - "description": "The request has succeeded." + "description": "Resource 'Schedule' update operation succeeded", + "schema": { + "$ref": "#/definitions/Schedule" + } }, - "202": { - "description": "Resource operation accepted.", - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } + "201": { + "description": "Resource 'Schedule' create operation succeeded", + "schema": { + "$ref": "#/definitions/Schedule" } }, "default": { @@ -2971,23 +3199,17 @@ } }, "x-ms-examples": { - "Labs_CreateEnvironment": { - "$ref": "./examples/Labs_CreateEnvironment.json" + "Schedules_CreateOrUpdate": { + "$ref": "./examples/Schedules_CreateOrUpdate.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/exportResourceUsage": { - "post": { - "operationId": "Labs_ExportResourceUsage", + } + }, + "patch": { + "operationId": "Schedules_Update", "tags": [ - "Labs" + "ScheduleOperationGroup" ], - "description": "Exports the lab resource usage into a storage account This operation can take a while to complete.", + "description": "Allows modifying tags of schedules. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -2998,39 +3220,35 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "labName", + "in": "path", + "description": "labs", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", - "description": "The name of the lab.", + "description": "The name of the Schedule", "required": true, "type": "string" }, { - "name": "exportResourceUsageParameters", + "name": "schedule", "in": "body", - "description": "The parameters of the export operation.", + "description": "A schedule.", "required": true, "schema": { - "$ref": "#/definitions/ExportResourceUsageParameters" + "$ref": "#/definitions/ScheduleFragment" } } ], "responses": { "200": { - "description": "The request has succeeded." - }, - "202": { - "description": "Resource operation accepted.", - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Schedule" } }, "default": { @@ -3041,23 +3259,17 @@ } }, "x-ms-examples": { - "Labs_ExportResourceUsage": { - "$ref": "./examples/Labs_ExportResourceUsage.json" - } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/generateUploadUri": { - "post": { - "operationId": "Labs_GenerateUploadUri", + "Schedules_Update": { + "$ref": "./examples/Schedules_Update.json" + } + } + }, + "delete": { + "operationId": "Schedules_Delete", "tags": [ - "Labs" + "ScheduleOperationGroup" ], - "description": "Generate a URI for uploading custom disk images to a Lab.", + "description": "Delete schedule.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3069,28 +3281,26 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { - "name": "generateUploadUriParameter", - "in": "body", - "description": "Properties for generating an upload URI.", + "name": "name", + "in": "path", + "description": "The name of the Schedule", "required": true, - "schema": { - "$ref": "#/definitions/GenerateUploadUriParameter" - } + "type": "string" } ], "responses": { "200": { - "description": "Azure operation completed successfully.", - "schema": { - "$ref": "#/definitions/GenerateUploadUriResponse" - } + "description": "Resource deleted successfully." + }, + "204": { + "description": "Resource does not exist." }, "default": { "description": "An unexpected error response.", @@ -3100,19 +3310,19 @@ } }, "x-ms-examples": { - "Labs_GenerateUploadUri": { - "$ref": "./examples/Labs_GenerateUploadUri.json" + "Schedules_Delete": { + "$ref": "./examples/Schedules_Delete.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/importVirtualMachine": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}/execute": { "post": { - "operationId": "Labs_ImportVirtualMachine", + "operationId": "Schedules_Execute", "tags": [ - "Labs" + "ScheduleOperationGroup" ], - "description": "Import a virtual machine into a different lab. This operation can take a while to complete.", + "description": "Execute a schedule. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3124,20 +3334,18 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { - "name": "importLabVirtualMachineRequest", - "in": "body", - "description": "This represents the payload required to import a virtual machine from a different lab into the current one", + "name": "name", + "in": "path", + "description": "The name of the Schedule", "required": true, - "schema": { - "$ref": "#/definitions/ImportLabVirtualMachineRequest" - } + "type": "string" } ], "responses": { @@ -3166,8 +3374,8 @@ } }, "x-ms-examples": { - "Labs_ImportVirtualMachine": { - "$ref": "./examples/Labs_ImportVirtualMachine.json" + "Schedules_Execute": { + "$ref": "./examples/Schedules_Execute.json" } }, "x-ms-long-running-operation-options": { @@ -3176,13 +3384,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/listVhds": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}/listApplicable": { "post": { - "operationId": "Labs_ListVhds", + "operationId": "Schedules_ListApplicable", "tags": [ - "Labs" + "ScheduleOperationGroup" ], - "description": "List disk images available for custom image creation.", + "description": "Lists all applicable schedules", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3193,10 +3401,17 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "labName", + "in": "path", + "description": "labs", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", - "description": "The name of the lab.", + "description": "The name of the Schedule", "required": true, "type": "string" } @@ -3205,7 +3420,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/LabVhdList" + "$ref": "#/definitions/ScheduleList" } }, "default": { @@ -3216,8 +3431,8 @@ } }, "x-ms-examples": { - "Labs_ListVhds": { - "$ref": "./examples/Labs_ListVhds.json" + "Schedules_ListApplicable": { + "$ref": "./examples/Schedules_ListApplicable.json" } }, "x-ms-pageable": { @@ -3225,13 +3440,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/servicerunners/{serviceRunnerName}": { "get": { - "operationId": "Schedules_List", + "operationId": "ServiceRunners_Get", "tags": [ - "ScheduleOperationGroup" + "ServiceRunners" ], - "description": "List schedules in a given lab.", + "description": "Get service runner.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3243,39 +3458,17 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "devtestLabName", "in": "path", - "description": "labs", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=status)'", - "required": false, - "type": "string" - }, - { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, - "type": "string" - }, - { - "name": "$top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, - "type": "integer", - "format": "int32" - }, - { - "name": "$orderby", - "in": "query", - "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, + "name": "serviceRunnerName", + "in": "path", + "description": "The name of the service runner.", + "required": true, "type": "string" } ], @@ -3283,7 +3476,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ScheduleList" + "$ref": "#/definitions/ServiceRunner" } }, "default": { @@ -3294,22 +3487,17 @@ } }, "x-ms-examples": { - "Schedules_List": { - "$ref": "./examples/Schedules_List.json" + "ServiceRunners_Get": { + "$ref": "./examples/ServiceRunners_Get.json" } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}": { - "get": { - "operationId": "Schedules_Get", + }, + "put": { + "operationId": "ServiceRunners_CreateOrUpdate", "tags": [ - "ScheduleOperationGroup" + "ServiceRunners" ], - "description": "Get schedule.", + "description": "Create or replace an existing service runner.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3321,32 +3509,40 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "devtestLabName", "in": "path", - "description": "labs", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "name", + "name": "serviceRunnerName", "in": "path", - "description": "The name of the Schedule", + "description": "The name of the service runner.", "required": true, "type": "string" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=status)'", - "required": false, - "type": "string" + "name": "serviceRunner", + "in": "body", + "description": "A container for a managed identity to execute DevTest lab services.", + "required": true, + "schema": { + "$ref": "#/definitions/ServiceRunner" + } } ], "responses": { "200": { - "description": "Azure operation completed successfully.", + "description": "Resource 'ServiceRunner' update operation succeeded", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/ServiceRunner" + } + }, + "201": { + "description": "Resource 'ServiceRunner' create operation succeeded", + "schema": { + "$ref": "#/definitions/ServiceRunner" } }, "default": { @@ -3357,17 +3553,17 @@ } }, "x-ms-examples": { - "Schedules_Get": { - "$ref": "./examples/Schedules_Get.json" + "ServiceRunners_CreateOrUpdate": { + "$ref": "./examples/ServiceRunners_CreateOrUpdate.json" } } }, - "put": { - "operationId": "Schedules_CreateOrUpdate", + "delete": { + "operationId": "ServiceRunners_Delete", "tags": [ - "ScheduleOperationGroup" + "ServiceRunners" ], - "description": "Create or replace an existing schedule.", + "description": "Delete service runner.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3379,41 +3575,26 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "devtestLabName", "in": "path", - "description": "labs", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "name", + "name": "serviceRunnerName", "in": "path", - "description": "The name of the Schedule", + "description": "The name of the service runner.", "required": true, "type": "string" - }, - { - "name": "schedule", - "in": "body", - "description": "A schedule.", - "required": true, - "schema": { - "$ref": "#/definitions/Schedule" - } } ], "responses": { "200": { - "description": "Resource 'Schedule' update operation succeeded", - "schema": { - "$ref": "#/definitions/Schedule" - } + "description": "Resource deleted successfully." }, - "201": { - "description": "Resource 'Schedule' create operation succeeded", - "schema": { - "$ref": "#/definitions/Schedule" - } + "204": { + "description": "Resource does not exist." }, "default": { "description": "An unexpected error response.", @@ -3423,17 +3604,19 @@ } }, "x-ms-examples": { - "Schedules_CreateOrUpdate": { - "$ref": "./examples/Schedules_CreateOrUpdate.json" + "ServiceRunners_Delete": { + "$ref": "./examples/ServiceRunners_Delete.json" } } - }, - "patch": { - "operationId": "Schedules_Update", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users": { + "get": { + "operationId": "Users_List", "tags": [ - "ScheduleOperationGroup" + "Users" ], - "description": "Allows modifying tags of schedules. All other properties will be ignored.", + "description": "List user profiles in a given lab.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3445,34 +3628,47 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "devtestLabName", "in": "path", - "description": "labs", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "name", - "in": "path", - "description": "The name of the Schedule", - "required": true, + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=identity)'", + "required": false, "type": "string" }, { - "name": "schedule", - "in": "body", - "description": "A schedule.", - "required": true, - "schema": { - "$ref": "#/definitions/ScheduleFragment" - } - } - ], - "responses": { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, + "type": "string" + } + ], + "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/UserList" } }, "default": { @@ -3483,17 +3679,22 @@ } }, "x-ms-examples": { - "Schedules_Update": { - "$ref": "./examples/Schedules_Update.json" + "Users_List": { + "$ref": "./examples/Users_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "delete": { - "operationId": "Schedules_Delete", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users/{userName}": { + "get": { + "operationId": "Users_Get", "tags": [ - "ScheduleOperationGroup" + "Users" ], - "description": "Delete schedule.", + "description": "Get user profile.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3505,26 +3706,33 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "devtestLabName", "in": "path", - "description": "labs", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "name", + "name": "userName", "in": "path", - "description": "The name of the Schedule", + "description": "The name of the user profile.", "required": true, "type": "string" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=identity)'", + "required": false, + "type": "string" } ], "responses": { "200": { - "description": "Resource deleted successfully." - }, - "204": { - "description": "Resource does not exist." + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/User" + } }, "default": { "description": "An unexpected error response.", @@ -3534,19 +3742,17 @@ } }, "x-ms-examples": { - "Schedules_Delete": { - "$ref": "./examples/Schedules_Delete.json" + "Users_Get": { + "$ref": "./examples/Users_Get.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}/execute": { - "post": { - "operationId": "Schedules_Execute", + }, + "put": { + "operationId": "Users_CreateOrUpdate", "tags": [ - "ScheduleOperationGroup" + "Users" ], - "description": "Execute a schedule. This operation can take a while to complete.", + "description": "Create or replace an existing user profile. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3558,26 +3764,41 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "devtestLabName", "in": "path", - "description": "labs", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "name", + "name": "userName", "in": "path", - "description": "The name of the Schedule", + "description": "The name of the user profile.", "required": true, "type": "string" + }, + { + "name": "user", + "in": "body", + "description": "Profile of a lab user.", + "required": true, + "schema": { + "$ref": "#/definitions/User" + } } ], "responses": { "200": { - "description": "The request has succeeded." + "description": "Resource 'User' update operation succeeded", + "schema": { + "$ref": "#/definitions/User" + } }, - "202": { - "description": "Resource operation accepted.", + "201": { + "description": "Resource 'User' create operation succeeded", + "schema": { + "$ref": "#/definitions/User" + }, "headers": { "Location": { "type": "string", @@ -3598,23 +3819,21 @@ } }, "x-ms-examples": { - "Schedules_Execute": { - "$ref": "./examples/Schedules_Execute.json" + "Users_CreateOrUpdate": { + "$ref": "./examples/Users_CreateOrUpdate.json" } }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}/listApplicable": { - "post": { - "operationId": "Schedules_ListApplicable", + }, + "patch": { + "operationId": "Users_Update", "tags": [ - "ScheduleOperationGroup" + "Users" ], - "description": "Lists all applicable schedules", + "description": "Allows modifying tags of user profiles. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3626,25 +3845,34 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "devtestLabName", "in": "path", - "description": "labs", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "name", + "name": "userName", "in": "path", - "description": "The name of the Schedule", + "description": "The name of the user profile.", "required": true, "type": "string" + }, + { + "name": "user", + "in": "body", + "description": "Profile of a lab user.", + "required": true, + "schema": { + "$ref": "#/definitions/UserFragment" + } } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ScheduleList" + "$ref": "#/definitions/User" } }, "default": { @@ -3655,22 +3883,17 @@ } }, "x-ms-examples": { - "Schedules_ListApplicable": { - "$ref": "./examples/Schedules_ListApplicable.json" + "Users_Update": { + "$ref": "./examples/Users_Update.json" } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules": { - "get": { - "operationId": "ServiceFabricSchedules_List", + }, + "delete": { + "operationId": "Users_Delete", "tags": [ - "ServiceFabricSchedules" + "Users" ], - "description": "List schedules in a given service fabric.", + "description": "Delete user profile. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3682,30 +3905,94 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "devtestLabName", "in": "path", - "description": "labs", + "description": "The name of the lab.", "required": true, "type": "string" }, { "name": "userName", "in": "path", - "description": "users", + "description": "The name of the user profile.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Users_Delete": { + "$ref": "./examples/Users_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users/{userName}/disks": { + "get": { + "operationId": "Disks_List", + "tags": [ + "Disks" + ], + "description": "List disks in a given user profile.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "serviceFabricName", + "name": "userName", "in": "path", - "description": "servicefabrics", + "description": "The name of the user profile.", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=status)'", + "description": "Specify the $expand query. Example: 'properties($select=diskType)'", "required": false, "type": "string" }, @@ -3736,7 +4023,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ScheduleList" + "$ref": "#/definitions/DiskList" } }, "default": { @@ -3747,8 +4034,8 @@ } }, "x-ms-examples": { - "ServiceFabricSchedules_List": { - "$ref": "./examples/ServiceFabricSchedules_List.json" + "Disks_List": { + "$ref": "./examples/Disks_List.json" } }, "x-ms-pageable": { @@ -3756,13 +4043,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users/{userName}/disks/{diskName}": { "get": { - "operationId": "ServiceFabricSchedules_Get", + "operationId": "Disks_Get", "tags": [ - "ServiceFabricSchedules" + "Disks" ], - "description": "Get schedule.", + "description": "Get disk.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3774,37 +4061,30 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "devtestLabName", "in": "path", - "description": "labs", + "description": "The name of the lab.", "required": true, "type": "string" }, { "name": "userName", "in": "path", - "description": "users", + "description": "The name of the user profile.", "required": true, "type": "string" }, { - "name": "serviceFabricName", + "name": "diskName", "in": "path", - "description": "servicefabrics", - "required": true, - "type": "string" - }, - { - "name": "name", - "in": "path", - "description": "The name of the Schedule", + "description": "The name of the disk.", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=status)'", + "description": "Specify the $expand query. Example: 'properties($select=diskType)'", "required": false, "type": "string" } @@ -3813,7 +4093,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/Disk" } }, "default": { @@ -3824,17 +4104,17 @@ } }, "x-ms-examples": { - "ServiceFabricSchedules_Get": { - "$ref": "./examples/ServiceFabricSchedules_Get.json" + "Disks_Get": { + "$ref": "./examples/Disks_Get.json" } } }, "put": { - "operationId": "ServiceFabricSchedules_CreateOrUpdate", + "operationId": "Disks_CreateOrUpdate", "tags": [ - "ServiceFabricSchedules" + "Disks" ], - "description": "Create or replace an existing schedule.", + "description": "Create or replace an existing disk. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3846,54 +4126,58 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "devtestLabName", "in": "path", - "description": "labs", + "description": "The name of the lab.", "required": true, "type": "string" }, { "name": "userName", "in": "path", - "description": "users", - "required": true, - "type": "string" - }, - { - "name": "serviceFabricName", - "in": "path", - "description": "servicefabrics", + "description": "The name of the user profile.", "required": true, "type": "string" }, { - "name": "name", + "name": "diskName", "in": "path", - "description": "The name of the Schedule", + "description": "The name of the disk.", "required": true, "type": "string" }, { - "name": "schedule", + "name": "disk", "in": "body", - "description": "A schedule.", + "description": "A Disk.", "required": true, "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/Disk" } } ], "responses": { "200": { - "description": "Resource 'Schedule' update operation succeeded", + "description": "Resource 'Disk' update operation succeeded", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/Disk" } }, "201": { - "description": "Resource 'Schedule' create operation succeeded", + "description": "Resource 'Disk' create operation succeeded", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/Disk" + }, + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { @@ -3904,17 +4188,21 @@ } }, "x-ms-examples": { - "ServiceFabricSchedules_CreateOrUpdate": { - "$ref": "./examples/ServiceFabricSchedules_CreateOrUpdate.json" + "Disks_CreateOrUpdate": { + "$ref": "./examples/Disks_CreateOrUpdate.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true }, "patch": { - "operationId": "ServiceFabricSchedules_Update", + "operationId": "Disks_Update", "tags": [ - "ServiceFabricSchedules" + "Disks" ], - "description": "Allows modifying tags of schedules. All other properties will be ignored.", + "description": "Allows modifying tags of disks. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3926,40 +4214,33 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "devtestLabName", "in": "path", - "description": "labs", + "description": "The name of the lab.", "required": true, "type": "string" }, { "name": "userName", "in": "path", - "description": "users", - "required": true, - "type": "string" - }, - { - "name": "serviceFabricName", - "in": "path", - "description": "servicefabrics", + "description": "The name of the user profile.", "required": true, "type": "string" }, { - "name": "name", + "name": "diskName", "in": "path", - "description": "The name of the Schedule", + "description": "The name of the disk.", "required": true, "type": "string" }, { - "name": "schedule", + "name": "disk", "in": "body", - "description": "A schedule.", + "description": "A Disk.", "required": true, "schema": { - "$ref": "#/definitions/ScheduleFragment" + "$ref": "#/definitions/DiskFragment" } } ], @@ -3967,7 +4248,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/Disk" } }, "default": { @@ -3978,17 +4259,17 @@ } }, "x-ms-examples": { - "ServiceFabricSchedules_Update": { - "$ref": "./examples/ServiceFabricSchedules_Update.json" + "Disks_Update": { + "$ref": "./examples/Disks_Update.json" } } }, "delete": { - "operationId": "ServiceFabricSchedules_Delete", + "operationId": "Disks_Delete", "tags": [ - "ServiceFabricSchedules" + "Disks" ], - "description": "Delete schedule.", + "description": "Delete disk. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -4000,30 +4281,23 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "devtestLabName", "in": "path", - "description": "labs", + "description": "The name of the lab.", "required": true, "type": "string" }, { "name": "userName", "in": "path", - "description": "users", - "required": true, - "type": "string" - }, - { - "name": "serviceFabricName", - "in": "path", - "description": "servicefabrics", + "description": "The name of the user profile.", "required": true, "type": "string" }, { - "name": "name", + "name": "diskName", "in": "path", - "description": "The name of the Schedule", + "description": "The name of the disk.", "required": true, "type": "string" } @@ -4032,6 +4306,20 @@ "200": { "description": "Resource deleted successfully." }, + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, "204": { "description": "Resource does not exist." }, @@ -4043,19 +4331,23 @@ } }, "x-ms-examples": { - "ServiceFabricSchedules_Delete": { - "$ref": "./examples/ServiceFabricSchedules_Delete.json" + "Disks_Delete": { + "$ref": "./examples/Disks_Delete.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules/{name}/execute": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users/{userName}/disks/{diskName}/attach": { "post": { - "operationId": "ServiceFabricSchedules_Execute", + "operationId": "Disks_Attach", "tags": [ - "ServiceFabricSchedules" + "Disks" ], - "description": "Execute a schedule. This operation can take a while to complete.", + "description": "Attach and create the lease of the disk to the virtual machine. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -4067,32 +4359,34 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "devtestLabName", "in": "path", - "description": "labs", + "description": "The name of the lab.", "required": true, "type": "string" }, { "name": "userName", "in": "path", - "description": "users", + "description": "The name of the user profile.", "required": true, "type": "string" }, { - "name": "serviceFabricName", + "name": "diskName", "in": "path", - "description": "servicefabrics", + "description": "The name of the disk.", "required": true, "type": "string" }, { - "name": "name", - "in": "path", - "description": "The name of the Schedule", + "name": "attachDiskProperties", + "in": "body", + "description": "Properties of the disk to attach.", "required": true, - "type": "string" + "schema": { + "$ref": "#/definitions/AttachDiskProperties" + } } ], "responses": { @@ -4121,8 +4415,8 @@ } }, "x-ms-examples": { - "ServiceFabricSchedules_Execute": { - "$ref": "./examples/ServiceFabricSchedules_Execute.json" + "Disks_Attach": { + "$ref": "./examples/Disks_Attach.json" } }, "x-ms-long-running-operation-options": { @@ -4131,13 +4425,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules": { - "get": { - "operationId": "VirtualMachineSchedules_List", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users/{userName}/disks/{diskName}/detach": { + "post": { + "operationId": "Disks_Detach", "tags": [ - "VirtualMachineSchedules" + "Disks" ], - "description": "List schedules in a given virtual machine.", + "description": "Detach and break the lease of the disk attached to the virtual machine. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -4149,54 +4443,52 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "devtestLabName", "in": "path", - "description": "labs", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "virtualMachineName", + "name": "userName", "in": "path", - "description": "virtualmachines", + "description": "The name of the user profile.", "required": true, "type": "string" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=status)'", - "required": false, - "type": "string" - }, - { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, + "name": "diskName", + "in": "path", + "description": "The name of the disk.", + "required": true, "type": "string" }, { - "name": "$top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, - "type": "integer", - "format": "int32" - }, - { - "name": "$orderby", - "in": "query", - "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, - "type": "string" + "name": "detachDiskProperties", + "in": "body", + "description": "Properties of the disk to detach.", + "required": true, + "schema": { + "$ref": "#/definitions/DetachDiskProperties" + } } ], "responses": { "200": { - "description": "Azure operation completed successfully.", - "schema": { - "$ref": "#/definitions/ScheduleList" + "description": "The request has succeeded." + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { @@ -4207,22 +4499,23 @@ } }, "x-ms-examples": { - "VirtualMachineSchedules_List": { - "$ref": "./examples/VirtualMachineSchedules_List.json" + "Disks_Detach": { + "$ref": "./examples/Disks_Detach.json" } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users/{userName}/environments": { "get": { - "operationId": "VirtualMachineSchedules_Get", + "operationId": "Environments_List", "tags": [ - "VirtualMachineSchedules" + "DtlEnvironments" ], - "description": "Get schedule.", + "description": "List environments in a given user profile.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -4234,30 +4527,45 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "devtestLabName", "in": "path", - "description": "labs", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "virtualMachineName", + "name": "userName", "in": "path", - "description": "virtualmachines", + "description": "The name of the user profile.", "required": true, "type": "string" }, { - "name": "name", - "in": "path", - "description": "The name of the Schedule", - "required": true, + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=deploymentProperties)'", + "required": false, "type": "string" }, { - "name": "$expand", + "name": "$filter", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=status)'", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", "required": false, "type": "string" } @@ -4266,7 +4574,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/DtlEnvironmentList" } }, "default": { @@ -4277,17 +4585,22 @@ } }, "x-ms-examples": { - "VirtualMachineSchedules_Get": { - "$ref": "./examples/VirtualMachineSchedules_Get.json" + "Environments_List": { + "$ref": "./examples/Environments_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "put": { - "operationId": "VirtualMachineSchedules_CreateOrUpdate", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users/{userName}/environments/{dtlEnvironmentName}": { + "get": { + "operationId": "Environments_Get", "tags": [ - "VirtualMachineSchedules" + "DtlEnvironments" ], - "description": "Create or replace an existing schedule.", + "description": "Get environment.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -4299,47 +4612,39 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "devtestLabName", "in": "path", - "description": "labs", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "virtualMachineName", + "name": "userName", "in": "path", - "description": "virtualmachines", + "description": "The name of the user profile.", "required": true, "type": "string" }, { - "name": "name", + "name": "dtlEnvironmentName", "in": "path", - "description": "The name of the Schedule", + "description": "The name of the environment.", "required": true, "type": "string" }, { - "name": "schedule", - "in": "body", - "description": "A schedule.", - "required": true, - "schema": { - "$ref": "#/definitions/Schedule" - } + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=deploymentProperties)'", + "required": false, + "type": "string" } ], "responses": { "200": { - "description": "Resource 'Schedule' update operation succeeded", - "schema": { - "$ref": "#/definitions/Schedule" - } - }, - "201": { - "description": "Resource 'Schedule' create operation succeeded", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/DtlEnvironment" } }, "default": { @@ -4350,17 +4655,17 @@ } }, "x-ms-examples": { - "VirtualMachineSchedules_CreateOrUpdate": { - "$ref": "./examples/VirtualMachineSchedules_CreateOrUpdate.json" + "Environments_Get": { + "$ref": "./examples/Environments_Get.json" } } }, - "patch": { - "operationId": "VirtualMachineSchedules_Update", + "put": { + "operationId": "Environments_CreateOrUpdate", "tags": [ - "VirtualMachineSchedules" + "DtlEnvironments" ], - "description": "Allows modifying tags of schedules. All other properties will be ignored.", + "description": "Create or replace an existing environment. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -4372,41 +4677,58 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "devtestLabName", "in": "path", - "description": "labs", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "virtualMachineName", + "name": "userName", "in": "path", - "description": "virtualmachines", + "description": "The name of the user profile.", "required": true, "type": "string" }, { - "name": "name", + "name": "dtlEnvironmentName", "in": "path", - "description": "The name of the Schedule", + "description": "The name of the environment.", "required": true, "type": "string" }, { - "name": "schedule", + "name": "dtlEnvironment", "in": "body", - "description": "A schedule.", + "description": "An environment, which is essentially an ARM template deployment.", "required": true, "schema": { - "$ref": "#/definitions/ScheduleFragment" + "$ref": "#/definitions/DtlEnvironment" } } ], "responses": { "200": { - "description": "Azure operation completed successfully.", + "description": "Resource 'DtlEnvironment' update operation succeeded", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/DtlEnvironment" + } + }, + "201": { + "description": "Resource 'DtlEnvironment' create operation succeeded", + "schema": { + "$ref": "#/definitions/DtlEnvironment" + }, + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { @@ -4417,17 +4739,21 @@ } }, "x-ms-examples": { - "VirtualMachineSchedules_Update": { - "$ref": "./examples/VirtualMachineSchedules_Update.json" + "Environments_CreateOrUpdate": { + "$ref": "./examples/Environments_CreateOrUpdate.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true }, - "delete": { - "operationId": "VirtualMachineSchedules_Delete", + "patch": { + "operationId": "Environments_Update", "tags": [ - "VirtualMachineSchedules" + "DtlEnvironments" ], - "description": "Delete schedule.", + "description": "Allows modifying tags of environments. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -4439,33 +4765,42 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "devtestLabName", "in": "path", - "description": "labs", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "virtualMachineName", + "name": "userName", "in": "path", - "description": "virtualmachines", + "description": "The name of the user profile.", "required": true, "type": "string" }, { - "name": "name", + "name": "dtlEnvironmentName", "in": "path", - "description": "The name of the Schedule", + "description": "The name of the environment.", "required": true, "type": "string" + }, + { + "name": "dtlEnvironment", + "in": "body", + "description": "An environment, which is essentially an ARM template deployment.", + "required": true, + "schema": { + "$ref": "#/definitions/DtlEnvironmentFragment" + } } ], "responses": { "200": { - "description": "Resource deleted successfully." - }, - "204": { - "description": "Resource does not exist." + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/DtlEnvironment" + } }, "default": { "description": "An unexpected error response.", @@ -4475,19 +4810,17 @@ } }, "x-ms-examples": { - "VirtualMachineSchedules_Delete": { - "$ref": "./examples/VirtualMachineSchedules_Delete.json" + "Environments_Update": { + "$ref": "./examples/Environments_Update.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules/{name}/execute": { - "post": { - "operationId": "VirtualMachineSchedules_Execute", + }, + "delete": { + "operationId": "Environments_Delete", "tags": [ - "VirtualMachineSchedules" + "DtlEnvironments" ], - "description": "Execute a schedule. This operation can take a while to complete.", + "description": "Delete environment. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -4499,33 +4832,33 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "devtestLabName", "in": "path", - "description": "labs", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "virtualMachineName", + "name": "userName", "in": "path", - "description": "virtualmachines", + "description": "The name of the user profile.", "required": true, "type": "string" }, { - "name": "name", + "name": "dtlEnvironmentName", "in": "path", - "description": "The name of the Schedule", + "description": "The name of the environment.", "required": true, "type": "string" } ], "responses": { "200": { - "description": "The request has succeeded." + "description": "Resource deleted successfully." }, "202": { - "description": "Resource operation accepted.", + "description": "Resource deletion accepted.", "headers": { "Location": { "type": "string", @@ -4538,6 +4871,9 @@ } } }, + "204": { + "description": "Resource does not exist." + }, "default": { "description": "An unexpected error response.", "schema": { @@ -4546,8 +4882,8 @@ } }, "x-ms-examples": { - "VirtualMachineSchedules_Execute": { - "$ref": "./examples/VirtualMachineSchedules_Execute.json" + "Environments_Delete": { + "$ref": "./examples/Environments_Delete.json" } }, "x-ms-long-running-operation-options": { @@ -4556,13 +4892,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/notificationchannels": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users/{userName}/secrets": { "get": { - "operationId": "NotificationChannels_List", + "operationId": "Secrets_List", "tags": [ - "NotificationChannels" + "Secrets" ], - "description": "List notification channels in a given lab.", + "description": "List secrets in a given user profile.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -4573,10 +4909,24 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, + { + "name": "userName", + "in": "path", + "description": "The name of the user profile.", + "required": true, + "type": "string" + }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=webHookUrl)'", + "description": "Specify the $expand query. Example: 'properties($select=value)'", "required": false, "type": "string" }, @@ -4607,7 +4957,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/NotificationChannelList" + "$ref": "#/definitions/SecretList" } }, "default": { @@ -4618,8 +4968,8 @@ } }, "x-ms-examples": { - "NotificationChannels_List": { - "$ref": "./examples/NotificationChannels_List.json" + "Secrets_List": { + "$ref": "./examples/Secrets_List.json" } }, "x-ms-pageable": { @@ -4627,13 +4977,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/notificationchannels/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users/{userName}/secrets/{secretName}": { "get": { - "operationId": "NotificationChannels_Get", + "operationId": "Secrets_Get", "tags": [ - "NotificationChannels" + "Secrets" ], - "description": "Get notification channel.", + "description": "Get secret.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -4645,16 +4995,30 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the notification channel.", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, + { + "name": "userName", + "in": "path", + "description": "The name of the user profile.", + "required": true, + "type": "string" + }, + { + "name": "secretName", + "in": "path", + "description": "The name of the secret.", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=webHookUrl)'", + "description": "Specify the $expand query. Example: 'properties($select=value)'", "required": false, "type": "string" } @@ -4663,7 +5027,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/NotificationChannel" + "$ref": "#/definitions/Secret" } }, "default": { @@ -4674,17 +5038,17 @@ } }, "x-ms-examples": { - "NotificationChannels_Get": { - "$ref": "./examples/NotificationChannels_Get.json" + "Secrets_Get": { + "$ref": "./examples/Secrets_Get.json" } } }, "put": { - "operationId": "NotificationChannels_CreateOrUpdate", + "operationId": "Secrets_CreateOrUpdate", "tags": [ - "NotificationChannels" + "Secrets" ], - "description": "Create or replace an existing notification channel.", + "description": "Create or replace an existing secret. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -4696,33 +5060,58 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the notification channel.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "notificationChannel", + "name": "userName", + "in": "path", + "description": "The name of the user profile.", + "required": true, + "type": "string" + }, + { + "name": "secretName", + "in": "path", + "description": "The name of the secret.", + "required": true, + "type": "string" + }, + { + "name": "secret", "in": "body", - "description": "A notification.", + "description": "A secret.", "required": true, "schema": { - "$ref": "#/definitions/NotificationChannel" + "$ref": "#/definitions/Secret" } } ], "responses": { "200": { - "description": "Resource 'NotificationChannel' update operation succeeded", + "description": "Resource 'Secret' update operation succeeded", "schema": { - "$ref": "#/definitions/NotificationChannel" + "$ref": "#/definitions/Secret" } }, "201": { - "description": "Resource 'NotificationChannel' create operation succeeded", + "description": "Resource 'Secret' create operation succeeded", "schema": { - "$ref": "#/definitions/NotificationChannel" + "$ref": "#/definitions/Secret" + }, + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { @@ -4733,17 +5122,21 @@ } }, "x-ms-examples": { - "NotificationChannels_CreateOrUpdate": { - "$ref": "./examples/NotificationChannels_CreateOrUpdate.json" + "Secrets_CreateOrUpdate": { + "$ref": "./examples/Secrets_CreateOrUpdate.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true }, "patch": { - "operationId": "NotificationChannels_Update", + "operationId": "Secrets_Update", "tags": [ - "NotificationChannels" + "Secrets" ], - "description": "Allows modifying tags of notification channels. All other properties will be ignored.", + "description": "Allows modifying tags of secrets. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -4755,19 +5148,33 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the notification channel.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "notificationChannel", + "name": "userName", + "in": "path", + "description": "The name of the user profile.", + "required": true, + "type": "string" + }, + { + "name": "secretName", + "in": "path", + "description": "The name of the secret.", + "required": true, + "type": "string" + }, + { + "name": "secret", "in": "body", - "description": "A notification.", + "description": "A secret.", "required": true, "schema": { - "$ref": "#/definitions/NotificationChannelFragment" + "$ref": "#/definitions/SecretFragment" } } ], @@ -4775,7 +5182,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/NotificationChannel" + "$ref": "#/definitions/Secret" } }, "default": { @@ -4786,17 +5193,17 @@ } }, "x-ms-examples": { - "NotificationChannels_Update": { - "$ref": "./examples/NotificationChannels_Update.json" + "Secrets_Update": { + "$ref": "./examples/Secrets_Update.json" } } }, "delete": { - "operationId": "NotificationChannels_Delete", + "operationId": "Secrets_Delete", "tags": [ - "NotificationChannels" + "Secrets" ], - "description": "Delete notification channel.", + "description": "Delete secret.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -4808,9 +5215,23 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the notification channel.", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, + { + "name": "userName", + "in": "path", + "description": "The name of the user profile.", + "required": true, + "type": "string" + }, + { + "name": "secretName", + "in": "path", + "description": "The name of the secret.", "required": true, "type": "string" } @@ -4830,19 +5251,19 @@ } }, "x-ms-examples": { - "NotificationChannels_Delete": { - "$ref": "./examples/NotificationChannels_Delete.json" + "Secrets_Delete": { + "$ref": "./examples/Secrets_Delete.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/notificationchannels/{name}/notify": { - "post": { - "operationId": "NotificationChannels_Notify", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users/{userName}/servicefabrics": { + "get": { + "operationId": "ServiceFabrics_List", "tags": [ - "NotificationChannels" + "ServiceFabrics" ], - "description": "Send notification to provided channel.", + "description": "List service fabrics in a given user profile.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -4854,61 +5275,23 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the notification channel.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "notifyParameters", - "in": "body", - "description": "Properties for generating a Notification.", + "name": "userName", + "in": "path", + "description": "The name of the user profile.", "required": true, - "schema": { - "$ref": "#/definitions/NotifyParameters" - } - } - ], - "responses": { - "200": { - "description": "The request has succeeded." - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationChannels_Notify": { - "$ref": "./examples/NotificationChannels_Notify.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/policies": { - "get": { - "operationId": "Policies_List", - "tags": [ - "Policies" - ], - "description": "List policies in a given policy set.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=description)'", + "description": "Specify the $expand query. Example: 'properties($expand=applicableSchedule)'", "required": false, "type": "string" }, @@ -4939,7 +5322,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/PolicyList" + "$ref": "#/definitions/ServiceFabricList" } }, "default": { @@ -4950,8 +5333,8 @@ } }, "x-ms-examples": { - "Policies_List": { - "$ref": "./examples/Policies_List.json" + "ServiceFabrics_List": { + "$ref": "./examples/ServiceFabrics_List.json" } }, "x-ms-pageable": { @@ -4959,13 +5342,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/policies/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users/{userName}/servicefabrics/{serviceFabricName}": { "get": { - "operationId": "Policies_Get", + "operationId": "ServiceFabrics_Get", "tags": [ - "Policies" + "ServiceFabrics" ], - "description": "Get policy.", + "description": "Get service fabric.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -4977,16 +5360,30 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the policy.", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, + { + "name": "userName", + "in": "path", + "description": "The name of the user profile.", + "required": true, + "type": "string" + }, + { + "name": "serviceFabricName", + "in": "path", + "description": "The name of the service fabric.", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=description)'", + "description": "Specify the $expand query. Example: 'properties($expand=applicableSchedule)'", "required": false, "type": "string" } @@ -4995,7 +5392,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Policy" + "$ref": "#/definitions/ServiceFabric" } }, "default": { @@ -5006,17 +5403,17 @@ } }, "x-ms-examples": { - "Policies_Get": { - "$ref": "./examples/Policies_Get.json" + "ServiceFabrics_Get": { + "$ref": "./examples/ServiceFabrics_Get.json" } } }, "put": { - "operationId": "Policies_CreateOrUpdate", + "operationId": "ServiceFabrics_CreateOrUpdate", "tags": [ - "Policies" + "ServiceFabrics" ], - "description": "Create or replace an existing policy.", + "description": "Create or replace an existing service fabric. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -5028,33 +5425,58 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the policy.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "policy", - "in": "body", - "description": "A Policy.", + "name": "userName", + "in": "path", + "description": "The name of the user profile.", "required": true, - "schema": { - "$ref": "#/definitions/Policy" + "type": "string" + }, + { + "name": "serviceFabricName", + "in": "path", + "description": "The name of the service fabric.", + "required": true, + "type": "string" + }, + { + "name": "serviceFabric", + "in": "body", + "description": "A Service Fabric.", + "required": true, + "schema": { + "$ref": "#/definitions/ServiceFabric" } } ], "responses": { "200": { - "description": "Resource 'Policy' update operation succeeded", + "description": "Resource 'ServiceFabric' update operation succeeded", "schema": { - "$ref": "#/definitions/Policy" + "$ref": "#/definitions/ServiceFabric" } }, "201": { - "description": "Resource 'Policy' create operation succeeded", + "description": "Resource 'ServiceFabric' create operation succeeded", "schema": { - "$ref": "#/definitions/Policy" + "$ref": "#/definitions/ServiceFabric" + }, + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { @@ -5065,17 +5487,21 @@ } }, "x-ms-examples": { - "Policies_CreateOrUpdate": { - "$ref": "./examples/Policies_CreateOrUpdate.json" + "ServiceFabrics_CreateOrUpdate": { + "$ref": "./examples/ServiceFabrics_CreateOrUpdate.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true }, "patch": { - "operationId": "Policies_Update", + "operationId": "ServiceFabrics_Update", "tags": [ - "Policies" + "ServiceFabrics" ], - "description": "Allows modifying tags of policies. All other properties will be ignored.", + "description": "Allows modifying tags of service fabrics. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -5087,19 +5513,33 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the policy.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "policy", + "name": "userName", + "in": "path", + "description": "The name of the user profile.", + "required": true, + "type": "string" + }, + { + "name": "serviceFabricName", + "in": "path", + "description": "The name of the service fabric.", + "required": true, + "type": "string" + }, + { + "name": "serviceFabric", "in": "body", - "description": "A Policy.", + "description": "A Service Fabric.", "required": true, "schema": { - "$ref": "#/definitions/PolicyFragment" + "$ref": "#/definitions/ServiceFabricFragment" } } ], @@ -5107,7 +5547,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Policy" + "$ref": "#/definitions/ServiceFabric" } }, "default": { @@ -5118,17 +5558,17 @@ } }, "x-ms-examples": { - "Policies_Update": { - "$ref": "./examples/Policies_Update.json" + "ServiceFabrics_Update": { + "$ref": "./examples/ServiceFabrics_Update.json" } } }, "delete": { - "operationId": "Policies_Delete", + "operationId": "ServiceFabrics_Delete", "tags": [ - "Policies" + "ServiceFabrics" ], - "description": "Delete policy.", + "description": "Delete service fabric. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -5140,9 +5580,23 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the policy.", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, + { + "name": "userName", + "in": "path", + "description": "The name of the user profile.", + "required": true, + "type": "string" + }, + { + "name": "serviceFabricName", + "in": "path", + "description": "The name of the service fabric.", "required": true, "type": "string" } @@ -5151,6 +5605,20 @@ "200": { "description": "Resource deleted successfully." }, + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, "204": { "description": "Resource does not exist." }, @@ -5162,19 +5630,83 @@ } }, "x-ms-examples": { - "Policies_Delete": { - "$ref": "./examples/Policies_Delete.json" + "ServiceFabrics_Delete": { + "$ref": "./examples/ServiceFabrics_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users/{userName}/servicefabrics/{serviceFabricName}/listApplicableSchedules": { + "post": { + "operationId": "ServiceFabrics_ListApplicableSchedules", + "tags": [ + "ServiceFabrics" + ], + "description": "Lists the applicable start/stop schedules, if any.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, + { + "name": "userName", + "in": "path", + "description": "The name of the user profile.", + "required": true, + "type": "string" + }, + { + "name": "serviceFabricName", + "in": "path", + "description": "The name of the service fabric.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApplicableSchedule" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ServiceFabrics_ListApplicableSchedules": { + "$ref": "./examples/ServiceFabrics_ListApplicableSchedules.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules": { "get": { - "operationId": "GlobalSchedules_ListByResourceGroup", + "operationId": "ServiceFabricSchedules_List", "tags": [ - "Schedules" + "ServiceFabricSchedules" ], - "description": "List schedules in a resource group.", + "description": "List schedules in a given service fabric.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -5185,6 +5717,27 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "labName", + "in": "path", + "description": "labs", + "required": true, + "type": "string" + }, + { + "name": "userName", + "in": "path", + "description": "users", + "required": true, + "type": "string" + }, + { + "name": "serviceFabricName", + "in": "path", + "description": "servicefabrics", + "required": true, + "type": "string" + }, { "name": "$expand", "in": "query", @@ -5230,8 +5783,8 @@ } }, "x-ms-examples": { - "GlobalSchedules_ListByResourceGroup": { - "$ref": "./examples/GlobalSchedules_ListByResourceGroup.json" + "ServiceFabricSchedules_List": { + "$ref": "./examples/ServiceFabricSchedules_List.json" } }, "x-ms-pageable": { @@ -5239,11 +5792,11 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules/{name}": { "get": { - "operationId": "GlobalSchedules_Get", + "operationId": "ServiceFabricSchedules_Get", "tags": [ - "Schedules" + "ServiceFabricSchedules" ], "description": "Get schedule.", "parameters": [ @@ -5256,6 +5809,27 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "labName", + "in": "path", + "description": "labs", + "required": true, + "type": "string" + }, + { + "name": "userName", + "in": "path", + "description": "users", + "required": true, + "type": "string" + }, + { + "name": "serviceFabricName", + "in": "path", + "description": "servicefabrics", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", @@ -5286,15 +5860,15 @@ } }, "x-ms-examples": { - "GlobalSchedules_Get": { - "$ref": "./examples/GlobalSchedules_Get.json" + "ServiceFabricSchedules_Get": { + "$ref": "./examples/ServiceFabricSchedules_Get.json" } } }, "put": { - "operationId": "GlobalSchedules_CreateOrUpdate", + "operationId": "ServiceFabricSchedules_CreateOrUpdate", "tags": [ - "Schedules" + "ServiceFabricSchedules" ], "description": "Create or replace an existing schedule.", "parameters": [ @@ -5308,63 +5882,25 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "labName", "in": "path", - "description": "The name of the Schedule", + "description": "labs", "required": true, "type": "string" }, { - "name": "schedule", - "in": "body", - "description": "A schedule.", + "name": "userName", + "in": "path", + "description": "users", "required": true, - "schema": { - "$ref": "#/definitions/Schedule" - } - } - ], - "responses": { - "200": { - "description": "Resource 'Schedule' update operation succeeded", - "schema": { - "$ref": "#/definitions/Schedule" - } - }, - "201": { - "description": "Resource 'Schedule' create operation succeeded", - "schema": { - "$ref": "#/definitions/Schedule" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "GlobalSchedules_CreateOrUpdate": { - "$ref": "./examples/GlobalSchedules_CreateOrUpdate.json" - } - } - }, - "patch": { - "operationId": "GlobalSchedules_Update", - "tags": [ - "Schedules" - ], - "description": "Allows modifying tags of schedules. All other properties will be ignored.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "type": "string" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "name": "serviceFabricName", + "in": "path", + "description": "servicefabrics", + "required": true, + "type": "string" }, { "name": "name", @@ -5379,13 +5915,19 @@ "description": "A schedule.", "required": true, "schema": { - "$ref": "#/definitions/ScheduleFragment" + "$ref": "#/definitions/Schedule" } } ], "responses": { "200": { - "description": "Azure operation completed successfully.", + "description": "Resource 'Schedule' update operation succeeded", + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + "201": { + "description": "Resource 'Schedule' create operation succeeded", "schema": { "$ref": "#/definitions/Schedule" } @@ -5398,17 +5940,17 @@ } }, "x-ms-examples": { - "GlobalSchedules_Update": { - "$ref": "./examples/GlobalSchedules_Update.json" + "ServiceFabricSchedules_CreateOrUpdate": { + "$ref": "./examples/ServiceFabricSchedules_CreateOrUpdate.json" } } }, - "delete": { - "operationId": "GlobalSchedules_Delete", + "patch": { + "operationId": "ServiceFabricSchedules_Update", "tags": [ - "Schedules" + "ServiceFabricSchedules" ], - "description": "Delete schedule.", + "description": "Allows modifying tags of schedules. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -5420,111 +5962,25 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "labName", "in": "path", - "description": "The name of the Schedule", + "description": "labs", "required": true, "type": "string" - } - ], - "responses": { - "200": { - "description": "Resource deleted successfully." }, - "204": { - "description": "Resource does not exist." - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "GlobalSchedules_Delete": { - "$ref": "./examples/GlobalSchedules_Delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules/{name}/execute": { - "post": { - "operationId": "GlobalSchedules_Execute", - "tags": [ - "Schedules" - ], - "description": "Execute a schedule. This operation can take a while to complete.", - "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "name", + "name": "userName", "in": "path", - "description": "The name of the Schedule", + "description": "users", "required": true, "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded." }, - "202": { - "description": "Resource operation accepted.", - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "GlobalSchedules_Execute": { - "$ref": "./examples/GlobalSchedules_Execute.json" - } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules/{name}/retarget": { - "post": { - "operationId": "GlobalSchedules_Retarget", - "tags": [ - "Schedules" - ], - "description": "Updates a schedule's target resource Id. This operation can take a while to complete.", - "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "name": "serviceFabricName", + "in": "path", + "description": "servicefabrics", + "required": true, + "type": "string" }, { "name": "name", @@ -5534,103 +5990,20 @@ "type": "string" }, { - "name": "retargetScheduleProperties", + "name": "schedule", "in": "body", - "description": "Properties for retargeting a virtual machine schedule.", + "description": "A schedule.", "required": true, "schema": { - "$ref": "#/definitions/RetargetScheduleProperties" - } - } - ], - "responses": { - "200": { - "description": "The request has succeeded." - }, - "202": { - "description": "Resource operation accepted.", - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ScheduleFragment" } } - }, - "x-ms-examples": { - "GlobalSchedules_Retarget": { - "$ref": "./examples/GlobalSchedules_Retarget.json" - } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/secrets": { - "get": { - "operationId": "Secrets_List", - "tags": [ - "Secrets" - ], - "description": "List secrets in a given user profile.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=value)'", - "required": false, - "type": "string" - }, - { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, - "type": "string" - }, - { - "name": "$top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, - "type": "integer", - "format": "int32" - }, - { - "name": "$orderby", - "in": "query", - "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, - "type": "string" - } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/SecretList" + "$ref": "#/definitions/Schedule" } }, "default": { @@ -5641,22 +6014,17 @@ } }, "x-ms-examples": { - "Secrets_List": { - "$ref": "./examples/Secrets_List.json" + "ServiceFabricSchedules_Update": { + "$ref": "./examples/ServiceFabricSchedules_Update.json" } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/secrets/{name}": { - "get": { - "operationId": "Secrets_Get", + }, + "delete": { + "operationId": "ServiceFabricSchedules_Delete", "tags": [ - "Secrets" + "ServiceFabricSchedules" ], - "description": "Get secret.", + "description": "Delete schedule.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -5668,26 +6036,40 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "labName", "in": "path", - "description": "The name of the secret.", + "description": "labs", "required": true, "type": "string" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=value)'", - "required": false, + "name": "userName", + "in": "path", + "description": "users", + "required": true, + "type": "string" + }, + { + "name": "serviceFabricName", + "in": "path", + "description": "servicefabrics", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "The name of the Schedule", + "required": true, "type": "string" } ], "responses": { "200": { - "description": "Azure operation completed successfully.", - "schema": { - "$ref": "#/definitions/Secret" - } + "description": "Resource deleted successfully." + }, + "204": { + "description": "Resource does not exist." }, "default": { "description": "An unexpected error response.", @@ -5697,17 +6079,19 @@ } }, "x-ms-examples": { - "Secrets_Get": { - "$ref": "./examples/Secrets_Get.json" + "ServiceFabricSchedules_Delete": { + "$ref": "./examples/ServiceFabricSchedules_Delete.json" } } - }, - "put": { - "operationId": "Secrets_CreateOrUpdate", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules/{name}/execute": { + "post": { + "operationId": "ServiceFabricSchedules_Execute", "tags": [ - "Secrets" + "ServiceFabricSchedules" ], - "description": "Create or replace an existing secret. This operation can take a while to complete.", + "description": "Execute a schedule. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -5719,34 +6103,40 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "labName", "in": "path", - "description": "The name of the secret.", + "description": "labs", "required": true, "type": "string" }, { - "name": "secret", - "in": "body", - "description": "A secret.", + "name": "userName", + "in": "path", + "description": "users", "required": true, - "schema": { - "$ref": "#/definitions/Secret" - } + "type": "string" + }, + { + "name": "serviceFabricName", + "in": "path", + "description": "servicefabrics", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "The name of the Schedule", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Resource 'Secret' update operation succeeded", - "schema": { - "$ref": "#/definitions/Secret" - } + "description": "The request has succeeded." }, - "201": { - "description": "Resource 'Secret' create operation succeeded", - "schema": { - "$ref": "#/definitions/Secret" - }, + "202": { + "description": "Resource operation accepted.", "headers": { "Location": { "type": "string", @@ -5767,21 +6157,23 @@ } }, "x-ms-examples": { - "Secrets_CreateOrUpdate": { - "$ref": "./examples/Secrets_CreateOrUpdate.json" + "ServiceFabricSchedules_Execute": { + "$ref": "./examples/ServiceFabricSchedules_Execute.json" } }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, "x-ms-long-running-operation": true - }, - "patch": { - "operationId": "Secrets_Update", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users/{userName}/servicefabrics/{serviceFabricName}/start": { + "post": { + "operationId": "ServiceFabrics_Start", "tags": [ - "Secrets" + "ServiceFabrics" ], - "description": "Allows modifying tags of secrets. All other properties will be ignored.", + "description": "Start a service fabric. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -5793,27 +6185,43 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the secret.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "secret", - "in": "body", - "description": "A secret.", + "name": "userName", + "in": "path", + "description": "The name of the user profile.", "required": true, - "schema": { - "$ref": "#/definitions/SecretFragment" - } + "type": "string" + }, + { + "name": "serviceFabricName", + "in": "path", + "description": "The name of the service fabric.", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Azure operation completed successfully.", - "schema": { - "$ref": "#/definitions/Secret" + "description": "The request has succeeded." + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { @@ -5824,17 +6232,23 @@ } }, "x-ms-examples": { - "Secrets_Update": { - "$ref": "./examples/Secrets_Update.json" + "ServiceFabrics_Start": { + "$ref": "./examples/ServiceFabrics_Start.json" } - } - }, - "delete": { - "operationId": "Secrets_Delete", + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users/{userName}/servicefabrics/{serviceFabricName}/stop": { + "post": { + "operationId": "ServiceFabrics_Stop", "tags": [ - "Secrets" + "ServiceFabrics" ], - "description": "Delete secret.", + "description": "Stop a service fabric This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -5846,19 +6260,44 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the secret.", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, + { + "name": "userName", + "in": "path", + "description": "The name of the user profile.", + "required": true, + "type": "string" + }, + { + "name": "serviceFabricName", + "in": "path", + "description": "The name of the service fabric.", "required": true, "type": "string" } ], "responses": { "200": { - "description": "Resource deleted successfully." + "description": "The request has succeeded." }, - "204": { - "description": "Resource does not exist." + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } }, "default": { "description": "An unexpected error response.", @@ -5868,19 +6307,23 @@ } }, "x-ms-examples": { - "Secrets_Delete": { - "$ref": "./examples/Secrets_Delete.json" + "ServiceFabrics_Stop": { + "$ref": "./examples/ServiceFabrics_Stop.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/servicefabrics": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines": { "get": { - "operationId": "ServiceFabrics_List", + "operationId": "VirtualMachines_List", "tags": [ - "ServiceFabrics" + "LabVirtualMachines" ], - "description": "List service fabrics in a given user profile.", + "description": "List virtual machines in a given lab.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -5891,10 +6334,17 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($expand=applicableSchedule)'", + "description": "Specify the $expand query. Example: 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)'", "required": false, "type": "string" }, @@ -5925,7 +6375,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ServiceFabricList" + "$ref": "#/definitions/LabVirtualMachineList" } }, "default": { @@ -5936,8 +6386,8 @@ } }, "x-ms-examples": { - "ServiceFabrics_List": { - "$ref": "./examples/ServiceFabrics_List.json" + "VirtualMachines_List": { + "$ref": "./examples/VirtualMachines_List.json" } }, "x-ms-pageable": { @@ -5945,13 +6395,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/servicefabrics/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines/{name}": { "get": { - "operationId": "ServiceFabrics_Get", + "operationId": "VirtualMachines_Get", "tags": [ - "ServiceFabrics" + "LabVirtualMachines" ], - "description": "Get service fabric.", + "description": "Get virtual machine.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -5960,19 +6410,26 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" }, { "name": "name", "in": "path", - "description": "The name of the service fabric.", + "description": "The name of the virtual machine.", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($expand=applicableSchedule)'", + "description": "Specify the $expand query. Example: 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)'", "required": false, "type": "string" } @@ -5981,7 +6438,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ServiceFabric" + "$ref": "#/definitions/LabVirtualMachine" } }, "default": { @@ -5992,17 +6449,17 @@ } }, "x-ms-examples": { - "ServiceFabrics_Get": { - "$ref": "./examples/ServiceFabrics_Get.json" + "VirtualMachines_Get": { + "$ref": "./examples/VirtualMachines_Get.json" } } }, "put": { - "operationId": "ServiceFabrics_CreateOrUpdate", + "operationId": "VirtualMachines_CreateOrUpdate", "tags": [ - "ServiceFabrics" + "LabVirtualMachines" ], - "description": "Create or replace an existing service fabric. This operation can take a while to complete.", + "description": "Create or replace an existing virtual machine. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -6013,34 +6470,41 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", - "description": "The name of the service fabric.", + "description": "The name of the virtual machine.", "required": true, "type": "string" }, { - "name": "serviceFabric", + "name": "labVirtualMachine", "in": "body", - "description": "A Service Fabric.", + "description": "A virtual machine.", "required": true, "schema": { - "$ref": "#/definitions/ServiceFabric" + "$ref": "#/definitions/LabVirtualMachine" } } ], "responses": { "200": { - "description": "Resource 'ServiceFabric' update operation succeeded", + "description": "Resource 'LabVirtualMachine' update operation succeeded", "schema": { - "$ref": "#/definitions/ServiceFabric" + "$ref": "#/definitions/LabVirtualMachine" } }, "201": { - "description": "Resource 'ServiceFabric' create operation succeeded", + "description": "Resource 'LabVirtualMachine' create operation succeeded", "schema": { - "$ref": "#/definitions/ServiceFabric" + "$ref": "#/definitions/LabVirtualMachine" }, "headers": { "Location": { @@ -6062,8 +6526,8 @@ } }, "x-ms-examples": { - "ServiceFabrics_CreateOrUpdate": { - "$ref": "./examples/ServiceFabrics_CreateOrUpdate.json" + "VirtualMachines_CreateOrUpdate": { + "$ref": "./examples/VirtualMachines_CreateOrUpdate.json" } }, "x-ms-long-running-operation-options": { @@ -6072,11 +6536,11 @@ "x-ms-long-running-operation": true }, "patch": { - "operationId": "ServiceFabrics_Update", + "operationId": "VirtualMachines_Update", "tags": [ - "ServiceFabrics" + "LabVirtualMachines" ], - "description": "Allows modifying tags of service fabrics. All other properties will be ignored.", + "description": "Allows modifying tags of virtual machines. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -6087,20 +6551,27 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", - "description": "The name of the service fabric.", + "description": "The name of the virtual machine.", "required": true, "type": "string" }, { - "name": "serviceFabric", + "name": "labVirtualMachine", "in": "body", - "description": "A Service Fabric.", + "description": "A virtual machine.", "required": true, "schema": { - "$ref": "#/definitions/ServiceFabricFragment" + "$ref": "#/definitions/LabVirtualMachineFragment" } } ], @@ -6108,7 +6579,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ServiceFabric" + "$ref": "#/definitions/LabVirtualMachine" } }, "default": { @@ -6119,17 +6590,17 @@ } }, "x-ms-examples": { - "ServiceFabrics_Update": { - "$ref": "./examples/ServiceFabrics_Update.json" + "VirtualMachines_Update": { + "$ref": "./examples/VirtualMachines_Update.json" } } }, "delete": { - "operationId": "ServiceFabrics_Delete", + "operationId": "VirtualMachines_Delete", "tags": [ - "ServiceFabrics" + "LabVirtualMachines" ], - "description": "Delete service fabric. This operation can take a while to complete.", + "description": "Delete virtual machine. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -6140,10 +6611,17 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", - "description": "The name of the service fabric.", + "description": "The name of the virtual machine.", "required": true, "type": "string" } @@ -6177,8 +6655,8 @@ } }, "x-ms-examples": { - "ServiceFabrics_Delete": { - "$ref": "./examples/ServiceFabrics_Delete.json" + "VirtualMachines_Delete": { + "$ref": "./examples/VirtualMachines_Delete.json" } }, "x-ms-long-running-operation-options": { @@ -6187,13 +6665,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/servicefabrics/{name}/listApplicableSchedules": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines/{name}/addDataDisk": { "post": { - "operationId": "ServiceFabrics_ListApplicableSchedules", + "operationId": "VirtualMachines_AddDataDisk", "tags": [ - "ServiceFabrics" + "LabVirtualMachines" ], - "description": "Lists the applicable start/stop schedules, if any.", + "description": "Attach a new or existing data disk to virtual machine. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -6205,57 +6683,27 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the service fabric.", + "description": "The name of the lab.", "required": true, "type": "string" - } - ], - "responses": { - "200": { - "description": "Azure operation completed successfully.", - "schema": { - "$ref": "#/definitions/ApplicableSchedule" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ServiceFabrics_ListApplicableSchedules": { - "$ref": "./examples/ServiceFabrics_ListApplicableSchedules.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/servicefabrics/{name}/start": { - "post": { - "operationId": "ServiceFabrics_Start", - "tags": [ - "ServiceFabrics" - ], - "description": "Start a service fabric. This operation can take a while to complete.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the service fabric.", + "description": "The name of the virtual machine.", "required": true, "type": "string" + }, + { + "name": "dataDiskProperties", + "in": "body", + "description": "Request body for adding a new or existing data disk to a virtual machine.", + "required": true, + "schema": { + "$ref": "#/definitions/DataDiskProperties" + } } ], "responses": { @@ -6284,8 +6732,8 @@ } }, "x-ms-examples": { - "ServiceFabrics_Start": { - "$ref": "./examples/ServiceFabrics_Start.json" + "VirtualMachines_AddDataDisk": { + "$ref": "./examples/VirtualMachines_AddDataDisk.json" } }, "x-ms-long-running-operation-options": { @@ -6294,13 +6742,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/servicefabrics/{name}/stop": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines/{name}/applyArtifacts": { "post": { - "operationId": "ServiceFabrics_Stop", + "operationId": "VirtualMachines_ApplyArtifacts", "tags": [ - "ServiceFabrics" + "LabVirtualMachines" ], - "description": "Stop a service fabric This operation can take a while to complete.", + "description": "Apply artifacts to virtual machine. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -6311,12 +6759,28 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", - "description": "The name of the service fabric.", + "description": "The name of the virtual machine.", "required": true, "type": "string" + }, + { + "name": "applyArtifactsRequest", + "in": "body", + "description": "Request body for applying artifacts to a virtual machine.", + "required": true, + "schema": { + "$ref": "#/definitions/ApplyArtifactsRequest" + } } ], "responses": { @@ -6345,8 +6809,8 @@ } }, "x-ms-examples": { - "ServiceFabrics_Stop": { - "$ref": "./examples/ServiceFabrics_Stop.json" + "VirtualMachines_ApplyArtifacts": { + "$ref": "./examples/VirtualMachines_ApplyArtifacts.json" } }, "x-ms-long-running-operation-options": { @@ -6355,13 +6819,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/servicerunners/{name}": { - "get": { - "operationId": "ServiceRunners_Get", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines/{name}/claim": { + "post": { + "operationId": "VirtualMachines_Claim", "tags": [ - "ServiceRunners" + "LabVirtualMachines" ], - "description": "Get service runner.", + "description": "Take ownership of an existing virtual machine This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -6373,77 +6837,36 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the service runner.", + "description": "The name of the lab.", "required": true, "type": "string" - } - ], - "responses": { - "200": { - "description": "Azure operation completed successfully.", - "schema": { - "$ref": "#/definitions/ServiceRunner" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ServiceRunners_Get": { - "$ref": "./examples/ServiceRunners_Get.json" - } - } - }, - "put": { - "operationId": "ServiceRunners_CreateOrUpdate", - "tags": [ - "ServiceRunners" - ], - "description": "Create or replace an existing service runner.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", - "description": "The name of the service runner.", + "description": "The name of the virtual machine.", "required": true, "type": "string" - }, - { - "name": "serviceRunner", - "in": "body", - "description": "A container for a managed identity to execute DevTest lab services.", - "required": true, - "schema": { - "$ref": "#/definitions/ServiceRunner" - } } ], "responses": { "200": { - "description": "Resource 'ServiceRunner' update operation succeeded", - "schema": { - "$ref": "#/definitions/ServiceRunner" - } + "description": "The request has succeeded." }, - "201": { - "description": "Resource 'ServiceRunner' create operation succeeded", - "schema": { - "$ref": "#/definitions/ServiceRunner" + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { @@ -6454,17 +6877,23 @@ } }, "x-ms-examples": { - "ServiceRunners_CreateOrUpdate": { - "$ref": "./examples/ServiceRunners_CreateOrUpdate.json" + "VirtualMachines_Claim": { + "$ref": "./examples/VirtualMachines_Claim.json" } - } - }, - "delete": { - "operationId": "ServiceRunners_Delete", + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines/{name}/detachDataDisk": { + "post": { + "operationId": "VirtualMachines_DetachDataDisk", "tags": [ - "ServiceRunners" + "LabVirtualMachines" ], - "description": "Delete service runner.", + "description": "Detach the specified disk from the virtual machine. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -6475,20 +6904,47 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", - "description": "The name of the service runner.", + "description": "The name of the virtual machine.", "required": true, "type": "string" + }, + { + "name": "detachDataDiskProperties", + "in": "body", + "description": "Request body for detaching data disk from a virtual machine.", + "required": true, + "schema": { + "$ref": "#/definitions/DetachDataDiskProperties" + } } ], "responses": { "200": { - "description": "Resource deleted successfully." + "description": "The request has succeeded." }, - "204": { - "description": "Resource does not exist." + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } }, "default": { "description": "An unexpected error response.", @@ -6498,19 +6954,23 @@ } }, "x-ms-examples": { - "ServiceRunners_Delete": { - "$ref": "./examples/ServiceRunners_Delete.json" + "VirtualMachines_DetachDataDisk": { + "$ref": "./examples/VirtualMachines_DetachDataDisk.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/users": { - "get": { - "operationId": "Users_List", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines/{name}/getRdpFileContents": { + "post": { + "operationId": "VirtualMachines_GetRdpFileContents", "tags": [ - "Users" + "LabVirtualMachines" ], - "description": "List user profiles in a given lab.", + "description": "Gets a string that represents the contents of the RDP file for the virtual machine", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -6522,32 +6982,17 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=identity)'", - "required": false, - "type": "string" - }, - { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, "type": "string" }, { - "name": "$top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, - "type": "integer", - "format": "int32" - }, - { - "name": "$orderby", - "in": "query", - "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", + "required": true, "type": "string" } ], @@ -6555,7 +7000,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/UserList" + "$ref": "#/definitions/RdpConnection" } }, "default": { @@ -6566,22 +7011,19 @@ } }, "x-ms-examples": { - "Users_List": { - "$ref": "./examples/Users_List.json" + "VirtualMachines_GetRdpFileContents": { + "$ref": "./examples/VirtualMachines_GetRdpFileContents.json" } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/users/{name}": { - "get": { - "operationId": "Users_Get", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines/{name}/listApplicableSchedules": { + "post": { + "operationId": "VirtualMachines_ListApplicableSchedules", "tags": [ - "Users" + "LabVirtualMachines" ], - "description": "Get user profile.", + "description": "Lists the applicable start/stop schedules, if any.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -6593,17 +7035,17 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the user profile.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=identity)'", - "required": false, + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", + "required": true, "type": "string" } ], @@ -6611,7 +7053,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/User" + "$ref": "#/definitions/ApplicableSchedule" } }, "default": { @@ -6622,17 +7064,19 @@ } }, "x-ms-examples": { - "Users_Get": { - "$ref": "./examples/Users_Get.json" + "VirtualMachines_ListApplicableSchedules": { + "$ref": "./examples/VirtualMachines_ListApplicableSchedules.json" } } - }, - "put": { - "operationId": "Users_CreateOrUpdate", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines/{name}/redeploy": { + "post": { + "operationId": "VirtualMachines_Redeploy", "tags": [ - "Users" + "LabVirtualMachines" ], - "description": "Create or replace an existing user profile. This operation can take a while to complete.", + "description": "Redeploy a virtual machine This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -6644,34 +7088,26 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the user profile.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "user", - "in": "body", - "description": "Profile of a lab user.", + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", "required": true, - "schema": { - "$ref": "#/definitions/User" - } + "type": "string" } ], "responses": { "200": { - "description": "Resource 'User' update operation succeeded", - "schema": { - "$ref": "#/definitions/User" - } + "description": "The request has succeeded." }, - "201": { - "description": "Resource 'User' create operation succeeded", - "schema": { - "$ref": "#/definitions/User" - }, + "202": { + "description": "Resource operation accepted.", "headers": { "Location": { "type": "string", @@ -6692,21 +7128,23 @@ } }, "x-ms-examples": { - "Users_CreateOrUpdate": { - "$ref": "./examples/Users_CreateOrUpdate.json" + "VirtualMachines_Redeploy": { + "$ref": "./examples/VirtualMachines_Redeploy.json" } }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, "x-ms-long-running-operation": true - }, - "patch": { - "operationId": "Users_Update", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines/{name}/resize": { + "post": { + "operationId": "VirtualMachines_Resize", "tags": [ - "Users" + "LabVirtualMachines" ], - "description": "Allows modifying tags of user profiles. All other properties will be ignored.", + "description": "Resize Virtual Machine. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -6717,28 +7155,46 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", - "description": "The name of the user profile.", + "description": "The name of the virtual machine.", "required": true, "type": "string" }, { - "name": "user", + "name": "resizeLabVirtualMachineProperties", "in": "body", - "description": "Profile of a lab user.", + "description": "Request body for resizing a virtual machine.", "required": true, "schema": { - "$ref": "#/definitions/UserFragment" + "$ref": "#/definitions/ResizeLabVirtualMachineProperties" } } ], "responses": { "200": { - "description": "Azure operation completed successfully.", - "schema": { - "$ref": "#/definitions/User" + "description": "The request has succeeded." + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { @@ -6749,17 +7205,23 @@ } }, "x-ms-examples": { - "Users_Update": { - "$ref": "./examples/Users_Update.json" + "VirtualMachines_Resize": { + "$ref": "./examples/VirtualMachines_Resize.json" } - } - }, - "delete": { - "operationId": "Users_Delete", + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines/{name}/restart": { + "post": { + "operationId": "VirtualMachines_Restart", "tags": [ - "Users" + "LabVirtualMachines" ], - "description": "Delete user profile. This operation can take a while to complete.", + "description": "Restart a virtual machine. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -6770,20 +7232,27 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", - "description": "The name of the user profile.", + "description": "The name of the virtual machine.", "required": true, "type": "string" } ], "responses": { "200": { - "description": "Resource deleted successfully." + "description": "The request has succeeded." }, "202": { - "description": "Resource deletion accepted.", + "description": "Resource operation accepted.", "headers": { "Location": { "type": "string", @@ -6796,9 +7265,6 @@ } } }, - "204": { - "description": "Resource does not exist." - }, "default": { "description": "An unexpected error response.", "schema": { @@ -6807,8 +7273,8 @@ } }, "x-ms-examples": { - "Users_Delete": { - "$ref": "./examples/Users_Delete.json" + "VirtualMachines_Restart": { + "$ref": "./examples/VirtualMachines_Restart.json" } }, "x-ms-long-running-operation-options": { @@ -6817,13 +7283,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules": { "get": { - "operationId": "VirtualMachines_List", + "operationId": "VirtualMachineSchedules_List", "tags": [ - "LabVirtualMachines" + "VirtualMachineSchedules" ], - "description": "List virtual machines in a given lab.", + "description": "List schedules in a given virtual machine.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -6834,10 +7300,24 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "labName", + "in": "path", + "description": "labs", + "required": true, + "type": "string" + }, + { + "name": "virtualMachineName", + "in": "path", + "description": "virtualmachines", + "required": true, + "type": "string" + }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)'", + "description": "Specify the $expand query. Example: 'properties($select=status)'", "required": false, "type": "string" }, @@ -6868,7 +7348,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/LabVirtualMachineList" + "$ref": "#/definitions/ScheduleList" } }, "default": { @@ -6879,8 +7359,8 @@ } }, "x-ms-examples": { - "VirtualMachines_List": { - "$ref": "./examples/VirtualMachines_List.json" + "VirtualMachineSchedules_List": { + "$ref": "./examples/VirtualMachineSchedules_List.json" } }, "x-ms-pageable": { @@ -6888,13 +7368,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules/{name}": { "get": { - "operationId": "VirtualMachines_Get", + "operationId": "VirtualMachineSchedules_Get", "tags": [ - "LabVirtualMachines" + "VirtualMachineSchedules" ], - "description": "Get virtual machine.", + "description": "Get schedule.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -6905,17 +7385,31 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "labName", + "in": "path", + "description": "labs", + "required": true, + "type": "string" + }, + { + "name": "virtualMachineName", + "in": "path", + "description": "virtualmachines", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the Schedule", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)'", + "description": "Specify the $expand query. Example: 'properties($select=status)'", "required": false, "type": "string" } @@ -6924,7 +7418,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/LabVirtualMachine" + "$ref": "#/definitions/Schedule" } }, "default": { @@ -6935,17 +7429,17 @@ } }, "x-ms-examples": { - "VirtualMachines_Get": { - "$ref": "./examples/VirtualMachines_Get.json" + "VirtualMachineSchedules_Get": { + "$ref": "./examples/VirtualMachineSchedules_Get.json" } } }, "put": { - "operationId": "VirtualMachines_CreateOrUpdate", + "operationId": "VirtualMachineSchedules_CreateOrUpdate", "tags": [ - "LabVirtualMachines" + "VirtualMachineSchedules" ], - "description": "Create or replace an existing virtual machine. This operation can take a while to complete.", + "description": "Create or replace an existing schedule.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -6956,45 +7450,48 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "labName", + "in": "path", + "description": "labs", + "required": true, + "type": "string" + }, + { + "name": "virtualMachineName", + "in": "path", + "description": "virtualmachines", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the Schedule", "required": true, "type": "string" }, { - "name": "labVirtualMachine", + "name": "schedule", "in": "body", - "description": "A virtual machine.", + "description": "A schedule.", "required": true, "schema": { - "$ref": "#/definitions/LabVirtualMachine" + "$ref": "#/definitions/Schedule" } } ], "responses": { "200": { - "description": "Resource 'LabVirtualMachine' update operation succeeded", + "description": "Resource 'Schedule' update operation succeeded", "schema": { - "$ref": "#/definitions/LabVirtualMachine" + "$ref": "#/definitions/Schedule" } }, "201": { - "description": "Resource 'LabVirtualMachine' create operation succeeded", + "description": "Resource 'Schedule' create operation succeeded", "schema": { - "$ref": "#/definitions/LabVirtualMachine" - }, - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } + "$ref": "#/definitions/Schedule" } }, "default": { @@ -7005,21 +7502,17 @@ } }, "x-ms-examples": { - "VirtualMachines_CreateOrUpdate": { - "$ref": "./examples/VirtualMachines_CreateOrUpdate.json" + "VirtualMachineSchedules_CreateOrUpdate": { + "$ref": "./examples/VirtualMachineSchedules_CreateOrUpdate.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true + } }, "patch": { - "operationId": "VirtualMachines_Update", + "operationId": "VirtualMachineSchedules_Update", "tags": [ - "LabVirtualMachines" + "VirtualMachineSchedules" ], - "description": "Allows modifying tags of virtual machines. All other properties will be ignored.", + "description": "Allows modifying tags of schedules. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7030,20 +7523,34 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "labName", + "in": "path", + "description": "labs", + "required": true, + "type": "string" + }, + { + "name": "virtualMachineName", + "in": "path", + "description": "virtualmachines", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the Schedule", "required": true, "type": "string" }, { - "name": "labVirtualMachine", + "name": "schedule", "in": "body", - "description": "A virtual machine.", + "description": "A schedule.", "required": true, "schema": { - "$ref": "#/definitions/LabVirtualMachineFragment" + "$ref": "#/definitions/ScheduleFragment" } } ], @@ -7051,7 +7558,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/LabVirtualMachine" + "$ref": "#/definitions/Schedule" } }, "default": { @@ -7062,17 +7569,17 @@ } }, "x-ms-examples": { - "VirtualMachines_Update": { - "$ref": "./examples/VirtualMachines_Update.json" + "VirtualMachineSchedules_Update": { + "$ref": "./examples/VirtualMachineSchedules_Update.json" } } }, "delete": { - "operationId": "VirtualMachines_Delete", + "operationId": "VirtualMachineSchedules_Delete", "tags": [ - "LabVirtualMachines" + "VirtualMachineSchedules" ], - "description": "Delete virtual machine. This operation can take a while to complete.", + "description": "Delete schedule.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7083,10 +7590,24 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "labName", + "in": "path", + "description": "labs", + "required": true, + "type": "string" + }, + { + "name": "virtualMachineName", + "in": "path", + "description": "virtualmachines", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the Schedule", "required": true, "type": "string" } @@ -7095,8 +7616,68 @@ "200": { "description": "Resource deleted successfully." }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualMachineSchedules_Delete": { + "$ref": "./examples/VirtualMachineSchedules_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules/{name}/execute": { + "post": { + "operationId": "VirtualMachineSchedules_Execute", + "tags": [ + "VirtualMachineSchedules" + ], + "description": "Execute a schedule. This operation can take a while to complete.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "labName", + "in": "path", + "description": "labs", + "required": true, + "type": "string" + }, + { + "name": "virtualMachineName", + "in": "path", + "description": "virtualmachines", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "The name of the Schedule", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded." + }, "202": { - "description": "Resource deletion accepted.", + "description": "Resource operation accepted.", "headers": { "Location": { "type": "string", @@ -7109,9 +7690,6 @@ } } }, - "204": { - "description": "Resource does not exist." - }, "default": { "description": "An unexpected error response.", "schema": { @@ -7120,8 +7698,8 @@ } }, "x-ms-examples": { - "VirtualMachines_Delete": { - "$ref": "./examples/VirtualMachines_Delete.json" + "VirtualMachineSchedules_Execute": { + "$ref": "./examples/VirtualMachineSchedules_Execute.json" } }, "x-ms-long-running-operation-options": { @@ -7130,13 +7708,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines/{name}/addDataDisk": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines/{name}/start": { "post": { - "operationId": "VirtualMachines_AddDataDisk", + "operationId": "VirtualMachines_Start", "tags": [ "LabVirtualMachines" ], - "description": "Attach a new or existing data disk to virtual machine. This operation can take a while to complete.", + "description": "Start a virtual machine. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7147,21 +7725,19 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", "description": "The name of the virtual machine.", "required": true, "type": "string" - }, - { - "name": "dataDiskProperties", - "in": "body", - "description": "Request body for adding a new or existing data disk to a virtual machine.", - "required": true, - "schema": { - "$ref": "#/definitions/DataDiskProperties" - } } ], "responses": { @@ -7190,8 +7766,8 @@ } }, "x-ms-examples": { - "VirtualMachines_AddDataDisk": { - "$ref": "./examples/VirtualMachines_AddDataDisk.json" + "VirtualMachines_Start": { + "$ref": "./examples/VirtualMachines_Start.json" } }, "x-ms-long-running-operation-options": { @@ -7200,13 +7776,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines/{name}/applyArtifacts": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines/{name}/stop": { "post": { - "operationId": "VirtualMachines_ApplyArtifacts", + "operationId": "VirtualMachines_Stop", "tags": [ "LabVirtualMachines" ], - "description": "Apply artifacts to virtual machine. This operation can take a while to complete.", + "description": "Stop a virtual machine This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7218,20 +7794,18 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "applyArtifactsRequest", - "in": "body", - "description": "Request body for applying artifacts to a virtual machine.", + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", "required": true, - "schema": { - "$ref": "#/definitions/ApplyArtifactsRequest" - } + "type": "string" } ], "responses": { @@ -7260,8 +7834,8 @@ } }, "x-ms-examples": { - "VirtualMachines_ApplyArtifacts": { - "$ref": "./examples/VirtualMachines_ApplyArtifacts.json" + "VirtualMachines_Stop": { + "$ref": "./examples/VirtualMachines_Stop.json" } }, "x-ms-long-running-operation-options": { @@ -7270,13 +7844,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines/{name}/claim": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines/{name}/transferDisks": { "post": { - "operationId": "VirtualMachines_Claim", + "operationId": "VirtualMachines_TransferDisks", "tags": [ "LabVirtualMachines" ], - "description": "Take ownership of an existing virtual machine This operation can take a while to complete.", + "description": "Transfers all data disks attached to the virtual machine to be owned by the current user. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7287,6 +7861,13 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", @@ -7321,8 +7902,8 @@ } }, "x-ms-examples": { - "VirtualMachines_Claim": { - "$ref": "./examples/VirtualMachines_Claim.json" + "VirtualMachines_TransferDisks": { + "$ref": "./examples/VirtualMachines_TransferDisks.json" } }, "x-ms-long-running-operation-options": { @@ -7331,13 +7912,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines/{name}/detachDataDisk": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines/{name}/unClaim": { "post": { - "operationId": "VirtualMachines_DetachDataDisk", + "operationId": "VirtualMachines_UnClaim", "tags": [ "LabVirtualMachines" ], - "description": "Detach the specified disk from the virtual machine. This operation can take a while to complete.", + "description": "Release ownership of an existing virtual machine This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7349,20 +7930,18 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "detachDataDiskProperties", - "in": "body", - "description": "Request body for detaching data disk from a virtual machine.", + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", "required": true, - "schema": { - "$ref": "#/definitions/DetachDataDiskProperties" - } + "type": "string" } ], "responses": { @@ -7391,8 +7970,8 @@ } }, "x-ms-examples": { - "VirtualMachines_DetachDataDisk": { - "$ref": "./examples/VirtualMachines_DetachDataDisk.json" + "VirtualMachines_UnClaim": { + "$ref": "./examples/VirtualMachines_UnClaim.json" } }, "x-ms-long-running-operation-options": { @@ -7401,13 +7980,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines/{name}/getRdpFileContents": { - "post": { - "operationId": "VirtualMachines_GetRdpFileContents", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualnetworks": { + "get": { + "operationId": "VirtualNetworks_List", "tags": [ - "LabVirtualMachines" + "VirtualNetworks" ], - "description": "Gets a string that represents the contents of the RDP file for the virtual machine", + "description": "List virtual networks in a given lab.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7419,18 +7998,47 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the lab.", "required": true, "type": "string" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($expand=externalSubnets)'", + "required": false, + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, + "type": "string" } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/RdpConnection" + "$ref": "#/definitions/VirtualNetworkList" } }, "default": { @@ -7441,19 +8049,22 @@ } }, "x-ms-examples": { - "VirtualMachines_GetRdpFileContents": { - "$ref": "./examples/VirtualMachines_GetRdpFileContents.json" + "VirtualNetworks_List": { + "$ref": "./examples/VirtualNetworks_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines/{name}/listApplicableSchedules": { - "post": { - "operationId": "VirtualMachines_ListApplicableSchedules", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualnetworks/{name}": { + "get": { + "operationId": "VirtualNetworks_Get", "tags": [ - "LabVirtualMachines" + "VirtualNetworks" ], - "description": "Lists the applicable start/stop schedules, if any.", + "description": "Get virtual network.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7464,19 +8075,33 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the virtual network.", "required": true, "type": "string" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($expand=externalSubnets)'", + "required": false, + "type": "string" } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ApplicableSchedule" + "$ref": "#/definitions/VirtualNetwork" } }, "default": { @@ -7487,19 +8112,17 @@ } }, "x-ms-examples": { - "VirtualMachines_ListApplicableSchedules": { - "$ref": "./examples/VirtualMachines_ListApplicableSchedules.json" + "VirtualNetworks_Get": { + "$ref": "./examples/VirtualNetworks_Get.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines/{name}/redeploy": { - "post": { - "operationId": "VirtualMachines_Redeploy", + }, + "put": { + "operationId": "VirtualNetworks_CreateOrUpdate", "tags": [ - "LabVirtualMachines" + "VirtualNetworks" ], - "description": "Redeploy a virtual machine This operation can take a while to complete.", + "description": "Create or replace an existing virtual network. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7510,20 +8133,42 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the virtual network.", "required": true, "type": "string" + }, + { + "name": "virtualNetwork", + "in": "body", + "description": "A virtual network.", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualNetwork" + } } ], "responses": { "200": { - "description": "The request has succeeded." + "description": "Resource 'VirtualNetwork' update operation succeeded", + "schema": { + "$ref": "#/definitions/VirtualNetwork" + } }, - "202": { - "description": "Resource operation accepted.", + "201": { + "description": "Resource 'VirtualNetwork' create operation succeeded", + "schema": { + "$ref": "#/definitions/VirtualNetwork" + }, "headers": { "Location": { "type": "string", @@ -7544,23 +8189,81 @@ } }, "x-ms-examples": { - "VirtualMachines_Redeploy": { - "$ref": "./examples/VirtualMachines_Redeploy.json" + "VirtualNetworks_CreateOrUpdate": { + "$ref": "./examples/VirtualNetworks_CreateOrUpdate.json" } }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines/{name}/resize": { - "post": { - "operationId": "VirtualMachines_Resize", + }, + "patch": { + "operationId": "VirtualNetworks_Update", + "tags": [ + "VirtualNetworks" + ], + "description": "Allows modifying tags of virtual networks. All other properties will be ignored.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "devtestLabName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "The name of the virtual network.", + "required": true, + "type": "string" + }, + { + "name": "virtualNetwork", + "in": "body", + "description": "A virtual network.", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualNetworkFragment" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/VirtualNetwork" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualNetworks_Update": { + "$ref": "./examples/VirtualNetworks_Update.json" + } + } + }, + "delete": { + "operationId": "VirtualNetworks_Delete", "tags": [ - "LabVirtualMachines" + "VirtualNetworks" ], - "description": "Resize Virtual Machine. This operation can take a while to complete.", + "description": "Delete virtual network. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7572,28 +8275,26 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "devtestLabName", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "resizeLabVirtualMachineProperties", - "in": "body", - "description": "Request body for resizing a virtual machine.", + "name": "name", + "in": "path", + "description": "The name of the virtual network.", "required": true, - "schema": { - "$ref": "#/definitions/ResizeLabVirtualMachineProperties" - } + "type": "string" } ], "responses": { "200": { - "description": "The request has succeeded." + "description": "Resource deleted successfully." }, "202": { - "description": "Resource operation accepted.", + "description": "Resource deletion accepted.", "headers": { "Location": { "type": "string", @@ -7606,6 +8307,9 @@ } } }, + "204": { + "description": "Resource does not exist." + }, "default": { "description": "An unexpected error response.", "schema": { @@ -7614,8 +8318,8 @@ } }, "x-ms-examples": { - "VirtualMachines_Resize": { - "$ref": "./examples/VirtualMachines_Resize.json" + "VirtualNetworks_Delete": { + "$ref": "./examples/VirtualNetworks_Delete.json" } }, "x-ms-long-running-operation-options": { @@ -7624,13 +8328,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines/{name}/restart": { - "post": { - "operationId": "VirtualMachines_Restart", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/policies": { + "get": { + "operationId": "Policies_List", "tags": [ - "LabVirtualMachines" + "Policies" ], - "description": "Restart a virtual machine. This operation can take a while to complete.", + "description": "List policies in a given policy set.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7642,29 +8346,40 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", - "in": "path", - "description": "The name of the virtual machine.", - "required": true, + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=description)'", + "required": false, + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, "type": "string" } ], "responses": { "200": { - "description": "The request has succeeded." - }, - "202": { - "description": "Resource operation accepted.", - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/PolicyList" } }, "default": { @@ -7675,23 +8390,22 @@ } }, "x-ms-examples": { - "VirtualMachines_Restart": { - "$ref": "./examples/VirtualMachines_Restart.json" + "Policies_List": { + "$ref": "./examples/Policies_List.json" } }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true + "x-ms-pageable": { + "nextLinkName": "nextLink" + } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines/{name}/start": { - "post": { - "operationId": "VirtualMachines_Start", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/policies/{name}": { + "get": { + "operationId": "Policies_Get", "tags": [ - "LabVirtualMachines" + "Policies" ], - "description": "Start a virtual machine. This operation can take a while to complete.", + "description": "Get policy.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7705,27 +8419,23 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the policy.", "required": true, "type": "string" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=description)'", + "required": false, + "type": "string" } ], "responses": { "200": { - "description": "The request has succeeded." - }, - "202": { - "description": "Resource operation accepted.", - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Policy" } }, "default": { @@ -7736,23 +8446,17 @@ } }, "x-ms-examples": { - "VirtualMachines_Start": { - "$ref": "./examples/VirtualMachines_Start.json" + "Policies_Get": { + "$ref": "./examples/Policies_Get.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines/{name}/stop": { - "post": { - "operationId": "VirtualMachines_Stop", + } + }, + "put": { + "operationId": "Policies_CreateOrUpdate", "tags": [ - "LabVirtualMachines" + "Policies" ], - "description": "Stop a virtual machine This operation can take a while to complete.", + "description": "Create or replace an existing policy.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7766,27 +8470,31 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the policy.", "required": true, "type": "string" + }, + { + "name": "policy", + "in": "body", + "description": "A Policy.", + "required": true, + "schema": { + "$ref": "#/definitions/Policy" + } } ], "responses": { "200": { - "description": "The request has succeeded." + "description": "Resource 'Policy' update operation succeeded", + "schema": { + "$ref": "#/definitions/Policy" + } }, - "202": { - "description": "Resource operation accepted.", - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } + "201": { + "description": "Resource 'Policy' create operation succeeded", + "schema": { + "$ref": "#/definitions/Policy" } }, "default": { @@ -7797,23 +8505,17 @@ } }, "x-ms-examples": { - "VirtualMachines_Stop": { - "$ref": "./examples/VirtualMachines_Stop.json" + "Policies_CreateOrUpdate": { + "$ref": "./examples/Policies_CreateOrUpdate.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines/{name}/transferDisks": { - "post": { - "operationId": "VirtualMachines_TransferDisks", + } + }, + "patch": { + "operationId": "Policies_Update", "tags": [ - "LabVirtualMachines" + "Policies" ], - "description": "Transfers all data disks attached to the virtual machine to be owned by the current user. This operation can take a while to complete.", + "description": "Allows modifying tags of policies. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7827,27 +8529,25 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the policy.", "required": true, "type": "string" + }, + { + "name": "policy", + "in": "body", + "description": "A Policy.", + "required": true, + "schema": { + "$ref": "#/definitions/PolicyFragment" + } } ], "responses": { "200": { - "description": "The request has succeeded." - }, - "202": { - "description": "Resource operation accepted.", - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Policy" } }, "default": { @@ -7858,23 +8558,17 @@ } }, "x-ms-examples": { - "VirtualMachines_TransferDisks": { - "$ref": "./examples/VirtualMachines_TransferDisks.json" + "Policies_Update": { + "$ref": "./examples/Policies_Update.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualmachines/{name}/unClaim": { - "post": { - "operationId": "VirtualMachines_UnClaim", + } + }, + "delete": { + "operationId": "Policies_Delete", "tags": [ - "LabVirtualMachines" + "Policies" ], - "description": "Release ownership of an existing virtual machine This operation can take a while to complete.", + "description": "Delete policy.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7888,28 +8582,17 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the policy.", "required": true, "type": "string" } ], "responses": { "200": { - "description": "The request has succeeded." + "description": "Resource deleted successfully." }, - "202": { - "description": "Resource operation accepted.", - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } - } + "204": { + "description": "Resource does not exist." }, "default": { "description": "An unexpected error response.", @@ -7919,23 +8602,19 @@ } }, "x-ms-examples": { - "VirtualMachines_UnClaim": { - "$ref": "./examples/VirtualMachines_UnClaim.json" + "Policies_Delete": { + "$ref": "./examples/Policies_Delete.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true + } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualnetworks": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules": { "get": { - "operationId": "VirtualNetworks_List", + "operationId": "GlobalSchedules_ListByResourceGroup", "tags": [ - "VirtualNetworks" + "Schedules" ], - "description": "List virtual networks in a given lab.", + "description": "List schedules in a resource group.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7949,7 +8628,7 @@ { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($expand=externalSubnets)'", + "description": "Specify the $expand query. Example: 'properties($select=status)'", "required": false, "type": "string" }, @@ -7980,7 +8659,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/VirtualNetworkList" + "$ref": "#/definitions/ScheduleList" } }, "default": { @@ -7991,8 +8670,8 @@ } }, "x-ms-examples": { - "VirtualNetworks_List": { - "$ref": "./examples/VirtualNetworks_List.json" + "GlobalSchedules_ListByResourceGroup": { + "$ref": "./examples/GlobalSchedules_ListByResourceGroup.json" } }, "x-ms-pageable": { @@ -8000,13 +8679,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/virtualnetworks/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules/{name}": { "get": { - "operationId": "VirtualNetworks_Get", + "operationId": "GlobalSchedules_Get", "tags": [ - "VirtualNetworks" + "Schedules" ], - "description": "Get virtual network.", + "description": "Get schedule.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -8020,14 +8699,14 @@ { "name": "name", "in": "path", - "description": "The name of the virtual network.", + "description": "The name of the Schedule", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($expand=externalSubnets)'", + "description": "Specify the $expand query. Example: 'properties($select=status)'", "required": false, "type": "string" } @@ -8036,7 +8715,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/VirtualNetwork" + "$ref": "#/definitions/Schedule" } }, "default": { @@ -8047,17 +8726,17 @@ } }, "x-ms-examples": { - "VirtualNetworks_Get": { - "$ref": "./examples/VirtualNetworks_Get.json" + "GlobalSchedules_Get": { + "$ref": "./examples/GlobalSchedules_Get.json" } } }, "put": { - "operationId": "VirtualNetworks_CreateOrUpdate", + "operationId": "GlobalSchedules_CreateOrUpdate", "tags": [ - "VirtualNetworks" + "Schedules" ], - "description": "Create or replace an existing virtual network. This operation can take a while to complete.", + "description": "Create or replace an existing schedule.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -8071,42 +8750,31 @@ { "name": "name", "in": "path", - "description": "The name of the virtual network.", + "description": "The name of the Schedule", "required": true, "type": "string" }, { - "name": "virtualNetwork", + "name": "schedule", "in": "body", - "description": "A virtual network.", + "description": "A schedule.", "required": true, "schema": { - "$ref": "#/definitions/VirtualNetwork" + "$ref": "#/definitions/Schedule" } } ], "responses": { "200": { - "description": "Resource 'VirtualNetwork' update operation succeeded", + "description": "Resource 'Schedule' update operation succeeded", "schema": { - "$ref": "#/definitions/VirtualNetwork" + "$ref": "#/definitions/Schedule" } }, "201": { - "description": "Resource 'VirtualNetwork' create operation succeeded", + "description": "Resource 'Schedule' create operation succeeded", "schema": { - "$ref": "#/definitions/VirtualNetwork" - }, - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } + "$ref": "#/definitions/Schedule" } }, "default": { @@ -8117,21 +8785,17 @@ } }, "x-ms-examples": { - "VirtualNetworks_CreateOrUpdate": { - "$ref": "./examples/VirtualNetworks_CreateOrUpdate.json" + "GlobalSchedules_CreateOrUpdate": { + "$ref": "./examples/GlobalSchedules_CreateOrUpdate.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true + } }, "patch": { - "operationId": "VirtualNetworks_Update", + "operationId": "GlobalSchedules_Update", "tags": [ - "VirtualNetworks" + "Schedules" ], - "description": "Allows modifying tags of virtual networks. All other properties will be ignored.", + "description": "Allows modifying tags of schedules. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -8145,17 +8809,17 @@ { "name": "name", "in": "path", - "description": "The name of the virtual network.", + "description": "The name of the Schedule", "required": true, "type": "string" }, { - "name": "virtualNetwork", + "name": "schedule", "in": "body", - "description": "A virtual network.", + "description": "A schedule.", "required": true, "schema": { - "$ref": "#/definitions/VirtualNetworkFragment" + "$ref": "#/definitions/ScheduleFragment" } } ], @@ -8163,7 +8827,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/VirtualNetwork" + "$ref": "#/definitions/Schedule" } }, "default": { @@ -8174,17 +8838,17 @@ } }, "x-ms-examples": { - "VirtualNetworks_Update": { - "$ref": "./examples/VirtualNetworks_Update.json" + "GlobalSchedules_Update": { + "$ref": "./examples/GlobalSchedules_Update.json" } } }, "delete": { - "operationId": "VirtualNetworks_Delete", + "operationId": "GlobalSchedules_Delete", "tags": [ - "VirtualNetworks" + "Schedules" ], - "description": "Delete virtual network. This operation can take a while to complete.", + "description": "Delete schedule.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -8198,7 +8862,7 @@ { "name": "name", "in": "path", - "description": "The name of the virtual network.", + "description": "The name of the Schedule", "required": true, "type": "string" } @@ -8207,8 +8871,54 @@ "200": { "description": "Resource deleted successfully." }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GlobalSchedules_Delete": { + "$ref": "./examples/GlobalSchedules_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules/{name}/execute": { + "post": { + "operationId": "GlobalSchedules_Execute", + "tags": [ + "Schedules" + ], + "description": "Execute a schedule. This operation can take a while to complete.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "The name of the Schedule", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded." + }, "202": { - "description": "Resource deletion accepted.", + "description": "Resource operation accepted.", "headers": { "Location": { "type": "string", @@ -8221,8 +8931,75 @@ } } }, - "204": { - "description": "Resource does not exist." + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GlobalSchedules_Execute": { + "$ref": "./examples/GlobalSchedules_Execute.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules/{name}/retarget": { + "post": { + "operationId": "GlobalSchedules_Retarget", + "tags": [ + "Schedules" + ], + "description": "Updates a schedule's target resource Id. This operation can take a while to complete.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "The name of the Schedule", + "required": true, + "type": "string" + }, + { + "name": "retargetScheduleProperties", + "in": "body", + "description": "Properties for retargeting a virtual machine schedule.", + "required": true, + "schema": { + "$ref": "#/definitions/RetargetScheduleProperties" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded." + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } }, "default": { "description": "An unexpected error response.", @@ -8232,8 +9009,8 @@ } }, "x-ms-examples": { - "VirtualNetworks_Delete": { - "$ref": "./examples/VirtualNetworks_Delete.json" + "GlobalSchedules_Retarget": { + "$ref": "./examples/GlobalSchedules_Retarget.json" } }, "x-ms-long-running-operation-options": { diff --git a/specification/devtestlabs/suppressions.yaml b/specification/devtestlabs/suppressions.yaml new file mode 100644 index 000000000000..0ef85f8bc575 --- /dev/null +++ b/specification/devtestlabs/suppressions.yaml @@ -0,0 +1,3 @@ +- tool: LintDiff + path: /resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json + reason: This API is already released to customers. \ No newline at end of file From 00349c903d2de9309041b3fdb82ce91addf3f44d Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Wed, 18 Jun 2025 15:03:23 -0700 Subject: [PATCH 09/59] remove suppressions --- specification/devtestlabs/suppressions.yaml | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 specification/devtestlabs/suppressions.yaml diff --git a/specification/devtestlabs/suppressions.yaml b/specification/devtestlabs/suppressions.yaml deleted file mode 100644 index 0ef85f8bc575..000000000000 --- a/specification/devtestlabs/suppressions.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- tool: LintDiff - path: /resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json - reason: This API is already released to customers. \ No newline at end of file From 071be35d2d12d3c29f63013d75586647f23be546 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Thu, 19 Jun 2025 10:30:06 -0700 Subject: [PATCH 10/59] typespec validation --- .../stable/2018-09-15/DTL.json | 32 +++++-------------- 1 file changed, 8 insertions(+), 24 deletions(-) diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index a6c09b976596..94b410e8e6a0 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -9255,8 +9255,7 @@ "description": "The parameters of the artifact.", "items": { "$ref": "#/definitions/ArtifactParameterProperties" - }, - "x-ms-identifiers": [] + } }, "status": { "type": "string", @@ -9584,8 +9583,7 @@ "description": "Gets all data disks attached to the virtual machine.", "items": { "$ref": "#/definitions/ComputeDataDisk" - }, - "x-ms-identifiers": [] + } } } }, @@ -10109,8 +10107,7 @@ "description": "The parameters of the Azure Resource Manager template.", "items": { "$ref": "#/definitions/ArmTemplateParameterProperties" - }, - "x-ms-identifiers": [] + } } } }, @@ -10502,8 +10499,7 @@ "description": "The parameters of the ARM template.", "items": { "$ref": "#/definitions/ParameterInfo" - }, - "x-ms-identifiers": [] + } }, "location": { "type": "string", @@ -11425,8 +11421,7 @@ "description": "Virtual Machine schedules to be created", "items": { "$ref": "#/definitions/ScheduleCreationParameter" - }, - "x-ms-identifiers": [] + } } } }, @@ -11448,12 +11443,7 @@ "description": "The LabVirtualMachine items on this page", "items": { "$ref": "#/definitions/LabVirtualMachine" - }, - "x-ms-identifiers": [ - "properties/applicableSchedule/properties/labVmsShutdown/name", - "name", - "id" - ] + } }, "nextLink": { "type": "string", @@ -11619,8 +11609,7 @@ "description": "Virtual Machine schedules to be created", "items": { "$ref": "#/definitions/ScheduleCreationParameter" - }, - "x-ms-identifiers": [] + } }, "lastKnownPowerState": { "type": "string", @@ -12612,12 +12601,7 @@ "description": "The ServiceFabric items on this page", "items": { "$ref": "#/definitions/ServiceFabric" - }, - "x-ms-identifiers": [ - "properties/applicableSchedule/properties/labVmsShutdown/name", - "name", - "id" - ] + } }, "nextLink": { "type": "string", From 0d79eeae2a9fc932b049b14afb75c41fdd68c042 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Thu, 19 Jun 2025 12:02:09 -0700 Subject: [PATCH 11/59] Remove lab parent from schedules --- .../Schedule.tsp | 1 - .../stable/2018-09-15/DTL.json | 101 ++++++++---------- 2 files changed, 47 insertions(+), 55 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp index ca4ddd764971..a0835e79f2ee 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp @@ -13,7 +13,6 @@ namespace Microsoft.DevTestLab; /** * A schedule. */ -@parentResource(Lab) model Schedule is Azure.ResourceManager.TrackedResource { ...ResourceNameParameter< diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index 94b410e8e6a0..09c6d1734ae0 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -206,13 +206,10 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/schedules": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/locations/{locationName}/operations/{name}": { "get": { - "operationId": "GlobalSchedules_ListBySubscription", - "tags": [ - "Schedules" - ], - "description": "List schedules in a subscription.", + "operationId": "Operations_Get", + "description": "Get operation.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -221,39 +218,17 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "devtestLabName", + "name": "locationName", "in": "path", - "description": "The name of the lab.", + "description": "The name of the location.", "required": true, "type": "string" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=status)'", - "required": false, - "type": "string" - }, - { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, - "type": "string" - }, - { - "name": "$top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, - "type": "integer", - "format": "int32" - }, - { - "name": "$orderby", - "in": "query", - "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, + "name": "name", + "in": "path", + "description": "The name of the operation.", + "required": true, "type": "string" } ], @@ -261,7 +236,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ScheduleList" + "$ref": "#/definitions/OperationResult" } }, "default": { @@ -272,19 +247,19 @@ } }, "x-ms-examples": { - "GlobalSchedules_ListBySubscription": { - "$ref": "./examples/GlobalSchedules_ListBySubscription.json" + "Operations_Get": { + "$ref": "./examples/Operations_Get.json" } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/locations/{locationName}/operations/{name}": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/schedules": { "get": { - "operationId": "Operations_Get", - "description": "Get operation.", + "operationId": "GlobalSchedules_ListBySubscription", + "tags": [ + "Schedules" + ], + "description": "List schedules in a subscription.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -293,17 +268,32 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "locationName", - "in": "path", - "description": "The name of the location.", - "required": true, + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=status)'", + "required": false, "type": "string" }, { - "name": "name", - "in": "path", - "description": "The name of the operation.", - "required": true, + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, "type": "string" } ], @@ -311,7 +301,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/OperationResult" + "$ref": "#/definitions/ScheduleList" } }, "default": { @@ -322,9 +312,12 @@ } }, "x-ms-examples": { - "Operations_Get": { - "$ref": "./examples/Operations_Get.json" + "GlobalSchedules_ListBySubscription": { + "$ref": "./examples/GlobalSchedules_ListBySubscription.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, From 62a24acb8ffc0ce7f5c208a348f449fe57c1a750 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Thu, 19 Jun 2025 12:36:54 -0700 Subject: [PATCH 12/59] Fix missing APIs for evaluatepolicies and artifacts --- .../ArmTemplate.tsp | 2 + .../Microsoft.DevTestLab.Management/Lab.tsp | 13 +- .../stable/2018-09-15/DTL.json | 755 +++++++++--------- 3 files changed, 394 insertions(+), 376 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp index 9aa587179f90..b92d63f44633 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp @@ -6,11 +6,13 @@ import "./models.tsp"; using Azure.ResourceManager; using TypeSpec.Http; +using TypeSpec.Rest; namespace Microsoft.DevTestLab; /** * An Azure Resource Manager template. */ +@parentResource(ArtifactSource) model ArmTemplate is Azure.ResourceManager.TrackedResource { ...ResourceNameParameter< diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp index 39d3af046eb0..54c32d1ced20 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp @@ -16,7 +16,6 @@ namespace Microsoft.DevTestLab; model Lab is Azure.ResourceManager.TrackedResource { ...ResourceNameParameter< Resource = Lab, - KeyName = "devtestLabName", SegmentName = "labs", NamePattern = "" >; @@ -185,12 +184,6 @@ interface Labs { void, ArmResponse, Parameters = { - /** - * The name of the lab. - */ - @path - labName: string; - /** * Specify the $expand query. Example: 'properties($select=author)' */ @@ -221,6 +214,8 @@ interface Labs { * Evaluates lab policy. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @post + @action("policysets/{policySetName}/evaluatePolicies") @operationId("PolicySets_EvaluatePolicies") evaluatePolicies is ArmResourceActionSync< Lab, @@ -228,10 +223,10 @@ interface Labs { ArmResponse, Parameters = { /** - * The name of the lab. + * The name of the policy set. */ @path - labName: string; + policySetName: string; } >; } diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index 09c6d1734ae0..afd0f67cb825 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -321,130 +321,6 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/armtemplates": { - "get": { - "operationId": "ArmTemplates_List", - "tags": [ - "ArmTemplates" - ], - "description": "List azure resource manager templates in a given artifact source.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=displayName)'", - "required": false, - "type": "string" - }, - { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, - "type": "string" - }, - { - "name": "$top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, - "type": "integer", - "format": "int32" - }, - { - "name": "$orderby", - "in": "query", - "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, - "type": "string" - } - ], - "responses": { - "200": { - "description": "Azure operation completed successfully.", - "schema": { - "$ref": "#/definitions/ArmTemplateList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ArmTemplates_List": { - "$ref": "./examples/ArmTemplates_List.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/armtemplates/{name}": { - "get": { - "operationId": "ArmTemplates_Get", - "tags": [ - "ArmTemplates" - ], - "description": "Get azure resource manager template.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "name", - "in": "path", - "description": "The name of the azure resource manager template.", - "required": true, - "type": "string" - }, - { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=displayName)'", - "required": false, - "type": "string" - } - ], - "responses": { - "200": { - "description": "Azure operation completed successfully.", - "schema": { - "$ref": "#/definitions/ArmTemplate" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ArmTemplates_Get": { - "$ref": "./examples/ArmTemplates_Get.json" - } - } - } - }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs": { "get": { "operationId": "Labs_ListByResourceGroup", @@ -516,7 +392,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}": { "get": { "operationId": "Labs_Get", "tags": [ @@ -534,7 +410,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -585,7 +461,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -659,7 +535,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -712,7 +588,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -758,7 +634,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/{labName}/evaluatePolicies": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/{policySetName}/policysets/{policySetName}/evaluatePolicies": { "post": { "operationId": "PolicySets_EvaluatePolicies", "tags": [ @@ -776,16 +652,16 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "labName", + "name": "policySetName", "in": "path", - "description": "The name of the lab.", + "description": "The name of the policy set.", "required": true, "type": "string" }, @@ -820,13 +696,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/{labName}/galleryimages": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources": { "get": { - "operationId": "GalleryImages_List", + "operationId": "ArtifactSources_List", "tags": [ - "Labs" + "ArtifactSources" ], - "description": "List gallery images in a given lab.", + "description": "List artifact sources in a given lab.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -837,13 +713,6 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, - { - "name": "devtestLabName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" - }, { "name": "labName", "in": "path", @@ -854,7 +723,7 @@ { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=author)'", + "description": "Specify the $expand query. Example: 'properties($select=displayName)'", "required": false, "type": "string" }, @@ -885,7 +754,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/GalleryImageList" + "$ref": "#/definitions/ArtifactSourceList" } }, "default": { @@ -896,8 +765,8 @@ } }, "x-ms-examples": { - "GalleryImages_List": { - "$ref": "./examples/GalleryImages_List.json" + "ArtifactSources_List": { + "$ref": "./examples/ArtifactSources_List.json" } }, "x-ms-pageable": { @@ -905,13 +774,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/artifactsources": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}": { "get": { - "operationId": "ArtifactSources_List", + "operationId": "ArtifactSources_Get", "tags": [ "ArtifactSources" ], - "description": "List artifact sources in a given lab.", + "description": "Get artifact source.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -923,38 +792,23 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=displayName)'", - "required": false, - "type": "string" - }, - { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, + "name": "artifactSourceName", + "in": "path", + "description": "The name of the artifact source.", + "required": true, "type": "string" }, { - "name": "$top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, - "type": "integer", - "format": "int32" - }, - { - "name": "$orderby", + "name": "$expand", "in": "query", - "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "description": "Specify the $expand query. Example: 'properties($select=displayName)'", "required": false, "type": "string" } @@ -963,7 +817,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ArtifactSourceList" + "$ref": "#/definitions/ArtifactSource" } }, "default": { @@ -974,22 +828,17 @@ } }, "x-ms-examples": { - "ArtifactSources_List": { - "$ref": "./examples/ArtifactSources_List.json" + "ArtifactSources_Get": { + "$ref": "./examples/ArtifactSources_Get.json" } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/artifactsources/{artifactSourceName}": { - "get": { - "operationId": "ArtifactSources_Get", + }, + "put": { + "operationId": "ArtifactSources_CreateOrUpdate", "tags": [ "ArtifactSources" ], - "description": "Get artifact source.", + "description": "Create or replace an existing artifact source.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1001,7 +850,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -1015,16 +864,24 @@ "type": "string" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=displayName)'", - "required": false, - "type": "string" + "name": "artifactSource", + "in": "body", + "description": "Properties of an artifact source.", + "required": true, + "schema": { + "$ref": "#/definitions/ArtifactSource" + } } ], "responses": { "200": { - "description": "Azure operation completed successfully.", + "description": "Resource 'ArtifactSource' update operation succeeded", + "schema": { + "$ref": "#/definitions/ArtifactSource" + } + }, + "201": { + "description": "Resource 'ArtifactSource' create operation succeeded", "schema": { "$ref": "#/definitions/ArtifactSource" } @@ -1037,17 +894,17 @@ } }, "x-ms-examples": { - "ArtifactSources_Get": { - "$ref": "./examples/ArtifactSources_Get.json" + "ArtifactSources_CreateOrUpdate": { + "$ref": "./examples/ArtifactSources_CreateOrUpdate.json" } } }, - "put": { - "operationId": "ArtifactSources_CreateOrUpdate", + "patch": { + "operationId": "ArtifactSources_Update", "tags": [ "ArtifactSources" ], - "description": "Create or replace an existing artifact source.", + "description": "Allows modifying tags of artifact sources. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1059,7 +916,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -1078,22 +935,67 @@ "description": "Properties of an artifact source.", "required": true, "schema": { - "$ref": "#/definitions/ArtifactSource" + "$ref": "#/definitions/ArtifactSourceFragment" } } ], "responses": { "200": { - "description": "Resource 'ArtifactSource' update operation succeeded", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/ArtifactSource" } }, - "201": { - "description": "Resource 'ArtifactSource' create operation succeeded", + "default": { + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/ArtifactSource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } + } + }, + "x-ms-examples": { + "ArtifactSources_Update": { + "$ref": "./examples/ArtifactSources_Update.json" + } + } + }, + "delete": { + "operationId": "ArtifactSources_Delete", + "tags": [ + "ArtifactSources" + ], + "description": "Delete artifact source.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "labName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, + { + "name": "artifactSourceName", + "in": "path", + "description": "The name of the artifact source.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "204": { + "description": "Resource does not exist." }, "default": { "description": "An unexpected error response.", @@ -1102,18 +1004,20 @@ } } }, - "x-ms-examples": { - "ArtifactSources_CreateOrUpdate": { - "$ref": "./examples/ArtifactSources_CreateOrUpdate.json" + "x-ms-examples": { + "ArtifactSources_Delete": { + "$ref": "./examples/ArtifactSources_Delete.json" } } - }, - "patch": { - "operationId": "ArtifactSources_Update", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/armtemplates": { + "get": { + "operationId": "ArmTemplates_List", "tags": [ - "ArtifactSources" + "ArmTemplates" ], - "description": "Allows modifying tags of artifact sources. All other properties will be ignored.", + "description": "List azure resource manager templates in a given artifact source.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1125,7 +1029,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -1139,20 +1043,40 @@ "type": "string" }, { - "name": "artifactSource", - "in": "body", - "description": "Properties of an artifact source.", - "required": true, - "schema": { - "$ref": "#/definitions/ArtifactSourceFragment" - } + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=displayName)'", + "required": false, + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, + "type": "string" } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ArtifactSource" + "$ref": "#/definitions/ArmTemplateList" } }, "default": { @@ -1163,17 +1087,22 @@ } }, "x-ms-examples": { - "ArtifactSources_Update": { - "$ref": "./examples/ArtifactSources_Update.json" + "ArmTemplates_List": { + "$ref": "./examples/ArmTemplates_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "delete": { - "operationId": "ArtifactSources_Delete", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/armtemplates/{name}": { + "get": { + "operationId": "ArmTemplates_Get", "tags": [ - "ArtifactSources" + "ArmTemplates" ], - "description": "Delete artifact source.", + "description": "Get azure resource manager template.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1185,7 +1114,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -1197,14 +1126,28 @@ "description": "The name of the artifact source.", "required": true, "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "The name of the azure resource manager template.", + "required": true, + "type": "string" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=displayName)'", + "required": false, + "type": "string" } ], "responses": { "200": { - "description": "Resource deleted successfully." - }, - "204": { - "description": "Resource does not exist." + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ArmTemplate" + } }, "default": { "description": "An unexpected error response.", @@ -1214,13 +1157,13 @@ } }, "x-ms-examples": { - "ArtifactSources_Delete": { - "$ref": "./examples/ArtifactSources_Delete.json" + "ArmTemplates_Get": { + "$ref": "./examples/ArmTemplates_Get.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/artifactsources/{artifactSourceName}/artifacts": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts": { "get": { "operationId": "Artifacts_List", "tags": [ @@ -1238,7 +1181,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -1305,7 +1248,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/artifactsources/{artifactSourceName}/artifacts/{artifactName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts/{artifactName}": { "get": { "operationId": "Artifacts_Get", "tags": [ @@ -1323,7 +1266,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -1372,7 +1315,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/artifactsources/{artifactSourceName}/artifacts/{artifactName}/generateArmTemplate": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts/{artifactName}/generateArmTemplate": { "post": { "operationId": "Artifacts_GenerateArmTemplate", "tags": [ @@ -1390,7 +1333,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -1441,7 +1384,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/claimAnyVm": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/claimAnyVm": { "post": { "operationId": "Labs_ClaimAnyVm", "tags": [ @@ -1459,7 +1402,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -1502,7 +1445,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/costs/{labCostName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/costs/{labCostName}": { "get": { "operationId": "Costs_Get", "tags": [ @@ -1520,7 +1463,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -1578,7 +1521,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -1628,7 +1571,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/createEnvironment": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/createEnvironment": { "post": { "operationId": "Labs_CreateEnvironment", "tags": [ @@ -1646,7 +1589,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -1698,7 +1641,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/customimages": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages": { "get": { "operationId": "CustomImages_List", "tags": [ @@ -1716,7 +1659,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -1776,7 +1719,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/customimages/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages/{name}": { "get": { "operationId": "CustomImages_Get", "tags": [ @@ -1794,7 +1737,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -1852,7 +1795,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -1933,7 +1876,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -1993,7 +1936,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -2046,7 +1989,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/exportResourceUsage": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/exportResourceUsage": { "post": { "operationId": "Labs_ExportResourceUsage", "tags": [ @@ -2064,7 +2007,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -2116,7 +2059,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/formulas": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas": { "get": { "operationId": "Formulas_List", "tags": [ @@ -2134,7 +2077,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -2194,7 +2137,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/formulas/{formulaName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas/{formulaName}": { "get": { "operationId": "Formulas_Get", "tags": [ @@ -2212,7 +2155,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -2270,7 +2213,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -2351,7 +2294,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -2411,7 +2354,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -2446,7 +2389,85 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/generateUploadUri": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/galleryimages": { + "get": { + "operationId": "GalleryImages_List", + "tags": [ + "Labs" + ], + "description": "List gallery images in a given lab.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "labName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=author)'", + "required": false, + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/GalleryImageList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GalleryImages_List": { + "$ref": "./examples/GalleryImages_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/generateUploadUri": { "post": { "operationId": "Labs_GenerateUploadUri", "tags": [ @@ -2464,7 +2485,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -2501,7 +2522,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/importVirtualMachine": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/importVirtualMachine": { "post": { "operationId": "Labs_ImportVirtualMachine", "tags": [ @@ -2519,7 +2540,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -2571,7 +2592,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/listVhds": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/listVhds": { "post": { "operationId": "Labs_ListVhds", "tags": [ @@ -2589,7 +2610,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -2620,7 +2641,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/notificationchannels": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels": { "get": { "operationId": "NotificationChannels_List", "tags": [ @@ -2638,7 +2659,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -2698,7 +2719,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/notificationchannels/{notificationChannelName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels/{notificationChannelName}": { "get": { "operationId": "NotificationChannels_Get", "tags": [ @@ -2716,7 +2737,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -2774,7 +2795,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -2840,7 +2861,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -2900,7 +2921,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -2935,7 +2956,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/notificationchannels/{notificationChannelName}/notify": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels/{notificationChannelName}/notify": { "post": { "operationId": "NotificationChannels_Notify", "tags": [ @@ -2953,7 +2974,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -3433,7 +3454,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/servicerunners/{serviceRunnerName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/servicerunners/{serviceRunnerName}": { "get": { "operationId": "ServiceRunners_Get", "tags": [ @@ -3451,7 +3472,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -3502,7 +3523,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -3568,7 +3589,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -3603,7 +3624,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users": { "get": { "operationId": "Users_List", "tags": [ @@ -3621,7 +3642,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -3681,7 +3702,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users/{userName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}": { "get": { "operationId": "Users_Get", "tags": [ @@ -3699,7 +3720,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -3757,7 +3778,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -3838,7 +3859,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -3898,7 +3919,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -3951,7 +3972,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users/{userName}/disks": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks": { "get": { "operationId": "Disks_List", "tags": [ @@ -3969,7 +3990,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -4036,7 +4057,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users/{userName}/disks/{diskName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{diskName}": { "get": { "operationId": "Disks_Get", "tags": [ @@ -4054,7 +4075,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -4119,7 +4140,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -4207,7 +4228,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -4274,7 +4295,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -4334,7 +4355,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users/{userName}/disks/{diskName}/attach": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{diskName}/attach": { "post": { "operationId": "Disks_Attach", "tags": [ @@ -4352,7 +4373,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -4418,7 +4439,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users/{userName}/disks/{diskName}/detach": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{diskName}/detach": { "post": { "operationId": "Disks_Detach", "tags": [ @@ -4436,7 +4457,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -4502,7 +4523,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users/{userName}/environments": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments": { "get": { "operationId": "Environments_List", "tags": [ @@ -4520,7 +4541,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -4587,7 +4608,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users/{userName}/environments/{dtlEnvironmentName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments/{dtlEnvironmentName}": { "get": { "operationId": "Environments_Get", "tags": [ @@ -4605,7 +4626,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -4670,7 +4691,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -4758,7 +4779,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -4825,7 +4846,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -4885,7 +4906,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users/{userName}/secrets": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/secrets": { "get": { "operationId": "Secrets_List", "tags": [ @@ -4903,7 +4924,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -4970,7 +4991,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users/{userName}/secrets/{secretName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/secrets/{secretName}": { "get": { "operationId": "Secrets_Get", "tags": [ @@ -4988,7 +5009,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -5053,7 +5074,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -5141,7 +5162,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -5208,7 +5229,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -5250,7 +5271,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users/{userName}/servicefabrics": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics": { "get": { "operationId": "ServiceFabrics_List", "tags": [ @@ -5268,7 +5289,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -5335,7 +5356,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users/{userName}/servicefabrics/{serviceFabricName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}": { "get": { "operationId": "ServiceFabrics_Get", "tags": [ @@ -5353,7 +5374,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -5418,7 +5439,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -5506,7 +5527,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -5573,7 +5594,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -5633,7 +5654,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users/{userName}/servicefabrics/{serviceFabricName}/listApplicableSchedules": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/listApplicableSchedules": { "post": { "operationId": "ServiceFabrics_ListApplicableSchedules", "tags": [ @@ -5651,7 +5672,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -6160,7 +6181,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users/{userName}/servicefabrics/{serviceFabricName}/start": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/start": { "post": { "operationId": "ServiceFabrics_Start", "tags": [ @@ -6178,7 +6199,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -6235,7 +6256,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/users/{userName}/servicefabrics/{serviceFabricName}/stop": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/stop": { "post": { "operationId": "ServiceFabrics_Stop", "tags": [ @@ -6253,7 +6274,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -6310,7 +6331,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines": { "get": { "operationId": "VirtualMachines_List", "tags": [ @@ -6328,7 +6349,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -6388,7 +6409,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}": { "get": { "operationId": "VirtualMachines_Get", "tags": [ @@ -6406,7 +6427,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -6464,7 +6485,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -6545,7 +6566,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -6605,7 +6626,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -6658,7 +6679,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines/{name}/addDataDisk": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/addDataDisk": { "post": { "operationId": "VirtualMachines_AddDataDisk", "tags": [ @@ -6676,7 +6697,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -6735,7 +6756,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines/{name}/applyArtifacts": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/applyArtifacts": { "post": { "operationId": "VirtualMachines_ApplyArtifacts", "tags": [ @@ -6753,7 +6774,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -6812,7 +6833,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines/{name}/claim": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/claim": { "post": { "operationId": "VirtualMachines_Claim", "tags": [ @@ -6830,7 +6851,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -6880,7 +6901,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines/{name}/detachDataDisk": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/detachDataDisk": { "post": { "operationId": "VirtualMachines_DetachDataDisk", "tags": [ @@ -6898,7 +6919,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -6957,7 +6978,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines/{name}/getRdpFileContents": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/getRdpFileContents": { "post": { "operationId": "VirtualMachines_GetRdpFileContents", "tags": [ @@ -6975,7 +6996,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -7010,7 +7031,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines/{name}/listApplicableSchedules": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/listApplicableSchedules": { "post": { "operationId": "VirtualMachines_ListApplicableSchedules", "tags": [ @@ -7028,7 +7049,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -7063,7 +7084,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines/{name}/redeploy": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/redeploy": { "post": { "operationId": "VirtualMachines_Redeploy", "tags": [ @@ -7081,7 +7102,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -7131,7 +7152,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines/{name}/resize": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/resize": { "post": { "operationId": "VirtualMachines_Resize", "tags": [ @@ -7149,7 +7170,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -7208,7 +7229,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines/{name}/restart": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/restart": { "post": { "operationId": "VirtualMachines_Restart", "tags": [ @@ -7226,7 +7247,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -7701,7 +7722,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines/{name}/start": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/start": { "post": { "operationId": "VirtualMachines_Start", "tags": [ @@ -7719,7 +7740,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -7769,7 +7790,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines/{name}/stop": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/stop": { "post": { "operationId": "VirtualMachines_Stop", "tags": [ @@ -7787,7 +7808,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -7837,7 +7858,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines/{name}/transferDisks": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/transferDisks": { "post": { "operationId": "VirtualMachines_TransferDisks", "tags": [ @@ -7855,7 +7876,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -7905,7 +7926,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualmachines/{name}/unClaim": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/unClaim": { "post": { "operationId": "VirtualMachines_UnClaim", "tags": [ @@ -7923,7 +7944,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -7973,7 +7994,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualnetworks": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualnetworks": { "get": { "operationId": "VirtualNetworks_List", "tags": [ @@ -7991,7 +8012,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -8051,7 +8072,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{devtestLabName}/virtualnetworks/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualnetworks/{name}": { "get": { "operationId": "VirtualNetworks_Get", "tags": [ @@ -8069,7 +8090,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -8127,7 +8148,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -8208,7 +8229,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -8268,7 +8289,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "devtestLabName", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, From 70956db36672fd282b1a8d02e65dafb67fbe89b6 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Thu, 19 Jun 2025 15:13:03 -0700 Subject: [PATCH 13/59] Policy set fixes --- .../Policy.tsp | 33 +- .../stable/2018-09-15/DTL.json | 3328 +++++++++-------- 2 files changed, 1727 insertions(+), 1634 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp index f5a0c5793366..aeb7b96d0382 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp @@ -22,12 +22,35 @@ model Policy is Azure.ResourceManager.TrackedResource { >; } +@armResourceOperations +interface PolicySetsOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + /** labs */ + @path @segment("labs") labName: string, + + /** policysets */ + @path @segment("policysets") policySetName: string, + }, + KeysOf> + > {} + @armResourceOperations interface Policies { /** * Get policy. */ - get is ArmResourceRead< + get is PolicySetsOps.Read< Policy, Parameters = { /** @@ -41,23 +64,23 @@ interface Policies { /** * Create or replace an existing policy. */ - createOrUpdate is ArmResourceCreateOrReplaceSync; + createOrUpdate is PolicySetsOps.CreateOrUpdateSync; /** * Allows modifying tags of policies. All other properties will be ignored. */ @patch(#{ implicitOptionality: false }) - update is ArmCustomPatchSync; + update is PolicySetsOps.CustomPatchSync; /** * Delete policy. */ - delete is ArmResourceDeleteSync; + delete is PolicySetsOps.DeleteSync; /** * List policies in a given policy set. */ - list is ArmResourceListByParent< + list is PolicySetsOps.List< Policy, Parameters = { /** diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index afd0f67cb825..6ed847decb57 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -3015,13 +3015,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies": { "get": { - "operationId": "Schedules_List", + "operationId": "Policies_List", "tags": [ - "ScheduleOperationGroup" + "Policies" ], - "description": "List schedules in a given lab.", + "description": "List policies in a given policy set.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3039,10 +3039,17 @@ "required": true, "type": "string" }, + { + "name": "policySetName", + "in": "path", + "description": "policysets", + "required": true, + "type": "string" + }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=status)'", + "description": "Specify the $expand query. Example: 'properties($select=description)'", "required": false, "type": "string" }, @@ -3073,7 +3080,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ScheduleList" + "$ref": "#/definitions/PolicyList" } }, "default": { @@ -3084,8 +3091,8 @@ } }, "x-ms-examples": { - "Schedules_List": { - "$ref": "./examples/Schedules_List.json" + "Policies_List": { + "$ref": "./examples/Policies_List.json" } }, "x-ms-pageable": { @@ -3093,13 +3100,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{name}": { "get": { - "operationId": "Schedules_Get", + "operationId": "Policies_Get", "tags": [ - "ScheduleOperationGroup" + "Policies" ], - "description": "Get schedule.", + "description": "Get policy.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3117,6 +3124,13 @@ "required": true, "type": "string" }, + { + "name": "policySetName", + "in": "path", + "description": "policysets", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", @@ -3127,7 +3141,7 @@ { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=status)'", + "description": "Specify the $expand query. Example: 'properties($select=description)'", "required": false, "type": "string" } @@ -3136,7 +3150,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/Policy" } }, "default": { @@ -3147,17 +3161,17 @@ } }, "x-ms-examples": { - "Schedules_Get": { - "$ref": "./examples/Schedules_Get.json" + "Policies_Get": { + "$ref": "./examples/Policies_Get.json" } } }, "put": { - "operationId": "Schedules_CreateOrUpdate", + "operationId": "Policies_CreateOrUpdate", "tags": [ - "ScheduleOperationGroup" + "Policies" ], - "description": "Create or replace an existing schedule.", + "description": "Create or replace an existing policy.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3175,6 +3189,13 @@ "required": true, "type": "string" }, + { + "name": "policySetName", + "in": "path", + "description": "policysets", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", @@ -3183,26 +3204,26 @@ "type": "string" }, { - "name": "schedule", + "name": "policy", "in": "body", - "description": "A schedule.", + "description": "A Policy.", "required": true, "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/Policy" } } ], "responses": { "200": { - "description": "Resource 'Schedule' update operation succeeded", + "description": "Resource 'Policy' update operation succeeded", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/Policy" } }, "201": { - "description": "Resource 'Schedule' create operation succeeded", + "description": "Resource 'Policy' create operation succeeded", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/Policy" } }, "default": { @@ -3213,17 +3234,17 @@ } }, "x-ms-examples": { - "Schedules_CreateOrUpdate": { - "$ref": "./examples/Schedules_CreateOrUpdate.json" + "Policies_CreateOrUpdate": { + "$ref": "./examples/Policies_CreateOrUpdate.json" } } }, "patch": { - "operationId": "Schedules_Update", + "operationId": "Policies_Update", "tags": [ - "ScheduleOperationGroup" + "Policies" ], - "description": "Allows modifying tags of schedules. All other properties will be ignored.", + "description": "Allows modifying tags of policies. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3241,6 +3262,13 @@ "required": true, "type": "string" }, + { + "name": "policySetName", + "in": "path", + "description": "policysets", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", @@ -3249,12 +3277,12 @@ "type": "string" }, { - "name": "schedule", + "name": "policy", "in": "body", - "description": "A schedule.", + "description": "A Policy.", "required": true, "schema": { - "$ref": "#/definitions/ScheduleFragment" + "$ref": "#/definitions/PolicyFragment" } } ], @@ -3262,7 +3290,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/Policy" } }, "default": { @@ -3273,17 +3301,17 @@ } }, "x-ms-examples": { - "Schedules_Update": { - "$ref": "./examples/Schedules_Update.json" + "Policies_Update": { + "$ref": "./examples/Policies_Update.json" } } }, "delete": { - "operationId": "Schedules_Delete", + "operationId": "Policies_Delete", "tags": [ - "ScheduleOperationGroup" + "Policies" ], - "description": "Delete schedule.", + "description": "Delete policy.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3301,6 +3329,13 @@ "required": true, "type": "string" }, + { + "name": "policySetName", + "in": "path", + "description": "policysets", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", @@ -3324,19 +3359,19 @@ } }, "x-ms-examples": { - "Schedules_Delete": { - "$ref": "./examples/Schedules_Delete.json" + "Policies_Delete": { + "$ref": "./examples/Policies_Delete.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}/execute": { - "post": { - "operationId": "Schedules_Execute", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules": { + "get": { + "operationId": "Schedules_List", "tags": [ "ScheduleOperationGroup" ], - "description": "Execute a schedule. This operation can take a while to complete.", + "description": "List schedules in a given lab.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3355,29 +3390,40 @@ "type": "string" }, { - "name": "name", - "in": "path", - "description": "The name of the Schedule", - "required": true, + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=status)'", + "required": false, + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, "type": "string" } ], "responses": { "200": { - "description": "The request has succeeded." - }, - "202": { - "description": "Resource operation accepted.", - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ScheduleList" } }, "default": { @@ -3388,23 +3434,22 @@ } }, "x-ms-examples": { - "Schedules_Execute": { - "$ref": "./examples/Schedules_Execute.json" + "Schedules_List": { + "$ref": "./examples/Schedules_List.json" } }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true + "x-ms-pageable": { + "nextLinkName": "nextLink" + } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}/listApplicable": { - "post": { - "operationId": "Schedules_ListApplicable", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}": { + "get": { + "operationId": "Schedules_Get", "tags": [ "ScheduleOperationGroup" ], - "description": "Lists all applicable schedules", + "description": "Get schedule.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3428,13 +3473,20 @@ "description": "The name of the Schedule", "required": true, "type": "string" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=status)'", + "required": false, + "type": "string" } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ScheduleList" + "$ref": "#/definitions/Schedule" } }, "default": { @@ -3445,22 +3497,17 @@ } }, "x-ms-examples": { - "Schedules_ListApplicable": { - "$ref": "./examples/Schedules_ListApplicable.json" + "Schedules_Get": { + "$ref": "./examples/Schedules_Get.json" } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/servicerunners/{serviceRunnerName}": { - "get": { - "operationId": "ServiceRunners_Get", + }, + "put": { + "operationId": "Schedules_CreateOrUpdate", "tags": [ - "ServiceRunners" + "ScheduleOperationGroup" ], - "description": "Get service runner.", + "description": "Create or replace an existing schedule.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3474,23 +3521,38 @@ { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { - "name": "serviceRunnerName", + "name": "name", "in": "path", - "description": "The name of the service runner.", + "description": "The name of the Schedule", "required": true, "type": "string" + }, + { + "name": "schedule", + "in": "body", + "description": "A schedule.", + "required": true, + "schema": { + "$ref": "#/definitions/Schedule" + } } ], "responses": { "200": { - "description": "Azure operation completed successfully.", + "description": "Resource 'Schedule' update operation succeeded", "schema": { - "$ref": "#/definitions/ServiceRunner" + "$ref": "#/definitions/Schedule" + } + }, + "201": { + "description": "Resource 'Schedule' create operation succeeded", + "schema": { + "$ref": "#/definitions/Schedule" } }, "default": { @@ -3501,17 +3563,17 @@ } }, "x-ms-examples": { - "ServiceRunners_Get": { - "$ref": "./examples/ServiceRunners_Get.json" + "Schedules_CreateOrUpdate": { + "$ref": "./examples/Schedules_CreateOrUpdate.json" } } }, - "put": { - "operationId": "ServiceRunners_CreateOrUpdate", + "patch": { + "operationId": "Schedules_Update", "tags": [ - "ServiceRunners" + "ScheduleOperationGroup" ], - "description": "Create or replace an existing service runner.", + "description": "Allows modifying tags of schedules. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3525,38 +3587,32 @@ { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { - "name": "serviceRunnerName", + "name": "name", "in": "path", - "description": "The name of the service runner.", + "description": "The name of the Schedule", "required": true, "type": "string" }, { - "name": "serviceRunner", + "name": "schedule", "in": "body", - "description": "A container for a managed identity to execute DevTest lab services.", + "description": "A schedule.", "required": true, "schema": { - "$ref": "#/definitions/ServiceRunner" + "$ref": "#/definitions/ScheduleFragment" } } ], "responses": { "200": { - "description": "Resource 'ServiceRunner' update operation succeeded", - "schema": { - "$ref": "#/definitions/ServiceRunner" - } - }, - "201": { - "description": "Resource 'ServiceRunner' create operation succeeded", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ServiceRunner" + "$ref": "#/definitions/Schedule" } }, "default": { @@ -3567,17 +3623,17 @@ } }, "x-ms-examples": { - "ServiceRunners_CreateOrUpdate": { - "$ref": "./examples/ServiceRunners_CreateOrUpdate.json" + "Schedules_Update": { + "$ref": "./examples/Schedules_Update.json" } } }, "delete": { - "operationId": "ServiceRunners_Delete", + "operationId": "Schedules_Delete", "tags": [ - "ServiceRunners" + "ScheduleOperationGroup" ], - "description": "Delete service runner.", + "description": "Delete schedule.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3591,14 +3647,14 @@ { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { - "name": "serviceRunnerName", + "name": "name", "in": "path", - "description": "The name of the service runner.", + "description": "The name of the Schedule", "required": true, "type": "string" } @@ -3618,19 +3674,19 @@ } }, "x-ms-examples": { - "ServiceRunners_Delete": { - "$ref": "./examples/ServiceRunners_Delete.json" + "Schedules_Delete": { + "$ref": "./examples/Schedules_Delete.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users": { - "get": { - "operationId": "Users_List", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}/execute": { + "post": { + "operationId": "Schedules_Execute", "tags": [ - "Users" + "ScheduleOperationGroup" ], - "description": "List user profiles in a given lab.", + "description": "Execute a schedule. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3644,45 +3700,34 @@ { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=identity)'", - "required": false, - "type": "string" - }, - { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, - "type": "string" - }, - { - "name": "$top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, - "type": "integer", - "format": "int32" - }, - { - "name": "$orderby", - "in": "query", - "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, + "name": "name", + "in": "path", + "description": "The name of the Schedule", + "required": true, "type": "string" } ], "responses": { "200": { - "description": "Azure operation completed successfully.", - "schema": { - "$ref": "#/definitions/UserList" + "description": "The request has succeeded." + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { @@ -3693,22 +3738,23 @@ } }, "x-ms-examples": { - "Users_List": { - "$ref": "./examples/Users_List.json" + "Schedules_Execute": { + "$ref": "./examples/Schedules_Execute.json" } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}": { - "get": { - "operationId": "Users_Get", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}/listApplicable": { + "post": { + "operationId": "Schedules_ListApplicable", "tags": [ - "Users" + "ScheduleOperationGroup" ], - "description": "Get user profile.", + "description": "Lists all applicable schedules", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3722,30 +3768,23 @@ { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { - "name": "userName", + "name": "name", "in": "path", - "description": "The name of the user profile.", + "description": "The name of the Schedule", "required": true, "type": "string" - }, - { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=identity)'", - "required": false, - "type": "string" } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/User" + "$ref": "#/definitions/ScheduleList" } }, "default": { @@ -3756,17 +3795,22 @@ } }, "x-ms-examples": { - "Users_Get": { - "$ref": "./examples/Users_Get.json" + "Schedules_ListApplicable": { + "$ref": "./examples/Schedules_ListApplicable.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "put": { - "operationId": "Users_CreateOrUpdate", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/servicerunners/{serviceRunnerName}": { + "get": { + "operationId": "ServiceRunners_Get", "tags": [ - "Users" + "ServiceRunners" ], - "description": "Create or replace an existing user profile. This operation can take a while to complete.", + "description": "Get service runner.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3785,44 +3829,18 @@ "type": "string" }, { - "name": "userName", + "name": "serviceRunnerName", "in": "path", - "description": "The name of the user profile.", + "description": "The name of the service runner.", "required": true, "type": "string" - }, - { - "name": "user", - "in": "body", - "description": "Profile of a lab user.", - "required": true, - "schema": { - "$ref": "#/definitions/User" - } } ], "responses": { "200": { - "description": "Resource 'User' update operation succeeded", - "schema": { - "$ref": "#/definitions/User" - } - }, - "201": { - "description": "Resource 'User' create operation succeeded", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/User" - }, - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } + "$ref": "#/definitions/ServiceRunner" } }, "default": { @@ -3833,21 +3851,17 @@ } }, "x-ms-examples": { - "Users_CreateOrUpdate": { - "$ref": "./examples/Users_CreateOrUpdate.json" + "ServiceRunners_Get": { + "$ref": "./examples/ServiceRunners_Get.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true + } }, - "patch": { - "operationId": "Users_Update", + "put": { + "operationId": "ServiceRunners_CreateOrUpdate", "tags": [ - "Users" + "ServiceRunners" ], - "description": "Allows modifying tags of user profiles. All other properties will be ignored.", + "description": "Create or replace an existing service runner.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3866,27 +3880,33 @@ "type": "string" }, { - "name": "userName", + "name": "serviceRunnerName", "in": "path", - "description": "The name of the user profile.", + "description": "The name of the service runner.", "required": true, "type": "string" }, { - "name": "user", + "name": "serviceRunner", "in": "body", - "description": "Profile of a lab user.", + "description": "A container for a managed identity to execute DevTest lab services.", "required": true, "schema": { - "$ref": "#/definitions/UserFragment" + "$ref": "#/definitions/ServiceRunner" } } ], "responses": { "200": { - "description": "Azure operation completed successfully.", + "description": "Resource 'ServiceRunner' update operation succeeded", "schema": { - "$ref": "#/definitions/User" + "$ref": "#/definitions/ServiceRunner" + } + }, + "201": { + "description": "Resource 'ServiceRunner' create operation succeeded", + "schema": { + "$ref": "#/definitions/ServiceRunner" } }, "default": { @@ -3897,17 +3917,17 @@ } }, "x-ms-examples": { - "Users_Update": { - "$ref": "./examples/Users_Update.json" + "ServiceRunners_CreateOrUpdate": { + "$ref": "./examples/ServiceRunners_CreateOrUpdate.json" } } }, "delete": { - "operationId": "Users_Delete", + "operationId": "ServiceRunners_Delete", "tags": [ - "Users" + "ServiceRunners" ], - "description": "Delete user profile. This operation can take a while to complete.", + "description": "Delete service runner.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3926,9 +3946,9 @@ "type": "string" }, { - "name": "userName", + "name": "serviceRunnerName", "in": "path", - "description": "The name of the user profile.", + "description": "The name of the service runner.", "required": true, "type": "string" } @@ -3937,20 +3957,6 @@ "200": { "description": "Resource deleted successfully." }, - "202": { - "description": "Resource deletion accepted.", - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } - } - }, "204": { "description": "Resource does not exist." }, @@ -3962,23 +3968,19 @@ } }, "x-ms-examples": { - "Users_Delete": { - "$ref": "./examples/Users_Delete.json" + "ServiceRunners_Delete": { + "$ref": "./examples/ServiceRunners_Delete.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true + } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users": { "get": { - "operationId": "Disks_List", + "operationId": "Users_List", "tags": [ - "Disks" + "Users" ], - "description": "List disks in a given user profile.", + "description": "List user profiles in a given lab.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -3996,17 +3998,10 @@ "required": true, "type": "string" }, - { - "name": "userName", - "in": "path", - "description": "The name of the user profile.", - "required": true, - "type": "string" - }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=diskType)'", + "description": "Specify the $expand query. Example: 'properties($select=identity)'", "required": false, "type": "string" }, @@ -4037,7 +4032,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DiskList" + "$ref": "#/definitions/UserList" } }, "default": { @@ -4048,8 +4043,8 @@ } }, "x-ms-examples": { - "Disks_List": { - "$ref": "./examples/Disks_List.json" + "Users_List": { + "$ref": "./examples/Users_List.json" } }, "x-ms-pageable": { @@ -4057,13 +4052,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{diskName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}": { "get": { - "operationId": "Disks_Get", + "operationId": "Users_Get", "tags": [ - "Disks" + "Users" ], - "description": "Get disk.", + "description": "Get user profile.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -4088,17 +4083,10 @@ "required": true, "type": "string" }, - { - "name": "diskName", - "in": "path", - "description": "The name of the disk.", - "required": true, - "type": "string" - }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=diskType)'", + "description": "Specify the $expand query. Example: 'properties($select=identity)'", "required": false, "type": "string" } @@ -4107,7 +4095,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Disk" + "$ref": "#/definitions/User" } }, "default": { @@ -4118,17 +4106,17 @@ } }, "x-ms-examples": { - "Disks_Get": { - "$ref": "./examples/Disks_Get.json" + "Users_Get": { + "$ref": "./examples/Users_Get.json" } } }, "put": { - "operationId": "Disks_CreateOrUpdate", + "operationId": "Users_CreateOrUpdate", "tags": [ - "Disks" + "Users" ], - "description": "Create or replace an existing disk. This operation can take a while to complete.", + "description": "Create or replace an existing user profile. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -4154,33 +4142,26 @@ "type": "string" }, { - "name": "diskName", - "in": "path", - "description": "The name of the disk.", - "required": true, - "type": "string" - }, - { - "name": "disk", + "name": "user", "in": "body", - "description": "A Disk.", + "description": "Profile of a lab user.", "required": true, "schema": { - "$ref": "#/definitions/Disk" + "$ref": "#/definitions/User" } } ], "responses": { "200": { - "description": "Resource 'Disk' update operation succeeded", + "description": "Resource 'User' update operation succeeded", "schema": { - "$ref": "#/definitions/Disk" + "$ref": "#/definitions/User" } }, "201": { - "description": "Resource 'Disk' create operation succeeded", + "description": "Resource 'User' create operation succeeded", "schema": { - "$ref": "#/definitions/Disk" + "$ref": "#/definitions/User" }, "headers": { "Location": { @@ -4202,8 +4183,8 @@ } }, "x-ms-examples": { - "Disks_CreateOrUpdate": { - "$ref": "./examples/Disks_CreateOrUpdate.json" + "Users_CreateOrUpdate": { + "$ref": "./examples/Users_CreateOrUpdate.json" } }, "x-ms-long-running-operation-options": { @@ -4212,11 +4193,11 @@ "x-ms-long-running-operation": true }, "patch": { - "operationId": "Disks_Update", + "operationId": "Users_Update", "tags": [ - "Disks" + "Users" ], - "description": "Allows modifying tags of disks. All other properties will be ignored.", + "description": "Allows modifying tags of user profiles. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -4242,19 +4223,12 @@ "type": "string" }, { - "name": "diskName", - "in": "path", - "description": "The name of the disk.", - "required": true, - "type": "string" - }, - { - "name": "disk", + "name": "user", "in": "body", - "description": "A Disk.", + "description": "Profile of a lab user.", "required": true, "schema": { - "$ref": "#/definitions/DiskFragment" + "$ref": "#/definitions/UserFragment" } } ], @@ -4262,7 +4236,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Disk" + "$ref": "#/definitions/User" } }, "default": { @@ -4273,17 +4247,17 @@ } }, "x-ms-examples": { - "Disks_Update": { - "$ref": "./examples/Disks_Update.json" + "Users_Update": { + "$ref": "./examples/Users_Update.json" } } }, "delete": { - "operationId": "Disks_Delete", + "operationId": "Users_Delete", "tags": [ - "Disks" + "Users" ], - "description": "Delete disk. This operation can take a while to complete.", + "description": "Delete user profile. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -4307,13 +4281,6 @@ "description": "The name of the user profile.", "required": true, "type": "string" - }, - { - "name": "diskName", - "in": "path", - "description": "The name of the disk.", - "required": true, - "type": "string" } ], "responses": { @@ -4345,8 +4312,8 @@ } }, "x-ms-examples": { - "Disks_Delete": { - "$ref": "./examples/Disks_Delete.json" + "Users_Delete": { + "$ref": "./examples/Users_Delete.json" } }, "x-ms-long-running-operation-options": { @@ -4355,13 +4322,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{diskName}/attach": { - "post": { - "operationId": "Disks_Attach", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks": { + "get": { + "operationId": "Disks_List", "tags": [ "Disks" ], - "description": "Attach and create the lease of the disk to the virtual machine. This operation can take a while to complete.", + "description": "List disks in a given user profile.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -4387,38 +4354,40 @@ "type": "string" }, { - "name": "diskName", - "in": "path", - "description": "The name of the disk.", - "required": true, + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=diskType)'", + "required": false, "type": "string" }, { - "name": "attachDiskProperties", - "in": "body", - "description": "Properties of the disk to attach.", - "required": true, - "schema": { - "$ref": "#/definitions/AttachDiskProperties" - } + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, + "type": "string" } ], "responses": { "200": { - "description": "The request has succeeded." - }, - "202": { - "description": "Resource operation accepted.", - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/DiskList" } }, "default": { @@ -4429,23 +4398,22 @@ } }, "x-ms-examples": { - "Disks_Attach": { - "$ref": "./examples/Disks_Attach.json" + "Disks_List": { + "$ref": "./examples/Disks_List.json" } }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true + "x-ms-pageable": { + "nextLinkName": "nextLink" + } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{diskName}/detach": { - "post": { - "operationId": "Disks_Detach", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{diskName}": { + "get": { + "operationId": "Disks_Get", "tags": [ "Disks" ], - "description": "Detach and break the lease of the disk attached to the virtual machine. This operation can take a while to complete.", + "description": "Get disk.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -4478,31 +4446,18 @@ "type": "string" }, { - "name": "detachDiskProperties", - "in": "body", - "description": "Properties of the disk to detach.", - "required": true, - "schema": { - "$ref": "#/definitions/DetachDiskProperties" - } + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=diskType)'", + "required": false, + "type": "string" } ], "responses": { "200": { - "description": "The request has succeeded." - }, - "202": { - "description": "Resource operation accepted.", - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Disk" } }, "default": { @@ -4513,23 +4468,17 @@ } }, "x-ms-examples": { - "Disks_Detach": { - "$ref": "./examples/Disks_Detach.json" + "Disks_Get": { + "$ref": "./examples/Disks_Get.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments": { - "get": { - "operationId": "Environments_List", + } + }, + "put": { + "operationId": "Disks_CreateOrUpdate", "tags": [ - "DtlEnvironments" + "Disks" ], - "description": "List environments in a given user profile.", + "description": "Create or replace an existing disk. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -4555,40 +4504,44 @@ "type": "string" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=deploymentProperties)'", - "required": false, - "type": "string" - }, - { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, + "name": "diskName", + "in": "path", + "description": "The name of the disk.", + "required": true, "type": "string" }, { - "name": "$top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, - "type": "integer", - "format": "int32" - }, - { - "name": "$orderby", - "in": "query", - "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, - "type": "string" + "name": "disk", + "in": "body", + "description": "A Disk.", + "required": true, + "schema": { + "$ref": "#/definitions/Disk" + } } ], "responses": { "200": { - "description": "Azure operation completed successfully.", + "description": "Resource 'Disk' update operation succeeded", "schema": { - "$ref": "#/definitions/DtlEnvironmentList" + "$ref": "#/definitions/Disk" + } + }, + "201": { + "description": "Resource 'Disk' create operation succeeded", + "schema": { + "$ref": "#/definitions/Disk" + }, + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { @@ -4599,22 +4552,21 @@ } }, "x-ms-examples": { - "Environments_List": { - "$ref": "./examples/Environments_List.json" + "Disks_CreateOrUpdate": { + "$ref": "./examples/Disks_CreateOrUpdate.json" } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments/{dtlEnvironmentName}": { - "get": { - "operationId": "Environments_Get", + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Disks_Update", "tags": [ - "DtlEnvironments" + "Disks" ], - "description": "Get environment.", + "description": "Allows modifying tags of disks. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -4640,25 +4592,27 @@ "type": "string" }, { - "name": "dtlEnvironmentName", + "name": "diskName", "in": "path", - "description": "The name of the environment.", + "description": "The name of the disk.", "required": true, "type": "string" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=deploymentProperties)'", - "required": false, - "type": "string" + "name": "disk", + "in": "body", + "description": "A Disk.", + "required": true, + "schema": { + "$ref": "#/definitions/DiskFragment" + } } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DtlEnvironment" + "$ref": "#/definitions/Disk" } }, "default": { @@ -4669,17 +4623,17 @@ } }, "x-ms-examples": { - "Environments_Get": { - "$ref": "./examples/Environments_Get.json" + "Disks_Update": { + "$ref": "./examples/Disks_Update.json" } } }, - "put": { - "operationId": "Environments_CreateOrUpdate", + "delete": { + "operationId": "Disks_Delete", "tags": [ - "DtlEnvironments" + "Disks" ], - "description": "Create or replace an existing environment. This operation can take a while to complete.", + "description": "Delete disk. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -4705,34 +4659,19 @@ "type": "string" }, { - "name": "dtlEnvironmentName", + "name": "diskName", "in": "path", - "description": "The name of the environment.", + "description": "The name of the disk.", "required": true, "type": "string" - }, - { - "name": "dtlEnvironment", - "in": "body", - "description": "An environment, which is essentially an ARM template deployment.", - "required": true, - "schema": { - "$ref": "#/definitions/DtlEnvironment" - } } ], "responses": { "200": { - "description": "Resource 'DtlEnvironment' update operation succeeded", - "schema": { - "$ref": "#/definitions/DtlEnvironment" - } + "description": "Resource deleted successfully." }, - "201": { - "description": "Resource 'DtlEnvironment' create operation succeeded", - "schema": { - "$ref": "#/definitions/DtlEnvironment" - }, + "202": { + "description": "Resource deletion accepted.", "headers": { "Location": { "type": "string", @@ -4745,6 +4684,9 @@ } } }, + "204": { + "description": "Resource does not exist." + }, "default": { "description": "An unexpected error response.", "schema": { @@ -4753,21 +4695,23 @@ } }, "x-ms-examples": { - "Environments_CreateOrUpdate": { - "$ref": "./examples/Environments_CreateOrUpdate.json" + "Disks_Delete": { + "$ref": "./examples/Disks_Delete.json" } }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, "x-ms-long-running-operation": true - }, - "patch": { - "operationId": "Environments_Update", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{diskName}/attach": { + "post": { + "operationId": "Disks_Attach", "tags": [ - "DtlEnvironments" + "Disks" ], - "description": "Allows modifying tags of environments. All other properties will be ignored.", + "description": "Attach and create the lease of the disk to the virtual machine. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -4793,27 +4737,38 @@ "type": "string" }, { - "name": "dtlEnvironmentName", + "name": "diskName", "in": "path", - "description": "The name of the environment.", + "description": "The name of the disk.", "required": true, "type": "string" }, { - "name": "dtlEnvironment", + "name": "attachDiskProperties", "in": "body", - "description": "An environment, which is essentially an ARM template deployment.", + "description": "Properties of the disk to attach.", "required": true, "schema": { - "$ref": "#/definitions/DtlEnvironmentFragment" + "$ref": "#/definitions/AttachDiskProperties" } } ], "responses": { "200": { - "description": "Azure operation completed successfully.", - "schema": { - "$ref": "#/definitions/DtlEnvironment" + "description": "The request has succeeded." + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { @@ -4824,17 +4779,23 @@ } }, "x-ms-examples": { - "Environments_Update": { - "$ref": "./examples/Environments_Update.json" + "Disks_Attach": { + "$ref": "./examples/Disks_Attach.json" } - } - }, - "delete": { - "operationId": "Environments_Delete", + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{diskName}/detach": { + "post": { + "operationId": "Disks_Detach", "tags": [ - "DtlEnvironments" + "Disks" ], - "description": "Delete environment. This operation can take a while to complete.", + "description": "Detach and break the lease of the disk attached to the virtual machine. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -4860,19 +4821,28 @@ "type": "string" }, { - "name": "dtlEnvironmentName", + "name": "diskName", "in": "path", - "description": "The name of the environment.", + "description": "The name of the disk.", "required": true, "type": "string" + }, + { + "name": "detachDiskProperties", + "in": "body", + "description": "Properties of the disk to detach.", + "required": true, + "schema": { + "$ref": "#/definitions/DetachDiskProperties" + } } ], "responses": { "200": { - "description": "Resource deleted successfully." + "description": "The request has succeeded." }, "202": { - "description": "Resource deletion accepted.", + "description": "Resource operation accepted.", "headers": { "Location": { "type": "string", @@ -4885,9 +4855,6 @@ } } }, - "204": { - "description": "Resource does not exist." - }, "default": { "description": "An unexpected error response.", "schema": { @@ -4896,8 +4863,8 @@ } }, "x-ms-examples": { - "Environments_Delete": { - "$ref": "./examples/Environments_Delete.json" + "Disks_Detach": { + "$ref": "./examples/Disks_Detach.json" } }, "x-ms-long-running-operation-options": { @@ -4906,13 +4873,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/secrets": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments": { "get": { - "operationId": "Secrets_List", + "operationId": "Environments_List", "tags": [ - "Secrets" + "DtlEnvironments" ], - "description": "List secrets in a given user profile.", + "description": "List environments in a given user profile.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -4940,7 +4907,7 @@ { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=value)'", + "description": "Specify the $expand query. Example: 'properties($select=deploymentProperties)'", "required": false, "type": "string" }, @@ -4971,7 +4938,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/SecretList" + "$ref": "#/definitions/DtlEnvironmentList" } }, "default": { @@ -4982,8 +4949,8 @@ } }, "x-ms-examples": { - "Secrets_List": { - "$ref": "./examples/Secrets_List.json" + "Environments_List": { + "$ref": "./examples/Environments_List.json" } }, "x-ms-pageable": { @@ -4991,13 +4958,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/secrets/{secretName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments/{dtlEnvironmentName}": { "get": { - "operationId": "Secrets_Get", + "operationId": "Environments_Get", "tags": [ - "Secrets" + "DtlEnvironments" ], - "description": "Get secret.", + "description": "Get environment.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -5023,16 +4990,16 @@ "type": "string" }, { - "name": "secretName", + "name": "dtlEnvironmentName", "in": "path", - "description": "The name of the secret.", + "description": "The name of the environment.", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=value)'", + "description": "Specify the $expand query. Example: 'properties($select=deploymentProperties)'", "required": false, "type": "string" } @@ -5041,7 +5008,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Secret" + "$ref": "#/definitions/DtlEnvironment" } }, "default": { @@ -5052,17 +5019,17 @@ } }, "x-ms-examples": { - "Secrets_Get": { - "$ref": "./examples/Secrets_Get.json" + "Environments_Get": { + "$ref": "./examples/Environments_Get.json" } } }, "put": { - "operationId": "Secrets_CreateOrUpdate", + "operationId": "Environments_CreateOrUpdate", "tags": [ - "Secrets" + "DtlEnvironments" ], - "description": "Create or replace an existing secret. This operation can take a while to complete.", + "description": "Create or replace an existing environment. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -5088,33 +5055,33 @@ "type": "string" }, { - "name": "secretName", + "name": "dtlEnvironmentName", "in": "path", - "description": "The name of the secret.", + "description": "The name of the environment.", "required": true, "type": "string" }, { - "name": "secret", + "name": "dtlEnvironment", "in": "body", - "description": "A secret.", + "description": "An environment, which is essentially an ARM template deployment.", "required": true, "schema": { - "$ref": "#/definitions/Secret" + "$ref": "#/definitions/DtlEnvironment" } } ], "responses": { "200": { - "description": "Resource 'Secret' update operation succeeded", + "description": "Resource 'DtlEnvironment' update operation succeeded", "schema": { - "$ref": "#/definitions/Secret" + "$ref": "#/definitions/DtlEnvironment" } }, "201": { - "description": "Resource 'Secret' create operation succeeded", + "description": "Resource 'DtlEnvironment' create operation succeeded", "schema": { - "$ref": "#/definitions/Secret" + "$ref": "#/definitions/DtlEnvironment" }, "headers": { "Location": { @@ -5136,8 +5103,8 @@ } }, "x-ms-examples": { - "Secrets_CreateOrUpdate": { - "$ref": "./examples/Secrets_CreateOrUpdate.json" + "Environments_CreateOrUpdate": { + "$ref": "./examples/Environments_CreateOrUpdate.json" } }, "x-ms-long-running-operation-options": { @@ -5146,11 +5113,11 @@ "x-ms-long-running-operation": true }, "patch": { - "operationId": "Secrets_Update", + "operationId": "Environments_Update", "tags": [ - "Secrets" + "DtlEnvironments" ], - "description": "Allows modifying tags of secrets. All other properties will be ignored.", + "description": "Allows modifying tags of environments. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -5176,19 +5143,19 @@ "type": "string" }, { - "name": "secretName", + "name": "dtlEnvironmentName", "in": "path", - "description": "The name of the secret.", + "description": "The name of the environment.", "required": true, "type": "string" }, { - "name": "secret", + "name": "dtlEnvironment", "in": "body", - "description": "A secret.", + "description": "An environment, which is essentially an ARM template deployment.", "required": true, "schema": { - "$ref": "#/definitions/SecretFragment" + "$ref": "#/definitions/DtlEnvironmentFragment" } } ], @@ -5196,7 +5163,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Secret" + "$ref": "#/definitions/DtlEnvironment" } }, "default": { @@ -5207,17 +5174,17 @@ } }, "x-ms-examples": { - "Secrets_Update": { - "$ref": "./examples/Secrets_Update.json" + "Environments_Update": { + "$ref": "./examples/Environments_Update.json" } } }, "delete": { - "operationId": "Secrets_Delete", + "operationId": "Environments_Delete", "tags": [ - "Secrets" + "DtlEnvironments" ], - "description": "Delete secret.", + "description": "Delete environment. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -5243,9 +5210,9 @@ "type": "string" }, { - "name": "secretName", + "name": "dtlEnvironmentName", "in": "path", - "description": "The name of the secret.", + "description": "The name of the environment.", "required": true, "type": "string" } @@ -5254,6 +5221,20 @@ "200": { "description": "Resource deleted successfully." }, + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, "204": { "description": "Resource does not exist." }, @@ -5265,19 +5246,23 @@ } }, "x-ms-examples": { - "Secrets_Delete": { - "$ref": "./examples/Secrets_Delete.json" + "Environments_Delete": { + "$ref": "./examples/Environments_Delete.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/secrets": { "get": { - "operationId": "ServiceFabrics_List", + "operationId": "Secrets_List", "tags": [ - "ServiceFabrics" + "Secrets" ], - "description": "List service fabrics in a given user profile.", + "description": "List secrets in a given user profile.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -5305,7 +5290,7 @@ { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($expand=applicableSchedule)'", + "description": "Specify the $expand query. Example: 'properties($select=value)'", "required": false, "type": "string" }, @@ -5336,7 +5321,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ServiceFabricList" + "$ref": "#/definitions/SecretList" } }, "default": { @@ -5347,8 +5332,8 @@ } }, "x-ms-examples": { - "ServiceFabrics_List": { - "$ref": "./examples/ServiceFabrics_List.json" + "Secrets_List": { + "$ref": "./examples/Secrets_List.json" } }, "x-ms-pageable": { @@ -5356,13 +5341,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/secrets/{secretName}": { "get": { - "operationId": "ServiceFabrics_Get", + "operationId": "Secrets_Get", "tags": [ - "ServiceFabrics" + "Secrets" ], - "description": "Get service fabric.", + "description": "Get secret.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -5388,16 +5373,16 @@ "type": "string" }, { - "name": "serviceFabricName", + "name": "secretName", "in": "path", - "description": "The name of the service fabric.", + "description": "The name of the secret.", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($expand=applicableSchedule)'", + "description": "Specify the $expand query. Example: 'properties($select=value)'", "required": false, "type": "string" } @@ -5406,7 +5391,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ServiceFabric" + "$ref": "#/definitions/Secret" } }, "default": { @@ -5417,17 +5402,17 @@ } }, "x-ms-examples": { - "ServiceFabrics_Get": { - "$ref": "./examples/ServiceFabrics_Get.json" + "Secrets_Get": { + "$ref": "./examples/Secrets_Get.json" } } }, "put": { - "operationId": "ServiceFabrics_CreateOrUpdate", + "operationId": "Secrets_CreateOrUpdate", "tags": [ - "ServiceFabrics" + "Secrets" ], - "description": "Create or replace an existing service fabric. This operation can take a while to complete.", + "description": "Create or replace an existing secret. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -5453,33 +5438,33 @@ "type": "string" }, { - "name": "serviceFabricName", + "name": "secretName", "in": "path", - "description": "The name of the service fabric.", + "description": "The name of the secret.", "required": true, "type": "string" }, { - "name": "serviceFabric", + "name": "secret", "in": "body", - "description": "A Service Fabric.", + "description": "A secret.", "required": true, "schema": { - "$ref": "#/definitions/ServiceFabric" + "$ref": "#/definitions/Secret" } } ], "responses": { "200": { - "description": "Resource 'ServiceFabric' update operation succeeded", + "description": "Resource 'Secret' update operation succeeded", "schema": { - "$ref": "#/definitions/ServiceFabric" + "$ref": "#/definitions/Secret" } }, "201": { - "description": "Resource 'ServiceFabric' create operation succeeded", + "description": "Resource 'Secret' create operation succeeded", "schema": { - "$ref": "#/definitions/ServiceFabric" + "$ref": "#/definitions/Secret" }, "headers": { "Location": { @@ -5501,8 +5486,8 @@ } }, "x-ms-examples": { - "ServiceFabrics_CreateOrUpdate": { - "$ref": "./examples/ServiceFabrics_CreateOrUpdate.json" + "Secrets_CreateOrUpdate": { + "$ref": "./examples/Secrets_CreateOrUpdate.json" } }, "x-ms-long-running-operation-options": { @@ -5511,11 +5496,11 @@ "x-ms-long-running-operation": true }, "patch": { - "operationId": "ServiceFabrics_Update", + "operationId": "Secrets_Update", "tags": [ - "ServiceFabrics" + "Secrets" ], - "description": "Allows modifying tags of service fabrics. All other properties will be ignored.", + "description": "Allows modifying tags of secrets. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -5541,19 +5526,19 @@ "type": "string" }, { - "name": "serviceFabricName", + "name": "secretName", "in": "path", - "description": "The name of the service fabric.", + "description": "The name of the secret.", "required": true, "type": "string" }, { - "name": "serviceFabric", + "name": "secret", "in": "body", - "description": "A Service Fabric.", + "description": "A secret.", "required": true, "schema": { - "$ref": "#/definitions/ServiceFabricFragment" + "$ref": "#/definitions/SecretFragment" } } ], @@ -5561,7 +5546,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ServiceFabric" + "$ref": "#/definitions/Secret" } }, "default": { @@ -5572,17 +5557,17 @@ } }, "x-ms-examples": { - "ServiceFabrics_Update": { - "$ref": "./examples/ServiceFabrics_Update.json" + "Secrets_Update": { + "$ref": "./examples/Secrets_Update.json" } } }, "delete": { - "operationId": "ServiceFabrics_Delete", + "operationId": "Secrets_Delete", "tags": [ - "ServiceFabrics" + "Secrets" ], - "description": "Delete service fabric. This operation can take a while to complete.", + "description": "Delete secret.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -5608,9 +5593,9 @@ "type": "string" }, { - "name": "serviceFabricName", + "name": "secretName", "in": "path", - "description": "The name of the service fabric.", + "description": "The name of the secret.", "required": true, "type": "string" } @@ -5619,20 +5604,6 @@ "200": { "description": "Resource deleted successfully." }, - "202": { - "description": "Resource deletion accepted.", - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } - } - }, "204": { "description": "Resource does not exist." }, @@ -5644,23 +5615,19 @@ } }, "x-ms-examples": { - "ServiceFabrics_Delete": { - "$ref": "./examples/ServiceFabrics_Delete.json" + "Secrets_Delete": { + "$ref": "./examples/Secrets_Delete.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true + } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/listApplicableSchedules": { - "post": { - "operationId": "ServiceFabrics_ListApplicableSchedules", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics": { + "get": { + "operationId": "ServiceFabrics_List", "tags": [ "ServiceFabrics" ], - "description": "Lists the applicable start/stop schedules, if any.", + "description": "List service fabrics in a given user profile.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -5686,10 +5653,32 @@ "type": "string" }, { - "name": "serviceFabricName", - "in": "path", - "description": "The name of the service fabric.", - "required": true, + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($expand=applicableSchedule)'", + "required": false, + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, "type": "string" } ], @@ -5697,7 +5686,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ApplicableSchedule" + "$ref": "#/definitions/ServiceFabricList" } }, "default": { @@ -5708,19 +5697,22 @@ } }, "x-ms-examples": { - "ServiceFabrics_ListApplicableSchedules": { - "$ref": "./examples/ServiceFabrics_ListApplicableSchedules.json" + "ServiceFabrics_List": { + "$ref": "./examples/ServiceFabrics_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}": { "get": { - "operationId": "ServiceFabricSchedules_List", + "operationId": "ServiceFabrics_Get", "tags": [ - "ServiceFabricSchedules" + "ServiceFabrics" ], - "description": "List schedules in a given service fabric.", + "description": "Get service fabric.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -5734,50 +5726,28 @@ { "name": "labName", "in": "path", - "description": "labs", + "description": "The name of the lab.", "required": true, "type": "string" }, { "name": "userName", "in": "path", - "description": "users", + "description": "The name of the user profile.", "required": true, "type": "string" }, { "name": "serviceFabricName", "in": "path", - "description": "servicefabrics", + "description": "The name of the service fabric.", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=status)'", - "required": false, - "type": "string" - }, - { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, - "type": "string" - }, - { - "name": "$top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, - "type": "integer", - "format": "int32" - }, - { - "name": "$orderby", - "in": "query", - "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "description": "Specify the $expand query. Example: 'properties($expand=applicableSchedule)'", "required": false, "type": "string" } @@ -5786,7 +5756,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ScheduleList" + "$ref": "#/definitions/ServiceFabric" } }, "default": { @@ -5797,22 +5767,17 @@ } }, "x-ms-examples": { - "ServiceFabricSchedules_List": { - "$ref": "./examples/ServiceFabricSchedules_List.json" + "ServiceFabrics_Get": { + "$ref": "./examples/ServiceFabrics_Get.json" } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules/{name}": { - "get": { - "operationId": "ServiceFabricSchedules_Get", + }, + "put": { + "operationId": "ServiceFabrics_CreateOrUpdate", "tags": [ - "ServiceFabricSchedules" + "ServiceFabrics" ], - "description": "Get schedule.", + "description": "Create or replace an existing service fabric. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -5826,44 +5791,56 @@ { "name": "labName", "in": "path", - "description": "labs", + "description": "The name of the lab.", "required": true, "type": "string" }, { "name": "userName", "in": "path", - "description": "users", + "description": "The name of the user profile.", "required": true, "type": "string" }, { "name": "serviceFabricName", "in": "path", - "description": "servicefabrics", + "description": "The name of the service fabric.", "required": true, "type": "string" }, { - "name": "name", - "in": "path", - "description": "The name of the Schedule", + "name": "serviceFabric", + "in": "body", + "description": "A Service Fabric.", "required": true, - "type": "string" - }, - { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=status)'", - "required": false, - "type": "string" + "schema": { + "$ref": "#/definitions/ServiceFabric" + } } ], "responses": { "200": { - "description": "Azure operation completed successfully.", + "description": "Resource 'ServiceFabric' update operation succeeded", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/ServiceFabric" + } + }, + "201": { + "description": "Resource 'ServiceFabric' create operation succeeded", + "schema": { + "$ref": "#/definitions/ServiceFabric" + }, + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { @@ -5874,17 +5851,21 @@ } }, "x-ms-examples": { - "ServiceFabricSchedules_Get": { - "$ref": "./examples/ServiceFabricSchedules_Get.json" + "ServiceFabrics_CreateOrUpdate": { + "$ref": "./examples/ServiceFabrics_CreateOrUpdate.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true }, - "put": { - "operationId": "ServiceFabricSchedules_CreateOrUpdate", + "patch": { + "operationId": "ServiceFabrics_Update", "tags": [ - "ServiceFabricSchedules" + "ServiceFabrics" ], - "description": "Create or replace an existing schedule.", + "description": "Allows modifying tags of service fabrics. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -5898,52 +5879,39 @@ { "name": "labName", "in": "path", - "description": "labs", + "description": "The name of the lab.", "required": true, "type": "string" }, { "name": "userName", "in": "path", - "description": "users", + "description": "The name of the user profile.", "required": true, "type": "string" }, { "name": "serviceFabricName", "in": "path", - "description": "servicefabrics", - "required": true, - "type": "string" - }, - { - "name": "name", - "in": "path", - "description": "The name of the Schedule", + "description": "The name of the service fabric.", "required": true, "type": "string" }, { - "name": "schedule", + "name": "serviceFabric", "in": "body", - "description": "A schedule.", + "description": "A Service Fabric.", "required": true, "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/ServiceFabricFragment" } } ], "responses": { "200": { - "description": "Resource 'Schedule' update operation succeeded", - "schema": { - "$ref": "#/definitions/Schedule" - } - }, - "201": { - "description": "Resource 'Schedule' create operation succeeded", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/ServiceFabric" } }, "default": { @@ -5954,17 +5922,17 @@ } }, "x-ms-examples": { - "ServiceFabricSchedules_CreateOrUpdate": { - "$ref": "./examples/ServiceFabricSchedules_CreateOrUpdate.json" + "ServiceFabrics_Update": { + "$ref": "./examples/ServiceFabrics_Update.json" } } }, - "patch": { - "operationId": "ServiceFabricSchedules_Update", + "delete": { + "operationId": "ServiceFabrics_Delete", "tags": [ - "ServiceFabricSchedules" + "ServiceFabrics" ], - "description": "Allows modifying tags of schedules. All other properties will be ignored.", + "description": "Delete service fabric. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -5978,48 +5946,46 @@ { "name": "labName", "in": "path", - "description": "labs", + "description": "The name of the lab.", "required": true, "type": "string" }, { "name": "userName", "in": "path", - "description": "users", + "description": "The name of the user profile.", "required": true, "type": "string" }, { "name": "serviceFabricName", "in": "path", - "description": "servicefabrics", - "required": true, - "type": "string" - }, - { - "name": "name", - "in": "path", - "description": "The name of the Schedule", + "description": "The name of the service fabric.", "required": true, "type": "string" - }, - { - "name": "schedule", - "in": "body", - "description": "A schedule.", - "required": true, - "schema": { - "$ref": "#/definitions/ScheduleFragment" - } } ], "responses": { "200": { - "description": "Azure operation completed successfully.", - "schema": { - "$ref": "#/definitions/Schedule" + "description": "Resource deleted successfully." + }, + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, + "204": { + "description": "Resource does not exist." + }, "default": { "description": "An unexpected error response.", "schema": { @@ -6028,17 +5994,23 @@ } }, "x-ms-examples": { - "ServiceFabricSchedules_Update": { - "$ref": "./examples/ServiceFabricSchedules_Update.json" + "ServiceFabrics_Delete": { + "$ref": "./examples/ServiceFabrics_Delete.json" } - } - }, - "delete": { - "operationId": "ServiceFabricSchedules_Delete", + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/listApplicableSchedules": { + "post": { + "operationId": "ServiceFabrics_ListApplicableSchedules", "tags": [ - "ServiceFabricSchedules" + "ServiceFabrics" ], - "description": "Delete schedule.", + "description": "Lists the applicable start/stop schedules, if any.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -6052,38 +6024,31 @@ { "name": "labName", "in": "path", - "description": "labs", + "description": "The name of the lab.", "required": true, "type": "string" }, { "name": "userName", "in": "path", - "description": "users", + "description": "The name of the user profile.", "required": true, "type": "string" }, { "name": "serviceFabricName", "in": "path", - "description": "servicefabrics", - "required": true, - "type": "string" - }, - { - "name": "name", - "in": "path", - "description": "The name of the Schedule", + "description": "The name of the service fabric.", "required": true, "type": "string" } ], "responses": { "200": { - "description": "Resource deleted successfully." - }, - "204": { - "description": "Resource does not exist." + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApplicableSchedule" + } }, "default": { "description": "An unexpected error response.", @@ -6093,19 +6058,19 @@ } }, "x-ms-examples": { - "ServiceFabricSchedules_Delete": { - "$ref": "./examples/ServiceFabricSchedules_Delete.json" + "ServiceFabrics_ListApplicableSchedules": { + "$ref": "./examples/ServiceFabrics_ListApplicableSchedules.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules/{name}/execute": { - "post": { - "operationId": "ServiceFabricSchedules_Execute", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules": { + "get": { + "operationId": "ServiceFabricSchedules_List", "tags": [ "ServiceFabricSchedules" ], - "description": "Execute a schedule. This operation can take a while to complete.", + "description": "List schedules in a given service fabric.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -6138,29 +6103,40 @@ "type": "string" }, { - "name": "name", - "in": "path", - "description": "The name of the Schedule", - "required": true, + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=status)'", + "required": false, + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, "type": "string" } ], "responses": { "200": { - "description": "The request has succeeded." - }, - "202": { - "description": "Resource operation accepted.", - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ScheduleList" } }, "default": { @@ -6171,23 +6147,22 @@ } }, "x-ms-examples": { - "ServiceFabricSchedules_Execute": { - "$ref": "./examples/ServiceFabricSchedules_Execute.json" + "ServiceFabricSchedules_List": { + "$ref": "./examples/ServiceFabricSchedules_List.json" } }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true + "x-ms-pageable": { + "nextLinkName": "nextLink" + } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/start": { - "post": { - "operationId": "ServiceFabrics_Start", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules/{name}": { + "get": { + "operationId": "ServiceFabricSchedules_Get", "tags": [ - "ServiceFabrics" + "ServiceFabricSchedules" ], - "description": "Start a service fabric. This operation can take a while to complete.", + "description": "Get schedule.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -6201,41 +6176,44 @@ { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { "name": "userName", "in": "path", - "description": "The name of the user profile.", + "description": "users", "required": true, "type": "string" }, { "name": "serviceFabricName", "in": "path", - "description": "The name of the service fabric.", + "description": "servicefabrics", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "The name of the Schedule", "required": true, "type": "string" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=status)'", + "required": false, + "type": "string" } ], "responses": { "200": { - "description": "The request has succeeded." - }, - "202": { - "description": "Resource operation accepted.", - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Schedule" } }, "default": { @@ -6246,23 +6224,17 @@ } }, "x-ms-examples": { - "ServiceFabrics_Start": { - "$ref": "./examples/ServiceFabrics_Start.json" + "ServiceFabricSchedules_Get": { + "$ref": "./examples/ServiceFabricSchedules_Get.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/stop": { - "post": { - "operationId": "ServiceFabrics_Stop", + } + }, + "put": { + "operationId": "ServiceFabricSchedules_CreateOrUpdate", "tags": [ - "ServiceFabrics" + "ServiceFabricSchedules" ], - "description": "Stop a service fabric This operation can take a while to complete.", + "description": "Create or replace an existing schedule.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -6276,41 +6248,52 @@ { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { "name": "userName", "in": "path", - "description": "The name of the user profile.", + "description": "users", "required": true, "type": "string" }, { "name": "serviceFabricName", "in": "path", - "description": "The name of the service fabric.", + "description": "servicefabrics", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "The name of the Schedule", "required": true, "type": "string" + }, + { + "name": "schedule", + "in": "body", + "description": "A schedule.", + "required": true, + "schema": { + "$ref": "#/definitions/Schedule" + } } ], "responses": { "200": { - "description": "The request has succeeded." + "description": "Resource 'Schedule' update operation succeeded", + "schema": { + "$ref": "#/definitions/Schedule" + } }, - "202": { - "description": "Resource operation accepted.", - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } + "201": { + "description": "Resource 'Schedule' create operation succeeded", + "schema": { + "$ref": "#/definitions/Schedule" } }, "default": { @@ -6321,23 +6304,17 @@ } }, "x-ms-examples": { - "ServiceFabrics_Stop": { - "$ref": "./examples/ServiceFabrics_Stop.json" + "ServiceFabricSchedules_CreateOrUpdate": { + "$ref": "./examples/ServiceFabricSchedules_CreateOrUpdate.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines": { - "get": { - "operationId": "VirtualMachines_List", + } + }, + "patch": { + "operationId": "ServiceFabricSchedules_Update", "tags": [ - "LabVirtualMachines" + "ServiceFabricSchedules" ], - "description": "List virtual machines in a given lab.", + "description": "Allows modifying tags of schedules. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -6351,45 +6328,46 @@ { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)'", - "required": false, + "name": "userName", + "in": "path", + "description": "users", + "required": true, "type": "string" }, { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, + "name": "serviceFabricName", + "in": "path", + "description": "servicefabrics", + "required": true, "type": "string" }, { - "name": "$top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, - "type": "integer", - "format": "int32" + "name": "name", + "in": "path", + "description": "The name of the Schedule", + "required": true, + "type": "string" }, { - "name": "$orderby", - "in": "query", - "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, - "type": "string" + "name": "schedule", + "in": "body", + "description": "A schedule.", + "required": true, + "schema": { + "$ref": "#/definitions/ScheduleFragment" + } } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/LabVirtualMachineList" + "$ref": "#/definitions/Schedule" } }, "default": { @@ -6400,22 +6378,17 @@ } }, "x-ms-examples": { - "VirtualMachines_List": { - "$ref": "./examples/VirtualMachines_List.json" + "ServiceFabricSchedules_Update": { + "$ref": "./examples/ServiceFabricSchedules_Update.json" } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}": { - "get": { - "operationId": "VirtualMachines_Get", + }, + "delete": { + "operationId": "ServiceFabricSchedules_Delete", "tags": [ - "LabVirtualMachines" + "ServiceFabricSchedules" ], - "description": "Get virtual machine.", + "description": "Delete schedule.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -6429,108 +6402,38 @@ { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { - "name": "name", + "name": "userName", "in": "path", - "description": "The name of the virtual machine.", + "description": "users", "required": true, "type": "string" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)'", - "required": false, - "type": "string" - } - ], - "responses": { - "200": { - "description": "Azure operation completed successfully.", - "schema": { - "$ref": "#/definitions/LabVirtualMachine" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "VirtualMachines_Get": { - "$ref": "./examples/VirtualMachines_Get.json" - } - } - }, - "put": { - "operationId": "VirtualMachines_CreateOrUpdate", - "tags": [ - "LabVirtualMachines" - ], - "description": "Create or replace an existing virtual machine. This operation can take a while to complete.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "labName", + "name": "serviceFabricName", "in": "path", - "description": "The name of the lab.", + "description": "servicefabrics", "required": true, "type": "string" }, { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the Schedule", "required": true, "type": "string" - }, - { - "name": "labVirtualMachine", - "in": "body", - "description": "A virtual machine.", - "required": true, - "schema": { - "$ref": "#/definitions/LabVirtualMachine" - } } ], "responses": { "200": { - "description": "Resource 'LabVirtualMachine' update operation succeeded", - "schema": { - "$ref": "#/definitions/LabVirtualMachine" - } + "description": "Resource deleted successfully." }, - "201": { - "description": "Resource 'LabVirtualMachine' create operation succeeded", - "schema": { - "$ref": "#/definitions/LabVirtualMachine" - }, - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } - } + "204": { + "description": "Resource does not exist." }, "default": { "description": "An unexpected error response.", @@ -6540,21 +6443,19 @@ } }, "x-ms-examples": { - "VirtualMachines_CreateOrUpdate": { - "$ref": "./examples/VirtualMachines_CreateOrUpdate.json" + "ServiceFabricSchedules_Delete": { + "$ref": "./examples/ServiceFabricSchedules_Delete.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true - }, - "patch": { - "operationId": "VirtualMachines_Update", + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules/{name}/execute": { + "post": { + "operationId": "ServiceFabricSchedules_Execute", "tags": [ - "LabVirtualMachines" + "ServiceFabricSchedules" ], - "description": "Allows modifying tags of virtual machines. All other properties will be ignored.", + "description": "Execute a schedule. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -6568,84 +6469,38 @@ { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", "required": true, "type": "string" }, { - "name": "name", + "name": "userName", "in": "path", - "description": "The name of the virtual machine.", + "description": "users", "required": true, "type": "string" }, { - "name": "labVirtualMachine", - "in": "body", - "description": "A virtual machine.", - "required": true, - "schema": { - "$ref": "#/definitions/LabVirtualMachineFragment" - } - } - ], - "responses": { - "200": { - "description": "Azure operation completed successfully.", - "schema": { - "$ref": "#/definitions/LabVirtualMachine" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "VirtualMachines_Update": { - "$ref": "./examples/VirtualMachines_Update.json" - } - } - }, - "delete": { - "operationId": "VirtualMachines_Delete", - "tags": [ - "LabVirtualMachines" - ], - "description": "Delete virtual machine. This operation can take a while to complete.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "labName", + "name": "serviceFabricName", "in": "path", - "description": "The name of the lab.", + "description": "servicefabrics", "required": true, "type": "string" }, { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the Schedule", "required": true, "type": "string" } ], "responses": { "200": { - "description": "Resource deleted successfully." + "description": "The request has succeeded." }, "202": { - "description": "Resource deletion accepted.", + "description": "Resource operation accepted.", "headers": { "Location": { "type": "string", @@ -6658,9 +6513,6 @@ } } }, - "204": { - "description": "Resource does not exist." - }, "default": { "description": "An unexpected error response.", "schema": { @@ -6669,8 +6521,8 @@ } }, "x-ms-examples": { - "VirtualMachines_Delete": { - "$ref": "./examples/VirtualMachines_Delete.json" + "ServiceFabricSchedules_Execute": { + "$ref": "./examples/ServiceFabricSchedules_Execute.json" } }, "x-ms-long-running-operation-options": { @@ -6679,13 +6531,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/addDataDisk": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/start": { "post": { - "operationId": "VirtualMachines_AddDataDisk", + "operationId": "ServiceFabrics_Start", "tags": [ - "LabVirtualMachines" + "ServiceFabrics" ], - "description": "Attach a new or existing data disk to virtual machine. This operation can take a while to complete.", + "description": "Start a service fabric. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -6704,20 +6556,18 @@ "type": "string" }, { - "name": "name", + "name": "userName", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the user profile.", "required": true, "type": "string" }, { - "name": "dataDiskProperties", - "in": "body", - "description": "Request body for adding a new or existing data disk to a virtual machine.", + "name": "serviceFabricName", + "in": "path", + "description": "The name of the service fabric.", "required": true, - "schema": { - "$ref": "#/definitions/DataDiskProperties" - } + "type": "string" } ], "responses": { @@ -6746,8 +6596,8 @@ } }, "x-ms-examples": { - "VirtualMachines_AddDataDisk": { - "$ref": "./examples/VirtualMachines_AddDataDisk.json" + "ServiceFabrics_Start": { + "$ref": "./examples/ServiceFabrics_Start.json" } }, "x-ms-long-running-operation-options": { @@ -6756,13 +6606,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/applyArtifacts": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/stop": { "post": { - "operationId": "VirtualMachines_ApplyArtifacts", + "operationId": "ServiceFabrics_Stop", "tags": [ - "LabVirtualMachines" + "ServiceFabrics" ], - "description": "Apply artifacts to virtual machine. This operation can take a while to complete.", + "description": "Stop a service fabric This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -6781,20 +6631,18 @@ "type": "string" }, { - "name": "name", + "name": "userName", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the user profile.", "required": true, "type": "string" }, { - "name": "applyArtifactsRequest", - "in": "body", - "description": "Request body for applying artifacts to a virtual machine.", + "name": "serviceFabricName", + "in": "path", + "description": "The name of the service fabric.", "required": true, - "schema": { - "$ref": "#/definitions/ApplyArtifactsRequest" - } + "type": "string" } ], "responses": { @@ -6823,8 +6671,8 @@ } }, "x-ms-examples": { - "VirtualMachines_ApplyArtifacts": { - "$ref": "./examples/VirtualMachines_ApplyArtifacts.json" + "ServiceFabrics_Stop": { + "$ref": "./examples/ServiceFabrics_Stop.json" } }, "x-ms-long-running-operation-options": { @@ -6833,13 +6681,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/claim": { - "post": { - "operationId": "VirtualMachines_Claim", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines": { + "get": { + "operationId": "VirtualMachines_List", "tags": [ "LabVirtualMachines" ], - "description": "Take ownership of an existing virtual machine This operation can take a while to complete.", + "description": "List virtual machines in a given lab.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -6858,29 +6706,40 @@ "type": "string" }, { - "name": "name", - "in": "path", - "description": "The name of the virtual machine.", - "required": true, + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)'", + "required": false, "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded." }, - "202": { - "description": "Resource operation accepted.", - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/LabVirtualMachineList" } }, "default": { @@ -6891,23 +6750,22 @@ } }, "x-ms-examples": { - "VirtualMachines_Claim": { - "$ref": "./examples/VirtualMachines_Claim.json" + "VirtualMachines_List": { + "$ref": "./examples/VirtualMachines_List.json" } }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true + "x-ms-pageable": { + "nextLinkName": "nextLink" + } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/detachDataDisk": { - "post": { - "operationId": "VirtualMachines_DetachDataDisk", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}": { + "get": { + "operationId": "VirtualMachines_Get", "tags": [ "LabVirtualMachines" ], - "description": "Detach the specified disk from the virtual machine. This operation can take a while to complete.", + "description": "Get virtual machine.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -6933,21 +6791,85 @@ "type": "string" }, { - "name": "detachDataDiskProperties", + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)'", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/LabVirtualMachine" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualMachines_Get": { + "$ref": "./examples/VirtualMachines_Get.json" + } + } + }, + "put": { + "operationId": "VirtualMachines_CreateOrUpdate", + "tags": [ + "LabVirtualMachines" + ], + "description": "Create or replace an existing virtual machine. This operation can take a while to complete.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "labName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", + "required": true, + "type": "string" + }, + { + "name": "labVirtualMachine", "in": "body", - "description": "Request body for detaching data disk from a virtual machine.", + "description": "A virtual machine.", "required": true, "schema": { - "$ref": "#/definitions/DetachDataDiskProperties" + "$ref": "#/definitions/LabVirtualMachine" } } ], "responses": { "200": { - "description": "The request has succeeded." + "description": "Resource 'LabVirtualMachine' update operation succeeded", + "schema": { + "$ref": "#/definitions/LabVirtualMachine" + } }, - "202": { - "description": "Resource operation accepted.", + "201": { + "description": "Resource 'LabVirtualMachine' create operation succeeded", + "schema": { + "$ref": "#/definitions/LabVirtualMachine" + }, "headers": { "Location": { "type": "string", @@ -6968,23 +6890,21 @@ } }, "x-ms-examples": { - "VirtualMachines_DetachDataDisk": { - "$ref": "./examples/VirtualMachines_DetachDataDisk.json" + "VirtualMachines_CreateOrUpdate": { + "$ref": "./examples/VirtualMachines_CreateOrUpdate.json" } }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/getRdpFileContents": { - "post": { - "operationId": "VirtualMachines_GetRdpFileContents", + }, + "patch": { + "operationId": "VirtualMachines_Update", "tags": [ "LabVirtualMachines" ], - "description": "Gets a string that represents the contents of the RDP file for the virtual machine", + "description": "Allows modifying tags of virtual machines. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7008,13 +6928,22 @@ "description": "The name of the virtual machine.", "required": true, "type": "string" + }, + { + "name": "labVirtualMachine", + "in": "body", + "description": "A virtual machine.", + "required": true, + "schema": { + "$ref": "#/definitions/LabVirtualMachineFragment" + } } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/RdpConnection" + "$ref": "#/definitions/LabVirtualMachine" } }, "default": { @@ -7025,19 +6954,17 @@ } }, "x-ms-examples": { - "VirtualMachines_GetRdpFileContents": { - "$ref": "./examples/VirtualMachines_GetRdpFileContents.json" + "VirtualMachines_Update": { + "$ref": "./examples/VirtualMachines_Update.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/listApplicableSchedules": { - "post": { - "operationId": "VirtualMachines_ListApplicableSchedules", + }, + "delete": { + "operationId": "VirtualMachines_Delete", "tags": [ "LabVirtualMachines" ], - "description": "Lists the applicable start/stop schedules, if any.", + "description": "Delete virtual machine. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7065,11 +6992,25 @@ ], "responses": { "200": { - "description": "Azure operation completed successfully.", - "schema": { - "$ref": "#/definitions/ApplicableSchedule" + "description": "Resource deleted successfully." + }, + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, + "204": { + "description": "Resource does not exist." + }, "default": { "description": "An unexpected error response.", "schema": { @@ -7078,19 +7019,23 @@ } }, "x-ms-examples": { - "VirtualMachines_ListApplicableSchedules": { - "$ref": "./examples/VirtualMachines_ListApplicableSchedules.json" + "VirtualMachines_Delete": { + "$ref": "./examples/VirtualMachines_Delete.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/redeploy": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/addDataDisk": { "post": { - "operationId": "VirtualMachines_Redeploy", + "operationId": "VirtualMachines_AddDataDisk", "tags": [ "LabVirtualMachines" ], - "description": "Redeploy a virtual machine This operation can take a while to complete.", + "description": "Attach a new or existing data disk to virtual machine. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7114,6 +7059,15 @@ "description": "The name of the virtual machine.", "required": true, "type": "string" + }, + { + "name": "dataDiskProperties", + "in": "body", + "description": "Request body for adding a new or existing data disk to a virtual machine.", + "required": true, + "schema": { + "$ref": "#/definitions/DataDiskProperties" + } } ], "responses": { @@ -7142,8 +7096,8 @@ } }, "x-ms-examples": { - "VirtualMachines_Redeploy": { - "$ref": "./examples/VirtualMachines_Redeploy.json" + "VirtualMachines_AddDataDisk": { + "$ref": "./examples/VirtualMachines_AddDataDisk.json" } }, "x-ms-long-running-operation-options": { @@ -7152,13 +7106,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/resize": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/applyArtifacts": { "post": { - "operationId": "VirtualMachines_Resize", + "operationId": "VirtualMachines_ApplyArtifacts", "tags": [ "LabVirtualMachines" ], - "description": "Resize Virtual Machine. This operation can take a while to complete.", + "description": "Apply artifacts to virtual machine. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7184,12 +7138,12 @@ "type": "string" }, { - "name": "resizeLabVirtualMachineProperties", + "name": "applyArtifactsRequest", "in": "body", - "description": "Request body for resizing a virtual machine.", + "description": "Request body for applying artifacts to a virtual machine.", "required": true, "schema": { - "$ref": "#/definitions/ResizeLabVirtualMachineProperties" + "$ref": "#/definitions/ApplyArtifactsRequest" } } ], @@ -7219,8 +7173,8 @@ } }, "x-ms-examples": { - "VirtualMachines_Resize": { - "$ref": "./examples/VirtualMachines_Resize.json" + "VirtualMachines_ApplyArtifacts": { + "$ref": "./examples/VirtualMachines_ApplyArtifacts.json" } }, "x-ms-long-running-operation-options": { @@ -7229,13 +7183,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/restart": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/claim": { "post": { - "operationId": "VirtualMachines_Restart", + "operationId": "VirtualMachines_Claim", "tags": [ "LabVirtualMachines" ], - "description": "Restart a virtual machine. This operation can take a while to complete.", + "description": "Take ownership of an existing virtual machine This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7287,8 +7241,8 @@ } }, "x-ms-examples": { - "VirtualMachines_Restart": { - "$ref": "./examples/VirtualMachines_Restart.json" + "VirtualMachines_Claim": { + "$ref": "./examples/VirtualMachines_Claim.json" } }, "x-ms-long-running-operation-options": { @@ -7297,13 +7251,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules": { - "get": { - "operationId": "VirtualMachineSchedules_List", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/detachDataDisk": { + "post": { + "operationId": "VirtualMachines_DetachDataDisk", "tags": [ - "VirtualMachineSchedules" + "LabVirtualMachines" ], - "description": "List schedules in a given virtual machine.", + "description": "Detach the specified disk from the virtual machine. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7317,44 +7271,92 @@ { "name": "labName", "in": "path", - "description": "labs", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "virtualMachineName", + "name": "name", "in": "path", - "description": "virtualmachines", + "description": "The name of the virtual machine.", "required": true, "type": "string" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=status)'", - "required": false, - "type": "string" + "name": "detachDataDiskProperties", + "in": "body", + "description": "Request body for detaching data disk from a virtual machine.", + "required": true, + "schema": { + "$ref": "#/definitions/DetachDataDiskProperties" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded." }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualMachines_DetachDataDisk": { + "$ref": "./examples/VirtualMachines_DetachDataDisk.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/getRdpFileContents": { + "post": { + "operationId": "VirtualMachines_GetRdpFileContents", + "tags": [ + "LabVirtualMachines" + ], + "description": "Gets a string that represents the contents of the RDP file for the virtual machine", + "parameters": [ { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "$top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, - "type": "integer", - "format": "int32" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "$orderby", - "in": "query", - "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "labName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", + "required": true, "type": "string" } ], @@ -7362,7 +7364,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ScheduleList" + "$ref": "#/definitions/RdpConnection" } }, "default": { @@ -7373,22 +7375,19 @@ } }, "x-ms-examples": { - "VirtualMachineSchedules_List": { - "$ref": "./examples/VirtualMachineSchedules_List.json" + "VirtualMachines_GetRdpFileContents": { + "$ref": "./examples/VirtualMachines_GetRdpFileContents.json" } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules/{name}": { - "get": { - "operationId": "VirtualMachineSchedules_Get", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/listApplicableSchedules": { + "post": { + "operationId": "VirtualMachines_ListApplicableSchedules", "tags": [ - "VirtualMachineSchedules" + "LabVirtualMachines" ], - "description": "Get schedule.", + "description": "Lists the applicable start/stop schedules, if any.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7402,37 +7401,23 @@ { "name": "labName", "in": "path", - "description": "labs", - "required": true, - "type": "string" - }, - { - "name": "virtualMachineName", - "in": "path", - "description": "virtualmachines", + "description": "The name of the lab.", "required": true, "type": "string" }, { "name": "name", "in": "path", - "description": "The name of the Schedule", + "description": "The name of the virtual machine.", "required": true, "type": "string" - }, - { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=status)'", - "required": false, - "type": "string" } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/ApplicableSchedule" } }, "default": { @@ -7443,17 +7428,19 @@ } }, "x-ms-examples": { - "VirtualMachineSchedules_Get": { - "$ref": "./examples/VirtualMachineSchedules_Get.json" + "VirtualMachines_ListApplicableSchedules": { + "$ref": "./examples/VirtualMachines_ListApplicableSchedules.json" } } - }, - "put": { - "operationId": "VirtualMachineSchedules_CreateOrUpdate", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/redeploy": { + "post": { + "operationId": "VirtualMachines_Redeploy", "tags": [ - "VirtualMachineSchedules" + "LabVirtualMachines" ], - "description": "Create or replace an existing schedule.", + "description": "Redeploy a virtual machine This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7467,45 +7454,179 @@ { "name": "labName", "in": "path", - "description": "labs", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "virtualMachineName", + "name": "name", "in": "path", - "description": "virtualmachines", + "description": "The name of the virtual machine.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded." + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualMachines_Redeploy": { + "$ref": "./examples/VirtualMachines_Redeploy.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/resize": { + "post": { + "operationId": "VirtualMachines_Resize", + "tags": [ + "LabVirtualMachines" + ], + "description": "Resize Virtual Machine. This operation can take a while to complete.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "labName", + "in": "path", + "description": "The name of the lab.", "required": true, "type": "string" }, { "name": "name", "in": "path", - "description": "The name of the Schedule", + "description": "The name of the virtual machine.", "required": true, "type": "string" }, { - "name": "schedule", + "name": "resizeLabVirtualMachineProperties", "in": "body", - "description": "A schedule.", + "description": "Request body for resizing a virtual machine.", "required": true, "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/ResizeLabVirtualMachineProperties" } } ], "responses": { "200": { - "description": "Resource 'Schedule' update operation succeeded", - "schema": { - "$ref": "#/definitions/Schedule" + "description": "The request has succeeded." + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, - "201": { - "description": "Resource 'Schedule' create operation succeeded", + "default": { + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "VirtualMachines_Resize": { + "$ref": "./examples/VirtualMachines_Resize.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/restart": { + "post": { + "operationId": "VirtualMachines_Restart", + "tags": [ + "LabVirtualMachines" + ], + "description": "Restart a virtual machine. This operation can take a while to complete.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "labName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded." + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { @@ -7516,17 +7637,23 @@ } }, "x-ms-examples": { - "VirtualMachineSchedules_CreateOrUpdate": { - "$ref": "./examples/VirtualMachineSchedules_CreateOrUpdate.json" + "VirtualMachines_Restart": { + "$ref": "./examples/VirtualMachines_Restart.json" } - } - }, - "patch": { - "operationId": "VirtualMachineSchedules_Update", + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules": { + "get": { + "operationId": "VirtualMachineSchedules_List", "tags": [ "VirtualMachineSchedules" ], - "description": "Allows modifying tags of schedules. All other properties will be ignored.", + "description": "List schedules in a given virtual machine.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7552,27 +7679,40 @@ "type": "string" }, { - "name": "name", - "in": "path", - "description": "The name of the Schedule", - "required": true, + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=status)'", + "required": false, "type": "string" }, { - "name": "schedule", - "in": "body", - "description": "A schedule.", - "required": true, - "schema": { - "$ref": "#/definitions/ScheduleFragment" - } + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, + "type": "string" } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/ScheduleList" } }, "default": { @@ -7583,17 +7723,22 @@ } }, "x-ms-examples": { - "VirtualMachineSchedules_Update": { - "$ref": "./examples/VirtualMachineSchedules_Update.json" + "VirtualMachineSchedules_List": { + "$ref": "./examples/VirtualMachineSchedules_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "delete": { - "operationId": "VirtualMachineSchedules_Delete", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules/{name}": { + "get": { + "operationId": "VirtualMachineSchedules_Get", "tags": [ "VirtualMachineSchedules" ], - "description": "Delete schedule.", + "description": "Get schedule.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7624,14 +7769,21 @@ "description": "The name of the Schedule", "required": true, "type": "string" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=status)'", + "required": false, + "type": "string" } ], "responses": { "200": { - "description": "Resource deleted successfully." - }, - "204": { - "description": "Resource does not exist." + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Schedule" + } }, "default": { "description": "An unexpected error response.", @@ -7641,19 +7793,17 @@ } }, "x-ms-examples": { - "VirtualMachineSchedules_Delete": { - "$ref": "./examples/VirtualMachineSchedules_Delete.json" + "VirtualMachineSchedules_Get": { + "$ref": "./examples/VirtualMachineSchedules_Get.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules/{name}/execute": { - "post": { - "operationId": "VirtualMachineSchedules_Execute", + }, + "put": { + "operationId": "VirtualMachineSchedules_CreateOrUpdate", "tags": [ "VirtualMachineSchedules" ], - "description": "Execute a schedule. This operation can take a while to complete.", + "description": "Create or replace an existing schedule.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7684,24 +7834,28 @@ "description": "The name of the Schedule", "required": true, "type": "string" + }, + { + "name": "schedule", + "in": "body", + "description": "A schedule.", + "required": true, + "schema": { + "$ref": "#/definitions/Schedule" + } } ], "responses": { "200": { - "description": "The request has succeeded." + "description": "Resource 'Schedule' update operation succeeded", + "schema": { + "$ref": "#/definitions/Schedule" + } }, - "202": { - "description": "Resource operation accepted.", - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } + "201": { + "description": "Resource 'Schedule' create operation succeeded", + "schema": { + "$ref": "#/definitions/Schedule" } }, "default": { @@ -7712,23 +7866,17 @@ } }, "x-ms-examples": { - "VirtualMachineSchedules_Execute": { - "$ref": "./examples/VirtualMachineSchedules_Execute.json" + "VirtualMachineSchedules_CreateOrUpdate": { + "$ref": "./examples/VirtualMachineSchedules_CreateOrUpdate.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/start": { - "post": { - "operationId": "VirtualMachines_Start", + } + }, + "patch": { + "operationId": "VirtualMachineSchedules_Update", "tags": [ - "LabVirtualMachines" + "VirtualMachineSchedules" ], - "description": "Start a virtual machine. This operation can take a while to complete.", + "description": "Allows modifying tags of schedules. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7742,34 +7890,39 @@ { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", + "required": true, + "type": "string" + }, + { + "name": "virtualMachineName", + "in": "path", + "description": "virtualmachines", "required": true, "type": "string" }, { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the Schedule", "required": true, "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded." }, - "202": { - "description": "Resource operation accepted.", - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } + { + "name": "schedule", + "in": "body", + "description": "A schedule.", + "required": true, + "schema": { + "$ref": "#/definitions/ScheduleFragment" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Schedule" } }, "default": { @@ -7780,23 +7933,17 @@ } }, "x-ms-examples": { - "VirtualMachines_Start": { - "$ref": "./examples/VirtualMachines_Start.json" + "VirtualMachineSchedules_Update": { + "$ref": "./examples/VirtualMachineSchedules_Update.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/stop": { - "post": { - "operationId": "VirtualMachines_Stop", + } + }, + "delete": { + "operationId": "VirtualMachineSchedules_Delete", "tags": [ - "LabVirtualMachines" + "VirtualMachineSchedules" ], - "description": "Stop a virtual machine This operation can take a while to complete.", + "description": "Delete schedule.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7810,35 +7957,31 @@ { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", + "required": true, + "type": "string" + }, + { + "name": "virtualMachineName", + "in": "path", + "description": "virtualmachines", "required": true, "type": "string" }, { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the Schedule", "required": true, "type": "string" } ], "responses": { "200": { - "description": "The request has succeeded." + "description": "Resource deleted successfully." }, - "202": { - "description": "Resource operation accepted.", - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } - } + "204": { + "description": "Resource does not exist." }, "default": { "description": "An unexpected error response.", @@ -7848,23 +7991,19 @@ } }, "x-ms-examples": { - "VirtualMachines_Stop": { - "$ref": "./examples/VirtualMachines_Stop.json" + "VirtualMachineSchedules_Delete": { + "$ref": "./examples/VirtualMachineSchedules_Delete.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true + } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/transferDisks": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules/{name}/execute": { "post": { - "operationId": "VirtualMachines_TransferDisks", + "operationId": "VirtualMachineSchedules_Execute", "tags": [ - "LabVirtualMachines" + "VirtualMachineSchedules" ], - "description": "Transfers all data disks attached to the virtual machine to be owned by the current user. This operation can take a while to complete.", + "description": "Execute a schedule. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7878,14 +8017,21 @@ { "name": "labName", "in": "path", - "description": "The name of the lab.", + "description": "labs", + "required": true, + "type": "string" + }, + { + "name": "virtualMachineName", + "in": "path", + "description": "virtualmachines", "required": true, "type": "string" }, { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the Schedule", "required": true, "type": "string" } @@ -7916,8 +8062,8 @@ } }, "x-ms-examples": { - "VirtualMachines_TransferDisks": { - "$ref": "./examples/VirtualMachines_TransferDisks.json" + "VirtualMachineSchedules_Execute": { + "$ref": "./examples/VirtualMachineSchedules_Execute.json" } }, "x-ms-long-running-operation-options": { @@ -7926,13 +8072,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/unClaim": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/start": { "post": { - "operationId": "VirtualMachines_UnClaim", + "operationId": "VirtualMachines_Start", "tags": [ "LabVirtualMachines" ], - "description": "Release ownership of an existing virtual machine This operation can take a while to complete.", + "description": "Start a virtual machine. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -7984,8 +8130,8 @@ } }, "x-ms-examples": { - "VirtualMachines_UnClaim": { - "$ref": "./examples/VirtualMachines_UnClaim.json" + "VirtualMachines_Start": { + "$ref": "./examples/VirtualMachines_Start.json" } }, "x-ms-long-running-operation-options": { @@ -7994,149 +8140,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualnetworks": { - "get": { - "operationId": "VirtualNetworks_List", - "tags": [ - "VirtualNetworks" - ], - "description": "List virtual networks in a given lab.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" - }, - { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($expand=externalSubnets)'", - "required": false, - "type": "string" - }, - { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, - "type": "string" - }, - { - "name": "$top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, - "type": "integer", - "format": "int32" - }, - { - "name": "$orderby", - "in": "query", - "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, - "type": "string" - } - ], - "responses": { - "200": { - "description": "Azure operation completed successfully.", - "schema": { - "$ref": "#/definitions/VirtualNetworkList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "VirtualNetworks_List": { - "$ref": "./examples/VirtualNetworks_List.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualnetworks/{name}": { - "get": { - "operationId": "VirtualNetworks_Get", - "tags": [ - "VirtualNetworks" - ], - "description": "Get virtual network.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" - }, - { - "name": "name", - "in": "path", - "description": "The name of the virtual network.", - "required": true, - "type": "string" - }, - { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($expand=externalSubnets)'", - "required": false, - "type": "string" - } - ], - "responses": { - "200": { - "description": "Azure operation completed successfully.", - "schema": { - "$ref": "#/definitions/VirtualNetwork" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "VirtualNetworks_Get": { - "$ref": "./examples/VirtualNetworks_Get.json" - } - } - }, - "put": { - "operationId": "VirtualNetworks_CreateOrUpdate", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/stop": { + "post": { + "operationId": "VirtualMachines_Stop", "tags": [ - "VirtualNetworks" + "LabVirtualMachines" ], - "description": "Create or replace an existing virtual network. This operation can take a while to complete.", + "description": "Stop a virtual machine This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -8155,34 +8165,19 @@ "type": "string" }, { - "name": "name", - "in": "path", - "description": "The name of the virtual network.", - "required": true, - "type": "string" - }, - { - "name": "virtualNetwork", - "in": "body", - "description": "A virtual network.", + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", "required": true, - "schema": { - "$ref": "#/definitions/VirtualNetwork" - } + "type": "string" } ], "responses": { "200": { - "description": "Resource 'VirtualNetwork' update operation succeeded", - "schema": { - "$ref": "#/definitions/VirtualNetwork" - } + "description": "The request has succeeded." }, - "201": { - "description": "Resource 'VirtualNetwork' create operation succeeded", - "schema": { - "$ref": "#/definitions/VirtualNetwork" - }, + "202": { + "description": "Resource operation accepted.", "headers": { "Location": { "type": "string", @@ -8203,21 +8198,23 @@ } }, "x-ms-examples": { - "VirtualNetworks_CreateOrUpdate": { - "$ref": "./examples/VirtualNetworks_CreateOrUpdate.json" + "VirtualMachines_Stop": { + "$ref": "./examples/VirtualMachines_Stop.json" } }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, "x-ms-long-running-operation": true - }, - "patch": { - "operationId": "VirtualNetworks_Update", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/transferDisks": { + "post": { + "operationId": "VirtualMachines_TransferDisks", "tags": [ - "VirtualNetworks" + "LabVirtualMachines" ], - "description": "Allows modifying tags of virtual networks. All other properties will be ignored.", + "description": "Transfers all data disks attached to the virtual machine to be owned by the current user. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -8238,25 +8235,27 @@ { "name": "name", "in": "path", - "description": "The name of the virtual network.", + "description": "The name of the virtual machine.", "required": true, "type": "string" - }, - { - "name": "virtualNetwork", - "in": "body", - "description": "A virtual network.", - "required": true, - "schema": { - "$ref": "#/definitions/VirtualNetworkFragment" - } } ], "responses": { "200": { - "description": "Azure operation completed successfully.", - "schema": { - "$ref": "#/definitions/VirtualNetwork" + "description": "The request has succeeded." + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { @@ -8267,17 +8266,23 @@ } }, "x-ms-examples": { - "VirtualNetworks_Update": { - "$ref": "./examples/VirtualNetworks_Update.json" + "VirtualMachines_TransferDisks": { + "$ref": "./examples/VirtualMachines_TransferDisks.json" } - } - }, - "delete": { - "operationId": "VirtualNetworks_Delete", + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/unClaim": { + "post": { + "operationId": "VirtualMachines_UnClaim", "tags": [ - "VirtualNetworks" + "LabVirtualMachines" ], - "description": "Delete virtual network. This operation can take a while to complete.", + "description": "Release ownership of an existing virtual machine This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -8298,17 +8303,17 @@ { "name": "name", "in": "path", - "description": "The name of the virtual network.", + "description": "The name of the virtual machine.", "required": true, "type": "string" } ], "responses": { "200": { - "description": "Resource deleted successfully." + "description": "The request has succeeded." }, "202": { - "description": "Resource deletion accepted.", + "description": "Resource operation accepted.", "headers": { "Location": { "type": "string", @@ -8321,9 +8326,6 @@ } } }, - "204": { - "description": "Resource does not exist." - }, "default": { "description": "An unexpected error response.", "schema": { @@ -8332,8 +8334,8 @@ } }, "x-ms-examples": { - "VirtualNetworks_Delete": { - "$ref": "./examples/VirtualNetworks_Delete.json" + "VirtualMachines_UnClaim": { + "$ref": "./examples/VirtualMachines_UnClaim.json" } }, "x-ms-long-running-operation-options": { @@ -8342,13 +8344,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/policies": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualnetworks": { "get": { - "operationId": "Policies_List", + "operationId": "VirtualNetworks_List", "tags": [ - "Policies" + "VirtualNetworks" ], - "description": "List policies in a given policy set.", + "description": "List virtual networks in a given lab.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -8359,10 +8361,17 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "labName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=description)'", + "description": "Specify the $expand query. Example: 'properties($expand=externalSubnets)'", "required": false, "type": "string" }, @@ -8393,7 +8402,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/PolicyList" + "$ref": "#/definitions/VirtualNetworkList" } }, "default": { @@ -8404,8 +8413,8 @@ } }, "x-ms-examples": { - "Policies_List": { - "$ref": "./examples/Policies_List.json" + "VirtualNetworks_List": { + "$ref": "./examples/VirtualNetworks_List.json" } }, "x-ms-pageable": { @@ -8413,13 +8422,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/policies/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualnetworks/{name}": { "get": { - "operationId": "Policies_Get", + "operationId": "VirtualNetworks_Get", "tags": [ - "Policies" + "VirtualNetworks" ], - "description": "Get policy.", + "description": "Get virtual network.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -8430,17 +8439,24 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "labName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", - "description": "The name of the policy.", + "description": "The name of the virtual network.", "required": true, "type": "string" }, { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=description)'", + "description": "Specify the $expand query. Example: 'properties($expand=externalSubnets)'", "required": false, "type": "string" } @@ -8449,7 +8465,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Policy" + "$ref": "#/definitions/VirtualNetwork" } }, "default": { @@ -8460,17 +8476,17 @@ } }, "x-ms-examples": { - "Policies_Get": { - "$ref": "./examples/Policies_Get.json" + "VirtualNetworks_Get": { + "$ref": "./examples/VirtualNetworks_Get.json" } } }, "put": { - "operationId": "Policies_CreateOrUpdate", + "operationId": "VirtualNetworks_CreateOrUpdate", "tags": [ - "Policies" + "VirtualNetworks" ], - "description": "Create or replace an existing policy.", + "description": "Create or replace an existing virtual network. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -8481,34 +8497,52 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "labName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", - "description": "The name of the policy.", + "description": "The name of the virtual network.", "required": true, "type": "string" }, { - "name": "policy", + "name": "virtualNetwork", "in": "body", - "description": "A Policy.", + "description": "A virtual network.", "required": true, "schema": { - "$ref": "#/definitions/Policy" + "$ref": "#/definitions/VirtualNetwork" } } ], "responses": { "200": { - "description": "Resource 'Policy' update operation succeeded", + "description": "Resource 'VirtualNetwork' update operation succeeded", "schema": { - "$ref": "#/definitions/Policy" + "$ref": "#/definitions/VirtualNetwork" } }, "201": { - "description": "Resource 'Policy' create operation succeeded", + "description": "Resource 'VirtualNetwork' create operation succeeded", "schema": { - "$ref": "#/definitions/Policy" + "$ref": "#/definitions/VirtualNetwork" + }, + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { @@ -8519,17 +8553,21 @@ } }, "x-ms-examples": { - "Policies_CreateOrUpdate": { - "$ref": "./examples/Policies_CreateOrUpdate.json" + "VirtualNetworks_CreateOrUpdate": { + "$ref": "./examples/VirtualNetworks_CreateOrUpdate.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true }, "patch": { - "operationId": "Policies_Update", + "operationId": "VirtualNetworks_Update", "tags": [ - "Policies" + "VirtualNetworks" ], - "description": "Allows modifying tags of policies. All other properties will be ignored.", + "description": "Allows modifying tags of virtual networks. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -8540,20 +8578,27 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "labName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", - "description": "The name of the policy.", + "description": "The name of the virtual network.", "required": true, "type": "string" }, { - "name": "policy", + "name": "virtualNetwork", "in": "body", - "description": "A Policy.", + "description": "A virtual network.", "required": true, "schema": { - "$ref": "#/definitions/PolicyFragment" + "$ref": "#/definitions/VirtualNetworkFragment" } } ], @@ -8561,7 +8606,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Policy" + "$ref": "#/definitions/VirtualNetwork" } }, "default": { @@ -8572,17 +8617,17 @@ } }, "x-ms-examples": { - "Policies_Update": { - "$ref": "./examples/Policies_Update.json" + "VirtualNetworks_Update": { + "$ref": "./examples/VirtualNetworks_Update.json" } } }, "delete": { - "operationId": "Policies_Delete", + "operationId": "VirtualNetworks_Delete", "tags": [ - "Policies" + "VirtualNetworks" ], - "description": "Delete policy.", + "description": "Delete virtual network. This operation can take a while to complete.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -8593,10 +8638,17 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, + { + "name": "labName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, { "name": "name", "in": "path", - "description": "The name of the policy.", + "description": "The name of the virtual network.", "required": true, "type": "string" } @@ -8605,6 +8657,20 @@ "200": { "description": "Resource deleted successfully." }, + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, "204": { "description": "Resource does not exist." }, @@ -8616,10 +8682,14 @@ } }, "x-ms-examples": { - "Policies_Delete": { - "$ref": "./examples/Policies_Delete.json" + "VirtualNetworks_Delete": { + "$ref": "./examples/VirtualNetworks_Delete.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules": { From 8277e5ea9f64c9b644fcab489fc9abf7d9ebaa44 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Fri, 20 Jun 2025 07:57:26 -0700 Subject: [PATCH 14/59] Parameter name fix in examples --- .../examples/2018-09-15/ArmTemplates_Get.json | 2 +- .../examples/2018-09-15/ArtifactSources_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/ArtifactSources_Delete.json | 2 +- .../examples/2018-09-15/ArtifactSources_Get.json | 2 +- .../examples/2018-09-15/ArtifactSources_Update.json | 2 +- .../examples/2018-09-15/Artifacts_GenerateArmTemplate.json | 2 +- .../examples/2018-09-15/Artifacts_Get.json | 2 +- .../examples/2018-09-15/CustomImages_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/CustomImages_Delete.json | 2 +- .../examples/2018-09-15/CustomImages_Get.json | 2 +- .../examples/2018-09-15/CustomImages_Update.json | 2 +- .../examples/2018-09-15/Disks_Attach.json | 2 +- .../examples/2018-09-15/Disks_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/Disks_Delete.json | 2 +- .../examples/2018-09-15/Disks_Detach.json | 2 +- .../examples/2018-09-15/Disks_Get.json | 2 +- .../examples/2018-09-15/Disks_List.json | 2 +- .../examples/2018-09-15/Disks_Update.json | 2 +- .../examples/2018-09-15/Labs_ClaimAnyVm.json | 2 +- .../examples/2018-09-15/Labs_CreateEnvironment.json | 2 +- .../examples/2018-09-15/Labs_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/Labs_Delete.json | 2 +- .../examples/2018-09-15/Labs_ExportResourceUsage.json | 2 +- .../examples/2018-09-15/Labs_GenerateUploadUri.json | 2 +- .../examples/2018-09-15/Labs_Get.json | 2 +- .../examples/2018-09-15/Labs_ImportVirtualMachine.json | 2 +- .../examples/2018-09-15/Labs_ListVhds.json | 2 +- .../examples/2018-09-15/Labs_Update.json | 2 +- .../examples/2018-09-15/PolicySets_EvaluatePolicies.json | 2 +- .../stable/2018-09-15/examples/ArmTemplates_Get.json | 2 +- .../2018-09-15/examples/ArtifactSources_CreateOrUpdate.json | 2 +- .../stable/2018-09-15/examples/ArtifactSources_Delete.json | 2 +- .../stable/2018-09-15/examples/ArtifactSources_Get.json | 2 +- .../stable/2018-09-15/examples/ArtifactSources_Update.json | 2 +- .../2018-09-15/examples/Artifacts_GenerateArmTemplate.json | 2 +- .../stable/2018-09-15/examples/Artifacts_Get.json | 2 +- .../stable/2018-09-15/examples/CustomImages_CreateOrUpdate.json | 2 +- .../stable/2018-09-15/examples/CustomImages_Delete.json | 2 +- .../stable/2018-09-15/examples/CustomImages_Get.json | 2 +- .../stable/2018-09-15/examples/CustomImages_Update.json | 2 +- .../stable/2018-09-15/examples/Disks_Attach.json | 2 +- .../stable/2018-09-15/examples/Disks_CreateOrUpdate.json | 2 +- .../stable/2018-09-15/examples/Disks_Delete.json | 2 +- .../stable/2018-09-15/examples/Disks_Detach.json | 2 +- .../stable/2018-09-15/examples/Disks_Get.json | 2 +- .../stable/2018-09-15/examples/Disks_List.json | 2 +- .../stable/2018-09-15/examples/Disks_Update.json | 2 +- .../stable/2018-09-15/examples/Labs_ClaimAnyVm.json | 2 +- .../stable/2018-09-15/examples/Labs_CreateEnvironment.json | 2 +- .../stable/2018-09-15/examples/Labs_CreateOrUpdate.json | 2 +- .../stable/2018-09-15/examples/Labs_Delete.json | 2 +- .../stable/2018-09-15/examples/Labs_ExportResourceUsage.json | 2 +- .../stable/2018-09-15/examples/Labs_GenerateUploadUri.json | 2 +- .../stable/2018-09-15/examples/Labs_Get.json | 2 +- .../stable/2018-09-15/examples/Labs_ImportVirtualMachine.json | 2 +- .../stable/2018-09-15/examples/Labs_ListVhds.json | 2 +- .../stable/2018-09-15/examples/Labs_Update.json | 2 +- .../stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json | 2 +- 58 files changed, 58 insertions(+), 58 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArmTemplates_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArmTemplates_Get.json index f92e3693667a..0bc3aedea3f5 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArmTemplates_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArmTemplates_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{armTemplateName}", + "armTemplateName": "{armTemplateName}", "api-version": "2018-09-15", "artifactSourceName": "{artifactSourceName}", "labName": "{labName}", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_CreateOrUpdate.json index 43527ac67a0f..56e69ddb237b 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{artifactSourceName}", + "artifactSourceName": "{artifactSourceName}", "api-version": "2018-09-15", "artifactSource": { "properties": { diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Delete.json index c243741e5378..6cba7cf0a778 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{artifactSourceName}", + "artifactSourceName": "{artifactSourceName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Get.json index 0f56aaf30a09..a712f0eb3c86 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{artifactSourceName}", + "artifactSourceName": "{artifactSourceName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Update.json index ad5daa171224..e13759d4b6d3 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{artifactSourceName}", + "artifactSourceName": "{artifactSourceName}", "api-version": "2018-09-15", "artifactSource": { "tags": { diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_GenerateArmTemplate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_GenerateArmTemplate.json index 0acb236e641c..121484ef67ff 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_GenerateArmTemplate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_GenerateArmTemplate.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{artifactName}", + "artifactName": "{artifactName}", "api-version": "2018-09-15", "artifactSourceName": "{artifactSourceName}", "generateArmTemplateRequest": { diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_Get.json index 263790c8e021..8c06c4e1025b 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{artifactName}", + "artifactName": "{artifactName}", "api-version": "2018-09-15", "artifactSourceName": "{artifactSourceName}", "labName": "{labName}", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_CreateOrUpdate.json index 73f523e29d0d..fe1f5b658cfd 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{customImageName}", + "customImageName": "{customImageName}", "api-version": "2018-09-15", "customImage": { "properties": { diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Delete.json index 82bc6b75b285..c90b38af8463 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{customImageName}", + "customImageName": "{customImageName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Get.json index 13be3e2ca428..96eb3cf14196 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{customImageName}", + "customImageName": "{customImageName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Update.json index 3106d5b207bd..66074087a29e 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{customImageName}", + "customImageName": "{customImageName}", "api-version": "2018-09-15", "customImage": { "tags": { diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Attach.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Attach.json index 72dd79a80de6..eccbe43fa109 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Attach.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Attach.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{diskName}", + "diskName": "{diskName}", "api-version": "2018-09-15", "attachDiskProperties": { "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_CreateOrUpdate.json index 7ec1e3222dbf..8f4fe7a092ff 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{diskName}", + "diskName": "{diskName}", "api-version": "2018-09-15", "disk": { "properties": { diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Delete.json index 511644128abe..3411ad6d70b4 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{diskName}", + "diskName": "{diskName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Detach.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Detach.json index e883f33f41b9..a7896cf18c85 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Detach.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Detach.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{diskName}", + "diskName": "{diskName}", "api-version": "2018-09-15", "detachDiskProperties": { "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Get.json index 49f3973a823e..98f0fbf3a7f0 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{diskName}", + "diskName": "{diskName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_List.json index a3cde4e2a95d..5f33070d5735 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_List.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_List.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{diskName}", + "diskName": "{diskName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Update.json index d3cf6d1632f6..cd3f89db105f 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "diskName", + "diskName": "diskName", "api-version": "2018-09-15", "disk": { "tags": { diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ClaimAnyVm.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ClaimAnyVm.json index 854b75d5cd23..561150265bcc 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ClaimAnyVm.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ClaimAnyVm.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{labName}", + "labName": "{labName}", "api-version": "2018-09-15", "monitor": "true", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateEnvironment.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateEnvironment.json index 5d8349e7fef2..5ef7d4997efc 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateEnvironment.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateEnvironment.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{labName}", + "labName": "{labName}", "api-version": "2018-09-15", "labVirtualMachineCreationParameter": { "name": "{vmName}", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateOrUpdate.json index 23be3b348a50..7c432b914263 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{labName}", + "labName": "{labName}", "api-version": "2018-09-15", "lab": { "location": "{location}", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Delete.json index 4f142111991b..88441f941722 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{labName}", + "labName": "{labName}", "api-version": "2018-09-15", "resourceGroupName": "resourceGroupName", "subscriptionId": "{subscriptionId}" diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ExportResourceUsage.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ExportResourceUsage.json index 6ef5ee9c9bb6..3837793f7e30 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ExportResourceUsage.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ExportResourceUsage.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{labName}", + "labName": "{labName}", "api-version": "2018-09-15", "exportResourceUsageParameters": { "blobStorageAbsoluteSasUri": "https://invalid.blob.core.windows.net/export.blob?sv=2015-07-08&sig={sas}&sp=rcw", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_GenerateUploadUri.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_GenerateUploadUri.json index 8ee7a4128bd4..087a2b98b043 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_GenerateUploadUri.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_GenerateUploadUri.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{labName}", + "labName": "{labName}", "api-version": "2018-09-15", "generateUploadUriParameter": { "blobName": "{blob-name}" diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Get.json index 2e555f7b602d..f4b5fa69f787 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{labName}", + "labName": "{labName}", "api-version": "2018-09-15", "resourceGroupName": "resourceGroupName", "subscriptionId": "{subscriptionId}" diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ImportVirtualMachine.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ImportVirtualMachine.json index ec2d8f1390d7..e7f978b20d7f 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ImportVirtualMachine.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ImportVirtualMachine.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{labName}", + "labName": "{labName}", "api-version": "2018-09-15", "importLabVirtualMachineRequest": { "destinationVirtualMachineName": "{vmName}", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListVhds.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListVhds.json index 779547ca97c4..1c9831cdaa8a 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListVhds.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListVhds.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{labName}", + "labName": "{labName}", "api-version": "2018-09-15", "resourceGroupName": "resourceGroupName", "subscriptionId": "{subscriptionId}" diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Update.json index f781f867ed90..57a4388aadf2 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{labName}", + "labName": "{labName}", "api-version": "2018-09-15", "lab": {}, "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/PolicySets_EvaluatePolicies.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/PolicySets_EvaluatePolicies.json index 804a9e935e33..c0d7c44deff7 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/PolicySets_EvaluatePolicies.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/PolicySets_EvaluatePolicies.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{policySetName}", + "policySetName": "{policySetName}", "api-version": "2018-09-15", "evaluatePoliciesRequest": { "policies": [ diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_Get.json index f92e3693667a..0bc3aedea3f5 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{armTemplateName}", + "armTemplateName": "{armTemplateName}", "api-version": "2018-09-15", "artifactSourceName": "{artifactSourceName}", "labName": "{labName}", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_CreateOrUpdate.json index 43527ac67a0f..56e69ddb237b 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{artifactSourceName}", + "artifactSourceName": "{artifactSourceName}", "api-version": "2018-09-15", "artifactSource": { "properties": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Delete.json index c243741e5378..6cba7cf0a778 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{artifactSourceName}", + "artifactSourceName": "{artifactSourceName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Get.json index 0f56aaf30a09..a712f0eb3c86 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{artifactSourceName}", + "artifactSourceName": "{artifactSourceName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Update.json index ad5daa171224..e13759d4b6d3 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{artifactSourceName}", + "artifactSourceName": "{artifactSourceName}", "api-version": "2018-09-15", "artifactSource": { "tags": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_GenerateArmTemplate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_GenerateArmTemplate.json index 0acb236e641c..121484ef67ff 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_GenerateArmTemplate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_GenerateArmTemplate.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{artifactName}", + "artifactName": "{artifactName}", "api-version": "2018-09-15", "artifactSourceName": "{artifactSourceName}", "generateArmTemplateRequest": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_Get.json index 263790c8e021..8c06c4e1025b 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{artifactName}", + "artifactName": "{artifactName}", "api-version": "2018-09-15", "artifactSourceName": "{artifactSourceName}", "labName": "{labName}", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_CreateOrUpdate.json index 73f523e29d0d..fe1f5b658cfd 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{customImageName}", + "customImageName": "{customImageName}", "api-version": "2018-09-15", "customImage": { "properties": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Delete.json index 82bc6b75b285..c90b38af8463 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{customImageName}", + "customImageName": "{customImageName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Get.json index 13be3e2ca428..96eb3cf14196 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{customImageName}", + "customImageName": "{customImageName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Update.json index 3106d5b207bd..66074087a29e 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{customImageName}", + "customImageName": "{customImageName}", "api-version": "2018-09-15", "customImage": { "tags": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Attach.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Attach.json index 72dd79a80de6..eccbe43fa109 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Attach.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Attach.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{diskName}", + "diskName": "{diskName}", "api-version": "2018-09-15", "attachDiskProperties": { "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_CreateOrUpdate.json index 7ec1e3222dbf..8f4fe7a092ff 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{diskName}", + "diskName": "{diskName}", "api-version": "2018-09-15", "disk": { "properties": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Delete.json index 511644128abe..3411ad6d70b4 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{diskName}", + "diskName": "{diskName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Detach.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Detach.json index e883f33f41b9..a7896cf18c85 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Detach.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Detach.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{diskName}", + "diskName": "{diskName}", "api-version": "2018-09-15", "detachDiskProperties": { "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Get.json index 49f3973a823e..98f0fbf3a7f0 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{diskName}", + "diskName": "{diskName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_List.json index a3cde4e2a95d..5f33070d5735 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_List.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{diskName}", + "diskName": "{diskName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Update.json index d3cf6d1632f6..cd3f89db105f 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "diskName", + "diskName": "diskName", "api-version": "2018-09-15", "disk": { "tags": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ClaimAnyVm.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ClaimAnyVm.json index 854b75d5cd23..561150265bcc 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ClaimAnyVm.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ClaimAnyVm.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{labName}", + "labName": "{labName}", "api-version": "2018-09-15", "monitor": "true", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateEnvironment.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateEnvironment.json index 5d8349e7fef2..5ef7d4997efc 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateEnvironment.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateEnvironment.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{labName}", + "labName": "{labName}", "api-version": "2018-09-15", "labVirtualMachineCreationParameter": { "name": "{vmName}", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateOrUpdate.json index 23be3b348a50..7c432b914263 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{labName}", + "labName": "{labName}", "api-version": "2018-09-15", "lab": { "location": "{location}", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Delete.json index 4f142111991b..88441f941722 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{labName}", + "labName": "{labName}", "api-version": "2018-09-15", "resourceGroupName": "resourceGroupName", "subscriptionId": "{subscriptionId}" diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ExportResourceUsage.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ExportResourceUsage.json index 6ef5ee9c9bb6..3837793f7e30 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ExportResourceUsage.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ExportResourceUsage.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{labName}", + "labName": "{labName}", "api-version": "2018-09-15", "exportResourceUsageParameters": { "blobStorageAbsoluteSasUri": "https://invalid.blob.core.windows.net/export.blob?sv=2015-07-08&sig={sas}&sp=rcw", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_GenerateUploadUri.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_GenerateUploadUri.json index 8ee7a4128bd4..087a2b98b043 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_GenerateUploadUri.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_GenerateUploadUri.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{labName}", + "labName": "{labName}", "api-version": "2018-09-15", "generateUploadUriParameter": { "blobName": "{blob-name}" diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Get.json index 2e555f7b602d..f4b5fa69f787 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{labName}", + "labName": "{labName}", "api-version": "2018-09-15", "resourceGroupName": "resourceGroupName", "subscriptionId": "{subscriptionId}" diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ImportVirtualMachine.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ImportVirtualMachine.json index ec2d8f1390d7..e7f978b20d7f 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ImportVirtualMachine.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ImportVirtualMachine.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{labName}", + "labName": "{labName}", "api-version": "2018-09-15", "importLabVirtualMachineRequest": { "destinationVirtualMachineName": "{vmName}", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListVhds.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListVhds.json index 779547ca97c4..1c9831cdaa8a 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListVhds.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListVhds.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{labName}", + "labName": "{labName}", "api-version": "2018-09-15", "resourceGroupName": "resourceGroupName", "subscriptionId": "{subscriptionId}" diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Update.json index f781f867ed90..57a4388aadf2 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{labName}", + "labName": "{labName}", "api-version": "2018-09-15", "lab": {}, "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json index 804a9e935e33..c0d7c44deff7 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{policySetName}", + "policySetName": "{policySetName}", "api-version": "2018-09-15", "evaluatePoliciesRequest": { "policies": [ From a1ac3f6f98bb1ea3583b765d00dfceab6d85654f Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Fri, 20 Jun 2025 11:56:02 -0700 Subject: [PATCH 15/59] evaluate policy and location operations fix --- .../CustomImage.tsp | 1 - .../Microsoft.DevTestLab.Management/Lab.tsp | 3 +- .../2018-09-15/Costs_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/Costs_Get.json | 2 +- .../routes.tsp | 21 ++- .../stable/2018-09-15/DTL.json | 140 +++++++++--------- .../examples/Costs_CreateOrUpdate.json | 2 +- .../stable/2018-09-15/examples/Costs_Get.json | 2 +- 8 files changed, 98 insertions(+), 75 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp index 8f856a9f1518..d4f0cd5924e7 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp @@ -18,7 +18,6 @@ model CustomImage is Azure.ResourceManager.TrackedResource { ...ResourceNameParameter< Resource = CustomImage, - KeyName = "name", SegmentName = "customimages", NamePattern = "" >; diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp index 54c32d1ced20..ef6a48318eb5 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp @@ -215,7 +215,6 @@ interface Labs { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @post - @action("policysets/{policySetName}/evaluatePolicies") @operationId("PolicySets_EvaluatePolicies") evaluatePolicies is ArmResourceActionSync< Lab, @@ -225,7 +224,7 @@ interface Labs { /** * The name of the policy set. */ - @path + @path @segment("policysets") policySetName: string; } >; diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_CreateOrUpdate.json index b00243b84b04..5239ecd0b5cf 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "targetCost", + "labCostName": "targetCost", "api-version": "2018-09-15", "labCost": { "properties": { diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_Get.json index 4cd5b3cc261f..f4dc8b3f01da 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "targetCost", + "labCostName": "targetCost", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/routes.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/routes.tsp index 762e12f8a80b..3a13d05266e6 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/routes.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/routes.tsp @@ -19,7 +19,9 @@ interface OperationsOperationGroup { * Get operation. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-resource-manager/no-response-body" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-resource-manager/lro-location-header" "For backward compatibility" @operationId("Operations_Get") @route("/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/locations/{locationName}/operations/{name}") @get @@ -38,5 +40,22 @@ interface OperationsOperationGroup { */ @path name: string, - ): ArmResponse | ErrorResponse; + ): ArmResponse | AcceptedResponse | ErrorResponse; +} + +/** + * Response for operations that return with 202 Accepted status code. + */ +model AcceptedResponse { + /** + * HTTP status code 202 + */ + @statusCode + statusCode: 202; + + /** + * The operation result object. + */ + @body + body: OperationResult; } diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index 6ed847decb57..b5edca97e5b1 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -239,6 +239,12 @@ "$ref": "#/definitions/OperationResult" } }, + "202": { + "description": "Response for operations that return with 202 Accepted status code.", + "schema": { + "$ref": "#/definitions/OperationResult" + } + }, "default": { "description": "An unexpected error response.", "schema": { @@ -634,68 +640,6 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/{policySetName}/policysets/{policySetName}/evaluatePolicies": { - "post": { - "operationId": "PolicySets_EvaluatePolicies", - "tags": [ - "Labs" - ], - "description": "Evaluates lab policy.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" - }, - { - "name": "policySetName", - "in": "path", - "description": "The name of the policy set.", - "required": true, - "type": "string" - }, - { - "name": "evaluatePoliciesRequest", - "in": "body", - "description": "Request body for evaluating a policy set.", - "required": true, - "schema": { - "$ref": "#/definitions/EvaluatePoliciesRequest" - } - } - ], - "responses": { - "200": { - "description": "Azure operation completed successfully.", - "schema": { - "$ref": "#/definitions/EvaluatePoliciesResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "PolicySets_EvaluatePolicies": { - "$ref": "./examples/PolicySets_EvaluatePolicies.json" - } - } - } - }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources": { "get": { "operationId": "ArtifactSources_List", @@ -1719,7 +1663,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages/{customImageName}": { "get": { "operationId": "CustomImages_Get", "tags": [ @@ -1744,7 +1688,7 @@ "type": "string" }, { - "name": "name", + "name": "customImageName", "in": "path", "description": "The name of the custom image.", "required": true, @@ -1802,7 +1746,7 @@ "type": "string" }, { - "name": "name", + "name": "customImageName", "in": "path", "description": "The name of the custom image.", "required": true, @@ -1883,7 +1827,7 @@ "type": "string" }, { - "name": "name", + "name": "customImageName", "in": "path", "description": "The name of the custom image.", "required": true, @@ -1943,7 +1887,7 @@ "type": "string" }, { - "name": "name", + "name": "customImageName", "in": "path", "description": "The name of the custom image.", "required": true, @@ -3015,6 +2959,68 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/evaluatePolicies": { + "post": { + "operationId": "PolicySets_EvaluatePolicies", + "tags": [ + "Labs" + ], + "description": "Evaluates lab policy.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "labName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, + { + "name": "policySetName", + "in": "path", + "description": "The name of the policy set.", + "required": true, + "type": "string" + }, + { + "name": "evaluatePoliciesRequest", + "in": "body", + "description": "Request body for evaluating a policy set.", + "required": true, + "schema": { + "$ref": "#/definitions/EvaluatePoliciesRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EvaluatePoliciesResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PolicySets_EvaluatePolicies": { + "$ref": "./examples/PolicySets_EvaluatePolicies.json" + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies": { "get": { "operationId": "Policies_List", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_CreateOrUpdate.json index b00243b84b04..5239ecd0b5cf 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "targetCost", + "labCostName": "targetCost", "api-version": "2018-09-15", "labCost": { "properties": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_Get.json index 4cd5b3cc261f..f4dc8b3f01da 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "targetCost", + "labCostName": "targetCost", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", From 09fe89d154e227e541d5b0b3d971aadbbbdc0e58 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Fri, 20 Jun 2025 13:31:01 -0700 Subject: [PATCH 16/59] Typespec validation fix and suppression check --- .../devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp | 3 ++- specification/devtestlabs/resource-manager/readme.md | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp index ef6a48318eb5..acd3baf06e87 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp @@ -224,7 +224,8 @@ interface Labs { /** * The name of the policy set. */ - @path @segment("policysets") + @path + @segment("policysets") policySetName: string; } >; diff --git a/specification/devtestlabs/resource-manager/readme.md b/specification/devtestlabs/resource-manager/readme.md index 074a2ebbb7d9..b02037de95df 100644 --- a/specification/devtestlabs/resource-manager/readme.md +++ b/specification/devtestlabs/resource-manager/readme.md @@ -37,6 +37,10 @@ These settings apply only when `--tag=package-2018-09` is specified on the comma ``` yaml $(tag) == 'package-2018-09' input-file: - Microsoft.DevTestLab/stable/2018-09-15/DTL.json +suppressions: + - code: ResourceNameRestriction + from: Microsoft.DevTestLab/stable/2018-09-15/DTL.json + reason: This is already released to customers, hence suppressing the rule for compatibility ``` ### Tag: package-2016-05 From 9715f9441407fa7fbcdc76599f0acf1d93bcd842 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Fri, 20 Jun 2025 14:04:24 -0700 Subject: [PATCH 17/59] Convert to proxy resource --- .../ArmTemplate.tsp | 2 +- .../Artifact.tsp | 2 +- .../ArtifactSource.tsp | 2 +- .../CustomImage.tsp | 2 +- .../Microsoft.DevTestLab.Management/Disk.tsp | 2 +- .../DtlEnvironment.tsp | 2 +- .../Formula.tsp | 2 +- .../LabCost.tsp | 2 +- .../LabVirtualMachine.tsp | 2 +- .../NotificationChannel.tsp | 2 +- .../Policy.tsp | 2 +- .../Schedule.tsp | 2 +- .../Secret.tsp | 2 +- .../ServiceFabric.tsp | 2 +- .../ServiceRunner.tsp | 2 +- .../Microsoft.DevTestLab.Management/User.tsp | 2 +- .../VirtualNetwork.tsp | 2 +- .../stable/2018-09-15/DTL.json | 34 +++++++++---------- .../devtestlabs/resource-manager/readme.md | 2 +- 19 files changed, 35 insertions(+), 35 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp index b92d63f44633..0d3dd4030cec 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp @@ -14,7 +14,7 @@ namespace Microsoft.DevTestLab; */ @parentResource(ArtifactSource) model ArmTemplate - is Azure.ResourceManager.TrackedResource { + is Azure.ResourceManager.ProxyResource { ...ResourceNameParameter< Resource = ArmTemplate, KeyName = "name", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp index 25ff1d81a00c..aef68d2e4e12 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp @@ -15,7 +15,7 @@ namespace Microsoft.DevTestLab; */ @parentResource(ArtifactSource) model Artifact - is Azure.ResourceManager.TrackedResource { + is Azure.ResourceManager.ProxyResource { ...ResourceNameParameter< Resource = Artifact, SegmentName = "artifacts", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp index 9981ec2350fa..94b95fe8d508 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp @@ -15,7 +15,7 @@ namespace Microsoft.DevTestLab; */ @parentResource(Lab) model ArtifactSource - is Azure.ResourceManager.TrackedResource { + is Azure.ResourceManager.ProxyResource { ...ResourceNameParameter< Resource = ArtifactSource, SegmentName = "artifactsources", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp index d4f0cd5924e7..e79478ba5263 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp @@ -15,7 +15,7 @@ namespace Microsoft.DevTestLab; */ @parentResource(Lab) model CustomImage - is Azure.ResourceManager.TrackedResource { + is Azure.ResourceManager.ProxyResource { ...ResourceNameParameter< Resource = CustomImage, SegmentName = "customimages", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp index 07d0dd14a767..aa6d94dfe2dd 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp @@ -14,7 +14,7 @@ namespace Microsoft.DevTestLab; * A Disk. */ @parentResource(User) -model Disk is Azure.ResourceManager.TrackedResource { +model Disk is Azure.ResourceManager.ProxyResource { ...ResourceNameParameter< Resource = Disk, SegmentName = "disks", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp index 401dd54c4cc1..34e8905840e4 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp @@ -15,7 +15,7 @@ namespace Microsoft.DevTestLab; */ @parentResource(User) model DtlEnvironment - is Azure.ResourceManager.TrackedResource { + is Azure.ResourceManager.ProxyResource { ...ResourceNameParameter< Resource = DtlEnvironment, SegmentName = "environments", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp index e204d80cfecf..c5471118e517 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp @@ -15,7 +15,7 @@ namespace Microsoft.DevTestLab; */ @parentResource(Lab) model Formula - is Azure.ResourceManager.TrackedResource { + is Azure.ResourceManager.ProxyResource { ...ResourceNameParameter< Resource = Formula, SegmentName = "formulas", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp index 375988f109f2..b9f7e1128b08 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp @@ -15,7 +15,7 @@ namespace Microsoft.DevTestLab; */ @parentResource(Lab) model LabCost - is Azure.ResourceManager.TrackedResource { + is Azure.ResourceManager.ProxyResource { ...ResourceNameParameter< Resource = LabCost, SegmentName = "costs", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp index b50e28c9a24e..7ae97f998e41 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp @@ -15,7 +15,7 @@ namespace Microsoft.DevTestLab; */ @parentResource(Lab) model LabVirtualMachine - is Azure.ResourceManager.TrackedResource { + is Azure.ResourceManager.ProxyResource { ...ResourceNameParameter< Resource = LabVirtualMachine, KeyName = "name", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp index 6c33e882d244..17ed7e05d84f 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp @@ -14,7 +14,7 @@ namespace Microsoft.DevTestLab; */ @parentResource(Lab) model NotificationChannel - is Azure.ResourceManager.TrackedResource< + is Azure.ResourceManager.ProxyResource< NotificationChannelProperties, false > { diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp index aeb7b96d0382..f01a5db26c9b 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp @@ -13,7 +13,7 @@ namespace Microsoft.DevTestLab; /** * A Policy. */ -model Policy is Azure.ResourceManager.TrackedResource { +model Policy is Azure.ResourceManager.ProxyResource { ...ResourceNameParameter< Resource = Policy, KeyName = "name", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp index a0835e79f2ee..211283fedeb1 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp @@ -14,7 +14,7 @@ namespace Microsoft.DevTestLab; * A schedule. */ model Schedule - is Azure.ResourceManager.TrackedResource { + is Azure.ResourceManager.ProxyResource { ...ResourceNameParameter< Resource = Schedule, SegmentName = "schedules", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp index cc23d9c7f9f2..82d7820f1420 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp @@ -14,7 +14,7 @@ namespace Microsoft.DevTestLab; * A secret. */ @parentResource(User) -model Secret is Azure.ResourceManager.TrackedResource { +model Secret is Azure.ResourceManager.ProxyResource { ...ResourceNameParameter< Resource = Secret, SegmentName = "secrets", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp index 488e1d381980..2f62df91b8f1 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp @@ -15,7 +15,7 @@ namespace Microsoft.DevTestLab; */ @parentResource(User) model ServiceFabric - is Azure.ResourceManager.TrackedResource { + is Azure.ResourceManager.ProxyResource { ...ResourceNameParameter< Resource = ServiceFabric, SegmentName = "servicefabrics", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp index 20dfe8e6a3b2..5ae41740c676 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp @@ -17,7 +17,7 @@ namespace Microsoft.DevTestLab; #suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "For backward compatibility" #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" @parentResource(Lab) -model ServiceRunner is Azure.ResourceManager.TrackedResource<{}> { +model ServiceRunner is Azure.ResourceManager.ProxyResource<{}> { ...ResourceNameParameter< Resource = ServiceRunner, SegmentName = "servicerunners", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp index 326ee10b6548..f17cd0118801 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp @@ -14,7 +14,7 @@ namespace Microsoft.DevTestLab; * Profile of a lab user. */ @parentResource(Lab) -model User is Azure.ResourceManager.TrackedResource { +model User is Azure.ResourceManager.ProxyResource { ...ResourceNameParameter< Resource = User, SegmentName = "users", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp index 0a72296089ab..f7579dbc35b3 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp @@ -15,7 +15,7 @@ namespace Microsoft.DevTestLab; */ @parentResource(Lab) model VirtualNetwork - is Azure.ResourceManager.TrackedResource { + is Azure.ResourceManager.ProxyResource { ...ResourceNameParameter< Resource = VirtualNetwork, KeyName = "name", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index b5edca97e5b1..5496b307c866 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -9182,7 +9182,7 @@ ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } ] }, @@ -9304,7 +9304,7 @@ ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } ] }, @@ -9464,7 +9464,7 @@ ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } ] }, @@ -9767,7 +9767,7 @@ ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } ] }, @@ -10024,7 +10024,7 @@ ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } ] }, @@ -10128,7 +10128,7 @@ ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } ] }, @@ -10383,7 +10383,7 @@ ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } ] }, @@ -11030,7 +11030,7 @@ ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } ] }, @@ -11368,7 +11368,7 @@ ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } ] }, @@ -11844,7 +11844,7 @@ ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } ] }, @@ -12074,7 +12074,7 @@ ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } ] }, @@ -12432,7 +12432,7 @@ ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } ] }, @@ -12600,7 +12600,7 @@ ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } ] }, @@ -12669,7 +12669,7 @@ ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } ] }, @@ -12748,7 +12748,7 @@ }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } ] }, @@ -13019,7 +13019,7 @@ }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } ] }, @@ -13162,7 +13162,7 @@ }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } ] }, diff --git a/specification/devtestlabs/resource-manager/readme.md b/specification/devtestlabs/resource-manager/readme.md index b02037de95df..faabf9410b2e 100644 --- a/specification/devtestlabs/resource-manager/readme.md +++ b/specification/devtestlabs/resource-manager/readme.md @@ -39,7 +39,7 @@ input-file: - Microsoft.DevTestLab/stable/2018-09-15/DTL.json suppressions: - code: ResourceNameRestriction - from: Microsoft.DevTestLab/stable/2018-09-15/DTL.json + from: DTL.json reason: This is already released to customers, hence suppressing the rule for compatibility ``` From 443b95ed7cf1497df4173760afa372480383df78 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Fri, 20 Jun 2025 14:05:51 -0700 Subject: [PATCH 18/59] typespec validation fix --- .../devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp | 3 +-- .../devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp | 3 +-- .../Microsoft.DevTestLab.Management/NotificationChannel.tsp | 5 +---- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp index c5471118e517..b6c5684c03ea 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp @@ -14,8 +14,7 @@ namespace Microsoft.DevTestLab; * A formula for creating a VM, specifying an image base and other parameters */ @parentResource(Lab) -model Formula - is Azure.ResourceManager.ProxyResource { +model Formula is Azure.ResourceManager.ProxyResource { ...ResourceNameParameter< Resource = Formula, SegmentName = "formulas", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp index b9f7e1128b08..6c30b4481a4e 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp @@ -14,8 +14,7 @@ namespace Microsoft.DevTestLab; * A cost item. */ @parentResource(Lab) -model LabCost - is Azure.ResourceManager.ProxyResource { +model LabCost is Azure.ResourceManager.ProxyResource { ...ResourceNameParameter< Resource = LabCost, SegmentName = "costs", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp index 17ed7e05d84f..2be4c935c70f 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp @@ -14,10 +14,7 @@ namespace Microsoft.DevTestLab; */ @parentResource(Lab) model NotificationChannel - is Azure.ResourceManager.ProxyResource< - NotificationChannelProperties, - false - > { + is Azure.ResourceManager.ProxyResource { ...ResourceNameParameter< Resource = NotificationChannel, SegmentName = "notificationchannels", From 05a849e58800eafe9785db156e7c53144afe123e Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Fri, 20 Jun 2025 16:30:50 -0700 Subject: [PATCH 19/59] Tags location fix for model validation --- .../ArmTemplate.tsp | 15 +++++++++++++ .../ArtifactSource.tsp | 16 ++++++++++++++ .../stable/2018-09-15/DTL.json | 22 +++++++++++++++++++ .../devtestlabs/resource-manager/readme.md | 6 +++++ 4 files changed, 59 insertions(+) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp index 0d3dd4030cec..30f1d38617d8 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp @@ -21,6 +21,19 @@ model ArmTemplate SegmentName = "armtemplates", NamePattern = "" >; + + /** + * The location of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + location?: string; + + /** + * The tags of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." + tags?: Record; } @armResourceOperations @@ -75,3 +88,5 @@ interface ArmTemplates { @@doc(ArmTemplate.name, "The name of the azure resource manager template."); @@doc(ArmTemplate.properties, "The properties of the resource."); +@@doc(ArmTemplate.tags, "The tags of the resource."); +@@doc(ArmTemplate.location, "The location of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp index 94b95fe8d508..e3df78b03d36 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp @@ -21,6 +21,19 @@ model ArtifactSource SegmentName = "artifactsources", NamePattern = "" >; + + /** + * The location of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + location?: string; + + /** + * The tags of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." + tags?: Record; } @armResourceOperations @@ -48,6 +61,7 @@ interface ArtifactSources { * Allows modifying tags of artifact sources. All other properties will be ignored. */ @patch(#{ implicitOptionality: false }) + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "ArtifactSourceFragment contains tags as expected by the patch operation." update is ArmCustomPatchSync< ArtifactSource, PatchModel = ArtifactSourceFragment @@ -100,3 +114,5 @@ interface ArtifactSources { @@doc(ArtifactSources.update::parameters.properties, "Properties of an artifact source." ); +@@doc(ArtifactSource.tags, "The tags of the resource."); +@@doc(ArtifactSource.location, "The location of the resource."); \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index 5496b307c866..425175e4b40b 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -9175,6 +9175,17 @@ "$ref": "#/definitions/ArmTemplateProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true + }, + "location": { + "type": "string", + "description": "The location of the resource." + }, + "tags": { + "type": "object", + "description": "The tags of the resource.", + "additionalProperties": { + "type": "string" + } } }, "required": [ @@ -9457,6 +9468,17 @@ "$ref": "#/definitions/ArtifactSourceProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true + }, + "location": { + "type": "string", + "description": "The location of the resource." + }, + "tags": { + "type": "object", + "description": "The tags of the resource.", + "additionalProperties": { + "type": "string" + } } }, "required": [ diff --git a/specification/devtestlabs/resource-manager/readme.md b/specification/devtestlabs/resource-manager/readme.md index faabf9410b2e..902938f1ec1a 100644 --- a/specification/devtestlabs/resource-manager/readme.md +++ b/specification/devtestlabs/resource-manager/readme.md @@ -41,6 +41,12 @@ suppressions: - code: ResourceNameRestriction from: DTL.json reason: This is already released to customers, hence suppressing the rule for compatibility + - code: DeleteResponseCodes + from: DTL.json + reason: This is already released to customers, hence suppressing the rule for compatibility + - code: ParametersInPointGet + from: DTL.json + reason: This is already released to customers, hence suppressing the rule for compatibility ``` ### Tag: package-2016-05 From 440f1e592f47c5e9bce69fbb9d50bb722ef95a81 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Fri, 20 Jun 2025 16:33:48 -0700 Subject: [PATCH 20/59] validation fix --- .../Microsoft.DevTestLab.Management/ArtifactSource.tsp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp index e3df78b03d36..9dc6125e4985 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp @@ -60,8 +60,8 @@ interface ArtifactSources { /** * Allows modifying tags of artifact sources. All other properties will be ignored. */ - @patch(#{ implicitOptionality: false }) #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "ArtifactSourceFragment contains tags as expected by the patch operation." + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchSync< ArtifactSource, PatchModel = ArtifactSourceFragment @@ -115,4 +115,4 @@ interface ArtifactSources { "Properties of an artifact source." ); @@doc(ArtifactSource.tags, "The tags of the resource."); -@@doc(ArtifactSource.location, "The location of the resource."); \ No newline at end of file +@@doc(ArtifactSource.location, "The location of the resource."); From 61cb063530163ae51e58674cd316909aae3e2867 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Sun, 22 Jun 2025 22:47:24 -0700 Subject: [PATCH 21/59] Swagger validation fix --- .../ArmTemplate.tsp | 1 - .../Artifact.tsp | 15 ++++++ .../CustomImage.tsp | 16 +++++++ .../Formula.tsp | 17 +++++++ .../LabCost.tsp | 15 ++++++ .../examples/2018-09-15/Formulas_Get.json | 2 +- .../examples/2018-09-15/Formulas_Update.json | 2 +- .../NotificationChannels_CreateOrUpdate.json | 2 +- .../NotificationChannels_Delete.json | 2 +- .../2018-09-15/NotificationChannels_Get.json | 2 +- .../NotificationChannels_Notify.json | 2 +- .../NotificationChannels_Update.json | 2 +- .../ServiceFabrics_CreateOrUpdate.json | 2 +- .../2018-09-15/ServiceFabrics_Delete.json | 2 +- .../2018-09-15/ServiceFabrics_Get.json | 2 +- ...erviceFabrics_ListApplicableSchedules.json | 2 +- .../2018-09-15/ServiceFabrics_Start.json | 2 +- .../2018-09-15/ServiceFabrics_Stop.json | 2 +- .../2018-09-15/ServiceFabrics_Update.json | 2 +- .../VirtualMachines_AddDataDisk.json | 2 +- .../stable/2018-09-15/DTL.json | 48 ++++++++++++++++++- .../2018-09-15/examples/Formulas_Get.json | 2 +- .../2018-09-15/examples/Formulas_Update.json | 2 +- .../NotificationChannels_CreateOrUpdate.json | 2 +- .../examples/NotificationChannels_Delete.json | 2 +- .../examples/NotificationChannels_Get.json | 2 +- .../examples/NotificationChannels_Notify.json | 2 +- .../examples/NotificationChannels_Update.json | 2 +- .../ServiceFabrics_CreateOrUpdate.json | 2 +- .../examples/ServiceFabrics_Delete.json | 2 +- .../examples/ServiceFabrics_Get.json | 2 +- ...erviceFabrics_ListApplicableSchedules.json | 2 +- .../examples/ServiceFabrics_Start.json | 2 +- .../examples/ServiceFabrics_Stop.json | 2 +- .../examples/ServiceFabrics_Update.json | 2 +- .../examples/VirtualMachines_AddDataDisk.json | 2 +- 36 files changed, 139 insertions(+), 33 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp index 30f1d38617d8..0d592669bbb8 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp @@ -17,7 +17,6 @@ model ArmTemplate is Azure.ResourceManager.ProxyResource { ...ResourceNameParameter< Resource = ArmTemplate, - KeyName = "name", SegmentName = "armtemplates", NamePattern = "" >; diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp index aef68d2e4e12..75d37700c86f 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp @@ -21,6 +21,19 @@ model Artifact SegmentName = "artifacts", NamePattern = "" >; + + /** + * The location of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + location?: string; + + /** + * The tags of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." + tags?: Record; } @armResourceOperations @@ -87,3 +100,5 @@ interface Artifacts { @@doc(Artifacts.generateArmTemplate::parameters.body, "Parameters for generating an ARM template for deploying artifacts." ); +@@doc(Artifact.tags, "The tags of the resource."); +@@doc(Artifact.location, "The location of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp index e79478ba5263..ad58b429d007 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp @@ -21,6 +21,19 @@ model CustomImage SegmentName = "customimages", NamePattern = "" >; + + /** + * The location of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + location?: string; + + /** + * The tags of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." + tags?: Record; } @armResourceOperations @@ -51,6 +64,7 @@ interface CustomImages { * Allows modifying tags of custom images. All other properties will be ignored. */ @patch(#{ implicitOptionality: false }) + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "CustomImageFragment contains tags as expected by the patch operation." update is ArmCustomPatchSync; /** @@ -100,3 +114,5 @@ interface CustomImages { @@doc(CustomImage.properties, "The properties of the resource."); @@doc(CustomImages.createOrUpdate::parameters.resource, "A custom image."); @@doc(CustomImages.update::parameters.properties, "A custom image."); +@@doc(CustomImage.tags, "The tags of the resource."); +@@doc(CustomImage.location, "The location of the resource."); \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp index b6c5684c03ea..4fdd46e487fa 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp @@ -20,6 +20,19 @@ model Formula is Azure.ResourceManager.ProxyResource { SegmentName = "formulas", NamePattern = "" >; + + /** + * The location of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + location?: string; + + /** + * The tags of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." + tags?: Record; } @armResourceOperations @@ -50,6 +63,7 @@ interface Formulas { * Allows modifying tags of formulas. All other properties will be ignored. */ @patch(#{ implicitOptionality: false }) + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "FormulaFragment contains tags as expected by the patch operation." update is ArmCustomPatchSync; /** @@ -99,3 +113,6 @@ interface Formulas { @@doc(Formulas.update::parameters.properties, "A formula for creating a VM, specifying an image base and other parameters" ); + +@@doc(Formula.tags, "The tags of the resource."); +@@doc(Formula.location, "The location of the resource."); \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp index 6c30b4481a4e..cf702f01750b 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp @@ -20,6 +20,19 @@ model LabCost is Azure.ResourceManager.ProxyResource { SegmentName = "costs", NamePattern = "" >; + + /** + * The location of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + location?: string; + + /** + * The tags of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." + tags?: Record; } #suppress "@azure-tools/typespec-azure-resource-manager/no-resource-delete-operation" "For backward compatibility" @@ -52,3 +65,5 @@ interface LabCosts { @@doc(LabCost.name, "The name of the cost."); @@doc(LabCost.properties, "The properties of the resource."); @@doc(LabCosts.createOrUpdate::parameters.resource, "A cost item."); +@@doc(LabCost.tags, "The tags of the resource."); +@@doc(LabCost.location, "The location of the resource."); \ No newline at end of file diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Get.json index 44ac7238ab5b..f33b293ea2ec 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{formulaName}", + "formulaName ": "{formulaName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Update.json index 3e47f7bdf256..0e8f87c2fc40 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{formulaName}", + "formulaName ": "{formulaName}", "api-version": "2018-09-15", "formula": { "tags": { diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_CreateOrUpdate.json index 1be5876a5f23..3dac41c8f04f 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{notificationChannelName}", + "notificationChannelName": "{notificationChannelName}", "api-version": "2018-09-15", "labName": "{labName}", "notificationChannel": { diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Delete.json index 181dde96bc7f..8e3a196c0e4d 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{notificationChannelName}", + "notificationChannelName": "{notificationChannelName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Get.json index 72d37f63062c..26402a74173c 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{notificationChannelName}", + "notificationChannelName": "{notificationChannelName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Notify.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Notify.json index 266171432b44..bc8dc720a550 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Notify.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Notify.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{notificationChannelName}", + "notificationChannelName": "{notificationChannelName}", "api-version": "2018-09-15", "labName": "{labName}", "notifyParameters": { diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Update.json index 5e1609cfaf39..db79a68477a3 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{notificationChannelName}", + "notificationChannelName": "{notificationChannelName}", "api-version": "2018-09-15", "labName": "{labName}", "notificationChannel": {}, diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_CreateOrUpdate.json index b613efd85302..7f1e985fb4e9 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{serviceFabricName}", + "serviceFabricName": "{serviceFabricName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Delete.json index 2dbe4a6197bb..39b9865d282b 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{serviceFabricName}", + "serviceFabricName": "{serviceFabricName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Get.json index 7d6a473b1458..832ea6211d0a 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{serviceFabricName}", + "serviceFabricName": "{serviceFabricName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_ListApplicableSchedules.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_ListApplicableSchedules.json index a815504446c4..6b6636b97cc2 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_ListApplicableSchedules.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_ListApplicableSchedules.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{serviceFabricName}", + "serviceFabricName": "{serviceFabricName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Start.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Start.json index d9995665cc75..70d4ebbb42ed 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Start.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Start.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{serviceFabricName}", + "serviceFabricName": "{serviceFabricName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Stop.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Stop.json index c6020eface0a..d55424098582 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Stop.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Stop.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{serviceFabricName}", + "serviceFabricName": "{serviceFabricName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Update.json index 1d2cbec7ff36..854164e47ff8 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{serviceFabricName}", + "serviceFabricName": "{serviceFabricName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_AddDataDisk.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_AddDataDisk.json index bbfdc5149ef8..ba31df2dc57b 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_AddDataDisk.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_AddDataDisk.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{virtualMachineName}", + "virtualMachineName": "{virtualMachineName}", "api-version": "2018-09-15", "dataDiskProperties": { "attachNewDataDiskOptions": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index 425175e4b40b..d37f74864414 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -1040,7 +1040,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/armtemplates/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/armtemplates/{armTemplateName}": { "get": { "operationId": "ArmTemplates_Get", "tags": [ @@ -1072,7 +1072,7 @@ "type": "string" }, { - "name": "name", + "name": "armTemplateName", "in": "path", "description": "The name of the azure resource manager template.", "required": true, @@ -9308,6 +9308,17 @@ "$ref": "#/definitions/ArtifactProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true + }, + "location": { + "type": "string", + "description": "The location of the resource." + }, + "tags": { + "type": "object", + "description": "The tags of the resource.", + "additionalProperties": { + "type": "string" + } } }, "required": [ @@ -9782,6 +9793,17 @@ "$ref": "#/definitions/CustomImageProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true + }, + "location": { + "type": "string", + "description": "The location of the resource." + }, + "tags": { + "type": "object", + "description": "The tags of the resource.", + "additionalProperties": { + "type": "string" + } } }, "required": [ @@ -10398,6 +10420,17 @@ "$ref": "#/definitions/FormulaProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true + }, + "location": { + "type": "string", + "description": "The location of the resource." + }, + "tags": { + "type": "object", + "description": "The tags of the resource.", + "additionalProperties": { + "type": "string" + } } }, "required": [ @@ -11045,6 +11078,17 @@ "$ref": "#/definitions/LabCostProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true + }, + "location": { + "type": "string", + "description": "The location of the resource." + }, + "tags": { + "type": "object", + "description": "The tags of the resource.", + "additionalProperties": { + "type": "string" + } } }, "required": [ diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Get.json index 44ac7238ab5b..f33b293ea2ec 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{formulaName}", + "formulaName ": "{formulaName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Update.json index 3e47f7bdf256..0e8f87c2fc40 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{formulaName}", + "formulaName ": "{formulaName}", "api-version": "2018-09-15", "formula": { "tags": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_CreateOrUpdate.json index 1be5876a5f23..3dac41c8f04f 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{notificationChannelName}", + "notificationChannelName": "{notificationChannelName}", "api-version": "2018-09-15", "labName": "{labName}", "notificationChannel": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Delete.json index 181dde96bc7f..8e3a196c0e4d 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{notificationChannelName}", + "notificationChannelName": "{notificationChannelName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Get.json index 72d37f63062c..26402a74173c 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{notificationChannelName}", + "notificationChannelName": "{notificationChannelName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Notify.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Notify.json index 266171432b44..bc8dc720a550 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Notify.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Notify.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{notificationChannelName}", + "notificationChannelName": "{notificationChannelName}", "api-version": "2018-09-15", "labName": "{labName}", "notifyParameters": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Update.json index 5e1609cfaf39..db79a68477a3 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{notificationChannelName}", + "notificationChannelName": "{notificationChannelName}", "api-version": "2018-09-15", "labName": "{labName}", "notificationChannel": {}, diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_CreateOrUpdate.json index b613efd85302..7f1e985fb4e9 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{serviceFabricName}", + "serviceFabricName": "{serviceFabricName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Delete.json index 2dbe4a6197bb..39b9865d282b 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{serviceFabricName}", + "serviceFabricName": "{serviceFabricName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Get.json index 7d6a473b1458..832ea6211d0a 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{serviceFabricName}", + "serviceFabricName": "{serviceFabricName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_ListApplicableSchedules.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_ListApplicableSchedules.json index a815504446c4..6b6636b97cc2 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_ListApplicableSchedules.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_ListApplicableSchedules.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{serviceFabricName}", + "serviceFabricName": "{serviceFabricName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Start.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Start.json index d9995665cc75..70d4ebbb42ed 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Start.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Start.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{serviceFabricName}", + "serviceFabricName": "{serviceFabricName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Stop.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Stop.json index c6020eface0a..d55424098582 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Stop.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Stop.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{serviceFabricName}", + "serviceFabricName": "{serviceFabricName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Update.json index 1d2cbec7ff36..854164e47ff8 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{serviceFabricName}", + "serviceFabricName": "{serviceFabricName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_AddDataDisk.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_AddDataDisk.json index bbfdc5149ef8..ba31df2dc57b 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_AddDataDisk.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_AddDataDisk.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{virtualMachineName}", + "virtualMachineName": "{virtualMachineName}", "api-version": "2018-09-15", "dataDiskProperties": { "attachNewDataDiskOptions": { From 00b396ca2fc181b92f9d92d90b5466442fc39852 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Sun, 22 Jun 2025 23:35:27 -0700 Subject: [PATCH 22/59] model validation update --- .../NotificationChannel.tsp | 16 +++++++ .../Schedule.tsp | 19 ++++++++ .../ServiceRunner.tsp | 15 +++++++ .../VirtualNetwork.tsp | 16 +++++++ .../stable/2018-09-15/DTL.json | 44 +++++++++++++++++++ .../devtestlabs/resource-manager/readme.md | 3 ++ 6 files changed, 113 insertions(+) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp index 2be4c935c70f..ac4c4e292657 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp @@ -20,6 +20,19 @@ model NotificationChannel SegmentName = "notificationchannels", NamePattern = "" >; + + /** + * The location of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + location?: string; + + /** + * The tags of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." + tags?: Record; } @armResourceOperations @@ -46,6 +59,7 @@ interface NotificationChannels { /** * Allows modifying tags of notification channels. All other properties will be ignored. */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" @patch(#{ implicitOptionality: false }) update is ArmCustomPatchSync< NotificationChannel, @@ -102,6 +116,8 @@ interface NotificationChannels { @@doc(NotificationChannel.name, "The name of the notification channel."); @@doc(NotificationChannel.properties, "The properties of the resource."); +@@doc(NotificationChannel.location, "The location of the resource."); +@@doc(NotificationChannel.tags, "The tags of the resource."); @@doc(NotificationChannels.createOrUpdate::parameters.resource, "A notification." ); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp index 211283fedeb1..2bf0ebe63c2b 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp @@ -20,6 +20,19 @@ model Schedule SegmentName = "schedules", NamePattern = "" >; + + /** + * The location of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + location?: string; + + /** + * The tags of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." + tags?: Record; } @armResourceOperations @@ -68,6 +81,7 @@ interface Schedules { * Allows modifying tags of schedules. All other properties will be ignored. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" @patch(#{ implicitOptionality: false }) @operationId("GlobalSchedules_Update") update is ScheduleOps.CustomPatchSync< @@ -219,6 +233,7 @@ interface ScheduleOperationGroup { * Allows modifying tags of schedules. All other properties will be ignored. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" @patch(#{ implicitOptionality: false }) @operationId("Schedules_Update") update is ScheduleOperationGroupOps.CustomPatchSync< @@ -336,6 +351,7 @@ interface ServiceFabricSchedules { /** * Allows modifying tags of schedules. All other properties will be ignored. */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" @patch(#{ implicitOptionality: false }) update is ServiceFabricScheduleOps.CustomPatchSync< Schedule, @@ -432,6 +448,7 @@ interface VirtualMachineSchedules { /** * Allows modifying tags of schedules. All other properties will be ignored. */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" @patch(#{ implicitOptionality: false }) update is VirtualMachineScheduleOps.CustomPatchSync< Schedule, @@ -484,6 +501,8 @@ interface VirtualMachineSchedules { @@doc(Schedule.name, "The name of the schedule."); @@doc(Schedule.properties, "The properties of the resource."); +@@doc(Schedule.location, "The location of the resource."); +@@doc(Schedule.tags, "The tags of the resource."); @@doc(Schedules.createOrUpdate::parameters.resource, "A schedule."); @@doc(Schedules.update::parameters.properties, "A schedule."); @@doc(Schedules.retarget::parameters.body, diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp index 5ae41740c676..5a81a0c47e3c 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp @@ -24,6 +24,19 @@ model ServiceRunner is Azure.ResourceManager.ProxyResource<{}> { NamePattern = "" >; + /** + * The location of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + location?: string; + + /** + * The tags of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." + tags?: Record; + /** * The identity of the resource. */ @@ -50,6 +63,8 @@ interface ServiceRunners { } @@doc(ServiceRunner.name, "The name of the service runner."); +@@doc(ServiceRunner.location, "The location of the resource."); +@@doc(ServiceRunner.tags, "The tags of the resource."); @@doc(ServiceRunners.createOrUpdate::parameters.resource, "A container for a managed identity to execute DevTest lab services." ); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp index f7579dbc35b3..8a814427a206 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp @@ -22,6 +22,19 @@ model VirtualNetwork SegmentName = "virtualnetworks", NamePattern = "" >; + + /** + * The location of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + location?: string; + + /** + * The tags of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." + tags?: Record; } @armResourceOperations @@ -51,6 +64,7 @@ interface VirtualNetworks { /** * Allows modifying tags of virtual networks. All other properties will be ignored. */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" @patch(#{ implicitOptionality: false }) update is ArmCustomPatchSync< VirtualNetwork, @@ -102,6 +116,8 @@ interface VirtualNetworks { @@doc(VirtualNetwork.name, "The name of the virtual network."); @@doc(VirtualNetwork.properties, "The properties of the resource."); +@@doc(VirtualNetwork.location, "The location of the resource."); +@@doc(VirtualNetwork.tags, "The tags of the resource."); @@doc(VirtualNetworks.createOrUpdate::parameters.resource, "A virtual network." ); diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index d37f74864414..9591768bdb4d 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -11903,6 +11903,17 @@ "$ref": "#/definitions/NotificationChannelProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true + }, + "location": { + "type": "string", + "description": "The location of the resource." + }, + "tags": { + "type": "object", + "description": "The tags of the resource.", + "additionalProperties": { + "type": "string" + } } }, "required": [ @@ -12491,6 +12502,17 @@ "$ref": "#/definitions/ScheduleProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true + }, + "location": { + "type": "string", + "description": "The location of the resource." + }, + "tags": { + "type": "object", + "description": "The tags of the resource.", + "additionalProperties": { + "type": "string" + } } }, "required": [ @@ -12807,6 +12829,17 @@ "description": "The resource-specific properties for this resource.", "x-ms-client-flatten": true }, + "location": { + "type": "string", + "description": "The location of the resource." + }, + "tags": { + "type": "object", + "description": "The tags of the resource.", + "additionalProperties": { + "type": "string" + } + }, "identity": { "$ref": "#/definitions/IdentityProperties", "description": "The identity of the resource." @@ -13224,6 +13257,17 @@ "$ref": "#/definitions/VirtualNetworkProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true + }, + "location": { + "type": "string", + "description": "The location of the resource." + }, + "tags": { + "type": "object", + "description": "The tags of the resource.", + "additionalProperties": { + "type": "string" + } } }, "allOf": [ diff --git a/specification/devtestlabs/resource-manager/readme.md b/specification/devtestlabs/resource-manager/readme.md index 902938f1ec1a..47e20d9129e4 100644 --- a/specification/devtestlabs/resource-manager/readme.md +++ b/specification/devtestlabs/resource-manager/readme.md @@ -47,6 +47,9 @@ suppressions: - code: ParametersInPointGet from: DTL.json reason: This is already released to customers, hence suppressing the rule for compatibility + - code: PostResponseCodes + from: DTL.json + reason: This is already released to customers, hence suppressing the rule for compatibility ``` ### Tag: package-2016-05 From 1b93e25005a185585a08450e812d4c96b0295976 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Mon, 23 Jun 2025 10:37:51 -0700 Subject: [PATCH 23/59] Update child resources to have optional location and tags --- .../Microsoft.DevTestLab.Management/Disk.tsp | 16 ++++ .../DtlEnvironment.tsp | 16 ++++ .../LabVirtualMachine.tsp | 16 ++++ .../Policy.tsp | 16 ++++ .../Secret.tsp | 16 ++++ .../ServiceFabric.tsp | 16 ++++ .../Microsoft.DevTestLab.Management/User.tsp | 16 ++++ .../stable/2018-09-15/DTL.json | 77 +++++++++++++++++++ .../devtestlabs/resource-manager/readme.md | 3 + 9 files changed, 192 insertions(+) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp index aa6d94dfe2dd..4f1bfae63992 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp @@ -20,6 +20,19 @@ model Disk is Azure.ResourceManager.ProxyResource { SegmentName = "disks", NamePattern = "" >; + + /** + * The location of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + location?: string; + + /** + * The tags of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." + tags?: Record; } @armResourceOperations @@ -49,6 +62,7 @@ interface Disks { /** * Allows modifying tags of disks. All other properties will be ignored. */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" @patch(#{ implicitOptionality: false }) update is ArmCustomPatchSync; @@ -107,6 +121,8 @@ interface Disks { @@doc(Disk.name, "The name of the disk."); @@doc(Disk.properties, "The properties of the resource."); +@@doc(Disk.location, "The location of the resource."); +@@doc(Disk.tags, "The tags of the resource."); @@doc(Disks.createOrUpdate::parameters.resource, "A Disk."); @@doc(Disks.update::parameters.properties, "A Disk."); @@doc(Disks.attach::parameters.body, "Properties of the disk to attach."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp index 34e8905840e4..9accf12f32cf 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp @@ -21,6 +21,19 @@ model DtlEnvironment SegmentName = "environments", NamePattern = "" >; + + /** + * The location of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + location?: string; + + /** + * The tags of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." + tags?: Record; } @armResourceOperations @@ -55,6 +68,7 @@ interface DtlEnvironments { * Allows modifying tags of environments. All other properties will be ignored. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" @patch(#{ implicitOptionality: false }) @operationId("Environments_Update") update is ArmCustomPatchSync< @@ -111,6 +125,8 @@ interface DtlEnvironments { @@doc(DtlEnvironment.name, "The name of the environment."); @@doc(DtlEnvironment.properties, "The properties of the resource."); +@@doc(DtlEnvironment.location, "The location of the resource."); +@@doc(DtlEnvironment.tags, "The tags of the resource."); @@doc(DtlEnvironments.createOrUpdate::parameters.resource, "An environment, which is essentially an ARM template deployment." ); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp index 7ae97f998e41..6dca522c7372 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp @@ -22,6 +22,19 @@ model LabVirtualMachine SegmentName = "virtualmachines", NamePattern = "" >; + + /** + * The location of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + location?: string; + + /** + * The tags of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." + tags?: Record; } @armResourceOperations @@ -56,6 +69,7 @@ interface LabVirtualMachines { * Allows modifying tags of virtual machines. All other properties will be ignored. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" @patch(#{ implicitOptionality: false }) @operationId("VirtualMachines_Update") update is ArmCustomPatchSync< @@ -227,6 +241,8 @@ interface LabVirtualMachines { @@doc(LabVirtualMachine.name, "The name of the virtual machine."); @@doc(LabVirtualMachine.properties, "The properties of the resource."); +@@doc(LabVirtualMachine.location, "The location of the resource."); +@@doc(LabVirtualMachine.tags, "The tags of the resource."); @@doc(LabVirtualMachines.createOrUpdate::parameters.resource, "A virtual machine." ); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp index f01a5db26c9b..72d0dc524a87 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp @@ -20,6 +20,19 @@ model Policy is Azure.ResourceManager.ProxyResource { SegmentName = "policies", NamePattern = "" >; + + /** + * The location of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + location?: string; + + /** + * The tags of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." + tags?: Record; } @armResourceOperations @@ -69,6 +82,7 @@ interface Policies { /** * Allows modifying tags of policies. All other properties will be ignored. */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" @patch(#{ implicitOptionality: false }) update is PolicySetsOps.CustomPatchSync; @@ -113,5 +127,7 @@ interface Policies { @@doc(Policy.name, "The name of the policy."); @@doc(Policy.properties, "The properties of the resource."); +@@doc(Policy.location, "The location of the resource."); +@@doc(Policy.tags, "The tags of the resource."); @@doc(Policies.createOrUpdate::parameters.resource, "A Policy."); @@doc(Policies.update::parameters.properties, "A Policy."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp index 82d7820f1420..3d86cc27357e 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp @@ -20,6 +20,19 @@ model Secret is Azure.ResourceManager.ProxyResource { SegmentName = "secrets", NamePattern = "" >; + + /** + * The location of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + location?: string; + + /** + * The tags of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." + tags?: Record; } @armResourceOperations @@ -49,6 +62,7 @@ interface Secrets { /** * Allows modifying tags of secrets. All other properties will be ignored. */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" @patch(#{ implicitOptionality: false }) update is ArmCustomPatchSync; @@ -93,5 +107,7 @@ interface Secrets { @@doc(Secret.name, "The name of the secret."); @@doc(Secret.properties, "The properties of the resource."); +@@doc(Secret.location, "The location of the resource."); +@@doc(Secret.tags, "The tags of the resource."); @@doc(Secrets.createOrUpdate::parameters.resource, "A secret."); @@doc(Secrets.update::parameters.properties, "A secret."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp index 2f62df91b8f1..6916ee5583da 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp @@ -21,6 +21,19 @@ model ServiceFabric SegmentName = "servicefabrics", NamePattern = "" >; + + /** + * The location of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + location?: string; + + /** + * The tags of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." + tags?: Record; } @armResourceOperations @@ -50,6 +63,7 @@ interface ServiceFabrics { /** * Allows modifying tags of service fabrics. All other properties will be ignored. */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" @patch(#{ implicitOptionality: false }) update is ArmCustomPatchSync< ServiceFabric, @@ -120,5 +134,7 @@ interface ServiceFabrics { @@doc(ServiceFabric.name, "The name of the service fabric."); @@doc(ServiceFabric.properties, "The properties of the resource."); +@@doc(ServiceFabric.location, "The location of the resource."); +@@doc(ServiceFabric.tags, "The tags of the resource."); @@doc(ServiceFabrics.createOrUpdate::parameters.resource, "A Service Fabric."); @@doc(ServiceFabrics.update::parameters.properties, "A Service Fabric."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp index f17cd0118801..2f1df99f885f 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp @@ -20,6 +20,19 @@ model User is Azure.ResourceManager.ProxyResource { SegmentName = "users", NamePattern = "" >; + + /** + * The location of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + location?: string; + + /** + * The tags of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." + tags?: Record; } @armResourceOperations @@ -49,6 +62,7 @@ interface Users { /** * Allows modifying tags of user profiles. All other properties will be ignored. */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" @patch(#{ implicitOptionality: false }) update is ArmCustomPatchSync; @@ -97,5 +111,7 @@ interface Users { @@doc(User.name, "The name of the user profile."); @@doc(User.properties, "The properties of the resource."); +@@doc(User.location, "The location of the resource."); +@@doc(User.tags, "The tags of the resource."); @@doc(Users.createOrUpdate::parameters.resource, "Profile of a lab user."); @@doc(Users.update::parameters.properties, "Profile of a lab user."); diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index 9591768bdb4d..fb3793ceea3e 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -10061,6 +10061,17 @@ "$ref": "#/definitions/DiskProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true + }, + "location": { + "type": "string", + "description": "The location of the resource." + }, + "tags": { + "type": "object", + "description": "The tags of the resource.", + "additionalProperties": { + "type": "string" + } } }, "required": [ @@ -10165,6 +10176,17 @@ "$ref": "#/definitions/EnvironmentProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true + }, + "location": { + "type": "string", + "description": "The location of the resource." + }, + "tags": { + "type": "object", + "description": "The tags of the resource.", + "additionalProperties": { + "type": "string" + } } }, "required": [ @@ -11427,6 +11449,17 @@ "$ref": "#/definitions/LabVirtualMachineProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true + }, + "location": { + "type": "string", + "description": "The location of the resource." + }, + "tags": { + "type": "object", + "description": "The tags of the resource.", + "additionalProperties": { + "type": "string" + } } }, "required": [ @@ -12144,6 +12177,17 @@ "$ref": "#/definitions/PolicyProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true + }, + "location": { + "type": "string", + "description": "The location of the resource." + }, + "tags": { + "type": "object", + "description": "The tags of the resource.", + "additionalProperties": { + "type": "string" + } } }, "required": [ @@ -12681,6 +12725,17 @@ "$ref": "#/definitions/SecretProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true + }, + "location": { + "type": "string", + "description": "The location of the resource." + }, + "tags": { + "type": "object", + "description": "The tags of the resource.", + "additionalProperties": { + "type": "string" + } } }, "required": [ @@ -12750,6 +12805,17 @@ "$ref": "#/definitions/ServiceFabricProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true + }, + "location": { + "type": "string", + "description": "The location of the resource." + }, + "tags": { + "type": "object", + "description": "The tags of the resource.", + "additionalProperties": { + "type": "string" + } } }, "required": [ @@ -13114,6 +13180,17 @@ "$ref": "#/definitions/UserProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true + }, + "location": { + "type": "string", + "description": "The location of the resource." + }, + "tags": { + "type": "object", + "description": "The tags of the resource.", + "additionalProperties": { + "type": "string" + } } }, "allOf": [ diff --git a/specification/devtestlabs/resource-manager/readme.md b/specification/devtestlabs/resource-manager/readme.md index 47e20d9129e4..51c2cceab724 100644 --- a/specification/devtestlabs/resource-manager/readme.md +++ b/specification/devtestlabs/resource-manager/readme.md @@ -50,6 +50,9 @@ suppressions: - code: PostResponseCodes from: DTL.json reason: This is already released to customers, hence suppressing the rule for compatibility + - code: AvoidAdditionalProperties + from: DTL.json + reason: This is already released to customers with type object as a parameter, hence suppressing the rule for compatibility ``` ### Tag: package-2016-05 From 2c8e85762bb01b57c3dbe6e70a05e2702e2f0c86 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Mon, 23 Jun 2025 11:04:58 -0700 Subject: [PATCH 24/59] examples update --- .../examples/2018-09-15/Environments_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/Environments_Delete.json | 2 +- .../examples/2018-09-15/Environments_Get.json | 2 +- .../examples/2018-09-15/Environments_Update.json | 2 +- .../examples/2018-09-15/Formulas_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/Formulas_Delete.json | 2 +- .../examples/2018-09-15/Formulas_Get.json | 2 +- .../examples/2018-09-15/Formulas_Update.json | 2 +- .../examples/2018-09-15/Secrets_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/Secrets_Delete.json | 2 +- .../examples/2018-09-15/Secrets_Get.json | 2 +- .../examples/2018-09-15/Secrets_Update.json | 2 +- .../examples/2018-09-15/ServiceRunners_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/ServiceRunners_Delete.json | 2 +- .../examples/2018-09-15/ServiceRunners_Get.json | 2 +- .../examples/2018-09-15/Users_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/Users_Delete.json | 2 +- .../examples/2018-09-15/Users_Get.json | 2 +- .../examples/2018-09-15/Users_Update.json | 2 +- .../examples/2018-09-15/VirtualMachines_AddDataDisk.json | 2 +- .../stable/2018-09-15/examples/Environments_CreateOrUpdate.json | 2 +- .../stable/2018-09-15/examples/Environments_Delete.json | 2 +- .../stable/2018-09-15/examples/Environments_Get.json | 2 +- .../stable/2018-09-15/examples/Environments_Update.json | 2 +- .../stable/2018-09-15/examples/Formulas_CreateOrUpdate.json | 2 +- .../stable/2018-09-15/examples/Formulas_Delete.json | 2 +- .../stable/2018-09-15/examples/Formulas_Get.json | 2 +- .../stable/2018-09-15/examples/Formulas_Update.json | 2 +- .../stable/2018-09-15/examples/Secrets_CreateOrUpdate.json | 2 +- .../stable/2018-09-15/examples/Secrets_Delete.json | 2 +- .../stable/2018-09-15/examples/Secrets_Get.json | 2 +- .../stable/2018-09-15/examples/Secrets_Update.json | 2 +- .../2018-09-15/examples/ServiceRunners_CreateOrUpdate.json | 2 +- .../stable/2018-09-15/examples/ServiceRunners_Delete.json | 2 +- .../stable/2018-09-15/examples/ServiceRunners_Get.json | 2 +- .../stable/2018-09-15/examples/Users_CreateOrUpdate.json | 2 +- .../stable/2018-09-15/examples/Users_Delete.json | 2 +- .../stable/2018-09-15/examples/Users_Get.json | 2 +- .../stable/2018-09-15/examples/Users_Update.json | 2 +- 39 files changed, 39 insertions(+), 39 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_CreateOrUpdate.json index b09582120db9..f7a16ca3e3b2 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{environmentName}", + "dtlEnvironmentName": "{environmentName}", "api-version": "2018-09-15", "dtlEnvironment": { "properties": { diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Delete.json index 87ab6bb3145a..413f7559664b 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{environmentName}", + "dtlEnvironmentName": "{environmentName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Get.json index b8765a870d43..880c4ffb0c40 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{environmentName}", + "dtlEnvironmentName": "{environmentName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Update.json index 0ac4d2350493..b9b89dd52477 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{environmentName}", + "dtlEnvironmentName": "{environmentName}", "api-version": "2018-09-15", "dtlEnvironment": { "tags": { diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_CreateOrUpdate.json index 255aecd3efa7..7c3f3f1181f7 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{formulaName}", + "formulaName": "{formulaName}", "api-version": "2018-09-15", "formula": { "location": "{location}", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Delete.json index 15416a09a159..2b7e6750d8db 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{formulaName}", + "formulaName": "{formulaName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Get.json index f33b293ea2ec..cb37fc110430 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "formulaName ": "{formulaName}", + "formulaName": "{formulaName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Update.json index 0e8f87c2fc40..f2b0bdac3364 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "formulaName ": "{formulaName}", + "formulaName": "{formulaName}", "api-version": "2018-09-15", "formula": { "tags": { diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_CreateOrUpdate.json index ee35f8641802..f8824db5e2ed 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{secretName}", + "secretName": "{secretName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Delete.json index 67d580ca9b81..921e4b902726 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{secretName}", + "secretName": "{secretName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Get.json index dc38d4422be8..217c4b6a8f91 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{secretName}", + "secretName": "{secretName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Update.json index 7ded3937f8b2..4e9af2fb4fbc 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{secretName}", + "secretName": "{secretName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_CreateOrUpdate.json index d61c8d98fa5f..4593e47e1248 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{servicerunnerName}", + "serviceRunnerName": "{servicerunnerName}", "api-version": "2018-09-15", "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Delete.json index 74af4b262d1c..ed58e6f647a8 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{servicerunnerName}", + "serviceRunnerName": "{servicerunnerName}", "api-version": "2018-09-15", "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Get.json index 05027cbb83a1..0734bb7136f4 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{servicerunnerName}", + "serviceRunnerName": "{servicerunnerName}", "api-version": "2018-09-15", "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_CreateOrUpdate.json index 69daa78e6d03..0587b46ef040 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{userName}", + "userName": "{userName}", "api-version": "2018-09-15", "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Delete.json index 4f9c6fe50d41..50217ed47477 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{userName}", + "userName": "{userName}", "api-version": "2018-09-15", "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Get.json index 07888edd26d4..3f2b638c966f 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{userName}", + "userName": "{userName}", "api-version": "2018-09-15", "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Update.json index 854d1cd637fe..3220899eeffe 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{userName}", + "userName": "{userName}", "api-version": "2018-09-15", "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_AddDataDisk.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_AddDataDisk.json index ba31df2dc57b..bbfdc5149ef8 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_AddDataDisk.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualMachines_AddDataDisk.json @@ -1,6 +1,6 @@ { "parameters": { - "virtualMachineName": "{virtualMachineName}", + "name": "{virtualMachineName}", "api-version": "2018-09-15", "dataDiskProperties": { "attachNewDataDiskOptions": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_CreateOrUpdate.json index b09582120db9..f7a16ca3e3b2 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{environmentName}", + "dtlEnvironmentName": "{environmentName}", "api-version": "2018-09-15", "dtlEnvironment": { "properties": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Delete.json index 87ab6bb3145a..413f7559664b 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{environmentName}", + "dtlEnvironmentName": "{environmentName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Get.json index b8765a870d43..880c4ffb0c40 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{environmentName}", + "dtlEnvironmentName": "{environmentName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Update.json index 0ac4d2350493..b9b89dd52477 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{environmentName}", + "dtlEnvironmentName": "{environmentName}", "api-version": "2018-09-15", "dtlEnvironment": { "tags": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_CreateOrUpdate.json index 255aecd3efa7..7c3f3f1181f7 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{formulaName}", + "formulaName": "{formulaName}", "api-version": "2018-09-15", "formula": { "location": "{location}", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Delete.json index 15416a09a159..2b7e6750d8db 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{formulaName}", + "formulaName": "{formulaName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Get.json index f33b293ea2ec..cb37fc110430 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "formulaName ": "{formulaName}", + "formulaName": "{formulaName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Update.json index 0e8f87c2fc40..f2b0bdac3364 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "formulaName ": "{formulaName}", + "formulaName": "{formulaName}", "api-version": "2018-09-15", "formula": { "tags": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_CreateOrUpdate.json index ee35f8641802..f8824db5e2ed 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{secretName}", + "secretName": "{secretName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Delete.json index 67d580ca9b81..921e4b902726 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{secretName}", + "secretName": "{secretName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Get.json index dc38d4422be8..217c4b6a8f91 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{secretName}", + "secretName": "{secretName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Update.json index 7ded3937f8b2..4e9af2fb4fbc 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{secretName}", + "secretName": "{secretName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_CreateOrUpdate.json index d61c8d98fa5f..4593e47e1248 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{servicerunnerName}", + "serviceRunnerName": "{servicerunnerName}", "api-version": "2018-09-15", "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Delete.json index 74af4b262d1c..ed58e6f647a8 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{servicerunnerName}", + "serviceRunnerName": "{servicerunnerName}", "api-version": "2018-09-15", "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Get.json index 05027cbb83a1..0734bb7136f4 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{servicerunnerName}", + "serviceRunnerName": "{servicerunnerName}", "api-version": "2018-09-15", "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_CreateOrUpdate.json index 69daa78e6d03..0587b46ef040 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{userName}", + "userName": "{userName}", "api-version": "2018-09-15", "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Delete.json index 4f9c6fe50d41..50217ed47477 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{userName}", + "userName": "{userName}", "api-version": "2018-09-15", "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Get.json index 07888edd26d4..3f2b638c966f 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{userName}", + "userName": "{userName}", "api-version": "2018-09-15", "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Update.json index 854d1cd637fe..3220899eeffe 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{userName}", + "userName": "{userName}", "api-version": "2018-09-15", "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", From d4be7314adf6a3c76faa6b92be45500040b12d5c Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Mon, 23 Jun 2025 11:05:09 -0700 Subject: [PATCH 25/59] examples update --- .../stable/2018-09-15/examples/VirtualMachines_AddDataDisk.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_AddDataDisk.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_AddDataDisk.json index ba31df2dc57b..bbfdc5149ef8 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_AddDataDisk.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_AddDataDisk.json @@ -1,6 +1,6 @@ { "parameters": { - "virtualMachineName": "{virtualMachineName}", + "name": "{virtualMachineName}", "api-version": "2018-09-15", "dataDiskProperties": { "attachNewDataDiskOptions": { From 4d901f8b3b76deec777fb5651b95306f0fcda0df Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Mon, 23 Jun 2025 12:59:27 -0700 Subject: [PATCH 26/59] SDK configuration update in tspconfig --- .../Microsoft.DevTestLab.Management/models.tsp | 7 +++++++ .../Microsoft.DevTestLab.Management/tspconfig.yaml | 11 ++++++++--- .../Microsoft.DevTestLab/stable/2018-09-15/DTL.json | 3 ++- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp index 80da497b5c09..bb71336e5f96 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp @@ -5,6 +5,11 @@ import "@azure-tools/typespec-azure-resource-manager"; namespace Microsoft.DevTestLab; +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using OpenAPI; + /** * The storage type for the disk (i.e. Standard, Premium). */ @@ -653,6 +658,8 @@ model LabSupportProperties { /** * An Azure resource. */ +#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard resource" +@extension("x-ms-azure-resource", true) model Resource { /** * The identifier of the resource. diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml b/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml index d7177e39efb7..35d0d832a533 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml @@ -16,7 +16,7 @@ options: package-dir: "Azure.ResourceManager.DevTestLabs" clear-output-folder: true model-namespace: true - namespace: "Microsoft.Azure.Management.DevTestLabs" + namespace: "Azure.ResourceManager.DevTestLabs" "@azure-tools/typespec-python": namespace: "azure.mgmt.devtestlabs" package-name: "azure-mgmt-devtestlabs" @@ -26,8 +26,8 @@ options: license-header: MICROSOFT_MIT_NO_VERSION flavor: "azure" "@azure-tools/typespec-java": - package-dir: "azure-mgmt-devtestlabs" - namespace: "com.microsoft.azure.management.devtestlabs" + package-dir: "azure-resourcemanager-devtestlabs" + namespace: "com.azure.resourcemanager.devtestlabs" service-name: "DevTestLabs" license-header: MICROSOFT_MIT_NO_CODEGEN payload-flattening-threshold: 1 @@ -43,7 +43,12 @@ options: module-name: "sdk/resourcemanager/devtestlabs/armdevtestlabs" module: "github.com/Azure/azure-sdk-for-go/{module-name}" license-header: MICROSOFT_MIT_NO_VERSION + fix-const-stuttering: true flavor: "azure" + generate-samples: true + generate-fakes: true + head-as-boolean: true + inject-spans: true linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index fb3793ceea3e..72eb49a3a605 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -12522,7 +12522,8 @@ "type": "string" } } - } + }, + "x-ms-azure-resource": true }, "RetargetScheduleProperties": { "type": "object", From 723268760d560e54fbdae699d37be5c1abbdb401 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Mon, 23 Jun 2025 13:00:17 -0700 Subject: [PATCH 27/59] service-dir update --- .../devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml b/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml index 35d0d832a533..572069330a5b 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml @@ -2,7 +2,7 @@ emit: - "@azure-tools/typespec-autorest" parameters: service-dir: - default: "{project-root}" + default: "sdk/devtestlabs" options: "@azure-tools/typespec-autorest": omit-unreachable-types: true From 67f929c4957fd76230008236ec38895bbcaaa5e5 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Mon, 23 Jun 2025 14:22:51 -0700 Subject: [PATCH 28/59] Validation and config updates --- .../Microsoft.DevTestLab.Management/CustomImage.tsp | 4 ++-- .../devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp | 4 ++-- .../devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp | 2 +- .../{ProviderOperations_List.json => Operations_List.json} | 0 .../Microsoft.DevTestLab.Management/tspconfig.yaml | 3 --- 5 files changed, 5 insertions(+), 8 deletions(-) rename specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/{ProviderOperations_List.json => Operations_List.json} (100%) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp index ad58b429d007..0cca19d3edc0 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp @@ -63,8 +63,8 @@ interface CustomImages { /** * Allows modifying tags of custom images. All other properties will be ignored. */ - @patch(#{ implicitOptionality: false }) #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "CustomImageFragment contains tags as expected by the patch operation." + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchSync; /** @@ -115,4 +115,4 @@ interface CustomImages { @@doc(CustomImages.createOrUpdate::parameters.resource, "A custom image."); @@doc(CustomImages.update::parameters.properties, "A custom image."); @@doc(CustomImage.tags, "The tags of the resource."); -@@doc(CustomImage.location, "The location of the resource."); \ No newline at end of file +@@doc(CustomImage.location, "The location of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp index 4fdd46e487fa..ef6bc0a635ff 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp @@ -62,8 +62,8 @@ interface Formulas { /** * Allows modifying tags of formulas. All other properties will be ignored. */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "FormulaFragment contains tags as expected by the patch operation." @patch(#{ implicitOptionality: false }) - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "FormulaFragment contains tags as expected by the patch operation." update is ArmCustomPatchSync; /** @@ -115,4 +115,4 @@ interface Formulas { ); @@doc(Formula.tags, "The tags of the resource."); -@@doc(Formula.location, "The location of the resource."); \ No newline at end of file +@@doc(Formula.location, "The location of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp index cf702f01750b..ea80a2298ed0 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp @@ -66,4 +66,4 @@ interface LabCosts { @@doc(LabCost.properties, "The properties of the resource."); @@doc(LabCosts.createOrUpdate::parameters.resource, "A cost item."); @@doc(LabCost.tags, "The tags of the resource."); -@@doc(LabCost.location, "The location of the resource."); \ No newline at end of file +@@doc(LabCost.location, "The location of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ProviderOperations_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Operations_List.json similarity index 100% rename from specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ProviderOperations_List.json rename to specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Operations_List.json diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml b/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml index 572069330a5b..9bad4564d94a 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml @@ -23,13 +23,11 @@ options: payload-flattening-threshold: 2 generate-test: true generate-sample: true - license-header: MICROSOFT_MIT_NO_VERSION flavor: "azure" "@azure-tools/typespec-java": package-dir: "azure-resourcemanager-devtestlabs" namespace: "com.azure.resourcemanager.devtestlabs" service-name: "DevTestLabs" - license-header: MICROSOFT_MIT_NO_CODEGEN payload-flattening-threshold: 1 flavor: azure "@azure-tools/typespec-ts": @@ -42,7 +40,6 @@ options: "@azure-tools/typespec-go": module-name: "sdk/resourcemanager/devtestlabs/armdevtestlabs" module: "github.com/Azure/azure-sdk-for-go/{module-name}" - license-header: MICROSOFT_MIT_NO_VERSION fix-const-stuttering: true flavor: "azure" generate-samples: true From 1281e950a024ce31d1d1833bbd9aa8f8d2985397 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Mon, 23 Jun 2025 15:11:16 -0700 Subject: [PATCH 29/59] Config update --- .../examples.tsp | 24 +++++++++++++++++++ .../tspconfig.yaml | 7 +++--- 2 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples.tsp diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples.tsp new file mode 100644 index 000000000000..8cb4f88d9932 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples.tsp @@ -0,0 +1,24 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; + +import "./main.tsp"; + +using TypeSpec.Http; +using TypeSpec.Rest; +using Azure.ResourceManager; + +/** + * Examples for Operations + */ +@doc("Examples for Operations") +namespace Microsoft.DevTestLab.Examples; + +// Example for Operations_List +@exampleFile("./examples/2018-09-15/Operations_List.json") +@get +op OperationsList(): { + @statusCode statusCode: 200; + @body body: Azure.ResourceManager.CommonTypes.Versions.v3.OperationListResult; +}; diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml b/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml index 9bad4564d94a..a13766e2c0e8 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml @@ -19,7 +19,7 @@ options: namespace: "Azure.ResourceManager.DevTestLabs" "@azure-tools/typespec-python": namespace: "azure.mgmt.devtestlabs" - package-name: "azure-mgmt-devtestlabs" + package-dir: "azure-mgmt-devtestlabs" payload-flattening-threshold: 2 generate-test: true generate-sample: true @@ -38,8 +38,9 @@ options: package-details: name: "@azure/arm-devtestlabs" "@azure-tools/typespec-go": - module-name: "sdk/resourcemanager/devtestlabs/armdevtestlabs" - module: "github.com/Azure/azure-sdk-for-go/{module-name}" + service-dir: "sdk/resourcemanager/devtestlabs" + package-dir: "armdevtestlabs" + module: "github.com/Azure/azure-sdk-for-go/{service-dir}/{package-dir}" fix-const-stuttering: true flavor: "azure" generate-samples: true From 9a25f9292ab1889de625f003987284b060960e46 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Mon, 23 Jun 2025 15:12:07 -0700 Subject: [PATCH 30/59] remove examples.tsp --- .../examples.tsp | 24 ------------------- 1 file changed, 24 deletions(-) delete mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/examples.tsp diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples.tsp deleted file mode 100644 index 8cb4f88d9932..000000000000 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples.tsp +++ /dev/null @@ -1,24 +0,0 @@ -import "@typespec/rest"; -import "@typespec/http"; -import "@azure-tools/typespec-azure-core"; -import "@azure-tools/typespec-azure-resource-manager"; - -import "./main.tsp"; - -using TypeSpec.Http; -using TypeSpec.Rest; -using Azure.ResourceManager; - -/** - * Examples for Operations - */ -@doc("Examples for Operations") -namespace Microsoft.DevTestLab.Examples; - -// Example for Operations_List -@exampleFile("./examples/2018-09-15/Operations_List.json") -@get -op OperationsList(): { - @statusCode statusCode: 200; - @body body: Azure.ResourceManager.CommonTypes.Versions.v3.OperationListResult; -}; From 0ef047b34e4cd86ed94617e5298dbc2499d92c9a Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Mon, 23 Jun 2025 15:51:37 -0700 Subject: [PATCH 31/59] Examples update --- .../GlobalSchedules_ListByResourceGroup.json | 2 +- .../GlobalSchedules_ListBySubscription.json | 33 ++++++++++++++++++- specification/devtestlabs/cspell.yaml | 1 + .../GlobalSchedules_ListByResourceGroup.json | 2 +- .../GlobalSchedules_ListBySubscription.json | 33 ++++++++++++++++++- 5 files changed, 67 insertions(+), 4 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_ListByResourceGroup.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_ListByResourceGroup.json index 4180b1bc1f25..a2ae6b493a29 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_ListByResourceGroup.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_ListByResourceGroup.json @@ -11,7 +11,7 @@ { "name": "LabVmAutoStart", "type": "microsoft.devtestlab/labs/schedules", - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/labvmautostart", + "id": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.devtestlab/labs/{labName}/schedules/labvmautostart", "location": "{location}", "properties": { "createdDate": "2020-12-29T22:54:54.9335182+00:00", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_ListBySubscription.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_ListBySubscription.json index e2654bb23605..d2543776d333 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_ListBySubscription.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_ListBySubscription.json @@ -5,7 +5,38 @@ }, "responses": { "200": { - "body": {} + "body": { + "value": [ + { + "name": "LabVmAutoStart", + "type": "microsoft.devtestlab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.devtestlab/labs/{labName}/schedules/labvmautostart", + "location": "{location}", + "properties": { + "createdDate": "2020-12-29T22:54:54.9335182+00:00", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 0 + }, + "provisioningState": "Succeeded", + "status": "Enabled", + "taskType": "LabVmsStartupTask", + "timeZoneId": "Hawaiian Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "0700", + "weekdays": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ] + } + } + } + ] + } } }, "operationId": "GlobalSchedules_ListBySubscription", diff --git a/specification/devtestlabs/cspell.yaml b/specification/devtestlabs/cspell.yaml index 5cbc0b5254af..95fccad41334 100644 --- a/specification/devtestlabs/cspell.yaml +++ b/specification/devtestlabs/cspell.yaml @@ -15,4 +15,5 @@ words: - retargeting - sysprepped - vhds + - armdevtestlabs diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListByResourceGroup.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListByResourceGroup.json index 4180b1bc1f25..a2ae6b493a29 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListByResourceGroup.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListByResourceGroup.json @@ -11,7 +11,7 @@ { "name": "LabVmAutoStart", "type": "microsoft.devtestlab/labs/schedules", - "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/labvmautostart", + "id": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.devtestlab/labs/{labName}/schedules/labvmautostart", "location": "{location}", "properties": { "createdDate": "2020-12-29T22:54:54.9335182+00:00", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListBySubscription.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListBySubscription.json index e2654bb23605..d2543776d333 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListBySubscription.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListBySubscription.json @@ -5,7 +5,38 @@ }, "responses": { "200": { - "body": {} + "body": { + "value": [ + { + "name": "LabVmAutoStart", + "type": "microsoft.devtestlab/labs/schedules", + "id": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.devtestlab/labs/{labName}/schedules/labvmautostart", + "location": "{location}", + "properties": { + "createdDate": "2020-12-29T22:54:54.9335182+00:00", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 0 + }, + "provisioningState": "Succeeded", + "status": "Enabled", + "taskType": "LabVmsStartupTask", + "timeZoneId": "Hawaiian Standard Time", + "uniqueIdentifier": "{uniqueIdentifier}", + "weeklyRecurrence": { + "time": "0700", + "weekdays": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ] + } + } + } + ] + } } }, "operationId": "GlobalSchedules_ListBySubscription", From f6d5accfc1d846134dcd9fff5448db1d501a2454 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Mon, 23 Jun 2025 22:48:10 -0700 Subject: [PATCH 32/59] Operation list fix --- .../examples/2018-09-15/Operations_List.json | 4 +- .../stable/2018-09-15/DTL.json | 5 + .../2018-09-15/examples/Operations_List.json | 861 ++++++++++++++++++ 3 files changed, 868 insertions(+), 2 deletions(-) create mode 100644 specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Operations_List.json diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Operations_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Operations_List.json index 1f18bab05135..52d71af9edfe 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Operations_List.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Operations_List.json @@ -856,6 +856,6 @@ } } }, - "operationId": "ProviderOperations_List", - "title": "ProviderOperations_List" + "operationId": "Operations_List", + "title": "Operations_List" } diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index 72eb49a3a605..2b7b035b7d53 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -133,6 +133,11 @@ } } }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/Operations_List.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Operations_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Operations_List.json new file mode 100644 index 000000000000..52d71af9edfe --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Operations_List.json @@ -0,0 +1,861 @@ +{ + "parameters": { + "api-version": "2018-09-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.DevTestLab/register/action", + "display": { + "description": "Registers the subscription", + "operation": "Register Subscription", + "provider": "Microsoft DevTest Labs", + "resource": "register" + } + }, + { + "name": "Microsoft.DevTestLab/labs/policySets/EvaluatePolicies/action", + "display": { + "description": "Evaluates lab policy.", + "operation": "Evaluate policy", + "provider": "Microsoft DevTest Labs", + "resource": "policy sets" + } + }, + { + "name": "Microsoft.DevTestLab/labs/delete", + "display": { + "description": "Delete labs.", + "operation": "Delete labs.", + "provider": "Microsoft DevTest Labs", + "resource": "Labs" + } + }, + { + "name": "Microsoft.DevTestLab/labs/read", + "display": { + "description": "Read labs.", + "operation": "Read labs.", + "provider": "Microsoft DevTest Labs", + "resource": "Labs" + } + }, + { + "name": "Microsoft.DevTestLab/labs/write", + "display": { + "description": "Add or modify labs.", + "operation": "Add or modify labs.", + "provider": "Microsoft DevTest Labs", + "resource": "Labs" + } + }, + { + "name": "Microsoft.DevTestLab/labs/ListVhds/action", + "display": { + "description": "List disk images available for custom image creation.", + "operation": "List VHDs", + "provider": "Microsoft DevTest Labs", + "resource": "Labs" + } + }, + { + "name": "Microsoft.DevTestLab/labs/GenerateUploadUri/action", + "display": { + "description": "Generate a URI for uploading custom disk images to a Lab.", + "operation": "Generate image upload URI", + "provider": "Microsoft DevTest Labs", + "resource": "Labs" + } + }, + { + "name": "Microsoft.DevTestLab/labs/CreateEnvironment/action", + "display": { + "description": "Create virtual machines in a lab.", + "operation": "Create a virtual machine", + "provider": "Microsoft DevTest Labs", + "resource": "Labs" + } + }, + { + "name": "Microsoft.DevTestLab/labs/ClaimAnyVm/action", + "display": { + "description": "Claim a random claimable virtual machine in the lab.", + "operation": "Claim Any Virtual Machine", + "provider": "Microsoft DevTest Labs", + "resource": "Labs" + } + }, + { + "name": "Microsoft.DevTestLab/labs/ExportResourceUsage/action", + "display": { + "description": "Exports the lab resource usage into a storage account", + "operation": "Exports the lab resource usage into a storage account", + "provider": "Microsoft DevTest Labs", + "resource": "Labs" + } + }, + { + "name": "Microsoft.DevTestLab/labs/ImportVirtualMachine/action", + "display": { + "description": "Import a virtual machine into a different lab.", + "operation": "Import a virtual machine", + "provider": "Microsoft DevTest Labs", + "resource": "Labs" + } + }, + { + "name": "Microsoft.DevTestLab/labs/policySets/policies/delete", + "display": { + "description": "Delete policies.", + "operation": "Delete policies.", + "provider": "Microsoft DevTest Labs", + "resource": "policies" + } + }, + { + "name": "Microsoft.DevTestLab/labs/policySets/policies/read", + "display": { + "description": "Read policies.", + "operation": "Read policies.", + "provider": "Microsoft DevTest Labs", + "resource": "policies" + } + }, + { + "name": "Microsoft.DevTestLab/labs/policySets/policies/write", + "display": { + "description": "Add or modify policies.", + "operation": "Add or modify policies.", + "provider": "Microsoft DevTest Labs", + "resource": "policies" + } + }, + { + "name": "Microsoft.DevTestLab/labs/schedules/delete", + "display": { + "description": "Delete schedules.", + "operation": "Delete schedules.", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/labs/schedules/read", + "display": { + "description": "Read schedules.", + "operation": "Read schedules.", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/labs/schedules/write", + "display": { + "description": "Add or modify schedules.", + "operation": "Add or modify schedules.", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/labs/schedules/Execute/action", + "display": { + "description": "Execute a schedule.", + "operation": "Execute schedule", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/labs/schedules/ListApplicable/action", + "display": { + "description": "Lists all applicable schedules", + "operation": "List all applicable schedules", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/schedules/delete", + "display": { + "description": "Delete schedules.", + "operation": "Delete schedules.", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/schedules/read", + "display": { + "description": "Read schedules.", + "operation": "Read schedules.", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/schedules/write", + "display": { + "description": "Add or modify schedules.", + "operation": "Add or modify schedules.", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/schedules/Execute/action", + "display": { + "description": "Execute a schedule.", + "operation": "Execute schedule", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/schedules/Retarget/action", + "display": { + "description": "Updates a schedule's target resource Id.", + "operation": "Retarget schedule.", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/schedules/delete", + "display": { + "description": "Delete schedules.", + "operation": "Delete schedules.", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/schedules/read", + "display": { + "description": "Read schedules.", + "operation": "Read schedules.", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/schedules/write", + "display": { + "description": "Add or modify schedules.", + "operation": "Add or modify schedules.", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/schedules/Execute/action", + "display": { + "description": "Execute a schedule.", + "operation": "Execute schedule", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/schedules/delete", + "display": { + "description": "Delete schedules.", + "operation": "Delete schedules.", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/schedules/read", + "display": { + "description": "Read schedules.", + "operation": "Read schedules.", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/schedules/write", + "display": { + "description": "Add or modify schedules.", + "operation": "Add or modify schedules.", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/schedules/Execute/action", + "display": { + "description": "Execute a schedule.", + "operation": "Execute schedule", + "provider": "Microsoft DevTest Labs", + "resource": "schedules" + } + }, + { + "name": "Microsoft.DevTestLab/labs/artifactSources/delete", + "display": { + "description": "Delete artifact sources.", + "operation": "Delete artifact sources.", + "provider": "Microsoft DevTest Labs", + "resource": "Artifact sources" + } + }, + { + "name": "Microsoft.DevTestLab/labs/artifactSources/read", + "display": { + "description": "Read artifact sources.", + "operation": "Read artifact sources.", + "provider": "Microsoft DevTest Labs", + "resource": "Artifact sources" + } + }, + { + "name": "Microsoft.DevTestLab/labs/artifactSources/write", + "display": { + "description": "Add or modify artifact sources.", + "operation": "Add or modify artifact sources.", + "provider": "Microsoft DevTest Labs", + "resource": "Artifact sources" + } + }, + { + "name": "Microsoft.DevTestLab/labs/artifactSources/artifacts/read", + "display": { + "description": "Read artifacts.", + "operation": "Read artifacts.", + "provider": "Microsoft DevTest Labs", + "resource": "Artifacts" + } + }, + { + "name": "Microsoft.DevTestLab/labs/artifactSources/artifacts/GenerateArmTemplate/action", + "display": { + "description": "Generates an ARM template for the given artifact, uploads the required files to a storage account, and validates the generated artifact.", + "operation": "Generates an ARM template for the given artifact", + "provider": "Microsoft DevTest Labs", + "resource": "Artifacts" + } + }, + { + "name": "Microsoft.DevTestLab/labs/galleryImages/read", + "display": { + "description": "Read gallery images.", + "operation": "Read gallery images.", + "provider": "Microsoft DevTest Labs", + "resource": "gallery images" + } + }, + { + "name": "Microsoft.DevTestLab/labs/customImages/delete", + "display": { + "description": "Delete custom images.", + "operation": "Delete custom images.", + "provider": "Microsoft DevTest Labs", + "resource": "custom images" + } + }, + { + "name": "Microsoft.DevTestLab/labs/customImages/read", + "display": { + "description": "Read custom images.", + "operation": "Read custom images.", + "provider": "Microsoft DevTest Labs", + "resource": "custom images" + } + }, + { + "name": "Microsoft.DevTestLab/labs/customImages/write", + "display": { + "description": "Add or modify custom images.", + "operation": "Add or modify custom images.", + "provider": "Microsoft DevTest Labs", + "resource": "custom images" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualNetworks/delete", + "display": { + "description": "Delete virtual networks.", + "operation": "Delete virtual networks.", + "provider": "Microsoft DevTest Labs", + "resource": "virtual networks" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualNetworks/read", + "display": { + "description": "Read virtual networks.", + "operation": "Read virtual networks.", + "provider": "Microsoft DevTest Labs", + "resource": "virtual networks" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualNetworks/write", + "display": { + "description": "Add or modify virtual networks.", + "operation": "Add or modify virtual networks.", + "provider": "Microsoft DevTest Labs", + "resource": "virtual networks" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/delete", + "display": { + "description": "Delete virtual machines.", + "operation": "Delete virtual machines.", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/read", + "display": { + "description": "Read virtual machines.", + "operation": "Read virtual machines.", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/write", + "display": { + "description": "Add or modify virtual machines.", + "operation": "Add or modify virtual machines.", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/Start/action", + "display": { + "description": "Start a virtual machine.", + "operation": "Start virtual machine", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/Stop/action", + "display": { + "description": "Stop a virtual machine", + "operation": "Stop virtual machine", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/Restart/action", + "display": { + "description": "Restart a virtual machine.", + "operation": "Restart virtual machine", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/Redeploy/action", + "display": { + "description": "Redeploy a virtual machine", + "operation": "Redeploy a virtual machine", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/Resize/action", + "display": { + "description": "Resize Virtual Machine.", + "operation": "Resize Virtual Machine.", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/ApplyArtifacts/action", + "display": { + "description": "Apply artifacts to virtual machine.", + "operation": "Apply artifacts to virtual machine", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/AddDataDisk/action", + "display": { + "description": "Attach a new or existing data disk to virtual machine.", + "operation": "Add or attach a data disk", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/DetachDataDisk/action", + "display": { + "description": "Detach the specified disk from the virtual machine.", + "operation": "Detach the specified disk from the virtual machine", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/Claim/action", + "display": { + "description": "Take ownership of an existing virtual machine", + "operation": "Claim a virtual machine", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/UnClaim/action", + "display": { + "description": "Release ownership of an existing virtual machine", + "operation": "Unclaim a virtual machine", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/TransferDisks/action", + "display": { + "description": "Transfer ownership of virtual machine data disks to yourself", + "operation": "Transfer data disks to yourself", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/ListApplicableSchedules/action", + "display": { + "description": "Lists all applicable schedules", + "operation": "List all applicable schedules", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/GetRdpFileContents/action", + "display": { + "description": "Gets a string that represents the contents of the RDP file for the virtual machine", + "operation": "Get RDP file contents", + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" + } + }, + { + "name": "Microsoft.DevTestLab/labs/formulas/delete", + "display": { + "description": "Delete formulas.", + "operation": "Delete formulas.", + "provider": "Microsoft DevTest Labs", + "resource": "Formulas" + } + }, + { + "name": "Microsoft.DevTestLab/labs/formulas/read", + "display": { + "description": "Read formulas.", + "operation": "Read formulas.", + "provider": "Microsoft DevTest Labs", + "resource": "Formulas" + } + }, + { + "name": "Microsoft.DevTestLab/labs/formulas/write", + "display": { + "description": "Add or modify formulas.", + "operation": "Add or modify formulas.", + "provider": "Microsoft DevTest Labs", + "resource": "Formulas" + } + }, + { + "name": "Microsoft.DevTestLab/labs/costs/read", + "display": { + "description": "Read costs.", + "operation": "Read costs.", + "provider": "Microsoft DevTest Labs", + "resource": "costs" + } + }, + { + "name": "Microsoft.DevTestLab/labs/costs/write", + "display": { + "description": "Add or modify costs.", + "operation": "Add or modify costs.", + "provider": "Microsoft DevTest Labs", + "resource": "costs" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/disks/delete", + "display": { + "description": "Delete disks.", + "operation": "Delete disks.", + "provider": "Microsoft DevTest Labs", + "resource": "disks" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/disks/read", + "display": { + "description": "Read disks.", + "operation": "Read disks.", + "provider": "Microsoft DevTest Labs", + "resource": "disks" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/disks/write", + "display": { + "description": "Add or modify disks.", + "operation": "Add or modify disks.", + "provider": "Microsoft DevTest Labs", + "resource": "disks" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/disks/Attach/action", + "display": { + "description": "Attach and create the lease of the disk to the virtual machine.", + "operation": "Attach disk", + "provider": "Microsoft DevTest Labs", + "resource": "disks" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/disks/Detach/action", + "display": { + "description": "Detach and break the lease of the disk attached to the virtual machine.", + "operation": "Detach and break the lease of the disk attached to the virtual machine", + "provider": "Microsoft DevTest Labs", + "resource": "disks" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/delete", + "display": { + "description": "Delete user profiles.", + "operation": "Delete user profiles.", + "provider": "Microsoft DevTest Labs", + "resource": "user profiles" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/read", + "display": { + "description": "Read user profiles.", + "operation": "Read user profiles.", + "provider": "Microsoft DevTest Labs", + "resource": "user profiles" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/write", + "display": { + "description": "Add or modify user profiles.", + "operation": "Add or modify user profiles.", + "provider": "Microsoft DevTest Labs", + "resource": "user profiles" + } + }, + { + "name": "Microsoft.DevTestLab/labs/notificationChannels/delete", + "display": { + "description": "Delete notification channels.", + "operation": "Delete notification channels.", + "provider": "Microsoft DevTest Labs", + "resource": "notificationChannels" + } + }, + { + "name": "Microsoft.DevTestLab/labs/notificationChannels/read", + "display": { + "description": "Read notification channels.", + "operation": "Read notification channels.", + "provider": "Microsoft DevTest Labs", + "resource": "notificationChannels" + } + }, + { + "name": "Microsoft.DevTestLab/labs/notificationChannels/write", + "display": { + "description": "Add or modify notification channels.", + "operation": "Add or modify notification channels.", + "provider": "Microsoft DevTest Labs", + "resource": "notificationChannels" + } + }, + { + "name": "Microsoft.DevTestLab/labs/notificationChannels/Notify/action", + "display": { + "description": "Send notification to provided channel.", + "operation": "Notify", + "provider": "Microsoft DevTest Labs", + "resource": "notificationChannels" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/secrets/delete", + "display": { + "description": "Delete secrets.", + "operation": "Delete secrets.", + "provider": "Microsoft DevTest Labs", + "resource": "secrets" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/secrets/read", + "display": { + "description": "Read secrets.", + "operation": "Read secrets.", + "provider": "Microsoft DevTest Labs", + "resource": "secrets" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/secrets/write", + "display": { + "description": "Add or modify secrets.", + "operation": "Add or modify secrets.", + "provider": "Microsoft DevTest Labs", + "resource": "secrets" + } + }, + { + "name": "Microsoft.DevTestLab/locations/operations/read", + "display": { + "description": "Read operations.", + "operation": "Read operations.", + "provider": "Microsoft DevTest Labs", + "resource": "operations" + } + }, + { + "name": "Microsoft.DevTestLab/labs/artifactSources/armTemplates/read", + "display": { + "description": "Read azure resource manager templates.", + "operation": "Read azure resource manager templates.", + "provider": "Microsoft DevTest Labs", + "resource": "Azure Resource Manager templates" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/environments/delete", + "display": { + "description": "Delete environments.", + "operation": "Delete environments.", + "provider": "Microsoft DevTest Labs", + "resource": "environments" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/environments/read", + "display": { + "description": "Read environments.", + "operation": "Read environments.", + "provider": "Microsoft DevTest Labs", + "resource": "environments" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/environments/write", + "display": { + "description": "Add or modify environments.", + "operation": "Add or modify environments.", + "provider": "Microsoft DevTest Labs", + "resource": "environments" + } + }, + { + "name": "Microsoft.DevTestLab/labs/serviceRunners/delete", + "display": { + "description": "Delete service runners.", + "operation": "Delete service runners.", + "provider": "Microsoft DevTest Labs", + "resource": "Service runners" + } + }, + { + "name": "Microsoft.DevTestLab/labs/serviceRunners/read", + "display": { + "description": "Read service runners.", + "operation": "Read service runners.", + "provider": "Microsoft DevTest Labs", + "resource": "Service runners" + } + }, + { + "name": "Microsoft.DevTestLab/labs/serviceRunners/write", + "display": { + "description": "Add or modify service runners.", + "operation": "Add or modify service runners.", + "provider": "Microsoft DevTest Labs", + "resource": "Service runners" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/delete", + "display": { + "description": "Delete service fabrics.", + "operation": "Delete service fabrics.", + "provider": "Microsoft DevTest Labs", + "resource": "Service Fabrics" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/read", + "display": { + "description": "Read service fabrics.", + "operation": "Read service fabrics.", + "provider": "Microsoft DevTest Labs", + "resource": "Service Fabrics" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/write", + "display": { + "description": "Add or modify service fabrics.", + "operation": "Add or modify service fabrics.", + "provider": "Microsoft DevTest Labs", + "resource": "Service Fabrics" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/Start/action", + "display": { + "description": "Start a service fabric.", + "operation": "Start service fabric", + "provider": "Microsoft DevTest Labs", + "resource": "Service Fabrics" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/Stop/action", + "display": { + "description": "Stop a service fabric", + "operation": "Stop service fabric", + "provider": "Microsoft DevTest Labs", + "resource": "Service Fabrics" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/ListApplicableSchedules/action", + "display": { + "description": "Lists all applicable schedules", + "operation": "List all applicable schedules", + "provider": "Microsoft DevTest Labs", + "resource": "Service Fabrics" + } + } + ] + } + } + }, + "operationId": "Operations_List", + "title": "Operations_List" +} From 3efb1ab7de0afc9a1eb59b3888fd102023d847c3 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Wed, 25 Jun 2025 15:41:24 -0700 Subject: [PATCH 33/59] Change to custom azure resource --- .../ArmTemplate.tsp | 36 +- .../Artifact.tsp | 34 +- .../ArtifactSource.tsp | 34 +- .../CustomImage.tsp | 34 +- .../Microsoft.DevTestLab.Management/Disk.tsp | 33 +- .../DtlEnvironment.tsp | 34 +- .../Formula.tsp | 33 +- .../LabCost.tsp | 33 +- .../LabVirtualMachine.tsp | 35 +- .../NotificationChannel.tsp | 36 +- .../Policy.tsp | 36 +- .../Schedule.tsp | 36 +- .../Secret.tsp | 33 +- .../ServiceFabric.tsp | 36 +- .../ServiceRunner.tsp | 34 +- .../Microsoft.DevTestLab.Management/User.tsp | 33 +- .../VirtualNetwork.tsp | 35 +- .../VirtualNetworks_CreateOrUpdate.json | 2 +- .../2018-09-15/VirtualNetworks_Delete.json | 2 +- .../2018-09-15/VirtualNetworks_Get.json | 2 +- .../2018-09-15/VirtualNetworks_Update.json | 2 +- .../stable/2018-09-15/DTL.json | 333 ++++++------------ .../VirtualNetworks_CreateOrUpdate.json | 2 +- .../examples/VirtualNetworks_Delete.json | 2 +- .../examples/VirtualNetworks_Get.json | 2 +- .../examples/VirtualNetworks_Update.json | 2 +- 26 files changed, 356 insertions(+), 578 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp index 0d592669bbb8..f93288b41065 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp @@ -12,27 +12,21 @@ namespace Microsoft.DevTestLab; /** * An Azure Resource Manager template. */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-custom-resource-usage-discourage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" @parentResource(ArtifactSource) -model ArmTemplate - is Azure.ResourceManager.ProxyResource { - ...ResourceNameParameter< - Resource = ArmTemplate, - SegmentName = "armtemplates", - NamePattern = "" - >; - - /** - * The location of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - location?: string; +@Azure.ResourceManager.Legacy.customAzureResource +@Http.Private.includeInapplicableMetadataInPayload(false) +model ArmTemplate extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("armtemplates") + armTemplateName: string; - /** - * The tags of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." - tags?: Record; + properties: ArmTemplateProperties; } @armResourceOperations @@ -85,7 +79,9 @@ interface ArmTemplates { >; } -@@doc(ArmTemplate.name, "The name of the azure resource manager template."); +@@doc(ArmTemplate.armTemplateName, + "The name of the azure resource manager template." +); @@doc(ArmTemplate.properties, "The properties of the resource."); @@doc(ArmTemplate.tags, "The tags of the resource."); @@doc(ArmTemplate.location, "The location of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp index 75d37700c86f..291764ff6d8c 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp @@ -13,27 +13,21 @@ namespace Microsoft.DevTestLab; /** * An artifact. */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-custom-resource-usage-discourage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" @parentResource(ArtifactSource) -model Artifact - is Azure.ResourceManager.ProxyResource { - ...ResourceNameParameter< - Resource = Artifact, - SegmentName = "artifacts", - NamePattern = "" - >; - - /** - * The location of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - location?: string; +@Azure.ResourceManager.Legacy.customAzureResource +@Http.Private.includeInapplicableMetadataInPayload(false) +model Artifact extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("artifacts") + artifactName: string; - /** - * The tags of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." - tags?: Record; + properties: ArtifactProperties; } @armResourceOperations @@ -95,7 +89,7 @@ interface Artifacts { >; } -@@doc(Artifact.name, "The name of the artifact."); +@@doc(Artifact.artifactName, "The name of the artifact."); @@doc(Artifact.properties, "The properties of the resource."); @@doc(Artifacts.generateArmTemplate::parameters.body, "Parameters for generating an ARM template for deploying artifacts." diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp index 9dc6125e4985..d8ef2c99348f 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp @@ -13,27 +13,21 @@ namespace Microsoft.DevTestLab; /** * Properties of an artifact source. */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-custom-resource-usage-discourage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" @parentResource(Lab) -model ArtifactSource - is Azure.ResourceManager.ProxyResource { - ...ResourceNameParameter< - Resource = ArtifactSource, - SegmentName = "artifactsources", - NamePattern = "" - >; - - /** - * The location of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - location?: string; +@Azure.ResourceManager.Legacy.customAzureResource +@Http.Private.includeInapplicableMetadataInPayload(false) +model ArtifactSource extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("artifactsources") + artifactSourceName: string; - /** - * The tags of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." - tags?: Record; + properties: ArtifactSourceProperties; } @armResourceOperations @@ -106,7 +100,7 @@ interface ArtifactSources { >; } -@@doc(ArtifactSource.name, "The name of the artifact source."); +@@doc(ArtifactSource.artifactSourceName, "The name of the artifact source."); @@doc(ArtifactSource.properties, "The properties of the resource."); @@doc(ArtifactSources.createOrUpdate::parameters.resource, "Properties of an artifact source." diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp index 0cca19d3edc0..40d377a3b6c3 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp @@ -13,27 +13,21 @@ namespace Microsoft.DevTestLab; /** * A custom image. */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-custom-resource-usage-discourage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" @parentResource(Lab) -model CustomImage - is Azure.ResourceManager.ProxyResource { - ...ResourceNameParameter< - Resource = CustomImage, - SegmentName = "customimages", - NamePattern = "" - >; - - /** - * The location of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - location?: string; +@Azure.ResourceManager.Legacy.customAzureResource +@Http.Private.includeInapplicableMetadataInPayload(false) +model CustomImage extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("customimages") + customImageName: string; - /** - * The tags of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." - tags?: Record; + properties: CustomImageProperties; } @armResourceOperations @@ -110,7 +104,7 @@ interface CustomImages { >; } -@@doc(CustomImage.name, "The name of the custom image."); +@@doc(CustomImage.customImageName, "The name of the custom image."); @@doc(CustomImage.properties, "The properties of the resource."); @@doc(CustomImages.createOrUpdate::parameters.resource, "A custom image."); @@doc(CustomImages.update::parameters.properties, "A custom image."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp index 4f1bfae63992..adff517f77fa 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp @@ -13,26 +13,21 @@ namespace Microsoft.DevTestLab; /** * A Disk. */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-custom-resource-usage-discourage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" @parentResource(User) -model Disk is Azure.ResourceManager.ProxyResource { - ...ResourceNameParameter< - Resource = Disk, - SegmentName = "disks", - NamePattern = "" - >; - - /** - * The location of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - location?: string; +@Azure.ResourceManager.Legacy.customAzureResource +@Http.Private.includeInapplicableMetadataInPayload(false) +model Disk extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("disks") + diskName: string; - /** - * The tags of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." - tags?: Record; + properties: DiskProperties; } @armResourceOperations @@ -119,7 +114,7 @@ interface Disks { detach is ArmResourceActionAsync; } -@@doc(Disk.name, "The name of the disk."); +@@doc(Disk.diskName, "The name of the disk."); @@doc(Disk.properties, "The properties of the resource."); @@doc(Disk.location, "The location of the resource."); @@doc(Disk.tags, "The tags of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp index 9accf12f32cf..df8d496ab4b7 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp @@ -13,27 +13,21 @@ namespace Microsoft.DevTestLab; /** * An environment, which is essentially an ARM template deployment. */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-custom-resource-usage-discourage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" @parentResource(User) -model DtlEnvironment - is Azure.ResourceManager.ProxyResource { - ...ResourceNameParameter< - Resource = DtlEnvironment, - SegmentName = "environments", - NamePattern = "" - >; - - /** - * The location of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - location?: string; +@Azure.ResourceManager.Legacy.customAzureResource +@Http.Private.includeInapplicableMetadataInPayload(false) +model DtlEnvironment extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("environments") + dtlEnvironmentName: string; - /** - * The tags of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." - tags?: Record; + properties: EnvironmentProperties; } @armResourceOperations @@ -123,7 +117,7 @@ interface DtlEnvironments { >; } -@@doc(DtlEnvironment.name, "The name of the environment."); +@@doc(DtlEnvironment.dtlEnvironmentName, "The name of the environment."); @@doc(DtlEnvironment.properties, "The properties of the resource."); @@doc(DtlEnvironment.location, "The location of the resource."); @@doc(DtlEnvironment.tags, "The tags of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp index ef6bc0a635ff..bf97e0cda0aa 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp @@ -13,26 +13,21 @@ namespace Microsoft.DevTestLab; /** * A formula for creating a VM, specifying an image base and other parameters */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-custom-resource-usage-discourage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" @parentResource(Lab) -model Formula is Azure.ResourceManager.ProxyResource { - ...ResourceNameParameter< - Resource = Formula, - SegmentName = "formulas", - NamePattern = "" - >; - - /** - * The location of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - location?: string; +@Azure.ResourceManager.Legacy.customAzureResource +@Http.Private.includeInapplicableMetadataInPayload(false) +model Formula extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("formulas") + formulaName: string; - /** - * The tags of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." - tags?: Record; + properties: FormulaProperties; } @armResourceOperations @@ -105,7 +100,7 @@ interface Formulas { >; } -@@doc(Formula.name, "The name of the formula."); +@@doc(Formula.formulaName, "The name of the formula."); @@doc(Formula.properties, "The properties of the resource."); @@doc(Formulas.createOrUpdate::parameters.resource, "A formula for creating a VM, specifying an image base and other parameters" diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp index ea80a2298ed0..2702e2038099 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp @@ -13,26 +13,21 @@ namespace Microsoft.DevTestLab; /** * A cost item. */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-custom-resource-usage-discourage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" @parentResource(Lab) -model LabCost is Azure.ResourceManager.ProxyResource { - ...ResourceNameParameter< - Resource = LabCost, - SegmentName = "costs", - NamePattern = "" - >; - - /** - * The location of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - location?: string; +@Azure.ResourceManager.Legacy.customAzureResource +@Http.Private.includeInapplicableMetadataInPayload(false) +model LabCost extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("costs") + labCostName: string; - /** - * The tags of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." - tags?: Record; + properties: LabCostProperties; } #suppress "@azure-tools/typespec-azure-resource-manager/no-resource-delete-operation" "For backward compatibility" @@ -62,7 +57,7 @@ interface LabCosts { createOrUpdate is ArmResourceCreateOrReplaceSync; } -@@doc(LabCost.name, "The name of the cost."); +@@doc(LabCost.labCostName, "The name of the cost."); @@doc(LabCost.properties, "The properties of the resource."); @@doc(LabCosts.createOrUpdate::parameters.resource, "A cost item."); @@doc(LabCost.tags, "The tags of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp index 6dca522c7372..20a7e26e5c2d 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp @@ -13,28 +13,21 @@ namespace Microsoft.DevTestLab; /** * A virtual machine. */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-custom-resource-usage-discourage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" @parentResource(Lab) -model LabVirtualMachine - is Azure.ResourceManager.ProxyResource { - ...ResourceNameParameter< - Resource = LabVirtualMachine, - KeyName = "name", - SegmentName = "virtualmachines", - NamePattern = "" - >; - - /** - * The location of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - location?: string; - - /** - * The tags of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." - tags?: Record; +@Azure.ResourceManager.Legacy.customAzureResource +@Http.Private.includeInapplicableMetadataInPayload(false) +model LabVirtualMachine extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("virtualmachines") + name: string; + + properties: LabVirtualMachineProperties; } @armResourceOperations diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp index ac4c4e292657..035f3b6b1d6e 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp @@ -12,27 +12,21 @@ namespace Microsoft.DevTestLab; /** * A notification. */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-custom-resource-usage-discourage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" @parentResource(Lab) -model NotificationChannel - is Azure.ResourceManager.ProxyResource { - ...ResourceNameParameter< - Resource = NotificationChannel, - SegmentName = "notificationchannels", - NamePattern = "" - >; - - /** - * The location of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - location?: string; +@Azure.ResourceManager.Legacy.customAzureResource +@Http.Private.includeInapplicableMetadataInPayload(false) +model NotificationChannel extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("notificationchannels") + notificationChannelName: string; - /** - * The tags of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." - tags?: Record; + properties: NotificationChannelProperties; } @armResourceOperations @@ -114,7 +108,9 @@ interface NotificationChannels { >; } -@@doc(NotificationChannel.name, "The name of the notification channel."); +@@doc(NotificationChannel.notificationChannelName, + "The name of the notification channel." +); @@doc(NotificationChannel.properties, "The properties of the resource."); @@doc(NotificationChannel.location, "The location of the resource."); @@doc(NotificationChannel.tags, "The tags of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp index 72d0dc524a87..241c7687e7ca 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp @@ -13,26 +13,20 @@ namespace Microsoft.DevTestLab; /** * A Policy. */ -model Policy is Azure.ResourceManager.ProxyResource { - ...ResourceNameParameter< - Resource = Policy, - KeyName = "name", - SegmentName = "policies", - NamePattern = "" - >; - - /** - * The location of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - location?: string; - - /** - * The tags of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." - tags?: Record; +#suppress "@azure-tools/typespec-azure-resource-manager/arm-custom-resource-usage-discourage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +@Azure.ResourceManager.Legacy.customAzureResource +@Http.Private.includeInapplicableMetadataInPayload(false) +model Policy extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("policies") + policyName: string; + + properties: PolicyProperties; } @armResourceOperations @@ -125,7 +119,7 @@ interface Policies { >; } -@@doc(Policy.name, "The name of the policy."); +@@doc(Policy.policyName, "The name of the policy."); @@doc(Policy.properties, "The properties of the resource."); @@doc(Policy.location, "The location of the resource."); @@doc(Policy.tags, "The tags of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp index 2bf0ebe63c2b..32462113da96 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp @@ -13,26 +13,20 @@ namespace Microsoft.DevTestLab; /** * A schedule. */ -model Schedule - is Azure.ResourceManager.ProxyResource { - ...ResourceNameParameter< - Resource = Schedule, - SegmentName = "schedules", - NamePattern = "" - >; - - /** - * The location of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - location?: string; - - /** - * The tags of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." - tags?: Record; +#suppress "@azure-tools/typespec-azure-resource-manager/arm-custom-resource-usage-discourage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +@Azure.ResourceManager.Legacy.customAzureResource +@Http.Private.includeInapplicableMetadataInPayload(false) +model Schedule extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("schedules") + scheduleName: string; + + properties: ScheduleProperties; } @armResourceOperations @@ -499,7 +493,7 @@ interface VirtualMachineSchedules { execute is VirtualMachineScheduleOps.ActionAsync; } -@@doc(Schedule.name, "The name of the schedule."); +@@doc(Schedule.scheduleName, "The name of the schedule."); @@doc(Schedule.properties, "The properties of the resource."); @@doc(Schedule.location, "The location of the resource."); @@doc(Schedule.tags, "The tags of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp index 3d86cc27357e..f6215e48d447 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp @@ -13,26 +13,21 @@ namespace Microsoft.DevTestLab; /** * A secret. */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-custom-resource-usage-discourage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" @parentResource(User) -model Secret is Azure.ResourceManager.ProxyResource { - ...ResourceNameParameter< - Resource = Secret, - SegmentName = "secrets", - NamePattern = "" - >; - - /** - * The location of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - location?: string; +@Azure.ResourceManager.Legacy.customAzureResource +@Http.Private.includeInapplicableMetadataInPayload(false) +model Secret extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("secrets") + secretName: string; - /** - * The tags of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." - tags?: Record; + properties: SecretProperties; } @armResourceOperations @@ -105,7 +100,7 @@ interface Secrets { >; } -@@doc(Secret.name, "The name of the secret."); +@@doc(Secret.secretName, "The name of the secret."); @@doc(Secret.properties, "The properties of the resource."); @@doc(Secret.location, "The location of the resource."); @@doc(Secret.tags, "The tags of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp index 6916ee5583da..150fb756021c 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp @@ -13,27 +13,21 @@ namespace Microsoft.DevTestLab; /** * A Service Fabric. */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-custom-resource-usage-discourage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" @parentResource(User) -model ServiceFabric - is Azure.ResourceManager.ProxyResource { - ...ResourceNameParameter< - Resource = ServiceFabric, - SegmentName = "servicefabrics", - NamePattern = "" - >; - - /** - * The location of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - location?: string; - - /** - * The tags of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." - tags?: Record; +@Azure.ResourceManager.Legacy.customAzureResource +@Http.Private.includeInapplicableMetadataInPayload(false) +model ServiceFabric extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("servicefabrics") + serviceFabricName: string; + + properties: ServiceFabricProperties; } @armResourceOperations @@ -132,7 +126,7 @@ interface ServiceFabrics { stop is ArmResourceActionAsync; } -@@doc(ServiceFabric.name, "The name of the service fabric."); +@@doc(ServiceFabric.serviceFabricName, "The name of the service fabric."); @@doc(ServiceFabric.properties, "The properties of the resource."); @@doc(ServiceFabric.location, "The location of the resource."); @@doc(ServiceFabric.tags, "The tags of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp index 5a81a0c47e3c..2d2b982b5eae 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp @@ -10,32 +10,24 @@ using TypeSpec.Http; using TypeSpec.OpenAPI; namespace Microsoft.DevTestLab; -// FIXME: ServiceRunner has no properties property /** * A container for a managed identity to execute DevTest lab services. */ #suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "For backward compatibility" #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-custom-resource-usage-discourage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" @parentResource(Lab) -model ServiceRunner is Azure.ResourceManager.ProxyResource<{}> { - ...ResourceNameParameter< - Resource = ServiceRunner, - SegmentName = "servicerunners", - NamePattern = "" - >; - - /** - * The location of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - location?: string; - - /** - * The tags of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." - tags?: Record; +@Azure.ResourceManager.Legacy.customAzureResource +@Http.Private.includeInapplicableMetadataInPayload(false) +model ServiceRunner extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("servicerunners") + serviceRunnerName: string; /** * The identity of the resource. @@ -62,7 +54,7 @@ interface ServiceRunners { delete is ArmResourceDeleteSync; } -@@doc(ServiceRunner.name, "The name of the service runner."); +@@doc(ServiceRunner.serviceRunnerName, "The name of the service runner."); @@doc(ServiceRunner.location, "The location of the resource."); @@doc(ServiceRunner.tags, "The tags of the resource."); @@doc(ServiceRunners.createOrUpdate::parameters.resource, diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp index 2f1df99f885f..f31d2d10b4b7 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp @@ -13,26 +13,21 @@ namespace Microsoft.DevTestLab; /** * Profile of a lab user. */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-custom-resource-usage-discourage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" @parentResource(Lab) -model User is Azure.ResourceManager.ProxyResource { - ...ResourceNameParameter< - Resource = User, - SegmentName = "users", - NamePattern = "" - >; - - /** - * The location of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - location?: string; +@Azure.ResourceManager.Legacy.customAzureResource +@Http.Private.includeInapplicableMetadataInPayload(false) +model User extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("users") + userName: string; - /** - * The tags of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." - tags?: Record; + properties: UserProperties; } @armResourceOperations @@ -109,7 +104,7 @@ interface Users { >; } -@@doc(User.name, "The name of the user profile."); +@@doc(User.userName, "The name of the user profile."); @@doc(User.properties, "The properties of the resource."); @@doc(User.location, "The location of the resource."); @@doc(User.tags, "The tags of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp index 8a814427a206..377c44682523 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp @@ -13,28 +13,21 @@ namespace Microsoft.DevTestLab; /** * A virtual network. */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-custom-resource-usage-discourage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" @parentResource(Lab) -model VirtualNetwork - is Azure.ResourceManager.ProxyResource { - ...ResourceNameParameter< - Resource = VirtualNetwork, - KeyName = "name", - SegmentName = "virtualnetworks", - NamePattern = "" - >; - - /** - * The location of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - location?: string; +@Azure.ResourceManager.Legacy.customAzureResource +@Http.Private.includeInapplicableMetadataInPayload(false) +model VirtualNetwork extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("virtualnetworks") + virtualNetworkName: string; - /** - * The tags of the resource. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required to avoid SDK breaking change." - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Required to avoid SDK breaking change." - tags?: Record; + properties: VirtualNetworkProperties; } @armResourceOperations @@ -114,7 +107,7 @@ interface VirtualNetworks { >; } -@@doc(VirtualNetwork.name, "The name of the virtual network."); +@@doc(VirtualNetwork.virtualNetworkName, "The name of the virtual network."); @@doc(VirtualNetwork.properties, "The properties of the resource."); @@doc(VirtualNetwork.location, "The location of the resource."); @@doc(VirtualNetwork.tags, "The tags of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_CreateOrUpdate.json index 67ecc134909a..147d504cdf1b 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{virtualNetworkName}", + "virtualNetworkName": "{virtualNetworkName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Delete.json index 0afd481bedec..ccb458255832 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{virtualNetworkName}", + "virtualNetworkName": "{virtualNetworkName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Get.json index 2bb4fe724969..229a3622afd4 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{virtualNetworkName}", + "virtualNetworkName": "{virtualNetworkName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Update.json index efbb53085882..2fa5f5c85475 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{virtualNetworkName}", + "virtualNetworkName": "{virtualNetworkName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index 2b7b035b7d53..c28169da9b95 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -8433,7 +8433,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualnetworks/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualnetworks/{virtualNetworkName}": { "get": { "operationId": "VirtualNetworks_Get", "tags": [ @@ -8458,7 +8458,7 @@ "type": "string" }, { - "name": "name", + "name": "virtualNetworkName", "in": "path", "description": "The name of the virtual network.", "required": true, @@ -8516,7 +8516,7 @@ "type": "string" }, { - "name": "name", + "name": "virtualNetworkName", "in": "path", "description": "The name of the virtual network.", "required": true, @@ -8597,7 +8597,7 @@ "type": "string" }, { - "name": "name", + "name": "virtualNetworkName", "in": "path", "description": "The name of the virtual network.", "required": true, @@ -8657,7 +8657,7 @@ "type": "string" }, { - "name": "name", + "name": "virtualNetworkName", "in": "path", "description": "The name of the virtual network.", "required": true, @@ -9180,17 +9180,6 @@ "$ref": "#/definitions/ArmTemplateProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true - }, - "location": { - "type": "string", - "description": "The location of the resource." - }, - "tags": { - "type": "object", - "description": "The tags of the resource.", - "additionalProperties": { - "type": "string" - } } }, "required": [ @@ -9198,7 +9187,7 @@ ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + "$ref": "#/definitions/Resource" } ] }, @@ -9227,7 +9216,11 @@ "description": "The ArmTemplate items on this page", "items": { "$ref": "#/definitions/ArmTemplate" - } + }, + "x-ms-identifiers": [ + "armTemplateName", + "id" + ] }, "nextLink": { "type": "string", @@ -9313,17 +9306,6 @@ "$ref": "#/definitions/ArtifactProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true - }, - "location": { - "type": "string", - "description": "The location of the resource." - }, - "tags": { - "type": "object", - "description": "The tags of the resource.", - "additionalProperties": { - "type": "string" - } } }, "required": [ @@ -9331,7 +9313,7 @@ ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + "$ref": "#/definitions/Resource" } ] }, @@ -9402,7 +9384,11 @@ "description": "The Artifact items on this page", "items": { "$ref": "#/definitions/Artifact" - } + }, + "x-ms-identifiers": [ + "artifactName", + "id" + ] }, "nextLink": { "type": "string", @@ -9484,17 +9470,6 @@ "$ref": "#/definitions/ArtifactSourceProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true - }, - "location": { - "type": "string", - "description": "The location of the resource." - }, - "tags": { - "type": "object", - "description": "The tags of the resource.", - "additionalProperties": { - "type": "string" - } } }, "required": [ @@ -9502,7 +9477,7 @@ ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + "$ref": "#/definitions/Resource" } ] }, @@ -9524,7 +9499,11 @@ "description": "The ArtifactSource items on this page", "items": { "$ref": "#/definitions/ArtifactSource" - } + }, + "x-ms-identifiers": [ + "artifactSourceName", + "id" + ] }, "nextLink": { "type": "string", @@ -9798,17 +9777,6 @@ "$ref": "#/definitions/CustomImageProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true - }, - "location": { - "type": "string", - "description": "The location of the resource." - }, - "tags": { - "type": "object", - "description": "The tags of the resource.", - "additionalProperties": { - "type": "string" - } } }, "required": [ @@ -9816,7 +9784,7 @@ ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + "$ref": "#/definitions/Resource" } ] }, @@ -9838,7 +9806,11 @@ "description": "The CustomImage items on this page", "items": { "$ref": "#/definitions/CustomImage" - } + }, + "x-ms-identifiers": [ + "customImageName", + "id" + ] }, "nextLink": { "type": "string", @@ -10066,17 +10038,6 @@ "$ref": "#/definitions/DiskProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true - }, - "location": { - "type": "string", - "description": "The location of the resource." - }, - "tags": { - "type": "object", - "description": "The tags of the resource.", - "additionalProperties": { - "type": "string" - } } }, "required": [ @@ -10084,7 +10045,7 @@ ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + "$ref": "#/definitions/Resource" } ] }, @@ -10106,7 +10067,11 @@ "description": "The Disk items on this page", "items": { "$ref": "#/definitions/Disk" - } + }, + "x-ms-identifiers": [ + "diskName", + "id" + ] }, "nextLink": { "type": "string", @@ -10181,17 +10146,6 @@ "$ref": "#/definitions/EnvironmentProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true - }, - "location": { - "type": "string", - "description": "The location of the resource." - }, - "tags": { - "type": "object", - "description": "The tags of the resource.", - "additionalProperties": { - "type": "string" - } } }, "required": [ @@ -10199,7 +10153,7 @@ ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + "$ref": "#/definitions/Resource" } ] }, @@ -10221,7 +10175,11 @@ "description": "The DtlEnvironment items on this page", "items": { "$ref": "#/definitions/DtlEnvironment" - } + }, + "x-ms-identifiers": [ + "dtlEnvironmentName", + "id" + ] }, "nextLink": { "type": "string", @@ -10447,17 +10405,6 @@ "$ref": "#/definitions/FormulaProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true - }, - "location": { - "type": "string", - "description": "The location of the resource." - }, - "tags": { - "type": "object", - "description": "The tags of the resource.", - "additionalProperties": { - "type": "string" - } } }, "required": [ @@ -10465,7 +10412,7 @@ ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + "$ref": "#/definitions/Resource" } ] }, @@ -10487,7 +10434,11 @@ "description": "The Formula items on this page", "items": { "$ref": "#/definitions/Formula" - } + }, + "x-ms-identifiers": [ + "formulaName", + "id" + ] }, "nextLink": { "type": "string", @@ -11105,17 +11056,6 @@ "$ref": "#/definitions/LabCostProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true - }, - "location": { - "type": "string", - "description": "The location of the resource." - }, - "tags": { - "type": "object", - "description": "The tags of the resource.", - "additionalProperties": { - "type": "string" - } } }, "required": [ @@ -11123,7 +11063,7 @@ ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + "$ref": "#/definitions/Resource" } ] }, @@ -11454,17 +11394,6 @@ "$ref": "#/definitions/LabVirtualMachineProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true - }, - "location": { - "type": "string", - "description": "The location of the resource." - }, - "tags": { - "type": "object", - "description": "The tags of the resource.", - "additionalProperties": { - "type": "string" - } } }, "required": [ @@ -11472,7 +11401,7 @@ ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + "$ref": "#/definitions/Resource" } ] }, @@ -11637,7 +11566,11 @@ "description": "The LabVirtualMachine items on this page", "items": { "$ref": "#/definitions/LabVirtualMachine" - } + }, + "x-ms-identifiers": [ + "properties/applicableSchedule/properties/labVmsShutdown/scheduleName", + "id" + ] }, "nextLink": { "type": "string", @@ -11941,17 +11874,6 @@ "$ref": "#/definitions/NotificationChannelProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true - }, - "location": { - "type": "string", - "description": "The location of the resource." - }, - "tags": { - "type": "object", - "description": "The tags of the resource.", - "additionalProperties": { - "type": "string" - } } }, "required": [ @@ -11959,7 +11881,7 @@ ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + "$ref": "#/definitions/Resource" } ] }, @@ -12003,7 +11925,11 @@ "description": "The NotificationChannel items on this page", "items": { "$ref": "#/definitions/NotificationChannel" - } + }, + "x-ms-identifiers": [ + "notificationChannelName", + "id" + ] }, "nextLink": { "type": "string", @@ -12182,17 +12108,6 @@ "$ref": "#/definitions/PolicyProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true - }, - "location": { - "type": "string", - "description": "The location of the resource." - }, - "tags": { - "type": "object", - "description": "The tags of the resource.", - "additionalProperties": { - "type": "string" - } } }, "required": [ @@ -12200,7 +12115,7 @@ ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + "$ref": "#/definitions/Resource" } ] }, @@ -12306,7 +12221,11 @@ "description": "The Policy items on this page", "items": { "$ref": "#/definitions/Policy" - } + }, + "x-ms-identifiers": [ + "policyName", + "id" + ] }, "nextLink": { "type": "string", @@ -12552,17 +12471,6 @@ "$ref": "#/definitions/ScheduleProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true - }, - "location": { - "type": "string", - "description": "The location of the resource." - }, - "tags": { - "type": "object", - "description": "The tags of the resource.", - "additionalProperties": { - "type": "string" - } } }, "required": [ @@ -12570,7 +12478,7 @@ ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + "$ref": "#/definitions/Resource" } ] }, @@ -12657,7 +12565,11 @@ "description": "The Schedule items on this page", "items": { "$ref": "#/definitions/Schedule" - } + }, + "x-ms-identifiers": [ + "scheduleName", + "id" + ] }, "nextLink": { "type": "string", @@ -12731,17 +12643,6 @@ "$ref": "#/definitions/SecretProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true - }, - "location": { - "type": "string", - "description": "The location of the resource." - }, - "tags": { - "type": "object", - "description": "The tags of the resource.", - "additionalProperties": { - "type": "string" - } } }, "required": [ @@ -12749,7 +12650,7 @@ ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + "$ref": "#/definitions/Resource" } ] }, @@ -12771,7 +12672,11 @@ "description": "The Secret items on this page", "items": { "$ref": "#/definitions/Secret" - } + }, + "x-ms-identifiers": [ + "secretName", + "id" + ] }, "nextLink": { "type": "string", @@ -12811,17 +12716,6 @@ "$ref": "#/definitions/ServiceFabricProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true - }, - "location": { - "type": "string", - "description": "The location of the resource." - }, - "tags": { - "type": "object", - "description": "The tags of the resource.", - "additionalProperties": { - "type": "string" - } } }, "required": [ @@ -12829,7 +12723,7 @@ ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + "$ref": "#/definitions/Resource" } ] }, @@ -12851,7 +12745,12 @@ "description": "The ServiceFabric items on this page", "items": { "$ref": "#/definitions/ServiceFabric" - } + }, + "x-ms-identifiers": [ + "serviceFabricName", + "properties/applicableSchedule/properties/labVmsShutdown/scheduleName", + "id" + ] }, "nextLink": { "type": "string", @@ -12896,22 +12795,6 @@ "type": "object", "description": "A container for a managed identity to execute DevTest lab services.", "properties": { - "properties": { - "type": "object", - "description": "The resource-specific properties for this resource.", - "x-ms-client-flatten": true - }, - "location": { - "type": "string", - "description": "The location of the resource." - }, - "tags": { - "type": "object", - "description": "The tags of the resource.", - "additionalProperties": { - "type": "string" - } - }, "identity": { "$ref": "#/definitions/IdentityProperties", "description": "The identity of the resource." @@ -12919,7 +12802,7 @@ }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + "$ref": "#/definitions/Resource" } ] }, @@ -13186,22 +13069,14 @@ "$ref": "#/definitions/UserProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true - }, - "location": { - "type": "string", - "description": "The location of the resource." - }, - "tags": { - "type": "object", - "description": "The tags of the resource.", - "additionalProperties": { - "type": "string" - } } }, + "required": [ + "properties" + ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + "$ref": "#/definitions/Resource" } ] }, @@ -13249,7 +13124,11 @@ "description": "The User items on this page", "items": { "$ref": "#/definitions/User" - } + }, + "x-ms-identifiers": [ + "userName", + "id" + ] }, "nextLink": { "type": "string", @@ -13340,22 +13219,14 @@ "$ref": "#/definitions/VirtualNetworkProperties", "description": "The properties of the resource.", "x-ms-client-flatten": true - }, - "location": { - "type": "string", - "description": "The location of the resource." - }, - "tags": { - "type": "object", - "description": "The tags of the resource.", - "additionalProperties": { - "type": "string" - } } }, + "required": [ + "properties" + ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + "$ref": "#/definitions/Resource" } ] }, @@ -13377,7 +13248,11 @@ "description": "The VirtualNetwork items on this page", "items": { "$ref": "#/definitions/VirtualNetwork" - } + }, + "x-ms-identifiers": [ + "virtualNetworkName", + "id" + ] }, "nextLink": { "type": "string", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json index 67ecc134909a..147d504cdf1b 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{virtualNetworkName}", + "virtualNetworkName": "{virtualNetworkName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Delete.json index 0afd481bedec..ccb458255832 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{virtualNetworkName}", + "virtualNetworkName": "{virtualNetworkName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Get.json index 2bb4fe724969..229a3622afd4 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{virtualNetworkName}", + "virtualNetworkName": "{virtualNetworkName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Update.json index efbb53085882..2fa5f5c85475 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{virtualNetworkName}", + "virtualNetworkName": "{virtualNetworkName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", From a6b2504a666426a4e9aa9bdd03ad22fb8cc49a4e Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Thu, 26 Jun 2025 08:59:55 -0700 Subject: [PATCH 34/59] Update Lab Resource --- .../Microsoft.DevTestLab.Management/Lab.tsp | 22 +++++++++++++------ .../stable/2018-09-15/DTL.json | 11 ++++++++-- 2 files changed, 24 insertions(+), 9 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp index acd3baf06e87..6886f336b014 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp @@ -13,12 +13,20 @@ namespace Microsoft.DevTestLab; /** * A lab. */ -model Lab is Azure.ResourceManager.TrackedResource { - ...ResourceNameParameter< - Resource = Lab, - SegmentName = "labs", - NamePattern = "" - >; +#suppress "@azure-tools/typespec-azure-resource-manager/arm-custom-resource-usage-discourage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +@Azure.ResourceManager.Legacy.customAzureResource +@Http.Private.includeInapplicableMetadataInPayload(false) +model Lab extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("labs") + labName: string; + + properties: LabProperties; } @armResourceOperations @@ -231,7 +239,7 @@ interface Labs { >; } -@@doc(Lab.name, "The name of the lab."); +@@doc(Lab.labName, "The name of the lab."); @@doc(Lab.properties, "The properties of the resource."); @@doc(Labs.createOrUpdate::parameters.resource, "A lab."); @@doc(Labs.update::parameters.properties, "A lab."); diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index c28169da9b95..7832f7c7f795 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -11005,9 +11005,12 @@ "x-ms-client-flatten": true } }, + "required": [ + "properties" + ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + "$ref": "#/definitions/Resource" } ] }, @@ -11178,7 +11181,11 @@ "description": "The Lab items on this page", "items": { "$ref": "#/definitions/Lab" - } + }, + "x-ms-identifiers": [ + "labName", + "id" + ] }, "nextLink": { "type": "string", From c917465fcd768af36c71f6136b006ab4366e4537 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Thu, 26 Jun 2025 13:14:06 -0700 Subject: [PATCH 35/59] Update virtualnetwork object --- .../2018-09-15/VirtualNetworks_CreateOrUpdate.json | 9 +++++++++ .../examples/VirtualNetworks_CreateOrUpdate.json | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_CreateOrUpdate.json index 147d504cdf1b..7b39b9f4cdaa 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_CreateOrUpdate.json @@ -6,6 +6,15 @@ "resourceGroupName": "resourceGroupName", "subscriptionId": "{subscriptionId}", "virtualNetwork": { + "properties": { + "allowedSubnets": [ + { + "allowPublicIp": "Allow", + "labSubnetName": "{virtualNetworkName}Subnet", + "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{virtualNetworkName}Subnet" + } + ] + }, "location": "{location}", "tags": { "tagName1": "tagValue1" diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json index 147d504cdf1b..7b39b9f4cdaa 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json @@ -6,6 +6,15 @@ "resourceGroupName": "resourceGroupName", "subscriptionId": "{subscriptionId}", "virtualNetwork": { + "properties": { + "allowedSubnets": [ + { + "allowPublicIp": "Allow", + "labSubnetName": "{virtualNetworkName}Subnet", + "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{virtualNetworkName}Subnet" + } + ] + }, "location": "{location}", "tags": { "tagName1": "tagValue1" From 1c83948d388abd2a57a213254b73bf033c76c2fd Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Thu, 26 Jun 2025 15:05:31 -0700 Subject: [PATCH 36/59] Prettier fix --- .../2018-09-15/VirtualNetworks_CreateOrUpdate.json | 12 ++++++------ .../examples/VirtualNetworks_CreateOrUpdate.json | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_CreateOrUpdate.json index 7b39b9f4cdaa..3c0b4a6c8cc0 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_CreateOrUpdate.json @@ -8,12 +8,12 @@ "virtualNetwork": { "properties": { "allowedSubnets": [ - { - "allowPublicIp": "Allow", - "labSubnetName": "{virtualNetworkName}Subnet", - "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{virtualNetworkName}Subnet" - } - ] + { + "allowPublicIp": "Allow", + "labSubnetName": "{virtualNetworkName}Subnet", + "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{virtualNetworkName}Subnet" + } + ] }, "location": "{location}", "tags": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json index 7b39b9f4cdaa..3c0b4a6c8cc0 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json @@ -8,12 +8,12 @@ "virtualNetwork": { "properties": { "allowedSubnets": [ - { - "allowPublicIp": "Allow", - "labSubnetName": "{virtualNetworkName}Subnet", - "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{virtualNetworkName}Subnet" - } - ] + { + "allowPublicIp": "Allow", + "labSubnetName": "{virtualNetworkName}Subnet", + "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{virtualNetworkName}Subnet" + } + ] }, "location": "{location}", "tags": { From d7dcedc0695ab1ff7dba885e2963f87dd8c0b1c5 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Thu, 26 Jun 2025 15:24:59 -0700 Subject: [PATCH 37/59] SDK generation C# config update --- .../devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml b/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml index a13766e2c0e8..692bee290f44 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml @@ -16,7 +16,7 @@ options: package-dir: "Azure.ResourceManager.DevTestLabs" clear-output-folder: true model-namespace: true - namespace: "Azure.ResourceManager.DevTestLabs" + namespace: "{package-dir}" "@azure-tools/typespec-python": namespace: "azure.mgmt.devtestlabs" package-dir: "azure-mgmt-devtestlabs" From a20105020305b6690b282a45d739f116937f5931 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Fri, 27 Jun 2025 10:58:36 -0700 Subject: [PATCH 38/59] Move back to name property for artifact, disk, image and env --- .../Artifact.tsp | 4 +- .../CustomImage.tsp | 4 +- .../Microsoft.DevTestLab.Management/Disk.tsp | 4 +- .../DtlEnvironment.tsp | 4 +- .../Artifacts_GenerateArmTemplate.json | 2 +- .../examples/2018-09-15/Artifacts_Get.json | 2 +- .../CustomImages_CreateOrUpdate.json | 2 +- .../2018-09-15/CustomImages_Delete.json | 2 +- .../examples/2018-09-15/CustomImages_Get.json | 2 +- .../2018-09-15/CustomImages_Update.json | 6 +- .../examples/2018-09-15/Disks_Attach.json | 2 +- .../2018-09-15/Disks_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/Disks_Delete.json | 4 +- .../examples/2018-09-15/Disks_Detach.json | 2 +- .../examples/2018-09-15/Disks_Get.json | 2 +- .../examples/2018-09-15/Disks_List.json | 1 - .../examples/2018-09-15/Disks_Update.json | 2 +- .../Environments_CreateOrUpdate.json | 2 +- .../2018-09-15/Environments_Delete.json | 2 +- .../examples/2018-09-15/Environments_Get.json | 2 +- .../2018-09-15/Environments_Update.json | 2 +- .../stable/2018-09-15/DTL.json | 70 +++++++------------ .../Artifacts_GenerateArmTemplate.json | 2 +- .../2018-09-15/examples/Artifacts_Get.json | 2 +- .../examples/CustomImages_CreateOrUpdate.json | 2 +- .../examples/CustomImages_Delete.json | 2 +- .../2018-09-15/examples/CustomImages_Get.json | 2 +- .../examples/CustomImages_Update.json | 6 +- .../2018-09-15/examples/Disks_Attach.json | 2 +- .../examples/Disks_CreateOrUpdate.json | 2 +- .../2018-09-15/examples/Disks_Delete.json | 4 +- .../2018-09-15/examples/Disks_Detach.json | 2 +- .../stable/2018-09-15/examples/Disks_Get.json | 2 +- .../2018-09-15/examples/Disks_List.json | 1 - .../2018-09-15/examples/Disks_Update.json | 2 +- .../examples/Environments_CreateOrUpdate.json | 2 +- .../examples/Environments_Delete.json | 2 +- .../2018-09-15/examples/Environments_Get.json | 2 +- .../examples/Environments_Update.json | 2 +- 39 files changed, 73 insertions(+), 91 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp index 291764ff6d8c..1315a41e10ea 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp @@ -25,7 +25,7 @@ model Artifact extends Resource { @path @key @segment("artifacts") - artifactName: string; + name: string; properties: ArtifactProperties; } @@ -89,7 +89,7 @@ interface Artifacts { >; } -@@doc(Artifact.artifactName, "The name of the artifact."); +@@doc(Artifact.name, "The name of the artifact."); @@doc(Artifact.properties, "The properties of the resource."); @@doc(Artifacts.generateArmTemplate::parameters.body, "Parameters for generating an ARM template for deploying artifacts." diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp index 40d377a3b6c3..ea44db1a850b 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp @@ -25,7 +25,7 @@ model CustomImage extends Resource { @path @key @segment("customimages") - customImageName: string; + name: string; properties: CustomImageProperties; } @@ -104,7 +104,7 @@ interface CustomImages { >; } -@@doc(CustomImage.customImageName, "The name of the custom image."); +@@doc(CustomImage.name, "The name of the custom image."); @@doc(CustomImage.properties, "The properties of the resource."); @@doc(CustomImages.createOrUpdate::parameters.resource, "A custom image."); @@doc(CustomImages.update::parameters.properties, "A custom image."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp index adff517f77fa..9ed868dff9d4 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp @@ -25,7 +25,7 @@ model Disk extends Resource { @path @key @segment("disks") - diskName: string; + name: string; properties: DiskProperties; } @@ -114,7 +114,7 @@ interface Disks { detach is ArmResourceActionAsync; } -@@doc(Disk.diskName, "The name of the disk."); +@@doc(Disk.name, "The name of the disk."); @@doc(Disk.properties, "The properties of the resource."); @@doc(Disk.location, "The location of the resource."); @@doc(Disk.tags, "The tags of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp index df8d496ab4b7..e445cc9bc852 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp @@ -25,7 +25,7 @@ model DtlEnvironment extends Resource { @path @key @segment("environments") - dtlEnvironmentName: string; + name: string; properties: EnvironmentProperties; } @@ -117,7 +117,7 @@ interface DtlEnvironments { >; } -@@doc(DtlEnvironment.dtlEnvironmentName, "The name of the environment."); +@@doc(DtlEnvironment.name, "The name of the environment."); @@doc(DtlEnvironment.properties, "The properties of the resource."); @@doc(DtlEnvironment.location, "The location of the resource."); @@doc(DtlEnvironment.tags, "The tags of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_GenerateArmTemplate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_GenerateArmTemplate.json index 121484ef67ff..0acb236e641c 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_GenerateArmTemplate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_GenerateArmTemplate.json @@ -1,6 +1,6 @@ { "parameters": { - "artifactName": "{artifactName}", + "name": "{artifactName}", "api-version": "2018-09-15", "artifactSourceName": "{artifactSourceName}", "generateArmTemplateRequest": { diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_Get.json index 8c06c4e1025b..263790c8e021 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Artifacts_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "artifactName": "{artifactName}", + "name": "{artifactName}", "api-version": "2018-09-15", "artifactSourceName": "{artifactSourceName}", "labName": "{labName}", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_CreateOrUpdate.json index fe1f5b658cfd..73f523e29d0d 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "customImageName": "{customImageName}", + "name": "{customImageName}", "api-version": "2018-09-15", "customImage": { "properties": { diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Delete.json index c90b38af8463..82bc6b75b285 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "customImageName": "{customImageName}", + "name": "{customImageName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Get.json index 96eb3cf14196..13be3e2ca428 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "customImageName": "{customImageName}", + "name": "{customImageName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Update.json index 66074087a29e..2925cdc67e25 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Update.json @@ -1,10 +1,10 @@ { "parameters": { - "customImageName": "{customImageName}", + "name": "{customImageName}", "api-version": "2018-09-15", - "customImage": { + "customImageFragment": { "tags": { - "tagName1": "tagValue2" + "tagName1": "tagValue1" } }, "labName": "{labName}", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Attach.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Attach.json index eccbe43fa109..72dd79a80de6 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Attach.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Attach.json @@ -1,6 +1,6 @@ { "parameters": { - "diskName": "{diskName}", + "name": "{diskName}", "api-version": "2018-09-15", "attachDiskProperties": { "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_CreateOrUpdate.json index 8f4fe7a092ff..7ec1e3222dbf 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "diskName": "{diskName}", + "name": "{diskName}", "api-version": "2018-09-15", "disk": { "properties": { diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Delete.json index 3411ad6d70b4..daf771b9529a 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Delete.json @@ -1,11 +1,11 @@ { "parameters": { - "diskName": "{diskName}", + "name": "{diskName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", "subscriptionId": "{subscriptionId}", - "userName": "{userId}" + "userName": "@me" }, "responses": { "200": {}, diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Detach.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Detach.json index a7896cf18c85..e883f33f41b9 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Detach.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Detach.json @@ -1,6 +1,6 @@ { "parameters": { - "diskName": "{diskName}", + "name": "{diskName}", "api-version": "2018-09-15", "detachDiskProperties": { "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Get.json index 98f0fbf3a7f0..49f3973a823e 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "diskName": "{diskName}", + "name": "{diskName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_List.json index 5f33070d5735..2f1caa184da3 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_List.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_List.json @@ -1,6 +1,5 @@ { "parameters": { - "diskName": "{diskName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Update.json index cd3f89db105f..d3cf6d1632f6 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "diskName": "diskName", + "name": "diskName", "api-version": "2018-09-15", "disk": { "tags": { diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_CreateOrUpdate.json index f7a16ca3e3b2..b09582120db9 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "dtlEnvironmentName": "{environmentName}", + "name": "{environmentName}", "api-version": "2018-09-15", "dtlEnvironment": { "properties": { diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Delete.json index 413f7559664b..87ab6bb3145a 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "dtlEnvironmentName": "{environmentName}", + "name": "{environmentName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Get.json index 880c4ffb0c40..b8765a870d43 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "dtlEnvironmentName": "{environmentName}", + "name": "{environmentName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Update.json index b9b89dd52477..0ac4d2350493 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Environments_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "dtlEnvironmentName": "{environmentName}", + "name": "{environmentName}", "api-version": "2018-09-15", "dtlEnvironment": { "tags": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index 7832f7c7f795..b4b9990b14b3 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -1197,7 +1197,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts/{artifactName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts/{name}": { "get": { "operationId": "Artifacts_Get", "tags": [ @@ -1229,7 +1229,7 @@ "type": "string" }, { - "name": "artifactName", + "name": "name", "in": "path", "description": "The name of the artifact.", "required": true, @@ -1264,7 +1264,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts/{artifactName}/generateArmTemplate": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts/{name}/generateArmTemplate": { "post": { "operationId": "Artifacts_GenerateArmTemplate", "tags": [ @@ -1296,7 +1296,7 @@ "type": "string" }, { - "name": "artifactName", + "name": "name", "in": "path", "description": "The name of the artifact.", "required": true, @@ -1668,7 +1668,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages/{customImageName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages/{name}": { "get": { "operationId": "CustomImages_Get", "tags": [ @@ -1693,7 +1693,7 @@ "type": "string" }, { - "name": "customImageName", + "name": "name", "in": "path", "description": "The name of the custom image.", "required": true, @@ -1751,7 +1751,7 @@ "type": "string" }, { - "name": "customImageName", + "name": "name", "in": "path", "description": "The name of the custom image.", "required": true, @@ -1832,7 +1832,7 @@ "type": "string" }, { - "name": "customImageName", + "name": "name", "in": "path", "description": "The name of the custom image.", "required": true, @@ -1892,7 +1892,7 @@ "type": "string" }, { - "name": "customImageName", + "name": "name", "in": "path", "description": "The name of the custom image.", "required": true, @@ -4418,7 +4418,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{diskName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}": { "get": { "operationId": "Disks_Get", "tags": [ @@ -4450,7 +4450,7 @@ "type": "string" }, { - "name": "diskName", + "name": "name", "in": "path", "description": "The name of the disk.", "required": true, @@ -4515,7 +4515,7 @@ "type": "string" }, { - "name": "diskName", + "name": "name", "in": "path", "description": "The name of the disk.", "required": true, @@ -4603,7 +4603,7 @@ "type": "string" }, { - "name": "diskName", + "name": "name", "in": "path", "description": "The name of the disk.", "required": true, @@ -4670,7 +4670,7 @@ "type": "string" }, { - "name": "diskName", + "name": "name", "in": "path", "description": "The name of the disk.", "required": true, @@ -4716,7 +4716,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{diskName}/attach": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}/attach": { "post": { "operationId": "Disks_Attach", "tags": [ @@ -4748,7 +4748,7 @@ "type": "string" }, { - "name": "diskName", + "name": "name", "in": "path", "description": "The name of the disk.", "required": true, @@ -4800,7 +4800,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{diskName}/detach": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}/detach": { "post": { "operationId": "Disks_Detach", "tags": [ @@ -4832,7 +4832,7 @@ "type": "string" }, { - "name": "diskName", + "name": "name", "in": "path", "description": "The name of the disk.", "required": true, @@ -4969,7 +4969,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments/{dtlEnvironmentName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments/{name}": { "get": { "operationId": "Environments_Get", "tags": [ @@ -5001,7 +5001,7 @@ "type": "string" }, { - "name": "dtlEnvironmentName", + "name": "name", "in": "path", "description": "The name of the environment.", "required": true, @@ -5066,7 +5066,7 @@ "type": "string" }, { - "name": "dtlEnvironmentName", + "name": "name", "in": "path", "description": "The name of the environment.", "required": true, @@ -5154,7 +5154,7 @@ "type": "string" }, { - "name": "dtlEnvironmentName", + "name": "name", "in": "path", "description": "The name of the environment.", "required": true, @@ -5221,7 +5221,7 @@ "type": "string" }, { - "name": "dtlEnvironmentName", + "name": "name", "in": "path", "description": "The name of the environment.", "required": true, @@ -9384,11 +9384,7 @@ "description": "The Artifact items on this page", "items": { "$ref": "#/definitions/Artifact" - }, - "x-ms-identifiers": [ - "artifactName", - "id" - ] + } }, "nextLink": { "type": "string", @@ -9806,11 +9802,7 @@ "description": "The CustomImage items on this page", "items": { "$ref": "#/definitions/CustomImage" - }, - "x-ms-identifiers": [ - "customImageName", - "id" - ] + } }, "nextLink": { "type": "string", @@ -10067,11 +10059,7 @@ "description": "The Disk items on this page", "items": { "$ref": "#/definitions/Disk" - }, - "x-ms-identifiers": [ - "diskName", - "id" - ] + } }, "nextLink": { "type": "string", @@ -10175,11 +10163,7 @@ "description": "The DtlEnvironment items on this page", "items": { "$ref": "#/definitions/DtlEnvironment" - }, - "x-ms-identifiers": [ - "dtlEnvironmentName", - "id" - ] + } }, "nextLink": { "type": "string", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_GenerateArmTemplate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_GenerateArmTemplate.json index 121484ef67ff..0acb236e641c 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_GenerateArmTemplate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_GenerateArmTemplate.json @@ -1,6 +1,6 @@ { "parameters": { - "artifactName": "{artifactName}", + "name": "{artifactName}", "api-version": "2018-09-15", "artifactSourceName": "{artifactSourceName}", "generateArmTemplateRequest": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_Get.json index 8c06c4e1025b..263790c8e021 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "artifactName": "{artifactName}", + "name": "{artifactName}", "api-version": "2018-09-15", "artifactSourceName": "{artifactSourceName}", "labName": "{labName}", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_CreateOrUpdate.json index fe1f5b658cfd..73f523e29d0d 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "customImageName": "{customImageName}", + "name": "{customImageName}", "api-version": "2018-09-15", "customImage": { "properties": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Delete.json index c90b38af8463..82bc6b75b285 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "customImageName": "{customImageName}", + "name": "{customImageName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Get.json index 96eb3cf14196..13be3e2ca428 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "customImageName": "{customImageName}", + "name": "{customImageName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Update.json index 66074087a29e..2925cdc67e25 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Update.json @@ -1,10 +1,10 @@ { "parameters": { - "customImageName": "{customImageName}", + "name": "{customImageName}", "api-version": "2018-09-15", - "customImage": { + "customImageFragment": { "tags": { - "tagName1": "tagValue2" + "tagName1": "tagValue1" } }, "labName": "{labName}", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Attach.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Attach.json index eccbe43fa109..72dd79a80de6 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Attach.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Attach.json @@ -1,6 +1,6 @@ { "parameters": { - "diskName": "{diskName}", + "name": "{diskName}", "api-version": "2018-09-15", "attachDiskProperties": { "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_CreateOrUpdate.json index 8f4fe7a092ff..7ec1e3222dbf 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "diskName": "{diskName}", + "name": "{diskName}", "api-version": "2018-09-15", "disk": { "properties": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Delete.json index 3411ad6d70b4..daf771b9529a 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Delete.json @@ -1,11 +1,11 @@ { "parameters": { - "diskName": "{diskName}", + "name": "{diskName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", "subscriptionId": "{subscriptionId}", - "userName": "{userId}" + "userName": "@me" }, "responses": { "200": {}, diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Detach.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Detach.json index a7896cf18c85..e883f33f41b9 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Detach.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Detach.json @@ -1,6 +1,6 @@ { "parameters": { - "diskName": "{diskName}", + "name": "{diskName}", "api-version": "2018-09-15", "detachDiskProperties": { "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Get.json index 98f0fbf3a7f0..49f3973a823e 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "diskName": "{diskName}", + "name": "{diskName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_List.json index 5f33070d5735..2f1caa184da3 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_List.json @@ -1,6 +1,5 @@ { "parameters": { - "diskName": "{diskName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Update.json index cd3f89db105f..d3cf6d1632f6 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "diskName": "diskName", + "name": "diskName", "api-version": "2018-09-15", "disk": { "tags": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_CreateOrUpdate.json index f7a16ca3e3b2..b09582120db9 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "dtlEnvironmentName": "{environmentName}", + "name": "{environmentName}", "api-version": "2018-09-15", "dtlEnvironment": { "properties": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Delete.json index 413f7559664b..87ab6bb3145a 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "dtlEnvironmentName": "{environmentName}", + "name": "{environmentName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Get.json index 880c4ffb0c40..b8765a870d43 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "dtlEnvironmentName": "{environmentName}", + "name": "{environmentName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Update.json index b9b89dd52477..0ac4d2350493 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "dtlEnvironmentName": "{environmentName}", + "name": "{environmentName}", "api-version": "2018-09-15", "dtlEnvironment": { "tags": { From a712dcba2c1c6c9b5f27873603817e0647d46bf2 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Fri, 27 Jun 2025 12:30:11 -0700 Subject: [PATCH 39/59] Name update --- .../Formula.tsp | 4 +- .../LabCost.tsp | 4 +- .../NotificationChannel.tsp | 6 +- .../Policy.tsp | 5 +- .../Schedule.tsp | 4 +- .../2018-09-15/Costs_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/Costs_Get.json | 2 +- .../2018-09-15/Formulas_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/Formulas_Delete.json | 2 +- .../examples/2018-09-15/Formulas_Get.json | 2 +- .../examples/2018-09-15/Formulas_Update.json | 2 +- .../NotificationChannels_CreateOrUpdate.json | 2 +- .../NotificationChannels_Delete.json | 2 +- .../2018-09-15/NotificationChannels_Get.json | 2 +- .../NotificationChannels_Notify.json | 2 +- .../NotificationChannels_Update.json | 2 +- .../stable/2018-09-15/DTL.json | 61 ++++++------------- .../examples/Costs_CreateOrUpdate.json | 2 +- .../stable/2018-09-15/examples/Costs_Get.json | 2 +- .../examples/Formulas_CreateOrUpdate.json | 2 +- .../2018-09-15/examples/Formulas_Delete.json | 2 +- .../2018-09-15/examples/Formulas_Get.json | 2 +- .../2018-09-15/examples/Formulas_Update.json | 2 +- .../NotificationChannels_CreateOrUpdate.json | 2 +- .../examples/NotificationChannels_Delete.json | 2 +- .../examples/NotificationChannels_Get.json | 2 +- .../examples/NotificationChannels_Notify.json | 2 +- .../examples/NotificationChannels_Update.json | 2 +- 28 files changed, 52 insertions(+), 76 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp index bf97e0cda0aa..e067a9851344 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp @@ -25,7 +25,7 @@ model Formula extends Resource { @path @key @segment("formulas") - formulaName: string; + name: string; properties: FormulaProperties; } @@ -100,7 +100,7 @@ interface Formulas { >; } -@@doc(Formula.formulaName, "The name of the formula."); +@@doc(Formula.name, "The name of the formula."); @@doc(Formula.properties, "The properties of the resource."); @@doc(Formulas.createOrUpdate::parameters.resource, "A formula for creating a VM, specifying an image base and other parameters" diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp index 2702e2038099..3f1112cb4585 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp @@ -25,7 +25,7 @@ model LabCost extends Resource { @path @key @segment("costs") - labCostName: string; + name: string; properties: LabCostProperties; } @@ -57,7 +57,7 @@ interface LabCosts { createOrUpdate is ArmResourceCreateOrReplaceSync; } -@@doc(LabCost.labCostName, "The name of the cost."); +@@doc(LabCost.name, "The name of the cost."); @@doc(LabCost.properties, "The properties of the resource."); @@doc(LabCosts.createOrUpdate::parameters.resource, "A cost item."); @@doc(LabCost.tags, "The tags of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp index 035f3b6b1d6e..25fa48e0387b 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp @@ -24,7 +24,7 @@ model NotificationChannel extends Resource { @path @key @segment("notificationchannels") - notificationChannelName: string; + name: string; properties: NotificationChannelProperties; } @@ -108,9 +108,7 @@ interface NotificationChannels { >; } -@@doc(NotificationChannel.notificationChannelName, - "The name of the notification channel." -); +@@doc(NotificationChannel.name, "The name of the notification channel."); @@doc(NotificationChannel.properties, "The properties of the resource."); @@doc(NotificationChannel.location, "The location of the resource."); @@doc(NotificationChannel.tags, "The tags of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp index 241c7687e7ca..d669c7c16079 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp @@ -7,7 +7,6 @@ import "./models.tsp"; using TypeSpec.Rest; using Azure.ResourceManager; using TypeSpec.Http; -using TypeSpec.OpenAPI; namespace Microsoft.DevTestLab; /** @@ -24,7 +23,7 @@ model Policy extends Resource { @path @key @segment("policies") - policyName: string; + name: string; properties: PolicyProperties; } @@ -119,7 +118,7 @@ interface Policies { >; } -@@doc(Policy.policyName, "The name of the policy."); +@@doc(Policy.name, "The name of the policy."); @@doc(Policy.properties, "The properties of the resource."); @@doc(Policy.location, "The location of the resource."); @@doc(Policy.tags, "The tags of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp index 32462113da96..788e122d0c5a 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp @@ -24,7 +24,7 @@ model Schedule extends Resource { @path @key @segment("schedules") - scheduleName: string; + name: string; properties: ScheduleProperties; } @@ -493,7 +493,7 @@ interface VirtualMachineSchedules { execute is VirtualMachineScheduleOps.ActionAsync; } -@@doc(Schedule.scheduleName, "The name of the schedule."); +@@doc(Schedule.name, "The name of the schedule."); @@doc(Schedule.properties, "The properties of the resource."); @@doc(Schedule.location, "The location of the resource."); @@doc(Schedule.tags, "The tags of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_CreateOrUpdate.json index 5239ecd0b5cf..b00243b84b04 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "labCostName": "targetCost", + "name": "targetCost", "api-version": "2018-09-15", "labCost": { "properties": { diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_Get.json index f4dc8b3f01da..4cd5b3cc261f 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Costs_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "labCostName": "targetCost", + "name": "targetCost", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_CreateOrUpdate.json index 7c3f3f1181f7..255aecd3efa7 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "formulaName": "{formulaName}", + "name": "{formulaName}", "api-version": "2018-09-15", "formula": { "location": "{location}", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Delete.json index 2b7e6750d8db..15416a09a159 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "formulaName": "{formulaName}", + "name": "{formulaName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Get.json index cb37fc110430..44ac7238ab5b 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "formulaName": "{formulaName}", + "name": "{formulaName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Update.json index f2b0bdac3364..3e47f7bdf256 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Formulas_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "formulaName": "{formulaName}", + "name": "{formulaName}", "api-version": "2018-09-15", "formula": { "tags": { diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_CreateOrUpdate.json index 3dac41c8f04f..1be5876a5f23 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "notificationChannelName": "{notificationChannelName}", + "name": "{notificationChannelName}", "api-version": "2018-09-15", "labName": "{labName}", "notificationChannel": { diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Delete.json index 8e3a196c0e4d..181dde96bc7f 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "notificationChannelName": "{notificationChannelName}", + "name": "{notificationChannelName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Get.json index 26402a74173c..72d37f63062c 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "notificationChannelName": "{notificationChannelName}", + "name": "{notificationChannelName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Notify.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Notify.json index bc8dc720a550..266171432b44 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Notify.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Notify.json @@ -1,6 +1,6 @@ { "parameters": { - "notificationChannelName": "{notificationChannelName}", + "name": "{notificationChannelName}", "api-version": "2018-09-15", "labName": "{labName}", "notifyParameters": { diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Update.json index db79a68477a3..5e1609cfaf39 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/NotificationChannels_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "notificationChannelName": "{notificationChannelName}", + "name": "{notificationChannelName}", "api-version": "2018-09-15", "labName": "{labName}", "notificationChannel": {}, diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index b4b9990b14b3..9b12caaf55aa 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -1394,7 +1394,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/costs/{labCostName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/costs/{name}": { "get": { "operationId": "Costs_Get", "tags": [ @@ -1419,7 +1419,7 @@ "type": "string" }, { - "name": "labCostName", + "name": "name", "in": "path", "description": "The name of the cost.", "required": true, @@ -1477,7 +1477,7 @@ "type": "string" }, { - "name": "labCostName", + "name": "name", "in": "path", "description": "The name of the cost.", "required": true, @@ -2086,7 +2086,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas/{formulaName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas/{name}": { "get": { "operationId": "Formulas_Get", "tags": [ @@ -2111,7 +2111,7 @@ "type": "string" }, { - "name": "formulaName", + "name": "name", "in": "path", "description": "The name of the formula.", "required": true, @@ -2169,7 +2169,7 @@ "type": "string" }, { - "name": "formulaName", + "name": "name", "in": "path", "description": "The name of the formula.", "required": true, @@ -2250,7 +2250,7 @@ "type": "string" }, { - "name": "formulaName", + "name": "name", "in": "path", "description": "The name of the formula.", "required": true, @@ -2310,7 +2310,7 @@ "type": "string" }, { - "name": "formulaName", + "name": "name", "in": "path", "description": "The name of the formula.", "required": true, @@ -2668,7 +2668,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels/{notificationChannelName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels/{name}": { "get": { "operationId": "NotificationChannels_Get", "tags": [ @@ -2693,7 +2693,7 @@ "type": "string" }, { - "name": "notificationChannelName", + "name": "name", "in": "path", "description": "The name of the notification channel.", "required": true, @@ -2751,7 +2751,7 @@ "type": "string" }, { - "name": "notificationChannelName", + "name": "name", "in": "path", "description": "The name of the notification channel.", "required": true, @@ -2817,7 +2817,7 @@ "type": "string" }, { - "name": "notificationChannelName", + "name": "name", "in": "path", "description": "The name of the notification channel.", "required": true, @@ -2877,7 +2877,7 @@ "type": "string" }, { - "name": "notificationChannelName", + "name": "name", "in": "path", "description": "The name of the notification channel.", "required": true, @@ -2905,7 +2905,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels/{notificationChannelName}/notify": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels/{name}/notify": { "post": { "operationId": "NotificationChannels_Notify", "tags": [ @@ -2930,7 +2930,7 @@ "type": "string" }, { - "name": "notificationChannelName", + "name": "name", "in": "path", "description": "The name of the notification channel.", "required": true, @@ -10418,11 +10418,7 @@ "description": "The Formula items on this page", "items": { "$ref": "#/definitions/Formula" - }, - "x-ms-identifiers": [ - "formulaName", - "id" - ] + } }, "nextLink": { "type": "string", @@ -11557,11 +11553,7 @@ "description": "The LabVirtualMachine items on this page", "items": { "$ref": "#/definitions/LabVirtualMachine" - }, - "x-ms-identifiers": [ - "properties/applicableSchedule/properties/labVmsShutdown/scheduleName", - "id" - ] + } }, "nextLink": { "type": "string", @@ -11916,11 +11908,7 @@ "description": "The NotificationChannel items on this page", "items": { "$ref": "#/definitions/NotificationChannel" - }, - "x-ms-identifiers": [ - "notificationChannelName", - "id" - ] + } }, "nextLink": { "type": "string", @@ -12212,11 +12200,7 @@ "description": "The Policy items on this page", "items": { "$ref": "#/definitions/Policy" - }, - "x-ms-identifiers": [ - "policyName", - "id" - ] + } }, "nextLink": { "type": "string", @@ -12556,11 +12540,7 @@ "description": "The Schedule items on this page", "items": { "$ref": "#/definitions/Schedule" - }, - "x-ms-identifiers": [ - "scheduleName", - "id" - ] + } }, "nextLink": { "type": "string", @@ -12739,7 +12719,6 @@ }, "x-ms-identifiers": [ "serviceFabricName", - "properties/applicableSchedule/properties/labVmsShutdown/scheduleName", "id" ] }, diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_CreateOrUpdate.json index 5239ecd0b5cf..b00243b84b04 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "labCostName": "targetCost", + "name": "targetCost", "api-version": "2018-09-15", "labCost": { "properties": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_Get.json index f4dc8b3f01da..4cd5b3cc261f 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "labCostName": "targetCost", + "name": "targetCost", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_CreateOrUpdate.json index 7c3f3f1181f7..255aecd3efa7 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "formulaName": "{formulaName}", + "name": "{formulaName}", "api-version": "2018-09-15", "formula": { "location": "{location}", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Delete.json index 2b7e6750d8db..15416a09a159 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "formulaName": "{formulaName}", + "name": "{formulaName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Get.json index cb37fc110430..44ac7238ab5b 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "formulaName": "{formulaName}", + "name": "{formulaName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Update.json index f2b0bdac3364..3e47f7bdf256 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "formulaName": "{formulaName}", + "name": "{formulaName}", "api-version": "2018-09-15", "formula": { "tags": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_CreateOrUpdate.json index 3dac41c8f04f..1be5876a5f23 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "notificationChannelName": "{notificationChannelName}", + "name": "{notificationChannelName}", "api-version": "2018-09-15", "labName": "{labName}", "notificationChannel": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Delete.json index 8e3a196c0e4d..181dde96bc7f 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "notificationChannelName": "{notificationChannelName}", + "name": "{notificationChannelName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Get.json index 26402a74173c..72d37f63062c 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "notificationChannelName": "{notificationChannelName}", + "name": "{notificationChannelName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Notify.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Notify.json index bc8dc720a550..266171432b44 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Notify.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Notify.json @@ -1,6 +1,6 @@ { "parameters": { - "notificationChannelName": "{notificationChannelName}", + "name": "{notificationChannelName}", "api-version": "2018-09-15", "labName": "{labName}", "notifyParameters": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Update.json index db79a68477a3..5e1609cfaf39 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "notificationChannelName": "{notificationChannelName}", + "name": "{notificationChannelName}", "api-version": "2018-09-15", "labName": "{labName}", "notificationChannel": {}, From 60d3e278a6d5e8abc7584e546f3da2eeedc9a380 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Mon, 30 Jun 2025 08:40:30 -0700 Subject: [PATCH 40/59] ArmTemplate update --- .../Microsoft.DevTestLab.Management/ArmTemplate.tsp | 6 ++---- .../examples/2018-09-15/ArmTemplates_Get.json | 2 +- .../examples/2018-09-15/CustomImages_Update.json | 4 ++-- .../Microsoft.DevTestLab/stable/2018-09-15/DTL.json | 10 +++------- .../stable/2018-09-15/examples/ArmTemplates_Get.json | 2 +- .../2018-09-15/examples/CustomImages_Update.json | 4 ++-- 6 files changed, 11 insertions(+), 17 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp index f93288b41065..5c1832f51a3a 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp @@ -24,7 +24,7 @@ model ArmTemplate extends Resource { @path @key @segment("armtemplates") - armTemplateName: string; + name: string; properties: ArmTemplateProperties; } @@ -79,9 +79,7 @@ interface ArmTemplates { >; } -@@doc(ArmTemplate.armTemplateName, - "The name of the azure resource manager template." -); +@@doc(ArmTemplate.name, "The name of the azure resource manager template."); @@doc(ArmTemplate.properties, "The properties of the resource."); @@doc(ArmTemplate.tags, "The tags of the resource."); @@doc(ArmTemplate.location, "The location of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArmTemplates_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArmTemplates_Get.json index 0bc3aedea3f5..f92e3693667a 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArmTemplates_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArmTemplates_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "armTemplateName": "{armTemplateName}", + "name": "{armTemplateName}", "api-version": "2018-09-15", "artifactSourceName": "{artifactSourceName}", "labName": "{labName}", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Update.json index 2925cdc67e25..3106d5b207bd 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/CustomImages_Update.json @@ -2,9 +2,9 @@ "parameters": { "name": "{customImageName}", "api-version": "2018-09-15", - "customImageFragment": { + "customImage": { "tags": { - "tagName1": "tagValue1" + "tagName1": "tagValue2" } }, "labName": "{labName}", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index 9b12caaf55aa..b88c20a2bfee 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -1045,7 +1045,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/armtemplates/{armTemplateName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/armtemplates/{name}": { "get": { "operationId": "ArmTemplates_Get", "tags": [ @@ -1077,7 +1077,7 @@ "type": "string" }, { - "name": "armTemplateName", + "name": "name", "in": "path", "description": "The name of the azure resource manager template.", "required": true, @@ -9216,11 +9216,7 @@ "description": "The ArmTemplate items on this page", "items": { "$ref": "#/definitions/ArmTemplate" - }, - "x-ms-identifiers": [ - "armTemplateName", - "id" - ] + } }, "nextLink": { "type": "string", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_Get.json index 0bc3aedea3f5..f92e3693667a 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "armTemplateName": "{armTemplateName}", + "name": "{armTemplateName}", "api-version": "2018-09-15", "artifactSourceName": "{artifactSourceName}", "labName": "{labName}", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Update.json index 2925cdc67e25..3106d5b207bd 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Update.json @@ -2,9 +2,9 @@ "parameters": { "name": "{customImageName}", "api-version": "2018-09-15", - "customImageFragment": { + "customImage": { "tags": { - "tagName1": "tagValue1" + "tagName1": "tagValue2" } }, "labName": "{labName}", From 9090a0d0a6e4de991e7cc4a53983cc9432fd506a Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Mon, 30 Jun 2025 10:41:29 -0700 Subject: [PATCH 41/59] Name property update --- .../Microsoft.DevTestLab.Management/Lab.tsp | 2 +- .../Secret.tsp | 4 +- .../ServiceRunner.tsp | 4 +- .../VirtualNetwork.tsp | 4 +- .../PolicySets_EvaluatePolicies.json | 2 +- .../2018-09-15/Secrets_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/Secrets_Delete.json | 2 +- .../examples/2018-09-15/Secrets_Get.json | 2 +- .../examples/2018-09-15/Secrets_Update.json | 2 +- .../2018-09-15/ServiceRunners_Delete.json | 2 +- .../2018-09-15/ServiceRunners_Get.json | 2 +- .../VirtualNetworks_CreateOrUpdate.json | 2 +- .../2018-09-15/VirtualNetworks_Get.json | 2 +- .../2018-09-15/VirtualNetworks_Update.json | 2 +- .../stable/2018-09-15/DTL.json | 44 ++++++++----------- .../examples/PolicySets_EvaluatePolicies.json | 2 +- .../examples/Secrets_CreateOrUpdate.json | 2 +- .../2018-09-15/examples/Secrets_Delete.json | 2 +- .../2018-09-15/examples/Secrets_Get.json | 2 +- .../2018-09-15/examples/Secrets_Update.json | 2 +- .../examples/ServiceRunners_Delete.json | 2 +- .../examples/ServiceRunners_Get.json | 2 +- .../VirtualNetworks_CreateOrUpdate.json | 2 +- .../examples/VirtualNetworks_Get.json | 2 +- .../examples/VirtualNetworks_Update.json | 2 +- 25 files changed, 45 insertions(+), 53 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp index 6886f336b014..f239fe4d2318 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp @@ -234,7 +234,7 @@ interface Labs { */ @path @segment("policysets") - policySetName: string; + name: string; } >; } diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp index f6215e48d447..92ad019241a9 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp @@ -25,7 +25,7 @@ model Secret extends Resource { @path @key @segment("secrets") - secretName: string; + name: string; properties: SecretProperties; } @@ -100,7 +100,7 @@ interface Secrets { >; } -@@doc(Secret.secretName, "The name of the secret."); +@@doc(Secret.name, "The name of the secret."); @@doc(Secret.properties, "The properties of the resource."); @@doc(Secret.location, "The location of the resource."); @@doc(Secret.tags, "The tags of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp index 2d2b982b5eae..b8a1d7d7b614 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp @@ -27,7 +27,7 @@ model ServiceRunner extends Resource { @path @key @segment("servicerunners") - serviceRunnerName: string; + name: string; /** * The identity of the resource. @@ -54,7 +54,7 @@ interface ServiceRunners { delete is ArmResourceDeleteSync; } -@@doc(ServiceRunner.serviceRunnerName, "The name of the service runner."); +@@doc(ServiceRunner.name, "The name of the service runner."); @@doc(ServiceRunner.location, "The location of the resource."); @@doc(ServiceRunner.tags, "The tags of the resource."); @@doc(ServiceRunners.createOrUpdate::parameters.resource, diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp index 377c44682523..cd41cd215f77 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp @@ -25,7 +25,7 @@ model VirtualNetwork extends Resource { @path @key @segment("virtualnetworks") - virtualNetworkName: string; + name: string; properties: VirtualNetworkProperties; } @@ -107,7 +107,7 @@ interface VirtualNetworks { >; } -@@doc(VirtualNetwork.virtualNetworkName, "The name of the virtual network."); +@@doc(VirtualNetwork.name, "The name of the virtual network."); @@doc(VirtualNetwork.properties, "The properties of the resource."); @@doc(VirtualNetwork.location, "The location of the resource."); @@doc(VirtualNetwork.tags, "The tags of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/PolicySets_EvaluatePolicies.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/PolicySets_EvaluatePolicies.json index c0d7c44deff7..804a9e935e33 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/PolicySets_EvaluatePolicies.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/PolicySets_EvaluatePolicies.json @@ -1,6 +1,6 @@ { "parameters": { - "policySetName": "{policySetName}", + "name": "{policySetName}", "api-version": "2018-09-15", "evaluatePoliciesRequest": { "policies": [ diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_CreateOrUpdate.json index f8824db5e2ed..ee35f8641802 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "secretName": "{secretName}", + "name": "{secretName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Delete.json index 921e4b902726..67d580ca9b81 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "secretName": "{secretName}", + "name": "{secretName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Get.json index 217c4b6a8f91..dc38d4422be8 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "secretName": "{secretName}", + "name": "{secretName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Update.json index 4e9af2fb4fbc..7ded3937f8b2 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Secrets_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "secretName": "{secretName}", + "name": "{secretName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Delete.json index ed58e6f647a8..74af4b262d1c 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "serviceRunnerName": "{servicerunnerName}", + "name": "{servicerunnerName}", "api-version": "2018-09-15", "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Get.json index 0734bb7136f4..05027cbb83a1 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "serviceRunnerName": "{servicerunnerName}", + "name": "{servicerunnerName}", "api-version": "2018-09-15", "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_CreateOrUpdate.json index 3c0b4a6c8cc0..a81679aa3185 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "virtualNetworkName": "{virtualNetworkName}", + "name": "{virtualNetworkName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Get.json index 229a3622afd4..2bb4fe724969 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "virtualNetworkName": "{virtualNetworkName}", + "name": "{virtualNetworkName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Update.json index 2fa5f5c85475..efbb53085882 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "virtualNetworkName": "{virtualNetworkName}", + "name": "{virtualNetworkName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index b88c20a2bfee..7ad273f89f63 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -2964,7 +2964,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/evaluatePolicies": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{name}/evaluatePolicies": { "post": { "operationId": "PolicySets_EvaluatePolicies", "tags": [ @@ -2989,7 +2989,7 @@ "type": "string" }, { - "name": "policySetName", + "name": "name", "in": "path", "description": "The name of the policy set.", "required": true, @@ -3815,7 +3815,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/servicerunners/{serviceRunnerName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/servicerunners/{name}": { "get": { "operationId": "ServiceRunners_Get", "tags": [ @@ -3840,7 +3840,7 @@ "type": "string" }, { - "name": "serviceRunnerName", + "name": "name", "in": "path", "description": "The name of the service runner.", "required": true, @@ -3891,7 +3891,7 @@ "type": "string" }, { - "name": "serviceRunnerName", + "name": "name", "in": "path", "description": "The name of the service runner.", "required": true, @@ -3957,7 +3957,7 @@ "type": "string" }, { - "name": "serviceRunnerName", + "name": "name", "in": "path", "description": "The name of the service runner.", "required": true, @@ -5352,7 +5352,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/secrets/{secretName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/secrets/{name}": { "get": { "operationId": "Secrets_Get", "tags": [ @@ -5384,7 +5384,7 @@ "type": "string" }, { - "name": "secretName", + "name": "name", "in": "path", "description": "The name of the secret.", "required": true, @@ -5449,7 +5449,7 @@ "type": "string" }, { - "name": "secretName", + "name": "name", "in": "path", "description": "The name of the secret.", "required": true, @@ -5537,7 +5537,7 @@ "type": "string" }, { - "name": "secretName", + "name": "name", "in": "path", "description": "The name of the secret.", "required": true, @@ -5604,7 +5604,7 @@ "type": "string" }, { - "name": "secretName", + "name": "name", "in": "path", "description": "The name of the secret.", "required": true, @@ -8433,7 +8433,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualnetworks/{virtualNetworkName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualnetworks/{name}": { "get": { "operationId": "VirtualNetworks_Get", "tags": [ @@ -8458,7 +8458,7 @@ "type": "string" }, { - "name": "virtualNetworkName", + "name": "name", "in": "path", "description": "The name of the virtual network.", "required": true, @@ -8516,7 +8516,7 @@ "type": "string" }, { - "name": "virtualNetworkName", + "name": "name", "in": "path", "description": "The name of the virtual network.", "required": true, @@ -8597,7 +8597,7 @@ "type": "string" }, { - "name": "virtualNetworkName", + "name": "name", "in": "path", "description": "The name of the virtual network.", "required": true, @@ -8657,7 +8657,7 @@ "type": "string" }, { - "name": "virtualNetworkName", + "name": "name", "in": "path", "description": "The name of the virtual network.", "required": true, @@ -12639,11 +12639,7 @@ "description": "The Secret items on this page", "items": { "$ref": "#/definitions/Secret" - }, - "x-ms-identifiers": [ - "secretName", - "id" - ] + } }, "nextLink": { "type": "string", @@ -13214,11 +13210,7 @@ "description": "The VirtualNetwork items on this page", "items": { "$ref": "#/definitions/VirtualNetwork" - }, - "x-ms-identifiers": [ - "virtualNetworkName", - "id" - ] + } }, "nextLink": { "type": "string", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json index c0d7c44deff7..804a9e935e33 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json @@ -1,6 +1,6 @@ { "parameters": { - "policySetName": "{policySetName}", + "name": "{policySetName}", "api-version": "2018-09-15", "evaluatePoliciesRequest": { "policies": [ diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_CreateOrUpdate.json index f8824db5e2ed..ee35f8641802 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "secretName": "{secretName}", + "name": "{secretName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Delete.json index 921e4b902726..67d580ca9b81 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "secretName": "{secretName}", + "name": "{secretName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Get.json index 217c4b6a8f91..dc38d4422be8 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "secretName": "{secretName}", + "name": "{secretName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Update.json index 4e9af2fb4fbc..7ded3937f8b2 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "secretName": "{secretName}", + "name": "{secretName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Delete.json index ed58e6f647a8..74af4b262d1c 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "serviceRunnerName": "{servicerunnerName}", + "name": "{servicerunnerName}", "api-version": "2018-09-15", "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Get.json index 0734bb7136f4..05027cbb83a1 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "serviceRunnerName": "{servicerunnerName}", + "name": "{servicerunnerName}", "api-version": "2018-09-15", "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json index 3c0b4a6c8cc0..a81679aa3185 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "virtualNetworkName": "{virtualNetworkName}", + "name": "{virtualNetworkName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Get.json index 229a3622afd4..2bb4fe724969 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "virtualNetworkName": "{virtualNetworkName}", + "name": "{virtualNetworkName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Update.json index 2fa5f5c85475..efbb53085882 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "virtualNetworkName": "{virtualNetworkName}", + "name": "{virtualNetworkName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", From bb225a5cd4da57c384def164564360c238013ec9 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Mon, 30 Jun 2025 13:52:42 -0700 Subject: [PATCH 42/59] Examples update and operations id fix --- ...List.json => ProviderOperations_List.json} | 4 +- .../ServiceRunners_CreateOrUpdate.json | 2 +- .../2018-09-15/VirtualNetworks_Delete.json | 2 +- .../Microsoft.DevTestLab.Management/main.tsp | 6 +- .../stable/2018-09-15/DTL.json | 6 +- .../examples/ProviderOperations_List.json | 568 +++++++++--------- .../ServiceRunners_CreateOrUpdate.json | 2 +- .../examples/VirtualNetworks_Delete.json | 2 +- 8 files changed, 298 insertions(+), 294 deletions(-) rename specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/{Operations_List.json => ProviderOperations_List.json} (99%) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Operations_List.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ProviderOperations_List.json similarity index 99% rename from specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Operations_List.json rename to specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ProviderOperations_List.json index 52d71af9edfe..1f18bab05135 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Operations_List.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ProviderOperations_List.json @@ -856,6 +856,6 @@ } } }, - "operationId": "Operations_List", - "title": "Operations_List" + "operationId": "ProviderOperations_List", + "title": "ProviderOperations_List" } diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_CreateOrUpdate.json index 4593e47e1248..d61c8d98fa5f 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceRunners_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "serviceRunnerName": "{servicerunnerName}", + "name": "{servicerunnerName}", "api-version": "2018-09-15", "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Delete.json index ccb458255832..0afd481bedec 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "virtualNetworkName": "{virtualNetworkName}", + "name": "{virtualNetworkName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/main.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/main.tsp index 8132a7774d4f..1c593e79f3ee 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/main.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/main.tsp @@ -38,10 +38,11 @@ using TypeSpec.Versioning; /** * The DevTest Labs Client. */ +#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "For backward compatibility" +// FIXME: Common type version not set. Set to v3. @armProviderNamespace @service(#{ title: "DevTestLabsClient" }) @versioned(Versions) -// FIXME: Common type version not set. Set to v3. @armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v3) namespace Microsoft.DevTestLab; @@ -57,4 +58,5 @@ enum Versions { v2018_09_15: "2018-09-15", } -interface Operations extends Azure.ResourceManager.Operations {} +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +interface ProviderOperations extends Azure.ResourceManager.Operations {} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index 7ad273f89f63..606202f6e5eb 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -109,7 +109,7 @@ "paths": { "/providers/Microsoft.DevTestLab/operations": { "get": { - "operationId": "Operations_List", + "operationId": "ProviderOperations_List", "tags": [ "Operations" ], @@ -134,8 +134,8 @@ } }, "x-ms-examples": { - "Operations_List": { - "$ref": "./examples/Operations_List.json" + "ProviderOperations_List": { + "$ref": "./examples/ProviderOperations_List.json" } }, "x-ms-pageable": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ProviderOperations_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ProviderOperations_List.json index 8addc4ae0350..1f18bab05135 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ProviderOperations_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ProviderOperations_List.json @@ -9,851 +9,853 @@ { "name": "Microsoft.DevTestLab/register/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "register", + "description": "Registers the subscription", "operation": "Register Subscription", - "description": "Registers the subscription" + "provider": "Microsoft DevTest Labs", + "resource": "register" } }, { "name": "Microsoft.DevTestLab/labs/policySets/EvaluatePolicies/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "policy sets", + "description": "Evaluates lab policy.", "operation": "Evaluate policy", - "description": "Evaluates lab policy." + "provider": "Microsoft DevTest Labs", + "resource": "policy sets" } }, { "name": "Microsoft.DevTestLab/labs/delete", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Labs", + "description": "Delete labs.", "operation": "Delete labs.", - "description": "Delete labs." + "provider": "Microsoft DevTest Labs", + "resource": "Labs" } }, { "name": "Microsoft.DevTestLab/labs/read", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Labs", + "description": "Read labs.", "operation": "Read labs.", - "description": "Read labs." + "provider": "Microsoft DevTest Labs", + "resource": "Labs" } }, { "name": "Microsoft.DevTestLab/labs/write", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Labs", + "description": "Add or modify labs.", "operation": "Add or modify labs.", - "description": "Add or modify labs." + "provider": "Microsoft DevTest Labs", + "resource": "Labs" } }, { "name": "Microsoft.DevTestLab/labs/ListVhds/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Labs", + "description": "List disk images available for custom image creation.", "operation": "List VHDs", - "description": "List disk images available for custom image creation." + "provider": "Microsoft DevTest Labs", + "resource": "Labs" } }, { "name": "Microsoft.DevTestLab/labs/GenerateUploadUri/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Labs", + "description": "Generate a URI for uploading custom disk images to a Lab.", "operation": "Generate image upload URI", - "description": "Generate a URI for uploading custom disk images to a Lab." + "provider": "Microsoft DevTest Labs", + "resource": "Labs" } }, { "name": "Microsoft.DevTestLab/labs/CreateEnvironment/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Labs", + "description": "Create virtual machines in a lab.", "operation": "Create a virtual machine", - "description": "Create virtual machines in a lab." + "provider": "Microsoft DevTest Labs", + "resource": "Labs" } }, { "name": "Microsoft.DevTestLab/labs/ClaimAnyVm/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Labs", + "description": "Claim a random claimable virtual machine in the lab.", "operation": "Claim Any Virtual Machine", - "description": "Claim a random claimable virtual machine in the lab." + "provider": "Microsoft DevTest Labs", + "resource": "Labs" } }, { "name": "Microsoft.DevTestLab/labs/ExportResourceUsage/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Labs", + "description": "Exports the lab resource usage into a storage account", "operation": "Exports the lab resource usage into a storage account", - "description": "Exports the lab resource usage into a storage account" + "provider": "Microsoft DevTest Labs", + "resource": "Labs" } }, { "name": "Microsoft.DevTestLab/labs/ImportVirtualMachine/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Labs", + "description": "Import a virtual machine into a different lab.", "operation": "Import a virtual machine", - "description": "Import a virtual machine into a different lab." + "provider": "Microsoft DevTest Labs", + "resource": "Labs" } }, { "name": "Microsoft.DevTestLab/labs/policySets/policies/delete", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "policies", + "description": "Delete policies.", "operation": "Delete policies.", - "description": "Delete policies." + "provider": "Microsoft DevTest Labs", + "resource": "policies" } }, { "name": "Microsoft.DevTestLab/labs/policySets/policies/read", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "policies", + "description": "Read policies.", "operation": "Read policies.", - "description": "Read policies." + "provider": "Microsoft DevTest Labs", + "resource": "policies" } }, { "name": "Microsoft.DevTestLab/labs/policySets/policies/write", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "policies", + "description": "Add or modify policies.", "operation": "Add or modify policies.", - "description": "Add or modify policies." + "provider": "Microsoft DevTest Labs", + "resource": "policies" } }, { "name": "Microsoft.DevTestLab/labs/schedules/delete", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "schedules", + "description": "Delete schedules.", "operation": "Delete schedules.", - "description": "Delete schedules." + "provider": "Microsoft DevTest Labs", + "resource": "schedules" } }, { "name": "Microsoft.DevTestLab/labs/schedules/read", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "schedules", + "description": "Read schedules.", "operation": "Read schedules.", - "description": "Read schedules." + "provider": "Microsoft DevTest Labs", + "resource": "schedules" } }, { "name": "Microsoft.DevTestLab/labs/schedules/write", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "schedules", + "description": "Add or modify schedules.", "operation": "Add or modify schedules.", - "description": "Add or modify schedules." + "provider": "Microsoft DevTest Labs", + "resource": "schedules" } }, { "name": "Microsoft.DevTestLab/labs/schedules/Execute/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "schedules", + "description": "Execute a schedule.", "operation": "Execute schedule", - "description": "Execute a schedule." + "provider": "Microsoft DevTest Labs", + "resource": "schedules" } }, { "name": "Microsoft.DevTestLab/labs/schedules/ListApplicable/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "schedules", + "description": "Lists all applicable schedules", "operation": "List all applicable schedules", - "description": "Lists all applicable schedules" + "provider": "Microsoft DevTest Labs", + "resource": "schedules" } }, { "name": "Microsoft.DevTestLab/schedules/delete", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "schedules", + "description": "Delete schedules.", "operation": "Delete schedules.", - "description": "Delete schedules." + "provider": "Microsoft DevTest Labs", + "resource": "schedules" } }, { "name": "Microsoft.DevTestLab/schedules/read", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "schedules", + "description": "Read schedules.", "operation": "Read schedules.", - "description": "Read schedules." + "provider": "Microsoft DevTest Labs", + "resource": "schedules" } }, { "name": "Microsoft.DevTestLab/schedules/write", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "schedules", + "description": "Add or modify schedules.", "operation": "Add or modify schedules.", - "description": "Add or modify schedules." + "provider": "Microsoft DevTest Labs", + "resource": "schedules" } }, { "name": "Microsoft.DevTestLab/schedules/Execute/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "schedules", + "description": "Execute a schedule.", "operation": "Execute schedule", - "description": "Execute a schedule." + "provider": "Microsoft DevTest Labs", + "resource": "schedules" } }, { "name": "Microsoft.DevTestLab/schedules/Retarget/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "schedules", + "description": "Updates a schedule's target resource Id.", "operation": "Retarget schedule.", - "description": "Updates a schedule's target resource Id." + "provider": "Microsoft DevTest Labs", + "resource": "schedules" } }, { "name": "Microsoft.DevTestLab/labs/virtualMachines/schedules/delete", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "schedules", + "description": "Delete schedules.", "operation": "Delete schedules.", - "description": "Delete schedules." + "provider": "Microsoft DevTest Labs", + "resource": "schedules" } }, { "name": "Microsoft.DevTestLab/labs/virtualMachines/schedules/read", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "schedules", + "description": "Read schedules.", "operation": "Read schedules.", - "description": "Read schedules." + "provider": "Microsoft DevTest Labs", + "resource": "schedules" } }, { "name": "Microsoft.DevTestLab/labs/virtualMachines/schedules/write", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "schedules", + "description": "Add or modify schedules.", "operation": "Add or modify schedules.", - "description": "Add or modify schedules." + "provider": "Microsoft DevTest Labs", + "resource": "schedules" } }, { "name": "Microsoft.DevTestLab/labs/virtualMachines/schedules/Execute/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "schedules", + "description": "Execute a schedule.", "operation": "Execute schedule", - "description": "Execute a schedule." + "provider": "Microsoft DevTest Labs", + "resource": "schedules" } }, { "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/schedules/delete", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "schedules", + "description": "Delete schedules.", "operation": "Delete schedules.", - "description": "Delete schedules." + "provider": "Microsoft DevTest Labs", + "resource": "schedules" } }, { "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/schedules/read", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "schedules", + "description": "Read schedules.", "operation": "Read schedules.", - "description": "Read schedules." + "provider": "Microsoft DevTest Labs", + "resource": "schedules" } }, { "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/schedules/write", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "schedules", + "description": "Add or modify schedules.", "operation": "Add or modify schedules.", - "description": "Add or modify schedules." + "provider": "Microsoft DevTest Labs", + "resource": "schedules" } }, { "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/schedules/Execute/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "schedules", + "description": "Execute a schedule.", "operation": "Execute schedule", - "description": "Execute a schedule." + "provider": "Microsoft DevTest Labs", + "resource": "schedules" } }, { "name": "Microsoft.DevTestLab/labs/artifactSources/delete", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Artifact sources", + "description": "Delete artifact sources.", "operation": "Delete artifact sources.", - "description": "Delete artifact sources." + "provider": "Microsoft DevTest Labs", + "resource": "Artifact sources" } }, { "name": "Microsoft.DevTestLab/labs/artifactSources/read", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Artifact sources", + "description": "Read artifact sources.", "operation": "Read artifact sources.", - "description": "Read artifact sources." + "provider": "Microsoft DevTest Labs", + "resource": "Artifact sources" } }, { "name": "Microsoft.DevTestLab/labs/artifactSources/write", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Artifact sources", + "description": "Add or modify artifact sources.", "operation": "Add or modify artifact sources.", - "description": "Add or modify artifact sources." + "provider": "Microsoft DevTest Labs", + "resource": "Artifact sources" } }, { "name": "Microsoft.DevTestLab/labs/artifactSources/artifacts/read", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Artifacts", + "description": "Read artifacts.", "operation": "Read artifacts.", - "description": "Read artifacts." + "provider": "Microsoft DevTest Labs", + "resource": "Artifacts" } }, { "name": "Microsoft.DevTestLab/labs/artifactSources/artifacts/GenerateArmTemplate/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Artifacts", + "description": "Generates an ARM template for the given artifact, uploads the required files to a storage account, and validates the generated artifact.", "operation": "Generates an ARM template for the given artifact", - "description": "Generates an ARM template for the given artifact, uploads the required files to a storage account, and validates the generated artifact." + "provider": "Microsoft DevTest Labs", + "resource": "Artifacts" } }, { "name": "Microsoft.DevTestLab/labs/galleryImages/read", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "gallery images", + "description": "Read gallery images.", "operation": "Read gallery images.", - "description": "Read gallery images." + "provider": "Microsoft DevTest Labs", + "resource": "gallery images" } }, { "name": "Microsoft.DevTestLab/labs/customImages/delete", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "custom images", + "description": "Delete custom images.", "operation": "Delete custom images.", - "description": "Delete custom images." + "provider": "Microsoft DevTest Labs", + "resource": "custom images" } }, { "name": "Microsoft.DevTestLab/labs/customImages/read", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "custom images", + "description": "Read custom images.", "operation": "Read custom images.", - "description": "Read custom images." + "provider": "Microsoft DevTest Labs", + "resource": "custom images" } }, { "name": "Microsoft.DevTestLab/labs/customImages/write", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "custom images", + "description": "Add or modify custom images.", "operation": "Add or modify custom images.", - "description": "Add or modify custom images." + "provider": "Microsoft DevTest Labs", + "resource": "custom images" } }, { "name": "Microsoft.DevTestLab/labs/virtualNetworks/delete", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "virtual networks", + "description": "Delete virtual networks.", "operation": "Delete virtual networks.", - "description": "Delete virtual networks." + "provider": "Microsoft DevTest Labs", + "resource": "virtual networks" } }, { "name": "Microsoft.DevTestLab/labs/virtualNetworks/read", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "virtual networks", + "description": "Read virtual networks.", "operation": "Read virtual networks.", - "description": "Read virtual networks." + "provider": "Microsoft DevTest Labs", + "resource": "virtual networks" } }, { "name": "Microsoft.DevTestLab/labs/virtualNetworks/write", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "virtual networks", + "description": "Add or modify virtual networks.", "operation": "Add or modify virtual networks.", - "description": "Add or modify virtual networks." + "provider": "Microsoft DevTest Labs", + "resource": "virtual networks" } }, { "name": "Microsoft.DevTestLab/labs/virtualMachines/delete", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Virtual machines", + "description": "Delete virtual machines.", "operation": "Delete virtual machines.", - "description": "Delete virtual machines." + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" } }, { "name": "Microsoft.DevTestLab/labs/virtualMachines/read", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Virtual machines", + "description": "Read virtual machines.", "operation": "Read virtual machines.", - "description": "Read virtual machines." + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" } }, { "name": "Microsoft.DevTestLab/labs/virtualMachines/write", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Virtual machines", + "description": "Add or modify virtual machines.", "operation": "Add or modify virtual machines.", - "description": "Add or modify virtual machines." + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" } }, { "name": "Microsoft.DevTestLab/labs/virtualMachines/Start/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Virtual machines", + "description": "Start a virtual machine.", "operation": "Start virtual machine", - "description": "Start a virtual machine." + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" } }, { "name": "Microsoft.DevTestLab/labs/virtualMachines/Stop/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Virtual machines", + "description": "Stop a virtual machine", "operation": "Stop virtual machine", - "description": "Stop a virtual machine" + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" } }, { "name": "Microsoft.DevTestLab/labs/virtualMachines/Restart/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Virtual machines", + "description": "Restart a virtual machine.", "operation": "Restart virtual machine", - "description": "Restart a virtual machine." + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" } }, { "name": "Microsoft.DevTestLab/labs/virtualMachines/Redeploy/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Virtual machines", + "description": "Redeploy a virtual machine", "operation": "Redeploy a virtual machine", - "description": "Redeploy a virtual machine" + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" } }, { "name": "Microsoft.DevTestLab/labs/virtualMachines/Resize/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Virtual machines", + "description": "Resize Virtual Machine.", "operation": "Resize Virtual Machine.", - "description": "Resize Virtual Machine." + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" } }, { "name": "Microsoft.DevTestLab/labs/virtualMachines/ApplyArtifacts/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Virtual machines", + "description": "Apply artifacts to virtual machine.", "operation": "Apply artifacts to virtual machine", - "description": "Apply artifacts to virtual machine." + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" } }, { "name": "Microsoft.DevTestLab/labs/virtualMachines/AddDataDisk/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Virtual machines", + "description": "Attach a new or existing data disk to virtual machine.", "operation": "Add or attach a data disk", - "description": "Attach a new or existing data disk to virtual machine." + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" } }, { "name": "Microsoft.DevTestLab/labs/virtualMachines/DetachDataDisk/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Virtual machines", + "description": "Detach the specified disk from the virtual machine.", "operation": "Detach the specified disk from the virtual machine", - "description": "Detach the specified disk from the virtual machine." + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" } }, { "name": "Microsoft.DevTestLab/labs/virtualMachines/Claim/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Virtual machines", + "description": "Take ownership of an existing virtual machine", "operation": "Claim a virtual machine", - "description": "Take ownership of an existing virtual machine" + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" } }, { "name": "Microsoft.DevTestLab/labs/virtualMachines/UnClaim/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Virtual machines", + "description": "Release ownership of an existing virtual machine", "operation": "Unclaim a virtual machine", - "description": "Release ownership of an existing virtual machine" + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" } }, { "name": "Microsoft.DevTestLab/labs/virtualMachines/TransferDisks/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Virtual machines", + "description": "Transfer ownership of virtual machine data disks to yourself", "operation": "Transfer data disks to yourself", - "description": "Transfer ownership of virtual machine data disks to yourself" + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" } }, { "name": "Microsoft.DevTestLab/labs/virtualMachines/ListApplicableSchedules/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Virtual machines", + "description": "Lists all applicable schedules", "operation": "List all applicable schedules", - "description": "Lists all applicable schedules" + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" } }, { "name": "Microsoft.DevTestLab/labs/virtualMachines/GetRdpFileContents/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Virtual machines", + "description": "Gets a string that represents the contents of the RDP file for the virtual machine", "operation": "Get RDP file contents", - "description": "Gets a string that represents the contents of the RDP file for the virtual machine" + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines" } }, { "name": "Microsoft.DevTestLab/labs/formulas/delete", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Formulas", + "description": "Delete formulas.", "operation": "Delete formulas.", - "description": "Delete formulas." + "provider": "Microsoft DevTest Labs", + "resource": "Formulas" } }, { "name": "Microsoft.DevTestLab/labs/formulas/read", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Formulas", + "description": "Read formulas.", "operation": "Read formulas.", - "description": "Read formulas." + "provider": "Microsoft DevTest Labs", + "resource": "Formulas" } }, { "name": "Microsoft.DevTestLab/labs/formulas/write", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Formulas", + "description": "Add or modify formulas.", "operation": "Add or modify formulas.", - "description": "Add or modify formulas." + "provider": "Microsoft DevTest Labs", + "resource": "Formulas" } }, { "name": "Microsoft.DevTestLab/labs/costs/read", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "costs", + "description": "Read costs.", "operation": "Read costs.", - "description": "Read costs." + "provider": "Microsoft DevTest Labs", + "resource": "costs" } }, { "name": "Microsoft.DevTestLab/labs/costs/write", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "costs", + "description": "Add or modify costs.", "operation": "Add or modify costs.", - "description": "Add or modify costs." + "provider": "Microsoft DevTest Labs", + "resource": "costs" } }, { "name": "Microsoft.DevTestLab/labs/users/disks/delete", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "disks", + "description": "Delete disks.", "operation": "Delete disks.", - "description": "Delete disks." + "provider": "Microsoft DevTest Labs", + "resource": "disks" } }, { "name": "Microsoft.DevTestLab/labs/users/disks/read", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "disks", + "description": "Read disks.", "operation": "Read disks.", - "description": "Read disks." + "provider": "Microsoft DevTest Labs", + "resource": "disks" } }, { "name": "Microsoft.DevTestLab/labs/users/disks/write", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "disks", + "description": "Add or modify disks.", "operation": "Add or modify disks.", - "description": "Add or modify disks." + "provider": "Microsoft DevTest Labs", + "resource": "disks" } }, { "name": "Microsoft.DevTestLab/labs/users/disks/Attach/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "disks", + "description": "Attach and create the lease of the disk to the virtual machine.", "operation": "Attach disk", - "description": "Attach and create the lease of the disk to the virtual machine." + "provider": "Microsoft DevTest Labs", + "resource": "disks" } }, { "name": "Microsoft.DevTestLab/labs/users/disks/Detach/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "disks", + "description": "Detach and break the lease of the disk attached to the virtual machine.", "operation": "Detach and break the lease of the disk attached to the virtual machine", - "description": "Detach and break the lease of the disk attached to the virtual machine." + "provider": "Microsoft DevTest Labs", + "resource": "disks" } }, { "name": "Microsoft.DevTestLab/labs/users/delete", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "user profiles", + "description": "Delete user profiles.", "operation": "Delete user profiles.", - "description": "Delete user profiles." + "provider": "Microsoft DevTest Labs", + "resource": "user profiles" } }, { "name": "Microsoft.DevTestLab/labs/users/read", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "user profiles", + "description": "Read user profiles.", "operation": "Read user profiles.", - "description": "Read user profiles." + "provider": "Microsoft DevTest Labs", + "resource": "user profiles" } }, { "name": "Microsoft.DevTestLab/labs/users/write", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "user profiles", + "description": "Add or modify user profiles.", "operation": "Add or modify user profiles.", - "description": "Add or modify user profiles." + "provider": "Microsoft DevTest Labs", + "resource": "user profiles" } }, { "name": "Microsoft.DevTestLab/labs/notificationChannels/delete", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "notificationChannels", + "description": "Delete notification channels.", "operation": "Delete notification channels.", - "description": "Delete notification channels." + "provider": "Microsoft DevTest Labs", + "resource": "notificationChannels" } }, { "name": "Microsoft.DevTestLab/labs/notificationChannels/read", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "notificationChannels", + "description": "Read notification channels.", "operation": "Read notification channels.", - "description": "Read notification channels." + "provider": "Microsoft DevTest Labs", + "resource": "notificationChannels" } }, { "name": "Microsoft.DevTestLab/labs/notificationChannels/write", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "notificationChannels", + "description": "Add or modify notification channels.", "operation": "Add or modify notification channels.", - "description": "Add or modify notification channels." + "provider": "Microsoft DevTest Labs", + "resource": "notificationChannels" } }, { "name": "Microsoft.DevTestLab/labs/notificationChannels/Notify/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "notificationChannels", + "description": "Send notification to provided channel.", "operation": "Notify", - "description": "Send notification to provided channel." + "provider": "Microsoft DevTest Labs", + "resource": "notificationChannels" } }, { "name": "Microsoft.DevTestLab/labs/users/secrets/delete", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "secrets", + "description": "Delete secrets.", "operation": "Delete secrets.", - "description": "Delete secrets." + "provider": "Microsoft DevTest Labs", + "resource": "secrets" } }, { "name": "Microsoft.DevTestLab/labs/users/secrets/read", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "secrets", + "description": "Read secrets.", "operation": "Read secrets.", - "description": "Read secrets." + "provider": "Microsoft DevTest Labs", + "resource": "secrets" } }, { "name": "Microsoft.DevTestLab/labs/users/secrets/write", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "secrets", + "description": "Add or modify secrets.", "operation": "Add or modify secrets.", - "description": "Add or modify secrets." + "provider": "Microsoft DevTest Labs", + "resource": "secrets" } }, { "name": "Microsoft.DevTestLab/locations/operations/read", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "operations", + "description": "Read operations.", "operation": "Read operations.", - "description": "Read operations." + "provider": "Microsoft DevTest Labs", + "resource": "operations" } }, { "name": "Microsoft.DevTestLab/labs/artifactSources/armTemplates/read", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Azure Resource Manager templates", + "description": "Read azure resource manager templates.", "operation": "Read azure resource manager templates.", - "description": "Read azure resource manager templates." + "provider": "Microsoft DevTest Labs", + "resource": "Azure Resource Manager templates" } }, { "name": "Microsoft.DevTestLab/labs/users/environments/delete", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "environments", + "description": "Delete environments.", "operation": "Delete environments.", - "description": "Delete environments." + "provider": "Microsoft DevTest Labs", + "resource": "environments" } }, { "name": "Microsoft.DevTestLab/labs/users/environments/read", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "environments", + "description": "Read environments.", "operation": "Read environments.", - "description": "Read environments." + "provider": "Microsoft DevTest Labs", + "resource": "environments" } }, { "name": "Microsoft.DevTestLab/labs/users/environments/write", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "environments", + "description": "Add or modify environments.", "operation": "Add or modify environments.", - "description": "Add or modify environments." + "provider": "Microsoft DevTest Labs", + "resource": "environments" } }, { "name": "Microsoft.DevTestLab/labs/serviceRunners/delete", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Service runners", + "description": "Delete service runners.", "operation": "Delete service runners.", - "description": "Delete service runners." + "provider": "Microsoft DevTest Labs", + "resource": "Service runners" } }, { "name": "Microsoft.DevTestLab/labs/serviceRunners/read", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Service runners", + "description": "Read service runners.", "operation": "Read service runners.", - "description": "Read service runners." + "provider": "Microsoft DevTest Labs", + "resource": "Service runners" } }, { "name": "Microsoft.DevTestLab/labs/serviceRunners/write", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Service runners", + "description": "Add or modify service runners.", "operation": "Add or modify service runners.", - "description": "Add or modify service runners." + "provider": "Microsoft DevTest Labs", + "resource": "Service runners" } }, { "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/delete", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Service Fabrics", + "description": "Delete service fabrics.", "operation": "Delete service fabrics.", - "description": "Delete service fabrics." + "provider": "Microsoft DevTest Labs", + "resource": "Service Fabrics" } }, { "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/read", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Service Fabrics", + "description": "Read service fabrics.", "operation": "Read service fabrics.", - "description": "Read service fabrics." + "provider": "Microsoft DevTest Labs", + "resource": "Service Fabrics" } }, { "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/write", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Service Fabrics", + "description": "Add or modify service fabrics.", "operation": "Add or modify service fabrics.", - "description": "Add or modify service fabrics." + "provider": "Microsoft DevTest Labs", + "resource": "Service Fabrics" } }, { "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/Start/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Service Fabrics", + "description": "Start a service fabric.", "operation": "Start service fabric", - "description": "Start a service fabric." + "provider": "Microsoft DevTest Labs", + "resource": "Service Fabrics" } }, { "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/Stop/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Service Fabrics", + "description": "Stop a service fabric", "operation": "Stop service fabric", - "description": "Stop a service fabric" + "provider": "Microsoft DevTest Labs", + "resource": "Service Fabrics" } }, { "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/ListApplicableSchedules/action", "display": { - "provider": "Microsoft DevTest Labs", - "resource": "Service Fabrics", + "description": "Lists all applicable schedules", "operation": "List all applicable schedules", - "description": "Lists all applicable schedules" + "provider": "Microsoft DevTest Labs", + "resource": "Service Fabrics" } } ] } } - } + }, + "operationId": "ProviderOperations_List", + "title": "ProviderOperations_List" } diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_CreateOrUpdate.json index 4593e47e1248..d61c8d98fa5f 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "serviceRunnerName": "{servicerunnerName}", + "name": "{servicerunnerName}", "api-version": "2018-09-15", "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Delete.json index ccb458255832..0afd481bedec 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "virtualNetworkName": "{virtualNetworkName}", + "name": "{virtualNetworkName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", From ef0c900c290d41a6e8fe7994aa366868dc696b90 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Mon, 30 Jun 2025 15:50:16 -0700 Subject: [PATCH 43/59] servicefabric update --- .../ServiceFabric.tsp | 4 +- .../ServiceFabrics_CreateOrUpdate.json | 2 +- .../2018-09-15/ServiceFabrics_Delete.json | 2 +- .../2018-09-15/ServiceFabrics_Get.json | 2 +- ...erviceFabrics_ListApplicableSchedules.json | 2 +- .../2018-09-15/ServiceFabrics_Start.json | 2 +- .../2018-09-15/ServiceFabrics_Stop.json | 2 +- .../2018-09-15/ServiceFabrics_Update.json | 2 +- .../models.tsp | 8 ++-- .../stable/2018-09-15/DTL.json | 40 +++++++++---------- .../ServiceFabrics_CreateOrUpdate.json | 2 +- .../examples/ServiceFabrics_Delete.json | 2 +- .../examples/ServiceFabrics_Get.json | 2 +- ...erviceFabrics_ListApplicableSchedules.json | 2 +- .../examples/ServiceFabrics_Start.json | 2 +- .../examples/ServiceFabrics_Stop.json | 2 +- .../examples/ServiceFabrics_Update.json | 2 +- 17 files changed, 40 insertions(+), 40 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp index 150fb756021c..b8e404ee3de1 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp @@ -25,7 +25,7 @@ model ServiceFabric extends Resource { @path @key @segment("servicefabrics") - serviceFabricName: string; + name: string; properties: ServiceFabricProperties; } @@ -126,7 +126,7 @@ interface ServiceFabrics { stop is ArmResourceActionAsync; } -@@doc(ServiceFabric.serviceFabricName, "The name of the service fabric."); +@@doc(ServiceFabric.name, "The name of the service fabric."); @@doc(ServiceFabric.properties, "The properties of the resource."); @@doc(ServiceFabric.location, "The location of the resource."); @@doc(ServiceFabric.tags, "The tags of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_CreateOrUpdate.json index 7f1e985fb4e9..b613efd85302 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "serviceFabricName": "{serviceFabricName}", + "name": "{serviceFabricName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Delete.json index 39b9865d282b..2dbe4a6197bb 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "serviceFabricName": "{serviceFabricName}", + "name": "{serviceFabricName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Get.json index 832ea6211d0a..7d6a473b1458 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "serviceFabricName": "{serviceFabricName}", + "name": "{serviceFabricName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_ListApplicableSchedules.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_ListApplicableSchedules.json index 6b6636b97cc2..a815504446c4 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_ListApplicableSchedules.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_ListApplicableSchedules.json @@ -1,6 +1,6 @@ { "parameters": { - "serviceFabricName": "{serviceFabricName}", + "name": "{serviceFabricName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Start.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Start.json index 70d4ebbb42ed..d9995665cc75 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Start.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Start.json @@ -1,6 +1,6 @@ { "parameters": { - "serviceFabricName": "{serviceFabricName}", + "name": "{serviceFabricName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Stop.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Stop.json index d55424098582..c6020eface0a 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Stop.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Stop.json @@ -1,6 +1,6 @@ { "parameters": { - "serviceFabricName": "{serviceFabricName}", + "name": "{serviceFabricName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Update.json index 854164e47ff8..1d2cbec7ff36 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ServiceFabrics_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "serviceFabricName": "{serviceFabricName}", + "name": "{serviceFabricName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp index bb71336e5f96..ed12f80ae262 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp @@ -1704,7 +1704,7 @@ model LabVirtualMachineCreationParameterProperties { /** * Indicates whether the virtual machine is to be created without a public IP address. */ - disallowPublicIpAddress?: boolean; + disallowPublicIpAddress?: boolean = false; /** * The artifacts to be installed on the virtual machine. @@ -1736,7 +1736,7 @@ model LabVirtualMachineCreationParameterProperties { /** * Indicates whether another user can take ownership of the virtual machine */ - allowClaim?: boolean; + allowClaim?: boolean = false; /** * Storage type to use for virtual machine (i.e. Standard, Premium). @@ -2881,7 +2881,7 @@ model LabVirtualMachineProperties { /** * Indicates whether the virtual machine is to be created without a public IP address. */ - disallowPublicIpAddress?: boolean; + disallowPublicIpAddress?: boolean = false; /** * The artifacts to be installed on the virtual machine. @@ -2931,7 +2931,7 @@ model LabVirtualMachineProperties { /** * Indicates whether another user can take ownership of the virtual machine */ - allowClaim?: boolean; + allowClaim?: boolean = false; /** * Storage type to use for virtual machine (i.e. Standard, Premium). diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index 606202f6e5eb..07bbaa61fb52 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -5717,7 +5717,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}": { "get": { "operationId": "ServiceFabrics_Get", "tags": [ @@ -5749,7 +5749,7 @@ "type": "string" }, { - "name": "serviceFabricName", + "name": "name", "in": "path", "description": "The name of the service fabric.", "required": true, @@ -5814,7 +5814,7 @@ "type": "string" }, { - "name": "serviceFabricName", + "name": "name", "in": "path", "description": "The name of the service fabric.", "required": true, @@ -5902,7 +5902,7 @@ "type": "string" }, { - "name": "serviceFabricName", + "name": "name", "in": "path", "description": "The name of the service fabric.", "required": true, @@ -5969,7 +5969,7 @@ "type": "string" }, { - "name": "serviceFabricName", + "name": "name", "in": "path", "description": "The name of the service fabric.", "required": true, @@ -6015,7 +6015,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/listApplicableSchedules": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}/listApplicableSchedules": { "post": { "operationId": "ServiceFabrics_ListApplicableSchedules", "tags": [ @@ -6047,7 +6047,7 @@ "type": "string" }, { - "name": "serviceFabricName", + "name": "name", "in": "path", "description": "The name of the service fabric.", "required": true, @@ -6542,7 +6542,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/start": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}/start": { "post": { "operationId": "ServiceFabrics_Start", "tags": [ @@ -6574,7 +6574,7 @@ "type": "string" }, { - "name": "serviceFabricName", + "name": "name", "in": "path", "description": "The name of the service fabric.", "required": true, @@ -6617,7 +6617,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/stop": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}/stop": { "post": { "operationId": "ServiceFabrics_Stop", "tags": [ @@ -6649,7 +6649,7 @@ "type": "string" }, { - "name": "serviceFabricName", + "name": "name", "in": "path", "description": "The name of the service fabric.", "required": true, @@ -11474,7 +11474,8 @@ }, "disallowPublicIpAddress": { "type": "boolean", - "description": "Indicates whether the virtual machine is to be created without a public IP address." + "description": "Indicates whether the virtual machine is to be created without a public IP address.", + "default": false }, "artifacts": { "type": "array", @@ -11503,7 +11504,8 @@ }, "allowClaim": { "type": "boolean", - "description": "Indicates whether another user can take ownership of the virtual machine" + "description": "Indicates whether another user can take ownership of the virtual machine", + "default": false }, "storageType": { "type": "string", @@ -11642,7 +11644,8 @@ }, "disallowPublicIpAddress": { "type": "boolean", - "description": "Indicates whether the virtual machine is to be created without a public IP address." + "description": "Indicates whether the virtual machine is to be created without a public IP address.", + "default": false }, "artifacts": { "type": "array", @@ -11686,7 +11689,8 @@ }, "allowClaim": { "type": "boolean", - "description": "Indicates whether another user can take ownership of the virtual machine" + "description": "Indicates whether another user can take ownership of the virtual machine", + "default": false }, "storageType": { "type": "string", @@ -12708,11 +12712,7 @@ "description": "The ServiceFabric items on this page", "items": { "$ref": "#/definitions/ServiceFabric" - }, - "x-ms-identifiers": [ - "serviceFabricName", - "id" - ] + } }, "nextLink": { "type": "string", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_CreateOrUpdate.json index 7f1e985fb4e9..b613efd85302 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "serviceFabricName": "{serviceFabricName}", + "name": "{serviceFabricName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Delete.json index 39b9865d282b..2dbe4a6197bb 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "serviceFabricName": "{serviceFabricName}", + "name": "{serviceFabricName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Get.json index 832ea6211d0a..7d6a473b1458 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "serviceFabricName": "{serviceFabricName}", + "name": "{serviceFabricName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_ListApplicableSchedules.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_ListApplicableSchedules.json index 6b6636b97cc2..a815504446c4 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_ListApplicableSchedules.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_ListApplicableSchedules.json @@ -1,6 +1,6 @@ { "parameters": { - "serviceFabricName": "{serviceFabricName}", + "name": "{serviceFabricName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Start.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Start.json index 70d4ebbb42ed..d9995665cc75 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Start.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Start.json @@ -1,6 +1,6 @@ { "parameters": { - "serviceFabricName": "{serviceFabricName}", + "name": "{serviceFabricName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Stop.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Stop.json index d55424098582..c6020eface0a 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Stop.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Stop.json @@ -1,6 +1,6 @@ { "parameters": { - "serviceFabricName": "{serviceFabricName}", + "name": "{serviceFabricName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Update.json index 854164e47ff8..1d2cbec7ff36 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "serviceFabricName": "{serviceFabricName}", + "name": "{serviceFabricName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", From 4144b20a991b2c367bb8050fcb3b1fedb3e9823a Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Tue, 1 Jul 2025 10:26:19 -0700 Subject: [PATCH 44/59] ArtifactSource update --- .../ArmTemplate.tsp | 30 +- .../Artifact.tsp | 32 +- .../ArtifactSource.tsp | 7 +- .../ArtifactSources_CreateOrUpdate.json | 2 +- .../2018-09-15/ArtifactSources_Delete.json | 2 +- .../2018-09-15/ArtifactSources_Get.json | 2 +- .../2018-09-15/ArtifactSources_Update.json | 2 +- .../stable/2018-09-15/DTL.json | 374 +++++++++--------- .../ArtifactSources_CreateOrUpdate.json | 2 +- .../examples/ArtifactSources_Delete.json | 2 +- .../examples/ArtifactSources_Get.json | 2 +- .../examples/ArtifactSources_Update.json | 2 +- 12 files changed, 246 insertions(+), 213 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp index 5c1832f51a3a..b5ebaeffd418 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp @@ -16,7 +16,6 @@ namespace Microsoft.DevTestLab; #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" -@parentResource(ArtifactSource) @Azure.ResourceManager.Legacy.customAzureResource @Http.Private.includeInapplicableMetadataInPayload(false) model ArmTemplate extends Resource { @@ -29,12 +28,35 @@ model ArmTemplate extends Resource { properties: ArmTemplateProperties; } +@armResourceOperations +interface ArmTemplatesOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + /** The name of the lab. */ + @path @segment("labs") labName: string, + + /** The name of the artifact source. */ + @path @segment("artifactSource") artifactSourceName: string, + }, + KeysOf> + > {} + @armResourceOperations interface ArmTemplates { /** * Get azure resource manager template. */ - get is ArmResourceRead< + get is ArmTemplatesOps.Read< ArmTemplate, Parameters = { /** @@ -48,7 +70,7 @@ interface ArmTemplates { /** * List azure resource manager templates in a given artifact source. */ - list is ArmResourceListByParent< + list is ArmTemplatesOps.List< ArmTemplate, Parameters = { /** @@ -81,5 +103,3 @@ interface ArmTemplates { @@doc(ArmTemplate.name, "The name of the azure resource manager template."); @@doc(ArmTemplate.properties, "The properties of the resource."); -@@doc(ArmTemplate.tags, "The tags of the resource."); -@@doc(ArmTemplate.location, "The location of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp index 1315a41e10ea..32fb5e1ae77b 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp @@ -17,7 +17,6 @@ namespace Microsoft.DevTestLab; #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" -@parentResource(ArtifactSource) @Azure.ResourceManager.Legacy.customAzureResource @Http.Private.includeInapplicableMetadataInPayload(false) model Artifact extends Resource { @@ -30,12 +29,35 @@ model Artifact extends Resource { properties: ArtifactProperties; } +@armResourceOperations +interface ArtifactOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + /** The name of the lab. */ + @path @segment("labs") labName: string, + + /** The name of the artifact source. */ + @path @segment("artifactSource") artifactSourceName: string, + }, + KeysOf> + > {} + @armResourceOperations interface Artifacts { /** * Get artifact. */ - get is ArmResourceRead< + get is ArtifactOps.Read< Artifact, Parameters = { /** @@ -49,7 +71,7 @@ interface Artifacts { /** * List artifacts in a given artifact source. */ - list is ArmResourceListByParent< + list is ArtifactOps.List< Artifact, Parameters = { /** @@ -82,7 +104,7 @@ interface Artifacts { /** * Generates an ARM template for the given artifact, uploads the required files to a storage account, and validates the generated artifact. */ - generateArmTemplate is ArmResourceActionSync< + generateArmTemplate is ArtifactOps.ActionSync< Artifact, GenerateArmTemplateRequest, ArmResponse @@ -94,5 +116,3 @@ interface Artifacts { @@doc(Artifacts.generateArmTemplate::parameters.body, "Parameters for generating an ARM template for deploying artifacts." ); -@@doc(Artifact.tags, "The tags of the resource."); -@@doc(Artifact.location, "The location of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp index d8ef2c99348f..73a648692e42 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp @@ -7,7 +7,6 @@ import "./models.tsp"; using TypeSpec.Rest; using Azure.ResourceManager; using TypeSpec.Http; -using TypeSpec.OpenAPI; namespace Microsoft.DevTestLab; /** @@ -25,7 +24,7 @@ model ArtifactSource extends Resource { @path @key @segment("artifactsources") - artifactSourceName: string; + name: string; properties: ArtifactSourceProperties; } @@ -100,7 +99,7 @@ interface ArtifactSources { >; } -@@doc(ArtifactSource.artifactSourceName, "The name of the artifact source."); +@@doc(ArtifactSource.name, "The name of the artifact source."); @@doc(ArtifactSource.properties, "The properties of the resource."); @@doc(ArtifactSources.createOrUpdate::parameters.resource, "Properties of an artifact source." @@ -108,5 +107,3 @@ interface ArtifactSources { @@doc(ArtifactSources.update::parameters.properties, "Properties of an artifact source." ); -@@doc(ArtifactSource.tags, "The tags of the resource."); -@@doc(ArtifactSource.location, "The location of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_CreateOrUpdate.json index 56e69ddb237b..43527ac67a0f 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "artifactSourceName": "{artifactSourceName}", + "name": "{artifactSourceName}", "api-version": "2018-09-15", "artifactSource": { "properties": { diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Delete.json index 6cba7cf0a778..c243741e5378 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "artifactSourceName": "{artifactSourceName}", + "name": "{artifactSourceName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Get.json index a712f0eb3c86..0f56aaf30a09 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "artifactSourceName": "{artifactSourceName}", + "name": "{artifactSourceName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Update.json index e13759d4b6d3..ad5daa171224 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/ArtifactSources_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "artifactSourceName": "{artifactSourceName}", + "name": "{artifactSourceName}", "api-version": "2018-09-15", "artifactSource": { "tags": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index 07bbaa61fb52..1ff3b9f47ef8 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -645,13 +645,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactSource/{artifactSourceName}/armtemplates": { "get": { - "operationId": "ArtifactSources_List", + "operationId": "ArmTemplates_List", "tags": [ - "ArtifactSources" + "ArmTemplates" ], - "description": "List artifact sources in a given lab.", + "description": "List azure resource manager templates in a given artifact source.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -669,6 +669,13 @@ "required": true, "type": "string" }, + { + "name": "artifactSourceName", + "in": "path", + "description": "The name of the artifact source.", + "required": true, + "type": "string" + }, { "name": "$expand", "in": "query", @@ -703,7 +710,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ArtifactSourceList" + "$ref": "#/definitions/ArmTemplateList" } }, "default": { @@ -714,8 +721,8 @@ } }, "x-ms-examples": { - "ArtifactSources_List": { - "$ref": "./examples/ArtifactSources_List.json" + "ArmTemplates_List": { + "$ref": "./examples/ArmTemplates_List.json" } }, "x-ms-pageable": { @@ -723,13 +730,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactSource/{artifactSourceName}/armtemplates/{name}": { "get": { - "operationId": "ArtifactSources_Get", + "operationId": "ArmTemplates_Get", "tags": [ - "ArtifactSources" + "ArmTemplates" ], - "description": "Get artifact source.", + "description": "Get azure resource manager template.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -754,6 +761,13 @@ "required": true, "type": "string" }, + { + "name": "name", + "in": "path", + "description": "The name of the ArmTemplate", + "required": true, + "type": "string" + }, { "name": "$expand", "in": "query", @@ -766,7 +780,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ArtifactSource" + "$ref": "#/definitions/ArmTemplate" } }, "default": { @@ -777,17 +791,19 @@ } }, "x-ms-examples": { - "ArtifactSources_Get": { - "$ref": "./examples/ArtifactSources_Get.json" + "ArmTemplates_Get": { + "$ref": "./examples/ArmTemplates_Get.json" } } - }, - "put": { - "operationId": "ArtifactSources_CreateOrUpdate", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactSource/{artifactSourceName}/artifacts": { + "get": { + "operationId": "Artifacts_List", "tags": [ - "ArtifactSources" + "Artifacts" ], - "description": "Create or replace an existing artifact source.", + "description": "List artifacts in a given artifact source.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -813,26 +829,40 @@ "type": "string" }, { - "name": "artifactSource", - "in": "body", - "description": "Properties of an artifact source.", - "required": true, - "schema": { - "$ref": "#/definitions/ArtifactSource" - } + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=title)'", + "required": false, + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, + "type": "string" } ], "responses": { "200": { - "description": "Resource 'ArtifactSource' update operation succeeded", - "schema": { - "$ref": "#/definitions/ArtifactSource" - } - }, - "201": { - "description": "Resource 'ArtifactSource' create operation succeeded", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ArtifactSource" + "$ref": "#/definitions/ArtifactList" } }, "default": { @@ -843,17 +873,22 @@ } }, "x-ms-examples": { - "ArtifactSources_CreateOrUpdate": { - "$ref": "./examples/ArtifactSources_CreateOrUpdate.json" + "Artifacts_List": { + "$ref": "./examples/Artifacts_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "patch": { - "operationId": "ArtifactSources_Update", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactSource/{artifactSourceName}/artifacts/{name}": { + "get": { + "operationId": "Artifacts_Get", "tags": [ - "ArtifactSources" + "Artifacts" ], - "description": "Allows modifying tags of artifact sources. All other properties will be ignored.", + "description": "Get artifact.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -879,20 +914,25 @@ "type": "string" }, { - "name": "artifactSource", - "in": "body", - "description": "Properties of an artifact source.", + "name": "name", + "in": "path", + "description": "The name of the Artifact", "required": true, - "schema": { - "$ref": "#/definitions/ArtifactSourceFragment" - } + "type": "string" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=title)'", + "required": false, + "type": "string" } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ArtifactSource" + "$ref": "#/definitions/Artifact" } }, "default": { @@ -903,17 +943,19 @@ } }, "x-ms-examples": { - "ArtifactSources_Update": { - "$ref": "./examples/ArtifactSources_Update.json" + "Artifacts_Get": { + "$ref": "./examples/Artifacts_Get.json" } } - }, - "delete": { - "operationId": "ArtifactSources_Delete", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactSource/{artifactSourceName}/artifacts/{name}/generateArmTemplate": { + "post": { + "operationId": "Artifacts_GenerateArmTemplate", "tags": [ - "ArtifactSources" + "Artifacts" ], - "description": "Delete artifact source.", + "description": "Generates an ARM template for the given artifact, uploads the required files to a storage account, and validates the generated artifact.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -937,14 +979,30 @@ "description": "The name of the artifact source.", "required": true, "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "The name of the Artifact", + "required": true, + "type": "string" + }, + { + "name": "generateArmTemplateRequest", + "in": "body", + "description": "Parameters for generating an ARM template for deploying artifacts.", + "required": true, + "schema": { + "$ref": "#/definitions/GenerateArmTemplateRequest" + } } ], "responses": { "200": { - "description": "Resource deleted successfully." - }, - "204": { - "description": "Resource does not exist." + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ArmTemplateInfo" + } }, "default": { "description": "An unexpected error response.", @@ -954,19 +1012,19 @@ } }, "x-ms-examples": { - "ArtifactSources_Delete": { - "$ref": "./examples/ArtifactSources_Delete.json" + "Artifacts_GenerateArmTemplate": { + "$ref": "./examples/Artifacts_GenerateArmTemplate.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/armtemplates": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources": { "get": { - "operationId": "ArmTemplates_List", + "operationId": "ArtifactSources_List", "tags": [ - "ArmTemplates" + "ArtifactSources" ], - "description": "List azure resource manager templates in a given artifact source.", + "description": "List artifact sources in a given lab.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -984,13 +1042,6 @@ "required": true, "type": "string" }, - { - "name": "artifactSourceName", - "in": "path", - "description": "The name of the artifact source.", - "required": true, - "type": "string" - }, { "name": "$expand", "in": "query", @@ -1025,7 +1076,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ArmTemplateList" + "$ref": "#/definitions/ArtifactSourceList" } }, "default": { @@ -1036,8 +1087,8 @@ } }, "x-ms-examples": { - "ArmTemplates_List": { - "$ref": "./examples/ArmTemplates_List.json" + "ArtifactSources_List": { + "$ref": "./examples/ArtifactSources_List.json" } }, "x-ms-pageable": { @@ -1045,13 +1096,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/armtemplates/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{name}": { "get": { - "operationId": "ArmTemplates_Get", + "operationId": "ArtifactSources_Get", "tags": [ - "ArmTemplates" + "ArtifactSources" ], - "description": "Get azure resource manager template.", + "description": "Get artifact source.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1069,17 +1120,10 @@ "required": true, "type": "string" }, - { - "name": "artifactSourceName", - "in": "path", - "description": "The name of the artifact source.", - "required": true, - "type": "string" - }, { "name": "name", "in": "path", - "description": "The name of the azure resource manager template.", + "description": "The name of the artifact source.", "required": true, "type": "string" }, @@ -1095,7 +1139,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ArmTemplate" + "$ref": "#/definitions/ArtifactSource" } }, "default": { @@ -1106,19 +1150,17 @@ } }, "x-ms-examples": { - "ArmTemplates_Get": { - "$ref": "./examples/ArmTemplates_Get.json" + "ArtifactSources_Get": { + "$ref": "./examples/ArtifactSources_Get.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts": { - "get": { - "operationId": "Artifacts_List", + }, + "put": { + "operationId": "ArtifactSources_CreateOrUpdate", "tags": [ - "Artifacts" + "ArtifactSources" ], - "description": "List artifacts in a given artifact source.", + "description": "Create or replace an existing artifact source.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1137,47 +1179,33 @@ "type": "string" }, { - "name": "artifactSourceName", + "name": "name", "in": "path", "description": "The name of the artifact source.", "required": true, "type": "string" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=title)'", - "required": false, - "type": "string" - }, - { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, - "type": "string" - }, - { - "name": "$top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, - "type": "integer", - "format": "int32" - }, - { - "name": "$orderby", - "in": "query", - "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, - "type": "string" + "name": "artifactSource", + "in": "body", + "description": "Properties of an artifact source.", + "required": true, + "schema": { + "$ref": "#/definitions/ArtifactSource" + } } ], "responses": { "200": { - "description": "Azure operation completed successfully.", + "description": "Resource 'ArtifactSource' update operation succeeded", "schema": { - "$ref": "#/definitions/ArtifactList" + "$ref": "#/definitions/ArtifactSource" + } + }, + "201": { + "description": "Resource 'ArtifactSource' create operation succeeded", + "schema": { + "$ref": "#/definitions/ArtifactSource" } }, "default": { @@ -1188,22 +1216,17 @@ } }, "x-ms-examples": { - "Artifacts_List": { - "$ref": "./examples/Artifacts_List.json" + "ArtifactSources_CreateOrUpdate": { + "$ref": "./examples/ArtifactSources_CreateOrUpdate.json" } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts/{name}": { - "get": { - "operationId": "Artifacts_Get", + }, + "patch": { + "operationId": "ArtifactSources_Update", "tags": [ - "Artifacts" + "ArtifactSources" ], - "description": "Get artifact.", + "description": "Allows modifying tags of artifact sources. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1222,32 +1245,27 @@ "type": "string" }, { - "name": "artifactSourceName", + "name": "name", "in": "path", "description": "The name of the artifact source.", "required": true, "type": "string" }, { - "name": "name", - "in": "path", - "description": "The name of the artifact.", + "name": "artifactSource", + "in": "body", + "description": "Properties of an artifact source.", "required": true, - "type": "string" - }, - { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=title)'", - "required": false, - "type": "string" + "schema": { + "$ref": "#/definitions/ArtifactSourceFragment" + } } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Artifact" + "$ref": "#/definitions/ArtifactSource" } }, "default": { @@ -1258,19 +1276,17 @@ } }, "x-ms-examples": { - "Artifacts_Get": { - "$ref": "./examples/Artifacts_Get.json" + "ArtifactSources_Update": { + "$ref": "./examples/ArtifactSources_Update.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts/{name}/generateArmTemplate": { - "post": { - "operationId": "Artifacts_GenerateArmTemplate", + }, + "delete": { + "operationId": "ArtifactSources_Delete", "tags": [ - "Artifacts" + "ArtifactSources" ], - "description": "Generates an ARM template for the given artifact, uploads the required files to a storage account, and validates the generated artifact.", + "description": "Delete artifact source.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1288,36 +1304,20 @@ "required": true, "type": "string" }, - { - "name": "artifactSourceName", - "in": "path", - "description": "The name of the artifact source.", - "required": true, - "type": "string" - }, { "name": "name", "in": "path", - "description": "The name of the artifact.", + "description": "The name of the artifact source.", "required": true, "type": "string" - }, - { - "name": "generateArmTemplateRequest", - "in": "body", - "description": "Parameters for generating an ARM template for deploying artifacts.", - "required": true, - "schema": { - "$ref": "#/definitions/GenerateArmTemplateRequest" - } } ], "responses": { "200": { - "description": "Azure operation completed successfully.", - "schema": { - "$ref": "#/definitions/ArmTemplateInfo" - } + "description": "Resource deleted successfully." + }, + "204": { + "description": "Resource does not exist." }, "default": { "description": "An unexpected error response.", @@ -1327,8 +1327,8 @@ } }, "x-ms-examples": { - "Artifacts_GenerateArmTemplate": { - "$ref": "./examples/Artifacts_GenerateArmTemplate.json" + "ArtifactSources_Delete": { + "$ref": "./examples/ArtifactSources_Delete.json" } } } @@ -9491,11 +9491,7 @@ "description": "The ArtifactSource items on this page", "items": { "$ref": "#/definitions/ArtifactSource" - }, - "x-ms-identifiers": [ - "artifactSourceName", - "id" - ] + } }, "nextLink": { "type": "string", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_CreateOrUpdate.json index 56e69ddb237b..43527ac67a0f 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "artifactSourceName": "{artifactSourceName}", + "name": "{artifactSourceName}", "api-version": "2018-09-15", "artifactSource": { "properties": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Delete.json index 6cba7cf0a778..c243741e5378 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "artifactSourceName": "{artifactSourceName}", + "name": "{artifactSourceName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Get.json index a712f0eb3c86..0f56aaf30a09 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "artifactSourceName": "{artifactSourceName}", + "name": "{artifactSourceName}", "api-version": "2018-09-15", "labName": "{labName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Update.json index e13759d4b6d3..ad5daa171224 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "artifactSourceName": "{artifactSourceName}", + "name": "{artifactSourceName}", "api-version": "2018-09-15", "artifactSource": { "tags": { From 33e76d398c2bae8007e9f1a7d84e177438b1334a Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Tue, 1 Jul 2025 11:57:24 -0700 Subject: [PATCH 45/59] Labs and User interface update --- .../ArmTemplate.tsp | 2 +- .../Artifact.tsp | 2 +- .../ArtifactSource.tsp | 31 +- .../CustomImage.tsp | 37 +- .../Microsoft.DevTestLab.Management/Disk.tsp | 42 +- .../DtlEnvironment.tsp | 38 +- .../Formula.tsp | 36 +- .../Microsoft.DevTestLab.Management/Lab.tsp | 6 +- .../LabCost.tsp | 27 +- .../LabVirtualMachine.tsp | 83 +- .../NotificationChannel.tsp | 35 +- .../Secret.tsp | 34 +- .../ServiceFabric.tsp | 43 +- .../ServiceRunner.tsp | 29 +- .../Microsoft.DevTestLab.Management/User.tsp | 37 +- .../VirtualNetwork.tsp | 33 +- .../examples/2018-09-15/Labs_ClaimAnyVm.json | 2 +- .../2018-09-15/Labs_CreateEnvironment.json | 2 +- .../2018-09-15/Labs_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/Labs_Delete.json | 2 +- .../2018-09-15/Labs_ExportResourceUsage.json | 2 +- .../2018-09-15/Labs_GenerateUploadUri.json | 2 +- .../examples/2018-09-15/Labs_Get.json | 2 +- .../2018-09-15/Labs_ImportVirtualMachine.json | 2 +- .../examples/2018-09-15/Labs_ListVhds.json | 2 +- .../examples/2018-09-15/Labs_Update.json | 2 +- .../2018-09-15/Users_CreateOrUpdate.json | 2 +- .../examples/2018-09-15/Users_Delete.json | 2 +- .../examples/2018-09-15/Users_Get.json | 2 +- .../examples/2018-09-15/Users_Update.json | 2 +- .../stable/2018-09-15/DTL.json | 737 +++++++++--------- .../2018-09-15/examples/Labs_ClaimAnyVm.json | 2 +- .../examples/Labs_CreateEnvironment.json | 2 +- .../examples/Labs_CreateOrUpdate.json | 2 +- .../2018-09-15/examples/Labs_Delete.json | 2 +- .../examples/Labs_ExportResourceUsage.json | 2 +- .../examples/Labs_GenerateUploadUri.json | 2 +- .../stable/2018-09-15/examples/Labs_Get.json | 2 +- .../examples/Labs_ImportVirtualMachine.json | 2 +- .../2018-09-15/examples/Labs_ListVhds.json | 2 +- .../2018-09-15/examples/Labs_Update.json | 2 +- .../examples/Users_CreateOrUpdate.json | 2 +- .../2018-09-15/examples/Users_Delete.json | 2 +- .../stable/2018-09-15/examples/Users_Get.json | 2 +- .../2018-09-15/examples/Users_Update.json | 2 +- 45 files changed, 790 insertions(+), 518 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp index b5ebaeffd418..4a336fec632b 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp @@ -41,7 +41,7 @@ interface ArmTemplatesOps @path @segment("labs") labName: string, /** The name of the artifact source. */ - @path @segment("artifactSource") artifactSourceName: string, + @path @segment("artifactsources") artifactSourceName: string, }, KeysOf> + > {} + @armResourceOperations interface ArtifactSources { /** * Get artifact source. */ - get is ArmResourceRead< + get is ArtifactSourceOps.Read< ArtifactSource, Parameters = { /** @@ -48,14 +67,14 @@ interface ArtifactSources { /** * Create or replace an existing artifact source. */ - createOrUpdate is ArmResourceCreateOrReplaceSync; + createOrUpdate is ArtifactSourceOps.CreateOrUpdateAsync; /** * Allows modifying tags of artifact sources. All other properties will be ignored. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "ArtifactSourceFragment contains tags as expected by the patch operation." @patch(#{ implicitOptionality: false }) - update is ArmCustomPatchSync< + update is ArtifactSourceOps.CustomPatchSync< ArtifactSource, PatchModel = ArtifactSourceFragment >; @@ -63,12 +82,12 @@ interface ArtifactSources { /** * Delete artifact source. */ - delete is ArmResourceDeleteSync; + delete is ArtifactSourceOps.DeleteSync; /** * List artifact sources in a given lab. */ - list is ArmResourceListByParent< + list is ArtifactSourceOps.List< ArtifactSource, Parameters = { /** diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp index ea44db1a850b..685fd8831fa3 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp @@ -7,7 +7,6 @@ import "./models.tsp"; using TypeSpec.Rest; using Azure.ResourceManager; using TypeSpec.Http; -using TypeSpec.OpenAPI; namespace Microsoft.DevTestLab; /** @@ -17,7 +16,6 @@ namespace Microsoft.DevTestLab; #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" -@parentResource(Lab) @Azure.ResourceManager.Legacy.customAzureResource @Http.Private.includeInapplicableMetadataInPayload(false) model CustomImage extends Resource { @@ -30,12 +28,32 @@ model CustomImage extends Resource { properties: CustomImageProperties; } +@armResourceOperations +interface CustomImageOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + /** The name of the lab. */ + @path @segment("labs") labName: string, + }, + KeysOf> + > {} + @armResourceOperations interface CustomImages { /** * Get custom image. */ - get is ArmResourceRead< + get is CustomImageOps.Read< CustomImage, Parameters = { /** @@ -49,7 +67,7 @@ interface CustomImages { /** * Create or replace an existing custom image. This operation can take a while to complete. */ - createOrUpdate is ArmResourceCreateOrReplaceAsync< + createOrUpdate is CustomImageOps.CreateOrUpdateAsync< CustomImage, LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader >; @@ -59,13 +77,16 @@ interface CustomImages { */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "CustomImageFragment contains tags as expected by the patch operation." @patch(#{ implicitOptionality: false }) - update is ArmCustomPatchSync; + update is CustomImageOps.CustomPatchSync< + CustomImage, + PatchModel = CustomImageFragment + >; /** * Delete custom image. This operation can take a while to complete. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" - delete is ArmResourceDeleteWithoutOkAsync< + delete is CustomImageOps.DeleteWithoutOkAsync< CustomImage, Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse >; @@ -73,7 +94,7 @@ interface CustomImages { /** * List custom images in a given lab. */ - list is ArmResourceListByParent< + list is CustomImageOps.List< CustomImage, Parameters = { /** @@ -108,5 +129,3 @@ interface CustomImages { @@doc(CustomImage.properties, "The properties of the resource."); @@doc(CustomImages.createOrUpdate::parameters.resource, "A custom image."); @@doc(CustomImages.update::parameters.properties, "A custom image."); -@@doc(CustomImage.tags, "The tags of the resource."); -@@doc(CustomImage.location, "The location of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp index 9ed868dff9d4..5aacba6d9aac 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp @@ -17,7 +17,6 @@ namespace Microsoft.DevTestLab; #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" -@parentResource(User) @Azure.ResourceManager.Legacy.customAzureResource @Http.Private.includeInapplicableMetadataInPayload(false) model Disk extends Resource { @@ -30,12 +29,35 @@ model Disk extends Resource { properties: DiskProperties; } +@armResourceOperations +interface DiskOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + /** The name of the lab. */ + @path @segment("labs") labName: string, + + /** The name of the user profile. */ + @path @segment("users") userName: string, + }, + KeysOf> + > {} + @armResourceOperations interface Disks { /** * Get disk. */ - get is ArmResourceRead< + get is DiskOps.Read< Disk, Parameters = { /** @@ -49,7 +71,7 @@ interface Disks { /** * Create or replace an existing disk. This operation can take a while to complete. */ - createOrUpdate is ArmResourceCreateOrReplaceAsync< + createOrUpdate is DiskOps.CreateOrUpdateAsync< Disk, LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader >; @@ -59,13 +81,13 @@ interface Disks { */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" @patch(#{ implicitOptionality: false }) - update is ArmCustomPatchSync; + update is DiskOps.CustomPatchSync; /** * Delete disk. This operation can take a while to complete. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" - delete is ArmResourceDeleteWithoutOkAsync< + delete is DiskOps.DeleteWithoutOkAsync< Disk, Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse >; @@ -73,7 +95,7 @@ interface Disks { /** * List disks in a given user profile. */ - list is ArmResourceListByParent< + list is DiskOps.List< Disk, Parameters = { /** @@ -106,18 +128,16 @@ interface Disks { /** * Attach and create the lease of the disk to the virtual machine. This operation can take a while to complete. */ - attach is ArmResourceActionAsync; + attach is DiskOps.ActionAsync; /** * Detach and break the lease of the disk attached to the virtual machine. This operation can take a while to complete. */ - detach is ArmResourceActionAsync; + detach is DiskOps.ActionAsync; } @@doc(Disk.name, "The name of the disk."); -@@doc(Disk.properties, "The properties of the resource."); -@@doc(Disk.location, "The location of the resource."); -@@doc(Disk.tags, "The tags of the resource."); +@@doc(Disk.properties, "The properties of the disk."); @@doc(Disks.createOrUpdate::parameters.resource, "A Disk."); @@doc(Disks.update::parameters.properties, "A Disk."); @@doc(Disks.attach::parameters.body, "Properties of the disk to attach."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp index e445cc9bc852..41f76222420d 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp @@ -17,7 +17,6 @@ namespace Microsoft.DevTestLab; #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" -@parentResource(User) @Azure.ResourceManager.Legacy.customAzureResource @Http.Private.includeInapplicableMetadataInPayload(false) model DtlEnvironment extends Resource { @@ -30,6 +29,29 @@ model DtlEnvironment extends Resource { properties: EnvironmentProperties; } +@armResourceOperations +interface EnvironmentOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + /** The name of the lab. */ + @path @segment("labs") labName: string, + + /** The name of the user profile. */ + @path @segment("users") userName: string, + }, + KeysOf> + > {} + @armResourceOperations interface DtlEnvironments { /** @@ -37,7 +59,7 @@ interface DtlEnvironments { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("Environments_Get") - get is ArmResourceRead< + get is EnvironmentOps.Read< DtlEnvironment, Parameters = { /** @@ -53,7 +75,7 @@ interface DtlEnvironments { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("Environments_CreateOrUpdate") - createOrUpdate is ArmResourceCreateOrReplaceAsync< + createOrUpdate is EnvironmentOps.CreateOrUpdateAsync< DtlEnvironment, LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader >; @@ -65,7 +87,7 @@ interface DtlEnvironments { #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" @patch(#{ implicitOptionality: false }) @operationId("Environments_Update") - update is ArmCustomPatchSync< + update is EnvironmentOps.CustomPatchSync< DtlEnvironment, PatchModel = DtlEnvironmentFragment >; @@ -76,7 +98,7 @@ interface DtlEnvironments { #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" @operationId("Environments_Delete") - delete is ArmResourceDeleteWithoutOkAsync< + delete is EnvironmentOps.DeleteWithoutOkAsync< DtlEnvironment, Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse >; @@ -86,7 +108,7 @@ interface DtlEnvironments { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("Environments_List") - list is ArmResourceListByParent< + list is EnvironmentOps.List< DtlEnvironment, Parameters = { /** @@ -118,9 +140,7 @@ interface DtlEnvironments { } @@doc(DtlEnvironment.name, "The name of the environment."); -@@doc(DtlEnvironment.properties, "The properties of the resource."); -@@doc(DtlEnvironment.location, "The location of the resource."); -@@doc(DtlEnvironment.tags, "The tags of the resource."); +@@doc(DtlEnvironment.properties, "The properties of the environment."); @@doc(DtlEnvironments.createOrUpdate::parameters.resource, "An environment, which is essentially an ARM template deployment." ); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp index e067a9851344..9a4527d10433 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp @@ -17,7 +17,6 @@ namespace Microsoft.DevTestLab; #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" -@parentResource(Lab) @Azure.ResourceManager.Legacy.customAzureResource @Http.Private.includeInapplicableMetadataInPayload(false) model Formula extends Resource { @@ -30,12 +29,32 @@ model Formula extends Resource { properties: FormulaProperties; } +@armResourceOperations +interface FormulaOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + /** The name of the lab. */ + @path @segment("labs") labName: string, + }, + KeysOf> + > {} + @armResourceOperations interface Formulas { /** * Get formula. */ - get is ArmResourceRead< + get is FormulaOps.Read< Formula, Parameters = { /** @@ -49,7 +68,7 @@ interface Formulas { /** * Create or replace an existing formula. This operation can take a while to complete. */ - createOrUpdate is ArmResourceCreateOrReplaceAsync< + createOrUpdate is FormulaOps.CreateOrUpdateAsync< Formula, LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader >; @@ -59,17 +78,17 @@ interface Formulas { */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "FormulaFragment contains tags as expected by the patch operation." @patch(#{ implicitOptionality: false }) - update is ArmCustomPatchSync; + update is FormulaOps.CustomPatchSync; /** * Delete formula. */ - delete is ArmResourceDeleteSync; + delete is FormulaOps.DeleteSync; /** * List formulas in a given lab. */ - list is ArmResourceListByParent< + list is FormulaOps.List< Formula, Parameters = { /** @@ -101,13 +120,10 @@ interface Formulas { } @@doc(Formula.name, "The name of the formula."); -@@doc(Formula.properties, "The properties of the resource."); +@@doc(Formula.properties, "The properties of the formula."); @@doc(Formulas.createOrUpdate::parameters.resource, "A formula for creating a VM, specifying an image base and other parameters" ); @@doc(Formulas.update::parameters.properties, "A formula for creating a VM, specifying an image base and other parameters" ); - -@@doc(Formula.tags, "The tags of the resource."); -@@doc(Formula.location, "The location of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp index f239fe4d2318..5cef835b91f1 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp @@ -24,7 +24,7 @@ model Lab extends Resource { @path @key @segment("labs") - labName: string; + name: string; properties: LabProperties; } @@ -234,12 +234,12 @@ interface Labs { */ @path @segment("policysets") - name: string; + policySetName: string; } >; } -@@doc(Lab.labName, "The name of the lab."); +@@doc(Lab.name, "The name of the lab."); @@doc(Lab.properties, "The properties of the resource."); @@doc(Labs.createOrUpdate::parameters.resource, "A lab."); @@doc(Labs.update::parameters.properties, "A lab."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp index 3f1112cb4585..1fb41eea786e 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp @@ -17,7 +17,6 @@ namespace Microsoft.DevTestLab; #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" -@parentResource(Lab) @Azure.ResourceManager.Legacy.customAzureResource @Http.Private.includeInapplicableMetadataInPayload(false) model LabCost extends Resource { @@ -30,6 +29,26 @@ model LabCost extends Resource { properties: LabCostProperties; } +@armResourceOperations +interface LabCostOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + /** The name of the lab. */ + @path @segment("labs") labName: string, + }, + KeysOf> + > {} + #suppress "@azure-tools/typespec-azure-resource-manager/no-resource-delete-operation" "For backward compatibility" @armResourceOperations interface LabCosts { @@ -38,7 +57,7 @@ interface LabCosts { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("Costs_Get") - get is ArmResourceRead< + get is LabCostOps.Read< LabCost, Parameters = { /** @@ -54,11 +73,9 @@ interface LabCosts { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("Costs_CreateOrUpdate") - createOrUpdate is ArmResourceCreateOrReplaceSync; + createOrUpdate is LabCostOps.CreateOrUpdateSync; } @@doc(LabCost.name, "The name of the cost."); @@doc(LabCost.properties, "The properties of the resource."); @@doc(LabCosts.createOrUpdate::parameters.resource, "A cost item."); -@@doc(LabCost.tags, "The tags of the resource."); -@@doc(LabCost.location, "The location of the resource."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp index 20a7e26e5c2d..8488c4324fe0 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp @@ -17,7 +17,6 @@ namespace Microsoft.DevTestLab; #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" -@parentResource(Lab) @Azure.ResourceManager.Legacy.customAzureResource @Http.Private.includeInapplicableMetadataInPayload(false) model LabVirtualMachine extends Resource { @@ -30,6 +29,26 @@ model LabVirtualMachine extends Resource { properties: LabVirtualMachineProperties; } +@armResourceOperations +interface LabVirtualMachineOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + /** The name of the lab. */ + @path @segment("labs") labName: string, + }, + KeysOf> + > {} + @armResourceOperations interface LabVirtualMachines { /** @@ -37,7 +56,7 @@ interface LabVirtualMachines { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("VirtualMachines_Get") - get is ArmResourceRead< + get is LabVirtualMachineOps.Read< LabVirtualMachine, Parameters = { /** @@ -53,7 +72,7 @@ interface LabVirtualMachines { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("VirtualMachines_CreateOrUpdate") - createOrUpdate is ArmResourceCreateOrReplaceAsync< + createOrUpdate is LabVirtualMachineOps.CreateOrUpdateAsync< LabVirtualMachine, LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader >; @@ -65,7 +84,7 @@ interface LabVirtualMachines { #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" @patch(#{ implicitOptionality: false }) @operationId("VirtualMachines_Update") - update is ArmCustomPatchSync< + update is LabVirtualMachineOps.CustomPatchSync< LabVirtualMachine, PatchModel = LabVirtualMachineFragment >; @@ -76,7 +95,7 @@ interface LabVirtualMachines { #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" @operationId("VirtualMachines_Delete") - delete is ArmResourceDeleteWithoutOkAsync< + delete is LabVirtualMachineOps.DeleteWithoutOkAsync< LabVirtualMachine, Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse >; @@ -86,7 +105,7 @@ interface LabVirtualMachines { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("VirtualMachines_List") - list is ArmResourceListByParent< + list is LabVirtualMachineOps.List< LabVirtualMachine, Parameters = { /** @@ -121,7 +140,7 @@ interface LabVirtualMachines { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("VirtualMachines_AddDataDisk") - addDataDisk is ArmResourceActionAsync< + addDataDisk is LabVirtualMachineOps.ActionAsync< LabVirtualMachine, DataDiskProperties, OkResponse @@ -132,7 +151,7 @@ interface LabVirtualMachines { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("VirtualMachines_ApplyArtifacts") - applyArtifacts is ArmResourceActionAsync< + applyArtifacts is LabVirtualMachineOps.ActionAsync< LabVirtualMachine, ApplyArtifactsRequest, OkResponse @@ -143,14 +162,18 @@ interface LabVirtualMachines { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("VirtualMachines_Claim") - claim is ArmResourceActionAsync; + claim is LabVirtualMachineOps.ActionAsync< + LabVirtualMachine, + void, + OkResponse + >; /** * Detach the specified disk from the virtual machine. This operation can take a while to complete. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("VirtualMachines_DetachDataDisk") - detachDataDisk is ArmResourceActionAsync< + detachDataDisk is LabVirtualMachineOps.ActionAsync< LabVirtualMachine, DetachDataDiskProperties, OkResponse @@ -161,7 +184,7 @@ interface LabVirtualMachines { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("VirtualMachines_GetRdpFileContents") - getRdpFileContents is ArmResourceActionSync< + getRdpFileContents is LabVirtualMachineOps.ActionSync< LabVirtualMachine, void, ArmResponse @@ -172,7 +195,7 @@ interface LabVirtualMachines { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("VirtualMachines_ListApplicableSchedules") - listApplicableSchedules is ArmResourceActionSync< + listApplicableSchedules is LabVirtualMachineOps.ActionSync< LabVirtualMachine, void, ArmResponse @@ -183,14 +206,18 @@ interface LabVirtualMachines { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("VirtualMachines_Redeploy") - redeploy is ArmResourceActionAsync; + redeploy is LabVirtualMachineOps.ActionAsync< + LabVirtualMachine, + void, + OkResponse + >; /** * Resize Virtual Machine. This operation can take a while to complete. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("VirtualMachines_Resize") - resize is ArmResourceActionAsync< + resize is LabVirtualMachineOps.ActionAsync< LabVirtualMachine, ResizeLabVirtualMachineProperties, OkResponse @@ -201,41 +228,55 @@ interface LabVirtualMachines { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("VirtualMachines_Restart") - restart is ArmResourceActionAsync; + restart is LabVirtualMachineOps.ActionAsync< + LabVirtualMachine, + void, + OkResponse + >; /** * Start a virtual machine. This operation can take a while to complete. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("VirtualMachines_Start") - start is ArmResourceActionAsync; + start is LabVirtualMachineOps.ActionAsync< + LabVirtualMachine, + void, + OkResponse + >; /** * Stop a virtual machine This operation can take a while to complete. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("VirtualMachines_Stop") - stop is ArmResourceActionAsync; + stop is LabVirtualMachineOps.ActionAsync; /** * Transfers all data disks attached to the virtual machine to be owned by the current user. This operation can take a while to complete. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("VirtualMachines_TransferDisks") - transferDisks is ArmResourceActionAsync; + transferDisks is LabVirtualMachineOps.ActionAsync< + LabVirtualMachine, + void, + OkResponse + >; /** * Release ownership of an existing virtual machine This operation can take a while to complete. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("VirtualMachines_UnClaim") - unClaim is ArmResourceActionAsync; + unClaim is LabVirtualMachineOps.ActionAsync< + LabVirtualMachine, + void, + OkResponse + >; } @@doc(LabVirtualMachine.name, "The name of the virtual machine."); @@doc(LabVirtualMachine.properties, "The properties of the resource."); -@@doc(LabVirtualMachine.location, "The location of the resource."); -@@doc(LabVirtualMachine.tags, "The tags of the resource."); @@doc(LabVirtualMachines.createOrUpdate::parameters.resource, "A virtual machine." ); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp index 25fa48e0387b..896552d8a65f 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp @@ -16,7 +16,6 @@ namespace Microsoft.DevTestLab; #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" -@parentResource(Lab) @Azure.ResourceManager.Legacy.customAzureResource @Http.Private.includeInapplicableMetadataInPayload(false) model NotificationChannel extends Resource { @@ -29,12 +28,32 @@ model NotificationChannel extends Resource { properties: NotificationChannelProperties; } +@armResourceOperations +interface NotificationChannelOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + /** The name of the lab. */ + @path @segment("labs") labName: string, + }, + KeysOf> + > {} + @armResourceOperations interface NotificationChannels { /** * Get notification channel. */ - get is ArmResourceRead< + get is NotificationChannelOps.Read< NotificationChannel, Parameters = { /** @@ -48,14 +67,14 @@ interface NotificationChannels { /** * Create or replace an existing notification channel. */ - createOrUpdate is ArmResourceCreateOrReplaceSync; + createOrUpdate is NotificationChannelOps.CreateOrUpdateSync; /** * Allows modifying tags of notification channels. All other properties will be ignored. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" @patch(#{ implicitOptionality: false }) - update is ArmCustomPatchSync< + update is NotificationChannelOps.CustomPatchSync< NotificationChannel, PatchModel = NotificationChannelFragment >; @@ -63,12 +82,12 @@ interface NotificationChannels { /** * Delete notification channel. */ - delete is ArmResourceDeleteSync; + delete is NotificationChannelOps.DeleteSync; /** * List notification channels in a given lab. */ - list is ArmResourceListByParent< + list is NotificationChannelOps.List< NotificationChannel, Parameters = { /** @@ -101,7 +120,7 @@ interface NotificationChannels { /** * Send notification to provided channel. */ - notify is ArmResourceActionSync< + notify is NotificationChannelOps.ActionAsync< NotificationChannel, NotifyParameters, OkResponse @@ -110,8 +129,6 @@ interface NotificationChannels { @@doc(NotificationChannel.name, "The name of the notification channel."); @@doc(NotificationChannel.properties, "The properties of the resource."); -@@doc(NotificationChannel.location, "The location of the resource."); -@@doc(NotificationChannel.tags, "The tags of the resource."); @@doc(NotificationChannels.createOrUpdate::parameters.resource, "A notification." ); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp index 92ad019241a9..30c83210bc90 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp @@ -17,7 +17,6 @@ namespace Microsoft.DevTestLab; #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" -@parentResource(User) @Azure.ResourceManager.Legacy.customAzureResource @Http.Private.includeInapplicableMetadataInPayload(false) model Secret extends Resource { @@ -30,12 +29,35 @@ model Secret extends Resource { properties: SecretProperties; } +@armResourceOperations +interface SecretOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + /** The name of the lab. */ + @path @segment("labs") labName: string, + + /** The name of the user profile. */ + @path @segment("users") userName: string, + }, + KeysOf> + > {} + @armResourceOperations interface Secrets { /** * Get secret. */ - get is ArmResourceRead< + get is SecretOps.Read< Secret, Parameters = { /** @@ -49,7 +71,7 @@ interface Secrets { /** * Create or replace an existing secret. This operation can take a while to complete. */ - createOrUpdate is ArmResourceCreateOrReplaceAsync< + createOrUpdate is SecretOps.CreateOrUpdateAsync< Secret, LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader >; @@ -64,12 +86,12 @@ interface Secrets { /** * Delete secret. */ - delete is ArmResourceDeleteSync; + delete is SecretOps.DeleteSync; /** * List secrets in a given user profile. */ - list is ArmResourceListByParent< + list is SecretOps.List< Secret, Parameters = { /** @@ -102,7 +124,5 @@ interface Secrets { @@doc(Secret.name, "The name of the secret."); @@doc(Secret.properties, "The properties of the resource."); -@@doc(Secret.location, "The location of the resource."); -@@doc(Secret.tags, "The tags of the resource."); @@doc(Secrets.createOrUpdate::parameters.resource, "A secret."); @@doc(Secrets.update::parameters.properties, "A secret."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp index b8e404ee3de1..14c490ce8f73 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp @@ -7,7 +7,6 @@ import "./models.tsp"; using TypeSpec.Rest; using Azure.ResourceManager; using TypeSpec.Http; -using TypeSpec.OpenAPI; namespace Microsoft.DevTestLab; /** @@ -17,7 +16,6 @@ namespace Microsoft.DevTestLab; #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" -@parentResource(User) @Azure.ResourceManager.Legacy.customAzureResource @Http.Private.includeInapplicableMetadataInPayload(false) model ServiceFabric extends Resource { @@ -30,12 +28,35 @@ model ServiceFabric extends Resource { properties: ServiceFabricProperties; } +@armResourceOperations +interface ServiceFabricOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + /** The name of the lab. */ + @path @segment("labs") labName: string, + + /** The name of the user profile. */ + @path @segment("users") userName: string, + }, + KeysOf> + > {} + @armResourceOperations interface ServiceFabrics { /** * Get service fabric. */ - get is ArmResourceRead< + get is ServiceFabricOps.Read< ServiceFabric, Parameters = { /** @@ -49,7 +70,7 @@ interface ServiceFabrics { /** * Create or replace an existing service fabric. This operation can take a while to complete. */ - createOrUpdate is ArmResourceCreateOrReplaceAsync< + createOrUpdate is ServiceFabricOps.CreateOrUpdateAsync< ServiceFabric, LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader >; @@ -59,7 +80,7 @@ interface ServiceFabrics { */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" @patch(#{ implicitOptionality: false }) - update is ArmCustomPatchSync< + update is ServiceFabricOps.CustomPatchSync< ServiceFabric, PatchModel = ServiceFabricFragment >; @@ -68,7 +89,7 @@ interface ServiceFabrics { * Delete service fabric. This operation can take a while to complete. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" - delete is ArmResourceDeleteWithoutOkAsync< + delete is ServiceFabricOps.DeleteWithoutOkAsync< ServiceFabric, Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse >; @@ -76,7 +97,7 @@ interface ServiceFabrics { /** * List service fabrics in a given user profile. */ - list is ArmResourceListByParent< + list is ServiceFabricOps.List< ServiceFabric, Parameters = { /** @@ -109,7 +130,7 @@ interface ServiceFabrics { /** * Lists the applicable start/stop schedules, if any. */ - listApplicableSchedules is ArmResourceActionSync< + listApplicableSchedules is ServiceFabricOps.ActionSync< ServiceFabric, void, ArmResponse @@ -118,17 +139,15 @@ interface ServiceFabrics { /** * Start a service fabric. This operation can take a while to complete. */ - start is ArmResourceActionAsync; + start is ServiceFabricOps.ActionAsync; /** * Stop a service fabric This operation can take a while to complete. */ - stop is ArmResourceActionAsync; + stop is ServiceFabricOps.ActionAsync; } @@doc(ServiceFabric.name, "The name of the service fabric."); @@doc(ServiceFabric.properties, "The properties of the resource."); -@@doc(ServiceFabric.location, "The location of the resource."); -@@doc(ServiceFabric.tags, "The tags of the resource."); @@doc(ServiceFabrics.createOrUpdate::parameters.resource, "A Service Fabric."); @@doc(ServiceFabrics.update::parameters.properties, "A Service Fabric."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp index b8a1d7d7b614..5d3d54bcc51a 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp @@ -19,7 +19,6 @@ namespace Microsoft.DevTestLab; #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" -@parentResource(Lab) @Azure.ResourceManager.Legacy.customAzureResource @Http.Private.includeInapplicableMetadataInPayload(false) model ServiceRunner extends Resource { @@ -36,27 +35,45 @@ model ServiceRunner extends Resource { identity?: IdentityProperties; } +@armResourceOperations +interface ServiceRunnerOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + /** The name of the lab. */ + @path @segment("labs") labName: string, + }, + KeysOf> + > {} + @armResourceOperations interface ServiceRunners { /** * Get service runner. */ - get is ArmResourceRead; + get is ServiceRunnerOps.Read; /** * Create or replace an existing service runner. */ - createOrUpdate is ArmResourceCreateOrReplaceSync; + createOrUpdate is ServiceRunnerOps.CreateOrUpdateSync; /** * Delete service runner. */ - delete is ArmResourceDeleteSync; + delete is ServiceRunnerOps.DeleteSync; } @@doc(ServiceRunner.name, "The name of the service runner."); -@@doc(ServiceRunner.location, "The location of the resource."); -@@doc(ServiceRunner.tags, "The tags of the resource."); @@doc(ServiceRunners.createOrUpdate::parameters.resource, "A container for a managed identity to execute DevTest lab services." ); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp index f31d2d10b4b7..11c8e6231108 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp @@ -17,7 +17,6 @@ namespace Microsoft.DevTestLab; #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" -@parentResource(Lab) @Azure.ResourceManager.Legacy.customAzureResource @Http.Private.includeInapplicableMetadataInPayload(false) model User extends Resource { @@ -25,17 +24,37 @@ model User extends Resource { @path @key @segment("users") - userName: string; + name: string; properties: UserProperties; } +@armResourceOperations +interface UserOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + /** The name of the lab. */ + @path @segment("labs") labName: string, + }, + KeysOf> + > {} + @armResourceOperations interface Users { /** * Get user profile. */ - get is ArmResourceRead< + get is UserOps.Read< User, Parameters = { /** @@ -49,7 +68,7 @@ interface Users { /** * Create or replace an existing user profile. This operation can take a while to complete. */ - createOrUpdate is ArmResourceCreateOrReplaceAsync< + createOrUpdate is UserOps.CreateOrUpdateAsync< User, LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader >; @@ -59,13 +78,13 @@ interface Users { */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" @patch(#{ implicitOptionality: false }) - update is ArmCustomPatchSync; + update is UserOps.CustomPatchSync; /** * Delete user profile. This operation can take a while to complete. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" - delete is ArmResourceDeleteWithoutOkAsync< + delete is UserOps.DeleteWithoutOkAsync< User, Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse >; @@ -73,7 +92,7 @@ interface Users { /** * List user profiles in a given lab. */ - list is ArmResourceListByParent< + list is UserOps.List< User, Parameters = { /** @@ -104,9 +123,7 @@ interface Users { >; } -@@doc(User.userName, "The name of the user profile."); +@@doc(User.name, "The name of the user profile."); @@doc(User.properties, "The properties of the resource."); -@@doc(User.location, "The location of the resource."); -@@doc(User.tags, "The tags of the resource."); @@doc(Users.createOrUpdate::parameters.resource, "Profile of a lab user."); @@doc(Users.update::parameters.properties, "Profile of a lab user."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp index cd41cd215f77..3c7ed1dbe98b 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp @@ -17,7 +17,6 @@ namespace Microsoft.DevTestLab; #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" -@parentResource(Lab) @Azure.ResourceManager.Legacy.customAzureResource @Http.Private.includeInapplicableMetadataInPayload(false) model VirtualNetwork extends Resource { @@ -30,12 +29,32 @@ model VirtualNetwork extends Resource { properties: VirtualNetworkProperties; } +@armResourceOperations +interface VirtualNetworkOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + /** The name of the lab. */ + @path @segment("labs") labName: string, + }, + KeysOf> + > {} + @armResourceOperations interface VirtualNetworks { /** * Get virtual network. */ - get is ArmResourceRead< + get is VirtualNetworkOps.Read< VirtualNetwork, Parameters = { /** @@ -49,7 +68,7 @@ interface VirtualNetworks { /** * Create or replace an existing virtual network. This operation can take a while to complete. */ - createOrUpdate is ArmResourceCreateOrReplaceAsync< + createOrUpdate is VirtualNetworkOps.CreateOrUpdateAsync< VirtualNetwork, LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader >; @@ -59,7 +78,7 @@ interface VirtualNetworks { */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" @patch(#{ implicitOptionality: false }) - update is ArmCustomPatchSync< + update is VirtualNetworkOps.CustomPatchSync< VirtualNetwork, PatchModel = VirtualNetworkFragment >; @@ -68,7 +87,7 @@ interface VirtualNetworks { * Delete virtual network. This operation can take a while to complete. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" - delete is ArmResourceDeleteWithoutOkAsync< + delete is VirtualNetworkOps.DeleteWithoutOkAsync< VirtualNetwork, Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse >; @@ -76,7 +95,7 @@ interface VirtualNetworks { /** * List virtual networks in a given lab. */ - list is ArmResourceListByParent< + list is VirtualNetworkOps.List< VirtualNetwork, Parameters = { /** @@ -109,8 +128,6 @@ interface VirtualNetworks { @@doc(VirtualNetwork.name, "The name of the virtual network."); @@doc(VirtualNetwork.properties, "The properties of the resource."); -@@doc(VirtualNetwork.location, "The location of the resource."); -@@doc(VirtualNetwork.tags, "The tags of the resource."); @@doc(VirtualNetworks.createOrUpdate::parameters.resource, "A virtual network." ); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ClaimAnyVm.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ClaimAnyVm.json index 561150265bcc..854b75d5cd23 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ClaimAnyVm.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ClaimAnyVm.json @@ -1,6 +1,6 @@ { "parameters": { - "labName": "{labName}", + "name": "{labName}", "api-version": "2018-09-15", "monitor": "true", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateEnvironment.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateEnvironment.json index 5ef7d4997efc..5d8349e7fef2 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateEnvironment.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateEnvironment.json @@ -1,6 +1,6 @@ { "parameters": { - "labName": "{labName}", + "name": "{labName}", "api-version": "2018-09-15", "labVirtualMachineCreationParameter": { "name": "{vmName}", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateOrUpdate.json index 7c432b914263..23be3b348a50 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "labName": "{labName}", + "name": "{labName}", "api-version": "2018-09-15", "lab": { "location": "{location}", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Delete.json index 88441f941722..4f142111991b 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "labName": "{labName}", + "name": "{labName}", "api-version": "2018-09-15", "resourceGroupName": "resourceGroupName", "subscriptionId": "{subscriptionId}" diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ExportResourceUsage.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ExportResourceUsage.json index 3837793f7e30..6ef5ee9c9bb6 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ExportResourceUsage.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ExportResourceUsage.json @@ -1,6 +1,6 @@ { "parameters": { - "labName": "{labName}", + "name": "{labName}", "api-version": "2018-09-15", "exportResourceUsageParameters": { "blobStorageAbsoluteSasUri": "https://invalid.blob.core.windows.net/export.blob?sv=2015-07-08&sig={sas}&sp=rcw", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_GenerateUploadUri.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_GenerateUploadUri.json index 087a2b98b043..8ee7a4128bd4 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_GenerateUploadUri.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_GenerateUploadUri.json @@ -1,6 +1,6 @@ { "parameters": { - "labName": "{labName}", + "name": "{labName}", "api-version": "2018-09-15", "generateUploadUriParameter": { "blobName": "{blob-name}" diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Get.json index f4b5fa69f787..2e555f7b602d 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "labName": "{labName}", + "name": "{labName}", "api-version": "2018-09-15", "resourceGroupName": "resourceGroupName", "subscriptionId": "{subscriptionId}" diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ImportVirtualMachine.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ImportVirtualMachine.json index e7f978b20d7f..ec2d8f1390d7 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ImportVirtualMachine.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ImportVirtualMachine.json @@ -1,6 +1,6 @@ { "parameters": { - "labName": "{labName}", + "name": "{labName}", "api-version": "2018-09-15", "importLabVirtualMachineRequest": { "destinationVirtualMachineName": "{vmName}", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListVhds.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListVhds.json index 1c9831cdaa8a..779547ca97c4 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListVhds.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_ListVhds.json @@ -1,6 +1,6 @@ { "parameters": { - "labName": "{labName}", + "name": "{labName}", "api-version": "2018-09-15", "resourceGroupName": "resourceGroupName", "subscriptionId": "{subscriptionId}" diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Update.json index 57a4388aadf2..f781f867ed90 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Labs_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "labName": "{labName}", + "name": "{labName}", "api-version": "2018-09-15", "lab": {}, "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_CreateOrUpdate.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_CreateOrUpdate.json index 0587b46ef040..69daa78e6d03 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_CreateOrUpdate.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "userName": "{userName}", + "name": "{userName}", "api-version": "2018-09-15", "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Delete.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Delete.json index 50217ed47477..4f9c6fe50d41 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Delete.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "userName": "{userName}", + "name": "{userName}", "api-version": "2018-09-15", "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Get.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Get.json index 3f2b638c966f..07888edd26d4 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Get.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "userName": "{userName}", + "name": "{userName}", "api-version": "2018-09-15", "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Update.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Update.json index 3220899eeffe..854d1cd637fe 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Update.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Users_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "userName": "{userName}", + "name": "{userName}", "api-version": "2018-09-15", "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index 1ff3b9f47ef8..227c5bb4a662 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -403,7 +403,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}": { "get": { "operationId": "Labs_Get", "tags": [ @@ -421,7 +421,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "name", "in": "path", "description": "The name of the lab.", "required": true, @@ -472,7 +472,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "name", "in": "path", "description": "The name of the lab.", "required": true, @@ -546,7 +546,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "name", "in": "path", "description": "The name of the lab.", "required": true, @@ -599,7 +599,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "name", "in": "path", "description": "The name of the lab.", "required": true, @@ -645,13 +645,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactSource/{artifactSourceName}/armtemplates": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources": { "get": { - "operationId": "ArmTemplates_List", + "operationId": "ArtifactSources_List", "tags": [ - "ArmTemplates" + "ArtifactSources" ], - "description": "List azure resource manager templates in a given artifact source.", + "description": "List artifact sources in a given lab.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -669,13 +669,6 @@ "required": true, "type": "string" }, - { - "name": "artifactSourceName", - "in": "path", - "description": "The name of the artifact source.", - "required": true, - "type": "string" - }, { "name": "$expand", "in": "query", @@ -710,7 +703,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ArmTemplateList" + "$ref": "#/definitions/ArtifactSourceList" } }, "default": { @@ -721,8 +714,8 @@ } }, "x-ms-examples": { - "ArmTemplates_List": { - "$ref": "./examples/ArmTemplates_List.json" + "ArtifactSources_List": { + "$ref": "./examples/ArtifactSources_List.json" } }, "x-ms-pageable": { @@ -730,13 +723,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactSource/{artifactSourceName}/armtemplates/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{name}": { "get": { - "operationId": "ArmTemplates_Get", + "operationId": "ArtifactSources_Get", "tags": [ - "ArmTemplates" + "ArtifactSources" ], - "description": "Get azure resource manager template.", + "description": "Get artifact source.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -754,17 +747,10 @@ "required": true, "type": "string" }, - { - "name": "artifactSourceName", - "in": "path", - "description": "The name of the artifact source.", - "required": true, - "type": "string" - }, { "name": "name", "in": "path", - "description": "The name of the ArmTemplate", + "description": "The name of the ArtifactSource", "required": true, "type": "string" }, @@ -780,7 +766,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ArmTemplate" + "$ref": "#/definitions/ArtifactSource" } }, "default": { @@ -791,19 +777,17 @@ } }, "x-ms-examples": { - "ArmTemplates_Get": { - "$ref": "./examples/ArmTemplates_Get.json" + "ArtifactSources_Get": { + "$ref": "./examples/ArtifactSources_Get.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactSource/{artifactSourceName}/artifacts": { - "get": { - "operationId": "Artifacts_List", + }, + "put": { + "operationId": "ArtifactSources_CreateOrUpdate", "tags": [ - "Artifacts" + "ArtifactSources" ], - "description": "List artifacts in a given artifact source.", + "description": "Create or replace an existing artifact source.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -822,47 +806,44 @@ "type": "string" }, { - "name": "artifactSourceName", + "name": "name", "in": "path", - "description": "The name of the artifact source.", + "description": "The name of the ArtifactSource", "required": true, "type": "string" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=title)'", - "required": false, - "type": "string" - }, - { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, - "type": "string" - }, - { - "name": "$top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, - "type": "integer", - "format": "int32" - }, - { - "name": "$orderby", - "in": "query", - "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, - "type": "string" + "name": "artifactSource", + "in": "body", + "description": "Properties of an artifact source.", + "required": true, + "schema": { + "$ref": "#/definitions/ArtifactSource" + } } ], "responses": { "200": { - "description": "Azure operation completed successfully.", + "description": "Resource 'ArtifactSource' update operation succeeded", "schema": { - "$ref": "#/definitions/ArtifactList" + "$ref": "#/definitions/ArtifactSource" + } + }, + "201": { + "description": "Resource 'ArtifactSource' create operation succeeded", + "schema": { + "$ref": "#/definitions/ArtifactSource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { @@ -873,22 +854,21 @@ } }, "x-ms-examples": { - "Artifacts_List": { - "$ref": "./examples/Artifacts_List.json" + "ArtifactSources_CreateOrUpdate": { + "$ref": "./examples/ArtifactSources_CreateOrUpdate.json" } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactSource/{artifactSourceName}/artifacts/{name}": { - "get": { - "operationId": "Artifacts_Get", + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "ArtifactSources_Update", "tags": [ - "Artifacts" + "ArtifactSources" ], - "description": "Get artifact.", + "description": "Allows modifying tags of artifact sources. All other properties will be ignored.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -906,33 +886,28 @@ "required": true, "type": "string" }, - { - "name": "artifactSourceName", - "in": "path", - "description": "The name of the artifact source.", - "required": true, - "type": "string" - }, { "name": "name", "in": "path", - "description": "The name of the Artifact", + "description": "The name of the ArtifactSource", "required": true, "type": "string" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=title)'", - "required": false, - "type": "string" + "name": "artifactSource", + "in": "body", + "description": "Properties of an artifact source.", + "required": true, + "schema": { + "$ref": "#/definitions/ArtifactSourceFragment" + } } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Artifact" + "$ref": "#/definitions/ArtifactSource" } }, "default": { @@ -943,19 +918,17 @@ } }, "x-ms-examples": { - "Artifacts_Get": { - "$ref": "./examples/Artifacts_Get.json" + "ArtifactSources_Update": { + "$ref": "./examples/ArtifactSources_Update.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactSource/{artifactSourceName}/artifacts/{name}/generateArmTemplate": { - "post": { - "operationId": "Artifacts_GenerateArmTemplate", + }, + "delete": { + "operationId": "ArtifactSources_Delete", "tags": [ - "Artifacts" + "ArtifactSources" ], - "description": "Generates an ARM template for the given artifact, uploads the required files to a storage account, and validates the generated artifact.", + "description": "Delete artifact source.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -973,36 +946,20 @@ "required": true, "type": "string" }, - { - "name": "artifactSourceName", - "in": "path", - "description": "The name of the artifact source.", - "required": true, - "type": "string" - }, { "name": "name", "in": "path", - "description": "The name of the Artifact", + "description": "The name of the ArtifactSource", "required": true, "type": "string" - }, - { - "name": "generateArmTemplateRequest", - "in": "body", - "description": "Parameters for generating an ARM template for deploying artifacts.", - "required": true, - "schema": { - "$ref": "#/definitions/GenerateArmTemplateRequest" - } } ], "responses": { "200": { - "description": "Azure operation completed successfully.", - "schema": { - "$ref": "#/definitions/ArmTemplateInfo" - } + "description": "Resource deleted successfully." + }, + "204": { + "description": "Resource does not exist." }, "default": { "description": "An unexpected error response.", @@ -1012,19 +969,19 @@ } }, "x-ms-examples": { - "Artifacts_GenerateArmTemplate": { - "$ref": "./examples/Artifacts_GenerateArmTemplate.json" + "ArtifactSources_Delete": { + "$ref": "./examples/ArtifactSources_Delete.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/armtemplates": { "get": { - "operationId": "ArtifactSources_List", + "operationId": "ArmTemplates_List", "tags": [ - "ArtifactSources" + "ArmTemplates" ], - "description": "List artifact sources in a given lab.", + "description": "List azure resource manager templates in a given artifact source.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1042,6 +999,13 @@ "required": true, "type": "string" }, + { + "name": "artifactSourceName", + "in": "path", + "description": "The name of the artifact source.", + "required": true, + "type": "string" + }, { "name": "$expand", "in": "query", @@ -1076,7 +1040,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ArtifactSourceList" + "$ref": "#/definitions/ArmTemplateList" } }, "default": { @@ -1087,8 +1051,8 @@ } }, "x-ms-examples": { - "ArtifactSources_List": { - "$ref": "./examples/ArtifactSources_List.json" + "ArmTemplates_List": { + "$ref": "./examples/ArmTemplates_List.json" } }, "x-ms-pageable": { @@ -1096,13 +1060,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/armtemplates/{name}": { "get": { - "operationId": "ArtifactSources_Get", + "operationId": "ArmTemplates_Get", "tags": [ - "ArtifactSources" + "ArmTemplates" ], - "description": "Get artifact source.", + "description": "Get azure resource manager template.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1121,12 +1085,19 @@ "type": "string" }, { - "name": "name", + "name": "artifactSourceName", "in": "path", "description": "The name of the artifact source.", "required": true, "type": "string" }, + { + "name": "name", + "in": "path", + "description": "The name of the ArmTemplate", + "required": true, + "type": "string" + }, { "name": "$expand", "in": "query", @@ -1139,7 +1110,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ArtifactSource" + "$ref": "#/definitions/ArmTemplate" } }, "default": { @@ -1150,17 +1121,19 @@ } }, "x-ms-examples": { - "ArtifactSources_Get": { - "$ref": "./examples/ArtifactSources_Get.json" + "ArmTemplates_Get": { + "$ref": "./examples/ArmTemplates_Get.json" } } - }, - "put": { - "operationId": "ArtifactSources_CreateOrUpdate", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts": { + "get": { + "operationId": "Artifacts_List", "tags": [ - "ArtifactSources" + "Artifacts" ], - "description": "Create or replace an existing artifact source.", + "description": "List artifacts in a given artifact source.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1179,33 +1152,47 @@ "type": "string" }, { - "name": "name", + "name": "artifactSourceName", "in": "path", "description": "The name of the artifact source.", "required": true, "type": "string" }, { - "name": "artifactSource", - "in": "body", - "description": "Properties of an artifact source.", - "required": true, - "schema": { - "$ref": "#/definitions/ArtifactSource" - } + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=title)'", + "required": false, + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "required": false, + "type": "string" } ], "responses": { "200": { - "description": "Resource 'ArtifactSource' update operation succeeded", - "schema": { - "$ref": "#/definitions/ArtifactSource" - } - }, - "201": { - "description": "Resource 'ArtifactSource' create operation succeeded", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ArtifactSource" + "$ref": "#/definitions/ArtifactList" } }, "default": { @@ -1216,17 +1203,22 @@ } }, "x-ms-examples": { - "ArtifactSources_CreateOrUpdate": { - "$ref": "./examples/ArtifactSources_CreateOrUpdate.json" + "Artifacts_List": { + "$ref": "./examples/Artifacts_List.json" } - } - }, - "patch": { - "operationId": "ArtifactSources_Update", + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts/{name}": { + "get": { + "operationId": "Artifacts_Get", "tags": [ - "ArtifactSources" + "Artifacts" ], - "description": "Allows modifying tags of artifact sources. All other properties will be ignored.", + "description": "Get artifact.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1245,27 +1237,32 @@ "type": "string" }, { - "name": "name", + "name": "artifactSourceName", "in": "path", "description": "The name of the artifact source.", "required": true, "type": "string" }, { - "name": "artifactSource", - "in": "body", - "description": "Properties of an artifact source.", + "name": "name", + "in": "path", + "description": "The name of the Artifact", "required": true, - "schema": { - "$ref": "#/definitions/ArtifactSourceFragment" - } + "type": "string" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=title)'", + "required": false, + "type": "string" } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ArtifactSource" + "$ref": "#/definitions/Artifact" } }, "default": { @@ -1276,17 +1273,19 @@ } }, "x-ms-examples": { - "ArtifactSources_Update": { - "$ref": "./examples/ArtifactSources_Update.json" + "Artifacts_Get": { + "$ref": "./examples/Artifacts_Get.json" } } - }, - "delete": { - "operationId": "ArtifactSources_Delete", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts/{name}/generateArmTemplate": { + "post": { + "operationId": "Artifacts_GenerateArmTemplate", "tags": [ - "ArtifactSources" + "Artifacts" ], - "description": "Delete artifact source.", + "description": "Generates an ARM template for the given artifact, uploads the required files to a storage account, and validates the generated artifact.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1305,19 +1304,35 @@ "type": "string" }, { - "name": "name", + "name": "artifactSourceName", "in": "path", "description": "The name of the artifact source.", "required": true, "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "The name of the Artifact", + "required": true, + "type": "string" + }, + { + "name": "generateArmTemplateRequest", + "in": "body", + "description": "Parameters for generating an ARM template for deploying artifacts.", + "required": true, + "schema": { + "$ref": "#/definitions/GenerateArmTemplateRequest" + } } ], "responses": { "200": { - "description": "Resource deleted successfully." - }, - "204": { - "description": "Resource does not exist." + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ArmTemplateInfo" + } }, "default": { "description": "An unexpected error response.", @@ -1327,13 +1342,13 @@ } }, "x-ms-examples": { - "ArtifactSources_Delete": { - "$ref": "./examples/ArtifactSources_Delete.json" + "Artifacts_GenerateArmTemplate": { + "$ref": "./examples/Artifacts_GenerateArmTemplate.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/claimAnyVm": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/claimAnyVm": { "post": { "operationId": "Labs_ClaimAnyVm", "tags": [ @@ -1351,7 +1366,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "name", "in": "path", "description": "The name of the lab.", "required": true, @@ -1421,7 +1436,7 @@ { "name": "name", "in": "path", - "description": "The name of the cost.", + "description": "The name of the LabCost", "required": true, "type": "string" }, @@ -1479,7 +1494,7 @@ { "name": "name", "in": "path", - "description": "The name of the cost.", + "description": "The name of the LabCost", "required": true, "type": "string" }, @@ -1520,7 +1535,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/createEnvironment": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/createEnvironment": { "post": { "operationId": "Labs_CreateEnvironment", "tags": [ @@ -1538,7 +1553,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "name", "in": "path", "description": "The name of the lab.", "required": true, @@ -1695,7 +1710,7 @@ { "name": "name", "in": "path", - "description": "The name of the custom image.", + "description": "The name of the CustomImage", "required": true, "type": "string" }, @@ -1753,7 +1768,7 @@ { "name": "name", "in": "path", - "description": "The name of the custom image.", + "description": "The name of the CustomImage", "required": true, "type": "string" }, @@ -1834,7 +1849,7 @@ { "name": "name", "in": "path", - "description": "The name of the custom image.", + "description": "The name of the CustomImage", "required": true, "type": "string" }, @@ -1894,7 +1909,7 @@ { "name": "name", "in": "path", - "description": "The name of the custom image.", + "description": "The name of the CustomImage", "required": true, "type": "string" } @@ -1938,7 +1953,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/exportResourceUsage": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/exportResourceUsage": { "post": { "operationId": "Labs_ExportResourceUsage", "tags": [ @@ -1956,7 +1971,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "name", "in": "path", "description": "The name of the lab.", "required": true, @@ -2113,7 +2128,7 @@ { "name": "name", "in": "path", - "description": "The name of the formula.", + "description": "The name of the Formula", "required": true, "type": "string" }, @@ -2171,7 +2186,7 @@ { "name": "name", "in": "path", - "description": "The name of the formula.", + "description": "The name of the Formula", "required": true, "type": "string" }, @@ -2252,7 +2267,7 @@ { "name": "name", "in": "path", - "description": "The name of the formula.", + "description": "The name of the Formula", "required": true, "type": "string" }, @@ -2312,7 +2327,7 @@ { "name": "name", "in": "path", - "description": "The name of the formula.", + "description": "The name of the Formula", "required": true, "type": "string" } @@ -2338,7 +2353,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/galleryimages": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/galleryimages": { "get": { "operationId": "GalleryImages_List", "tags": [ @@ -2356,7 +2371,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "name", "in": "path", "description": "The name of the lab.", "required": true, @@ -2416,7 +2431,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/generateUploadUri": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/generateUploadUri": { "post": { "operationId": "Labs_GenerateUploadUri", "tags": [ @@ -2434,7 +2449,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "name", "in": "path", "description": "The name of the lab.", "required": true, @@ -2471,7 +2486,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/importVirtualMachine": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/importVirtualMachine": { "post": { "operationId": "Labs_ImportVirtualMachine", "tags": [ @@ -2489,7 +2504,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "name", "in": "path", "description": "The name of the lab.", "required": true, @@ -2541,7 +2556,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/listVhds": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/listVhds": { "post": { "operationId": "Labs_ListVhds", "tags": [ @@ -2559,7 +2574,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "name", "in": "path", "description": "The name of the lab.", "required": true, @@ -2695,7 +2710,7 @@ { "name": "name", "in": "path", - "description": "The name of the notification channel.", + "description": "The name of the NotificationChannel", "required": true, "type": "string" }, @@ -2753,7 +2768,7 @@ { "name": "name", "in": "path", - "description": "The name of the notification channel.", + "description": "The name of the NotificationChannel", "required": true, "type": "string" }, @@ -2819,7 +2834,7 @@ { "name": "name", "in": "path", - "description": "The name of the notification channel.", + "description": "The name of the NotificationChannel", "required": true, "type": "string" }, @@ -2879,7 +2894,7 @@ { "name": "name", "in": "path", - "description": "The name of the notification channel.", + "description": "The name of the NotificationChannel", "required": true, "type": "string" } @@ -2932,7 +2947,7 @@ { "name": "name", "in": "path", - "description": "The name of the notification channel.", + "description": "The name of the NotificationChannel", "required": true, "type": "string" }, @@ -2950,6 +2965,20 @@ "200": { "description": "The request has succeeded." }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, "default": { "description": "An unexpected error response.", "schema": { @@ -2961,10 +2990,14 @@ "NotificationChannels_Notify": { "$ref": "./examples/NotificationChannels_Notify.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{name}/evaluatePolicies": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/policysets/{policySetName}/evaluatePolicies": { "post": { "operationId": "PolicySets_EvaluatePolicies", "tags": [ @@ -2982,14 +3015,14 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "labName", + "name": "name", "in": "path", "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "name", + "name": "policySetName", "in": "path", "description": "The name of the policy set.", "required": true, @@ -3842,7 +3875,7 @@ { "name": "name", "in": "path", - "description": "The name of the service runner.", + "description": "The name of the ServiceRunner", "required": true, "type": "string" } @@ -3893,7 +3926,7 @@ { "name": "name", "in": "path", - "description": "The name of the service runner.", + "description": "The name of the ServiceRunner", "required": true, "type": "string" }, @@ -3959,7 +3992,7 @@ { "name": "name", "in": "path", - "description": "The name of the service runner.", + "description": "The name of the ServiceRunner", "required": true, "type": "string" } @@ -4063,7 +4096,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{name}": { "get": { "operationId": "Users_Get", "tags": [ @@ -4088,9 +4121,9 @@ "type": "string" }, { - "name": "userName", + "name": "name", "in": "path", - "description": "The name of the user profile.", + "description": "The name of the User", "required": true, "type": "string" }, @@ -4146,9 +4179,9 @@ "type": "string" }, { - "name": "userName", + "name": "name", "in": "path", - "description": "The name of the user profile.", + "description": "The name of the User", "required": true, "type": "string" }, @@ -4227,9 +4260,9 @@ "type": "string" }, { - "name": "userName", + "name": "name", "in": "path", - "description": "The name of the user profile.", + "description": "The name of the User", "required": true, "type": "string" }, @@ -4287,9 +4320,9 @@ "type": "string" }, { - "name": "userName", + "name": "name", "in": "path", - "description": "The name of the user profile.", + "description": "The name of the User", "required": true, "type": "string" } @@ -4452,7 +4485,7 @@ { "name": "name", "in": "path", - "description": "The name of the disk.", + "description": "The name of the Disk", "required": true, "type": "string" }, @@ -4517,7 +4550,7 @@ { "name": "name", "in": "path", - "description": "The name of the disk.", + "description": "The name of the Disk", "required": true, "type": "string" }, @@ -4605,7 +4638,7 @@ { "name": "name", "in": "path", - "description": "The name of the disk.", + "description": "The name of the Disk", "required": true, "type": "string" }, @@ -4672,7 +4705,7 @@ { "name": "name", "in": "path", - "description": "The name of the disk.", + "description": "The name of the Disk", "required": true, "type": "string" } @@ -4750,7 +4783,7 @@ { "name": "name", "in": "path", - "description": "The name of the disk.", + "description": "The name of the Disk", "required": true, "type": "string" }, @@ -4834,7 +4867,7 @@ { "name": "name", "in": "path", - "description": "The name of the disk.", + "description": "The name of the Disk", "required": true, "type": "string" }, @@ -5003,7 +5036,7 @@ { "name": "name", "in": "path", - "description": "The name of the environment.", + "description": "The name of the DtlEnvironment", "required": true, "type": "string" }, @@ -5068,7 +5101,7 @@ { "name": "name", "in": "path", - "description": "The name of the environment.", + "description": "The name of the DtlEnvironment", "required": true, "type": "string" }, @@ -5156,7 +5189,7 @@ { "name": "name", "in": "path", - "description": "The name of the environment.", + "description": "The name of the DtlEnvironment", "required": true, "type": "string" }, @@ -5223,7 +5256,7 @@ { "name": "name", "in": "path", - "description": "The name of the environment.", + "description": "The name of the DtlEnvironment", "required": true, "type": "string" } @@ -5386,7 +5419,7 @@ { "name": "name", "in": "path", - "description": "The name of the secret.", + "description": "The name of the Secret", "required": true, "type": "string" }, @@ -5451,7 +5484,7 @@ { "name": "name", "in": "path", - "description": "The name of the secret.", + "description": "The name of the Secret", "required": true, "type": "string" }, @@ -5506,73 +5539,6 @@ }, "x-ms-long-running-operation": true }, - "patch": { - "operationId": "Secrets_Update", - "tags": [ - "Secrets" - ], - "description": "Allows modifying tags of secrets. All other properties will be ignored.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" - }, - { - "name": "userName", - "in": "path", - "description": "The name of the user profile.", - "required": true, - "type": "string" - }, - { - "name": "name", - "in": "path", - "description": "The name of the secret.", - "required": true, - "type": "string" - }, - { - "name": "secret", - "in": "body", - "description": "A secret.", - "required": true, - "schema": { - "$ref": "#/definitions/SecretFragment" - } - } - ], - "responses": { - "200": { - "description": "Azure operation completed successfully.", - "schema": { - "$ref": "#/definitions/Secret" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Secrets_Update": { - "$ref": "./examples/Secrets_Update.json" - } - } - }, "delete": { "operationId": "Secrets_Delete", "tags": [ @@ -5606,7 +5572,7 @@ { "name": "name", "in": "path", - "description": "The name of the secret.", + "description": "The name of the Secret", "required": true, "type": "string" } @@ -5751,7 +5717,7 @@ { "name": "name", "in": "path", - "description": "The name of the service fabric.", + "description": "The name of the ServiceFabric", "required": true, "type": "string" }, @@ -5816,7 +5782,7 @@ { "name": "name", "in": "path", - "description": "The name of the service fabric.", + "description": "The name of the ServiceFabric", "required": true, "type": "string" }, @@ -5904,7 +5870,7 @@ { "name": "name", "in": "path", - "description": "The name of the service fabric.", + "description": "The name of the ServiceFabric", "required": true, "type": "string" }, @@ -5971,7 +5937,7 @@ { "name": "name", "in": "path", - "description": "The name of the service fabric.", + "description": "The name of the ServiceFabric", "required": true, "type": "string" } @@ -6049,7 +6015,7 @@ { "name": "name", "in": "path", - "description": "The name of the service fabric.", + "description": "The name of the ServiceFabric", "required": true, "type": "string" } @@ -6576,7 +6542,7 @@ { "name": "name", "in": "path", - "description": "The name of the service fabric.", + "description": "The name of the ServiceFabric", "required": true, "type": "string" } @@ -6651,7 +6617,7 @@ { "name": "name", "in": "path", - "description": "The name of the service fabric.", + "description": "The name of the ServiceFabric", "required": true, "type": "string" } @@ -6797,7 +6763,7 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" }, @@ -6855,7 +6821,7 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" }, @@ -6936,7 +6902,7 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" }, @@ -6996,7 +6962,7 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" } @@ -7067,7 +7033,7 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" }, @@ -7144,7 +7110,7 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" }, @@ -7221,7 +7187,7 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" } @@ -7289,7 +7255,7 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" }, @@ -7366,7 +7332,7 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" } @@ -7419,7 +7385,7 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" } @@ -7472,7 +7438,7 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" } @@ -7540,7 +7506,7 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" }, @@ -7617,7 +7583,7 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" } @@ -8110,7 +8076,7 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" } @@ -8178,7 +8144,7 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" } @@ -8246,7 +8212,7 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" } @@ -8314,7 +8280,7 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" } @@ -8460,7 +8426,7 @@ { "name": "name", "in": "path", - "description": "The name of the virtual network.", + "description": "The name of the VirtualNetwork", "required": true, "type": "string" }, @@ -8518,7 +8484,7 @@ { "name": "name", "in": "path", - "description": "The name of the virtual network.", + "description": "The name of the VirtualNetwork", "required": true, "type": "string" }, @@ -8599,7 +8565,7 @@ { "name": "name", "in": "path", - "description": "The name of the virtual network.", + "description": "The name of the VirtualNetwork", "required": true, "type": "string" }, @@ -8659,7 +8625,7 @@ { "name": "name", "in": "path", - "description": "The name of the virtual network.", + "description": "The name of the VirtualNetwork", "required": true, "type": "string" } @@ -9113,6 +9079,61 @@ }, "x-ms-long-running-operation": true } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/secrets/{name}": { + "patch": { + "operationId": "Secrets_Update", + "tags": [ + "Secrets" + ], + "description": "Allows modifying tags of secrets. All other properties will be ignored.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "The name of the secret.", + "required": true, + "type": "string" + }, + { + "name": "secret", + "in": "body", + "description": "A secret.", + "required": true, + "schema": { + "$ref": "#/definitions/SecretFragment" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Secret" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Secrets_Update": { + "$ref": "./examples/Secrets_Update.json" + } + } + } } }, "definitions": { @@ -10020,7 +10041,7 @@ "properties": { "properties": { "$ref": "#/definitions/DiskProperties", - "description": "The properties of the resource.", + "description": "The properties of the disk.", "x-ms-client-flatten": true } }, @@ -10124,7 +10145,7 @@ "properties": { "properties": { "$ref": "#/definitions/EnvironmentProperties", - "description": "The properties of the resource.", + "description": "The properties of the environment.", "x-ms-client-flatten": true } }, @@ -10379,7 +10400,7 @@ "properties": { "properties": { "$ref": "#/definitions/FormulaProperties", - "description": "The properties of the resource.", + "description": "The properties of the formula.", "x-ms-client-flatten": true } }, @@ -11153,11 +11174,7 @@ "description": "The Lab items on this page", "items": { "$ref": "#/definitions/Lab" - }, - "x-ms-identifiers": [ - "labName", - "id" - ] + } }, "nextLink": { "type": "string", @@ -13082,11 +13099,7 @@ "description": "The User items on this page", "items": { "$ref": "#/definitions/User" - }, - "x-ms-identifiers": [ - "userName", - "id" - ] + } }, "nextLink": { "type": "string", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ClaimAnyVm.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ClaimAnyVm.json index 561150265bcc..854b75d5cd23 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ClaimAnyVm.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ClaimAnyVm.json @@ -1,6 +1,6 @@ { "parameters": { - "labName": "{labName}", + "name": "{labName}", "api-version": "2018-09-15", "monitor": "true", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateEnvironment.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateEnvironment.json index 5ef7d4997efc..5d8349e7fef2 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateEnvironment.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateEnvironment.json @@ -1,6 +1,6 @@ { "parameters": { - "labName": "{labName}", + "name": "{labName}", "api-version": "2018-09-15", "labVirtualMachineCreationParameter": { "name": "{vmName}", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateOrUpdate.json index 7c432b914263..23be3b348a50 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "labName": "{labName}", + "name": "{labName}", "api-version": "2018-09-15", "lab": { "location": "{location}", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Delete.json index 88441f941722..4f142111991b 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "labName": "{labName}", + "name": "{labName}", "api-version": "2018-09-15", "resourceGroupName": "resourceGroupName", "subscriptionId": "{subscriptionId}" diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ExportResourceUsage.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ExportResourceUsage.json index 3837793f7e30..6ef5ee9c9bb6 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ExportResourceUsage.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ExportResourceUsage.json @@ -1,6 +1,6 @@ { "parameters": { - "labName": "{labName}", + "name": "{labName}", "api-version": "2018-09-15", "exportResourceUsageParameters": { "blobStorageAbsoluteSasUri": "https://invalid.blob.core.windows.net/export.blob?sv=2015-07-08&sig={sas}&sp=rcw", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_GenerateUploadUri.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_GenerateUploadUri.json index 087a2b98b043..8ee7a4128bd4 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_GenerateUploadUri.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_GenerateUploadUri.json @@ -1,6 +1,6 @@ { "parameters": { - "labName": "{labName}", + "name": "{labName}", "api-version": "2018-09-15", "generateUploadUriParameter": { "blobName": "{blob-name}" diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Get.json index f4b5fa69f787..2e555f7b602d 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "labName": "{labName}", + "name": "{labName}", "api-version": "2018-09-15", "resourceGroupName": "resourceGroupName", "subscriptionId": "{subscriptionId}" diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ImportVirtualMachine.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ImportVirtualMachine.json index e7f978b20d7f..ec2d8f1390d7 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ImportVirtualMachine.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ImportVirtualMachine.json @@ -1,6 +1,6 @@ { "parameters": { - "labName": "{labName}", + "name": "{labName}", "api-version": "2018-09-15", "importLabVirtualMachineRequest": { "destinationVirtualMachineName": "{vmName}", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListVhds.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListVhds.json index 1c9831cdaa8a..779547ca97c4 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListVhds.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListVhds.json @@ -1,6 +1,6 @@ { "parameters": { - "labName": "{labName}", + "name": "{labName}", "api-version": "2018-09-15", "resourceGroupName": "resourceGroupName", "subscriptionId": "{subscriptionId}" diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Update.json index 57a4388aadf2..f781f867ed90 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "labName": "{labName}", + "name": "{labName}", "api-version": "2018-09-15", "lab": {}, "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_CreateOrUpdate.json index 0587b46ef040..69daa78e6d03 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "userName": "{userName}", + "name": "{userName}", "api-version": "2018-09-15", "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Delete.json index 50217ed47477..4f9c6fe50d41 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "userName": "{userName}", + "name": "{userName}", "api-version": "2018-09-15", "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Get.json index 3f2b638c966f..07888edd26d4 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "userName": "{userName}", + "name": "{userName}", "api-version": "2018-09-15", "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Update.json index 3220899eeffe..854d1cd637fe 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "userName": "{userName}", + "name": "{userName}", "api-version": "2018-09-15", "labName": "{devtestlabName}", "resourceGroupName": "resourceGroupName", From ae1b82a802f061aa0dd98cdd72c537a310529ea5 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Tue, 1 Jul 2025 13:53:59 -0700 Subject: [PATCH 46/59] GalleryImage update --- .../GalleryImage.tsp | 93 +++++++++++++++++++ .../Microsoft.DevTestLab.Management/Lab.tsp | 38 -------- .../NotificationChannel.tsp | 2 +- .../Microsoft.DevTestLab.Management/main.tsp | 1 + .../models.tsp | 13 --- .../stable/2018-09-15/DTL.json | 33 ++----- 6 files changed, 104 insertions(+), 76 deletions(-) create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/GalleryImage.tsp diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/GalleryImage.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/GalleryImage.tsp new file mode 100644 index 000000000000..ff872c4c597b --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/GalleryImage.tsp @@ -0,0 +1,93 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; + +namespace Microsoft.DevTestLab; +/** + * A gallery image. + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-custom-resource-usage-discourage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +@Azure.ResourceManager.Legacy.customAzureResource +@Http.Private.includeInapplicableMetadataInPayload(false) +model GalleryImage extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("galleryimages") + name: string; + + /** + * The properties of the resource. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties: GalleryImageProperties; +} + +@armResourceOperations +interface GalleryImageOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + /** The name of the lab. */ + @path @segment("labs") labName: string, + }, + KeysOf> + > {} + +@armResourceOperations +interface GalleryImages { + /** + * List gallery images in a given lab. + */ + list is GalleryImageOps.List< + GalleryImage, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=displayName)' + */ + @query("$expand") + $expand?: string; + + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + */ + @query("$filter") + $filter?: string; + + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + @query("$top") + $top?: int32; + + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + @query("$orderby") + $orderby?: string; + }, + Response = ArmResponse + >; +} + +@@doc(GalleryImage.name, "The name of the gallery image."); +@@doc(GalleryImage.properties, "The properties of the gallery image."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp index 5cef835b91f1..d895437e6b1a 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp @@ -180,44 +180,6 @@ interface Labs { */ listVhds is ArmResourceActionSync>; - /** - * List gallery images in a given lab. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @get - @action("galleryimages") - @operationId("GalleryImages_List") - list is ArmResourceActionSync< - Lab, - void, - ArmResponse, - Parameters = { - /** - * Specify the $expand query. Example: 'properties($select=author)' - */ - @query("$expand") - $expand?: string; - - /** - * The filter to apply to the operation. Example: '$filter=contains(name,'myName') - */ - @query("$filter") - $filter?: string; - - /** - * The maximum number of resources to return from the operation. Example: '$top=10' - */ - @query("$top") - $top?: int32; - - /** - * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' - */ - @query("$orderby") - $orderby?: string; - } - >; - /** * Evaluates lab policy. */ diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp index 896552d8a65f..0bc468ae255c 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp @@ -120,7 +120,7 @@ interface NotificationChannels { /** * Send notification to provided channel. */ - notify is NotificationChannelOps.ActionAsync< + notify is NotificationChannelOps.ActionSync< NotificationChannel, NotifyParameters, OkResponse diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/main.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/main.tsp index 1c593e79f3ee..3a846df4e8d7 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/main.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/main.tsp @@ -21,6 +21,7 @@ import "./Artifact.tsp"; import "./LabCost.tsp"; import "./CustomImage.tsp"; import "./Formula.tsp"; +import "./GalleryImage.tsp"; import "./NotificationChannel.tsp"; import "./Policy.tsp"; import "./ServiceRunner.tsp"; diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp index ed12f80ae262..fbbc66831f52 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp @@ -2073,19 +2073,6 @@ model FormulaFragment extends UpdateResource {} */ model GalleryImageList is Azure.Core.Page; -/** - * A gallery image. - */ -#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" -model GalleryImage extends Resource { - /** - * The properties of the resource. - */ - #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" - @Azure.ResourceManager.Private.conditionalClientFlatten - properties: GalleryImageProperties; -} - /** * Properties of a gallery image. */ diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index 227c5bb4a662..b7325304714d 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -75,6 +75,9 @@ { "name": "Formulas" }, + { + "name": "GalleryImages" + }, { "name": "NotificationChannels" }, @@ -2353,11 +2356,11 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/galleryimages": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/galleryimages": { "get": { "operationId": "GalleryImages_List", "tags": [ - "Labs" + "GalleryImages" ], "description": "List gallery images in a given lab.", "parameters": [ @@ -2371,7 +2374,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -2380,7 +2383,7 @@ { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=author)'", + "description": "Specify the $expand query. Example: 'properties($select=displayName)'", "required": false, "type": "string" }, @@ -2965,20 +2968,6 @@ "200": { "description": "The request has succeeded." }, - "202": { - "description": "Resource operation accepted.", - "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } - } - }, "default": { "description": "An unexpected error response.", "schema": { @@ -2990,11 +2979,7 @@ "NotificationChannels_Notify": { "$ref": "./examples/NotificationChannels_Notify.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/policysets/{policySetName}/evaluatePolicies": { @@ -10502,7 +10487,7 @@ "properties": { "properties": { "$ref": "#/definitions/GalleryImageProperties", - "description": "The properties of the resource.", + "description": "The properties of the gallery image.", "x-ms-client-flatten": true } }, From 935d1e1720e35397d2d73f27dea7f6a91d970a0c Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Tue, 1 Jul 2025 15:05:28 -0700 Subject: [PATCH 47/59] Secrets patch fix --- .../Secret.tsp | 2 +- .../PolicySets_EvaluatePolicies.json | 2 +- .../stable/2018-09-15/DTL.json | 122 ++++++++++-------- .../examples/PolicySets_EvaluatePolicies.json | 2 +- 4 files changed, 70 insertions(+), 58 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp index 30c83210bc90..5f2ca8c18d57 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp @@ -81,7 +81,7 @@ interface Secrets { */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" @patch(#{ implicitOptionality: false }) - update is ArmCustomPatchSync; + update is SecretOps.CustomPatchSync; /** * Delete secret. diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/PolicySets_EvaluatePolicies.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/PolicySets_EvaluatePolicies.json index 804a9e935e33..c0d7c44deff7 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/PolicySets_EvaluatePolicies.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/PolicySets_EvaluatePolicies.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{policySetName}", + "policySetName": "{policySetName}", "api-version": "2018-09-15", "evaluatePoliciesRequest": { "policies": [ diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index b7325304714d..67a76bf735bd 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -5524,6 +5524,73 @@ }, "x-ms-long-running-operation": true }, + "patch": { + "operationId": "Secrets_Update", + "tags": [ + "Secrets" + ], + "description": "Allows modifying tags of secrets. All other properties will be ignored.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "labName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" + }, + { + "name": "userName", + "in": "path", + "description": "The name of the user profile.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "The name of the Secret", + "required": true, + "type": "string" + }, + { + "name": "secret", + "in": "body", + "description": "A secret.", + "required": true, + "schema": { + "$ref": "#/definitions/SecretFragment" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Secret" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Secrets_Update": { + "$ref": "./examples/Secrets_Update.json" + } + } + }, "delete": { "operationId": "Secrets_Delete", "tags": [ @@ -9064,61 +9131,6 @@ }, "x-ms-long-running-operation": true } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/secrets/{name}": { - "patch": { - "operationId": "Secrets_Update", - "tags": [ - "Secrets" - ], - "description": "Allows modifying tags of secrets. All other properties will be ignored.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "name", - "in": "path", - "description": "The name of the secret.", - "required": true, - "type": "string" - }, - { - "name": "secret", - "in": "body", - "description": "A secret.", - "required": true, - "schema": { - "$ref": "#/definitions/SecretFragment" - } - } - ], - "responses": { - "200": { - "description": "Azure operation completed successfully.", - "schema": { - "$ref": "#/definitions/Secret" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Secrets_Update": { - "$ref": "./examples/Secrets_Update.json" - } - } - } } }, "definitions": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json index 804a9e935e33..c0d7c44deff7 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json @@ -1,6 +1,6 @@ { "parameters": { - "name": "{policySetName}", + "policySetName": "{policySetName}", "api-version": "2018-09-15", "evaluatePoliciesRequest": { "policies": [ From 405a9029aaa276fb0e005b9a6aeaf244963a6354 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Tue, 1 Jul 2025 15:13:38 -0700 Subject: [PATCH 48/59] Policyset example update --- .../examples/2018-09-15/PolicySets_EvaluatePolicies.json | 2 +- .../stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/PolicySets_EvaluatePolicies.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/PolicySets_EvaluatePolicies.json index c0d7c44deff7..f45d15e2a707 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/PolicySets_EvaluatePolicies.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/PolicySets_EvaluatePolicies.json @@ -10,7 +10,7 @@ } ] }, - "labName": "{labName}", + "name": "{name}", "resourceGroupName": "resourceGroupName", "subscriptionId": "{subscriptionId}" }, diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json index c0d7c44deff7..f45d15e2a707 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json @@ -10,7 +10,7 @@ } ] }, - "labName": "{labName}", + "name": "{name}", "resourceGroupName": "resourceGroupName", "subscriptionId": "{subscriptionId}" }, From b23f8642f544468d47ab6c2b984bef10800b9dd5 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Wed, 2 Jul 2025 10:14:20 -0700 Subject: [PATCH 49/59] PolicySet update --- .../Microsoft.DevTestLab.Management/Lab.tsp | 41 +++++------ .../Policy.tsp | 13 ++-- .../PolicySet.tsp | 69 +++++++++++++++++++ .../back-compatible.tsp | 4 +- .../PolicySets_EvaluatePolicies.json | 4 +- .../Microsoft.DevTestLab.Management/main.tsp | 1 + .../stable/2018-09-15/DTL.json | 13 ++-- .../examples/PolicySets_EvaluatePolicies.json | 4 +- 8 files changed, 111 insertions(+), 38 deletions(-) create mode 100644 specification/devtestlabs/Microsoft.DevTestLab.Management/PolicySet.tsp diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp index d895437e6b1a..3ed008696604 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp @@ -180,25 +180,25 @@ interface Labs { */ listVhds is ArmResourceActionSync>; - /** - * Evaluates lab policy. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @post - @operationId("PolicySets_EvaluatePolicies") - evaluatePolicies is ArmResourceActionSync< - Lab, - EvaluatePoliciesRequest, - ArmResponse, - Parameters = { - /** - * The name of the policy set. - */ - @path - @segment("policysets") - policySetName: string; - } - >; + // /** + // * Evaluates lab policy. + // */ + // #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + // @post + // @operationId("PolicySets_EvaluatePolicies") + // evaluatePolicies is ArmResourceActionSync< + // Lab, + // EvaluatePoliciesRequest, + // ArmResponse, + // Parameters = { + // /** + // * The name of the policy set. + // */ + // @path + // @segment("policysets") + // policySetName: string; + // } + // >; } @@doc(Lab.name, "The name of the lab."); @@ -217,6 +217,3 @@ interface Labs { @@doc(Labs.importVirtualMachine::parameters.body, "This represents the payload required to import a virtual machine from a different lab into the current one" ); -@@doc(Labs.evaluatePolicies::parameters.body, - "Request body for evaluating a policy set." -); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp index d669c7c16079..eda43cfcfd83 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp @@ -7,6 +7,7 @@ import "./models.tsp"; using TypeSpec.Rest; using Azure.ResourceManager; using TypeSpec.Http; +using TypeSpec.OpenAPI; namespace Microsoft.DevTestLab; /** @@ -29,7 +30,7 @@ model Policy extends Resource { } @armResourceOperations -interface PolicySetsOps +interface PolicyOps extends Azure.ResourceManager.Legacy.LegacyOperations< { ...ApiVersionParameter, @@ -56,7 +57,7 @@ interface Policies { /** * Get policy. */ - get is PolicySetsOps.Read< + get is PolicyOps.Read< Policy, Parameters = { /** @@ -70,24 +71,24 @@ interface Policies { /** * Create or replace an existing policy. */ - createOrUpdate is PolicySetsOps.CreateOrUpdateSync; + createOrUpdate is PolicyOps.CreateOrUpdateSync; /** * Allows modifying tags of policies. All other properties will be ignored. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" @patch(#{ implicitOptionality: false }) - update is PolicySetsOps.CustomPatchSync; + update is PolicyOps.CustomPatchSync; /** * Delete policy. */ - delete is PolicySetsOps.DeleteSync; + delete is PolicyOps.DeleteSync; /** * List policies in a given policy set. */ - list is PolicySetsOps.List< + list is PolicyOps.List< Policy, Parameters = { /** diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/PolicySet.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/PolicySet.tsp new file mode 100644 index 000000000000..dd14c71b73f0 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/PolicySet.tsp @@ -0,0 +1,69 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevTestLab; + +/** + * A Policy set + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-custom-resource-usage-discourage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +@Azure.ResourceManager.Legacy.customAzureResource +@Http.Private.includeInapplicableMetadataInPayload(false) +model PolicySet { + /** Name of the policy set */ + @visibility(Lifecycle.Read) + @path + @key // This will use 'name' as the path parameter for the policy set + name: string; +} + +@armResourceOperations +interface PolicySetOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + /** The name of the lab. */ + @path @segment("labs") labName: string, + }, + KeysOf> + > {} + +@armResourceOperations +interface PolicySets { + /** + * Evaluates lab policy. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @post + @operationId("PolicySets_EvaluatePolicies") + evaluatePolicies is PolicySetOps.ActionSync< + PolicySet, + EvaluatePoliciesRequest, + ArmResponse + >; +} + +@@doc(PolicySet.name, "The name of the policy set."); +@@doc(PolicySets.evaluatePolicies::parameters.body, + "Request body for evaluating a policy set." +); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/back-compatible.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/back-compatible.tsp index 9c319594693e..b2ee0491ef4a 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/back-compatible.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/back-compatible.tsp @@ -29,7 +29,9 @@ using Microsoft.DevTestLab; @@clientName(Labs.importVirtualMachine::parameters.body, "importLabVirtualMachineRequest" ); -@@clientName(Labs.evaluatePolicies::parameters.body, "evaluatePoliciesRequest"); +@@clientName(PolicySets.evaluatePolicies::parameters.body, + "evaluatePoliciesRequest" +); #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(Lab.properties); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/PolicySets_EvaluatePolicies.json b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/PolicySets_EvaluatePolicies.json index f45d15e2a707..804a9e935e33 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/PolicySets_EvaluatePolicies.json +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/PolicySets_EvaluatePolicies.json @@ -1,6 +1,6 @@ { "parameters": { - "policySetName": "{policySetName}", + "name": "{policySetName}", "api-version": "2018-09-15", "evaluatePoliciesRequest": { "policies": [ @@ -10,7 +10,7 @@ } ] }, - "name": "{name}", + "labName": "{labName}", "resourceGroupName": "resourceGroupName", "subscriptionId": "{subscriptionId}" }, diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/main.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/main.tsp index 3a846df4e8d7..47aaf3205890 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/main.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/main.tsp @@ -24,6 +24,7 @@ import "./Formula.tsp"; import "./GalleryImage.tsp"; import "./NotificationChannel.tsp"; import "./Policy.tsp"; +import "./PolicySet.tsp"; import "./ServiceRunner.tsp"; import "./User.tsp"; import "./Disk.tsp"; diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index 67a76bf735bd..3dfdae8cf1c0 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -84,6 +84,9 @@ { "name": "Policies" }, + { + "name": "PolicySets" + }, { "name": "ServiceRunners" }, @@ -2982,11 +2985,11 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/policysets/{policySetName}/evaluatePolicies": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{name}/evaluatePolicies": { "post": { "operationId": "PolicySets_EvaluatePolicies", "tags": [ - "Labs" + "PolicySets" ], "description": "Evaluates lab policy.", "parameters": [ @@ -3000,16 +3003,16 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "policySetName", + "name": "name", "in": "path", - "description": "The name of the policy set.", + "description": "The name of the PolicySet", "required": true, "type": "string" }, diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json index f45d15e2a707..804a9e935e33 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json @@ -1,6 +1,6 @@ { "parameters": { - "policySetName": "{policySetName}", + "name": "{policySetName}", "api-version": "2018-09-15", "evaluatePoliciesRequest": { "policies": [ @@ -10,7 +10,7 @@ } ] }, - "name": "{name}", + "labName": "{labName}", "resourceGroupName": "resourceGroupName", "subscriptionId": "{subscriptionId}" }, From d08c8d432bad715c5286ef8a73d14f6749983847 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Wed, 2 Jul 2025 11:04:18 -0700 Subject: [PATCH 50/59] Default value update --- .../models.tsp | 8 +- .../stable/2018-09-15/DTL.json | 97 +++++++++++++++++-- 2 files changed, 93 insertions(+), 12 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp index fbbc66831f52..fafa83753e0a 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp @@ -512,7 +512,7 @@ model LabProperties { /** * Type of storage used by the lab. It can be either Premium or Standard. Default is Premium. */ - labStorageType?: StorageType; + labStorageType?: StorageType = StorageType.Premium; /** * The ordered list of artifact resource IDs that should be applied on all Linux VM creations by default, prior to the artifacts specified by the user. @@ -738,7 +738,7 @@ model ScheduleProperties { /** * The status of the schedule (i.e. Enabled, Disabled) */ - status?: EnableStatus; + status?: EnableStatus = EnableStatus.Disabled; /** * The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart). @@ -838,7 +838,7 @@ model NotificationSettings { /** * If notifications are enabled for this schedule (i.e. Enabled, Disabled). */ - status?: EnableStatus; + status?: EnableStatus = EnableStatus.Disabled; /** * Time in minutes before event at which notification will be sent. @@ -2013,7 +2013,7 @@ model ScheduleCreationParameterProperties { /** * The status of the schedule (i.e. Enabled, Disabled) */ - status?: EnableStatus; + status?: EnableStatus = EnableStatus.Disabled; /** * The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart). diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index 3dfdae8cf1c0..0413e74c26a1 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -11216,8 +11216,32 @@ "readOnly": true }, "labStorageType": { - "$ref": "#/definitions/StorageType", - "description": "Type of storage used by the lab. It can be either Premium or Standard. Default is Premium." + "type": "string", + "description": "Type of storage used by the lab. It can be either Premium or Standard. Default is Premium.", + "default": "Premium", + "enum": [ + "Standard", + "Premium", + "StandardSSD" + ], + "x-ms-enum": { + "name": "StorageType", + "modelAsString": true, + "values": [ + { + "name": "Standard", + "value": "Standard" + }, + { + "name": "Premium", + "value": "Premium" + }, + { + "name": "StandardSSD", + "value": "StandardSSD" + } + ] + } }, "mandatoryArtifactsResourceIdsLinux": { "type": "array", @@ -11984,8 +12008,27 @@ "description": "Notification settings for a schedule.", "properties": { "status": { - "$ref": "#/definitions/EnableStatus", - "description": "If notifications are enabled for this schedule (i.e. Enabled, Disabled)." + "type": "string", + "description": "If notifications are enabled for this schedule (i.e. Enabled, Disabled).", + "default": "Disabled", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "EnableStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled" + }, + { + "name": "Disabled", + "value": "Disabled" + } + ] + } }, "timeInMinutes": { "type": "integer", @@ -12502,8 +12545,27 @@ "description": "Properties for schedule creation.", "properties": { "status": { - "$ref": "#/definitions/EnableStatus", - "description": "The status of the schedule (i.e. Enabled, Disabled)" + "type": "string", + "description": "The status of the schedule (i.e. Enabled, Disabled)", + "default": "Disabled", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "EnableStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled" + }, + { + "name": "Disabled", + "value": "Disabled" + } + ] + } }, "taskType": { "type": "string", @@ -12570,8 +12632,27 @@ "description": "Properties of a schedule.", "properties": { "status": { - "$ref": "#/definitions/EnableStatus", - "description": "The status of the schedule (i.e. Enabled, Disabled)" + "type": "string", + "description": "The status of the schedule (i.e. Enabled, Disabled)", + "default": "Disabled", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "EnableStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled" + }, + { + "name": "Disabled", + "value": "Disabled" + } + ] + } }, "taskType": { "type": "string", From 8a6bd6dddd700cbf8d74f8355210bec0a1e59d02 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Wed, 2 Jul 2025 11:48:55 -0700 Subject: [PATCH 51/59] Async operation fix --- .../ArtifactSource.tsp | 2 +- .../stable/2018-09-15/DTL.json | 17 +---------------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp index 8a7fcb7d6283..df3bd3d3308c 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp @@ -67,7 +67,7 @@ interface ArtifactSources { /** * Create or replace an existing artifact source. */ - createOrUpdate is ArtifactSourceOps.CreateOrUpdateAsync; + createOrUpdate is ArtifactSourceOps.CreateOrUpdateSync; /** * Allows modifying tags of artifact sources. All other properties will be ignored. diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index 0413e74c26a1..240463030de0 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -839,17 +839,6 @@ "description": "Resource 'ArtifactSource' create operation succeeded", "schema": { "$ref": "#/definitions/ArtifactSource" - }, - "headers": { - "Azure-AsyncOperation": { - "type": "string", - "description": "A link to the status monitor" - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } } }, "default": { @@ -863,11 +852,7 @@ "ArtifactSources_CreateOrUpdate": { "$ref": "./examples/ArtifactSources_CreateOrUpdate.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "x-ms-long-running-operation": true + } }, "patch": { "operationId": "ArtifactSources_Update", From 87d25b27f7bbf77c61b2bf96cefc56ec898fe571 Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Tue, 8 Jul 2025 15:53:59 +0800 Subject: [PATCH 52/59] rename interface for python to keep compatibility --- .../Microsoft.DevTestLab.Management/back-compatible.tsp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/back-compatible.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/back-compatible.tsp index b2ee0491ef4a..747f54eca8f0 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/back-compatible.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/back-compatible.tsp @@ -160,3 +160,10 @@ using Microsoft.DevTestLab; @@clientName(VirtualNetworks.update::parameters.properties, "virtualNetwork"); #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(VirtualNetwork.properties); + +@@clientName(LabCosts, "Costs", "python"); +@@clientName(DtlEnvironments, "Environments", "python"); +@@clientName(Schedules, "GlobalSchedules", "python"); +@@clientName(ScheduleOperationGroup, "Schedules", "python"); +@@clientName(OperationsOperationGroup, "Operations", "python"); +@@clientName(LabVirtualMachines, "VirtualMachines", "python"); From e5362674c7590bf8d8e3098b2045010a96910685 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Wed, 9 Jul 2025 14:23:44 -0700 Subject: [PATCH 53/59] ARM feedback --- .../Microsoft.DevTestLab.Management/Lab.tsp | 20 ------------------- .../Microsoft.DevTestLab.Management/main.tsp | 1 - .../models.tsp | 3 --- .../devtestlabs/resource-manager/readme.md | 6 ++++++ 4 files changed, 6 insertions(+), 24 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp index 3ed008696604..d88370a2cc13 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp @@ -179,26 +179,6 @@ interface Labs { * List disk images available for custom image creation. */ listVhds is ArmResourceActionSync>; - - // /** - // * Evaluates lab policy. - // */ - // #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - // @post - // @operationId("PolicySets_EvaluatePolicies") - // evaluatePolicies is ArmResourceActionSync< - // Lab, - // EvaluatePoliciesRequest, - // ArmResponse, - // Parameters = { - // /** - // * The name of the policy set. - // */ - // @path - // @segment("policysets") - // policySetName: string; - // } - // >; } @@doc(Lab.name, "The name of the lab."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/main.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/main.tsp index 47aaf3205890..bde6b2c135f2 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/main.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/main.tsp @@ -41,7 +41,6 @@ using TypeSpec.Versioning; * The DevTest Labs Client. */ #suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "For backward compatibility" -// FIXME: Common type version not set. Set to v3. @armProviderNamespace @service(#{ title: "DevTestLabsClient" }) @versioned(Versions) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp index fafa83753e0a..132a245df190 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp @@ -5,9 +5,6 @@ import "@azure-tools/typespec-azure-resource-manager"; namespace Microsoft.DevTestLab; -using TypeSpec.Rest; -using Azure.ResourceManager; -using TypeSpec.Http; using OpenAPI; /** diff --git a/specification/devtestlabs/resource-manager/readme.md b/specification/devtestlabs/resource-manager/readme.md index 51c2cceab724..c20d4c1919ad 100644 --- a/specification/devtestlabs/resource-manager/readme.md +++ b/specification/devtestlabs/resource-manager/readme.md @@ -51,6 +51,12 @@ suppressions: from: DTL.json reason: This is already released to customers, hence suppressing the rule for compatibility - code: AvoidAdditionalProperties + where: + - $.definitions.ParametersValueFileInfo.properties.parametersValueInfo + - $.definitions.ArmTemplateInfo.properties.template + - $.definitions.ArmTemplateInfo.properties.parameters + - $.definitions.ArmTemplateProperties.properties.contents + - $.definitions.ArtifactProperties.properties.parameters from: DTL.json reason: This is already released to customers with type object as a parameter, hence suppressing the rule for compatibility ``` From 869539d965ecaa4d0cc8f36f23d5e088bc3fad3c Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Wed, 9 Jul 2025 15:47:35 -0700 Subject: [PATCH 54/59] Fix spacing. --- specification/devtestlabs/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/devtestlabs/resource-manager/readme.md b/specification/devtestlabs/resource-manager/readme.md index c20d4c1919ad..7a8360e15665 100644 --- a/specification/devtestlabs/resource-manager/readme.md +++ b/specification/devtestlabs/resource-manager/readme.md @@ -51,7 +51,7 @@ suppressions: from: DTL.json reason: This is already released to customers, hence suppressing the rule for compatibility - code: AvoidAdditionalProperties - where: + where: - $.definitions.ParametersValueFileInfo.properties.parametersValueInfo - $.definitions.ArmTemplateInfo.properties.template - $.definitions.ArmTemplateInfo.properties.parameters From f0271a4c4e2fba1ecd0ee08fc413ca7d9539e457 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Mon, 14 Jul 2025 14:37:49 -0700 Subject: [PATCH 55/59] Schedules operations id removal --- .../Schedule.tsp | 31 ++++------------- .../back-compatible.tsp | 12 +++---- .../stable/2018-09-15/DTL.json | 34 +++++++++---------- 3 files changed, 29 insertions(+), 48 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp index 788e122d0c5a..a0b6d4f06472 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp @@ -47,12 +47,11 @@ interface ScheduleOps > {} @armResourceOperations -interface Schedules { +interface GlobalSchedules { /** * Get schedule. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("GlobalSchedules_Get") get is ScheduleOps.Read< Schedule, Parameters = { @@ -68,7 +67,6 @@ interface Schedules { * Create or replace an existing schedule. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("GlobalSchedules_CreateOrUpdate") createOrUpdate is ScheduleOps.CreateOrUpdateSync; /** @@ -77,7 +75,6 @@ interface Schedules { #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" @patch(#{ implicitOptionality: false }) - @operationId("GlobalSchedules_Update") update is ScheduleOps.CustomPatchSync< Schedule, PatchModel = ScheduleFragment @@ -87,14 +84,12 @@ interface Schedules { * Delete schedule. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("GlobalSchedules_Delete") delete is ScheduleOps.DeleteSync; /** * List schedules in a resource group. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("GlobalSchedules_ListByResourceGroup") listByResourceGroup is ScheduleOps.List< Schedule, Parameters = { @@ -129,7 +124,6 @@ interface Schedules { * List schedules in a subscription. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("GlobalSchedules_ListBySubscription") listBySubscription is ArmListBySubscription< Schedule, Parameters = { @@ -164,14 +158,12 @@ interface Schedules { * Execute a schedule. This operation can take a while to complete. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("GlobalSchedules_Execute") execute is ScheduleOps.ActionAsync; /** * Updates a schedule's target resource Id. This operation can take a while to complete. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("GlobalSchedules_Retarget") retarget is ScheduleOps.ActionAsync< Schedule, RetargetScheduleProperties, @@ -199,12 +191,11 @@ interface ScheduleOperationGroupOps > {} @armResourceOperations -interface ScheduleOperationGroup { +interface Schedules { /** * Get schedule. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Schedules_Get") get is ScheduleOperationGroupOps.Read< Schedule, Parameters = { @@ -220,7 +211,6 @@ interface ScheduleOperationGroup { * Create or replace an existing schedule. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Schedules_CreateOrUpdate") createOrUpdate is ScheduleOperationGroupOps.CreateOrUpdateSync; /** @@ -229,7 +219,6 @@ interface ScheduleOperationGroup { #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" @patch(#{ implicitOptionality: false }) - @operationId("Schedules_Update") update is ScheduleOperationGroupOps.CustomPatchSync< Schedule, PatchModel = ScheduleFragment @@ -239,14 +228,12 @@ interface ScheduleOperationGroup { * Delete schedule. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Schedules_Delete") delete is ScheduleOperationGroupOps.DeleteSync; /** * List schedules in a given lab. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Schedules_List") list is ScheduleOperationGroupOps.List< Schedule, Parameters = { @@ -281,14 +268,12 @@ interface ScheduleOperationGroup { * Execute a schedule. This operation can take a while to complete. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Schedules_Execute") execute is ScheduleOperationGroupOps.ActionAsync; /** * Lists all applicable schedules */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Schedules_ListApplicable") listApplicable is ScheduleOperationGroupOps.ActionSync< Schedule, void, @@ -497,15 +482,13 @@ interface VirtualMachineSchedules { @@doc(Schedule.properties, "The properties of the resource."); @@doc(Schedule.location, "The location of the resource."); @@doc(Schedule.tags, "The tags of the resource."); -@@doc(Schedules.createOrUpdate::parameters.resource, "A schedule."); -@@doc(Schedules.update::parameters.properties, "A schedule."); -@@doc(Schedules.retarget::parameters.body, +@@doc(GlobalSchedules.createOrUpdate::parameters.resource, "A schedule."); +@@doc(GlobalSchedules.update::parameters.properties, "A schedule."); +@@doc(GlobalSchedules.retarget::parameters.body, "Properties for retargeting a virtual machine schedule." ); -@@doc(ScheduleOperationGroup.createOrUpdate::parameters.resource, - "A schedule." -); -@@doc(ScheduleOperationGroup.update::parameters.properties, "A schedule."); +@@doc(Schedules.createOrUpdate::parameters.resource, "A schedule."); +@@doc(Schedules.update::parameters.properties, "A schedule."); @@doc(ServiceFabricSchedules.createOrUpdate::parameters.resource, "A schedule." ); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/back-compatible.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/back-compatible.tsp index 747f54eca8f0..1d3ae52e3071 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/back-compatible.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/back-compatible.tsp @@ -35,13 +35,13 @@ using Microsoft.DevTestLab; #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(Lab.properties); +@@clientName(GlobalSchedules.createOrUpdate::parameters.resource, "schedule"); +@@clientName(GlobalSchedules.update::parameters.properties, "schedule"); +@@clientName(GlobalSchedules.retarget::parameters.body, + "retargetScheduleProperties" +); @@clientName(Schedules.createOrUpdate::parameters.resource, "schedule"); @@clientName(Schedules.update::parameters.properties, "schedule"); -@@clientName(Schedules.retarget::parameters.body, "retargetScheduleProperties"); -@@clientName(ScheduleOperationGroup.createOrUpdate::parameters.resource, - "schedule" -); -@@clientName(ScheduleOperationGroup.update::parameters.properties, "schedule"); @@clientName(ServiceFabricSchedules.createOrUpdate::parameters.resource, "schedule" ); @@ -163,7 +163,5 @@ using Microsoft.DevTestLab; @@clientName(LabCosts, "Costs", "python"); @@clientName(DtlEnvironments, "Environments", "python"); -@@clientName(Schedules, "GlobalSchedules", "python"); -@@clientName(ScheduleOperationGroup, "Schedules", "python"); @@clientName(OperationsOperationGroup, "Operations", "python"); @@clientName(LabVirtualMachines, "VirtualMachines", "python"); diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index 240463030de0..123dbe380663 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -46,10 +46,10 @@ "name": "Labs" }, { - "name": "Schedules" + "name": "GlobalSchedules" }, { - "name": "ScheduleOperationGroup" + "name": "Schedules" }, { "name": "ServiceFabricSchedules" @@ -274,7 +274,7 @@ "get": { "operationId": "GlobalSchedules_ListBySubscription", "tags": [ - "Schedules" + "GlobalSchedules" ], "description": "List schedules in a subscription.", "parameters": [ @@ -3386,7 +3386,7 @@ "get": { "operationId": "Schedules_List", "tags": [ - "ScheduleOperationGroup" + "Schedules" ], "description": "List schedules in a given lab.", "parameters": [ @@ -3464,7 +3464,7 @@ "get": { "operationId": "Schedules_Get", "tags": [ - "ScheduleOperationGroup" + "Schedules" ], "description": "Get schedule.", "parameters": [ @@ -3522,7 +3522,7 @@ "put": { "operationId": "Schedules_CreateOrUpdate", "tags": [ - "ScheduleOperationGroup" + "Schedules" ], "description": "Create or replace an existing schedule.", "parameters": [ @@ -3588,7 +3588,7 @@ "patch": { "operationId": "Schedules_Update", "tags": [ - "ScheduleOperationGroup" + "Schedules" ], "description": "Allows modifying tags of schedules. All other properties will be ignored.", "parameters": [ @@ -3648,7 +3648,7 @@ "delete": { "operationId": "Schedules_Delete", "tags": [ - "ScheduleOperationGroup" + "Schedules" ], "description": "Delete schedule.", "parameters": [ @@ -3701,7 +3701,7 @@ "post": { "operationId": "Schedules_Execute", "tags": [ - "ScheduleOperationGroup" + "Schedules" ], "description": "Execute a schedule. This operation can take a while to complete.", "parameters": [ @@ -3769,7 +3769,7 @@ "post": { "operationId": "Schedules_ListApplicable", "tags": [ - "ScheduleOperationGroup" + "Schedules" ], "description": "Lists all applicable schedules", "parameters": [ @@ -8713,7 +8713,7 @@ "get": { "operationId": "GlobalSchedules_ListByResourceGroup", "tags": [ - "Schedules" + "GlobalSchedules" ], "description": "List schedules in a resource group.", "parameters": [ @@ -8784,7 +8784,7 @@ "get": { "operationId": "GlobalSchedules_Get", "tags": [ - "Schedules" + "GlobalSchedules" ], "description": "Get schedule.", "parameters": [ @@ -8835,7 +8835,7 @@ "put": { "operationId": "GlobalSchedules_CreateOrUpdate", "tags": [ - "Schedules" + "GlobalSchedules" ], "description": "Create or replace an existing schedule.", "parameters": [ @@ -8894,7 +8894,7 @@ "patch": { "operationId": "GlobalSchedules_Update", "tags": [ - "Schedules" + "GlobalSchedules" ], "description": "Allows modifying tags of schedules. All other properties will be ignored.", "parameters": [ @@ -8947,7 +8947,7 @@ "delete": { "operationId": "GlobalSchedules_Delete", "tags": [ - "Schedules" + "GlobalSchedules" ], "description": "Delete schedule.", "parameters": [ @@ -8993,7 +8993,7 @@ "post": { "operationId": "GlobalSchedules_Execute", "tags": [ - "Schedules" + "GlobalSchedules" ], "description": "Execute a schedule. This operation can take a while to complete.", "parameters": [ @@ -9054,7 +9054,7 @@ "post": { "operationId": "GlobalSchedules_Retarget", "tags": [ - "Schedules" + "GlobalSchedules" ], "description": "Updates a schedule's target resource Id. This operation can take a while to complete.", "parameters": [ From af1ef43a7dcca28c8ae334f97690da6d6a49f2a3 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Mon, 14 Jul 2025 15:40:55 -0700 Subject: [PATCH 56/59] LroHeader update and operation id update --- .../CustomImage.tsp | 3 +- .../Microsoft.DevTestLab.Management/Disk.tsp | 3 +- .../DtlEnvironment.tsp | 14 ++--- .../Formula.tsp | 3 +- .../Microsoft.DevTestLab.Management/Lab.tsp | 3 +- .../LabCost.tsp | 4 +- .../LabVirtualMachine.tsp | 34 +++-------- .../Secret.tsp | 3 +- .../ServiceFabric.tsp | 3 +- .../Microsoft.DevTestLab.Management/User.tsp | 3 +- .../VirtualNetwork.tsp | 3 +- .../back-compatible.tsp | 21 +++---- .../stable/2018-09-15/DTL.json | 56 +++++++++---------- 13 files changed, 68 insertions(+), 85 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp index 685fd8831fa3..d77def80b80a 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp @@ -69,7 +69,8 @@ interface CustomImages { */ createOrUpdate is CustomImageOps.CreateOrUpdateAsync< CustomImage, - LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader + LroHeaders = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader >; /** diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp index 5aacba6d9aac..b7db34b36daf 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp @@ -73,7 +73,8 @@ interface Disks { */ createOrUpdate is DiskOps.CreateOrUpdateAsync< Disk, - LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader + LroHeaders = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader >; /** diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp index 41f76222420d..af0d3fcb8f33 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp @@ -53,12 +53,11 @@ interface EnvironmentOps > {} @armResourceOperations -interface DtlEnvironments { +interface Environments { /** * Get environment. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Environments_Get") get is EnvironmentOps.Read< DtlEnvironment, Parameters = { @@ -74,10 +73,10 @@ interface DtlEnvironments { * Create or replace an existing environment. This operation can take a while to complete. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Environments_CreateOrUpdate") createOrUpdate is EnvironmentOps.CreateOrUpdateAsync< DtlEnvironment, - LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader + LroHeaders = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader >; /** @@ -86,7 +85,6 @@ interface DtlEnvironments { #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" @patch(#{ implicitOptionality: false }) - @operationId("Environments_Update") update is EnvironmentOps.CustomPatchSync< DtlEnvironment, PatchModel = DtlEnvironmentFragment @@ -97,7 +95,6 @@ interface DtlEnvironments { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" - @operationId("Environments_Delete") delete is EnvironmentOps.DeleteWithoutOkAsync< DtlEnvironment, Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse @@ -107,7 +104,6 @@ interface DtlEnvironments { * List environments in a given user profile. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Environments_List") list is EnvironmentOps.List< DtlEnvironment, Parameters = { @@ -141,9 +137,9 @@ interface DtlEnvironments { @@doc(DtlEnvironment.name, "The name of the environment."); @@doc(DtlEnvironment.properties, "The properties of the environment."); -@@doc(DtlEnvironments.createOrUpdate::parameters.resource, +@@doc(Environments.createOrUpdate::parameters.resource, "An environment, which is essentially an ARM template deployment." ); -@@doc(DtlEnvironments.update::parameters.properties, +@@doc(Environments.update::parameters.properties, "An environment, which is essentially an ARM template deployment." ); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp index 9a4527d10433..67c3f345bf3b 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp @@ -70,7 +70,8 @@ interface Formulas { */ createOrUpdate is FormulaOps.CreateOrUpdateAsync< Formula, - LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader + LroHeaders = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader >; /** diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp index d88370a2cc13..bb36cb0383eb 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp @@ -50,7 +50,8 @@ interface Labs { */ createOrUpdate is ArmResourceCreateOrReplaceAsync< Lab, - LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader + LroHeaders = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader >; /** diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp index 1fb41eea786e..c4cd4d69b568 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp @@ -51,7 +51,7 @@ interface LabCostOps #suppress "@azure-tools/typespec-azure-resource-manager/no-resource-delete-operation" "For backward compatibility" @armResourceOperations -interface LabCosts { +interface Costs { /** * Get cost. */ @@ -78,4 +78,4 @@ interface LabCosts { @@doc(LabCost.name, "The name of the cost."); @@doc(LabCost.properties, "The properties of the resource."); -@@doc(LabCosts.createOrUpdate::parameters.resource, "A cost item."); +@@doc(Costs.createOrUpdate::parameters.resource, "A cost item."); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp index 8488c4324fe0..92bffba58fd6 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp @@ -50,12 +50,11 @@ interface LabVirtualMachineOps > {} @armResourceOperations -interface LabVirtualMachines { +interface VirtualMachines { /** * Get virtual machine. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("VirtualMachines_Get") get is LabVirtualMachineOps.Read< LabVirtualMachine, Parameters = { @@ -71,10 +70,9 @@ interface LabVirtualMachines { * Create or replace an existing virtual machine. This operation can take a while to complete. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("VirtualMachines_CreateOrUpdate") createOrUpdate is LabVirtualMachineOps.CreateOrUpdateAsync< LabVirtualMachine, - LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader + LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader >; /** @@ -83,7 +81,6 @@ interface LabVirtualMachines { #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" @patch(#{ implicitOptionality: false }) - @operationId("VirtualMachines_Update") update is LabVirtualMachineOps.CustomPatchSync< LabVirtualMachine, PatchModel = LabVirtualMachineFragment @@ -94,7 +91,6 @@ interface LabVirtualMachines { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" - @operationId("VirtualMachines_Delete") delete is LabVirtualMachineOps.DeleteWithoutOkAsync< LabVirtualMachine, Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse @@ -104,7 +100,6 @@ interface LabVirtualMachines { * List virtual machines in a given lab. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("VirtualMachines_List") list is LabVirtualMachineOps.List< LabVirtualMachine, Parameters = { @@ -139,7 +134,6 @@ interface LabVirtualMachines { * Attach a new or existing data disk to virtual machine. This operation can take a while to complete. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("VirtualMachines_AddDataDisk") addDataDisk is LabVirtualMachineOps.ActionAsync< LabVirtualMachine, DataDiskProperties, @@ -150,7 +144,6 @@ interface LabVirtualMachines { * Apply artifacts to virtual machine. This operation can take a while to complete. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("VirtualMachines_ApplyArtifacts") applyArtifacts is LabVirtualMachineOps.ActionAsync< LabVirtualMachine, ApplyArtifactsRequest, @@ -161,7 +154,6 @@ interface LabVirtualMachines { * Take ownership of an existing virtual machine This operation can take a while to complete. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("VirtualMachines_Claim") claim is LabVirtualMachineOps.ActionAsync< LabVirtualMachine, void, @@ -172,7 +164,6 @@ interface LabVirtualMachines { * Detach the specified disk from the virtual machine. This operation can take a while to complete. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("VirtualMachines_DetachDataDisk") detachDataDisk is LabVirtualMachineOps.ActionAsync< LabVirtualMachine, DetachDataDiskProperties, @@ -183,7 +174,6 @@ interface LabVirtualMachines { * Gets a string that represents the contents of the RDP file for the virtual machine */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("VirtualMachines_GetRdpFileContents") getRdpFileContents is LabVirtualMachineOps.ActionSync< LabVirtualMachine, void, @@ -194,7 +184,6 @@ interface LabVirtualMachines { * Lists the applicable start/stop schedules, if any. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("VirtualMachines_ListApplicableSchedules") listApplicableSchedules is LabVirtualMachineOps.ActionSync< LabVirtualMachine, void, @@ -205,7 +194,6 @@ interface LabVirtualMachines { * Redeploy a virtual machine This operation can take a while to complete. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("VirtualMachines_Redeploy") redeploy is LabVirtualMachineOps.ActionAsync< LabVirtualMachine, void, @@ -216,7 +204,6 @@ interface LabVirtualMachines { * Resize Virtual Machine. This operation can take a while to complete. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("VirtualMachines_Resize") resize is LabVirtualMachineOps.ActionAsync< LabVirtualMachine, ResizeLabVirtualMachineProperties, @@ -227,7 +214,6 @@ interface LabVirtualMachines { * Restart a virtual machine. This operation can take a while to complete. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("VirtualMachines_Restart") restart is LabVirtualMachineOps.ActionAsync< LabVirtualMachine, void, @@ -238,7 +224,6 @@ interface LabVirtualMachines { * Start a virtual machine. This operation can take a while to complete. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("VirtualMachines_Start") start is LabVirtualMachineOps.ActionAsync< LabVirtualMachine, void, @@ -249,14 +234,12 @@ interface LabVirtualMachines { * Stop a virtual machine This operation can take a while to complete. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("VirtualMachines_Stop") stop is LabVirtualMachineOps.ActionAsync; /** * Transfers all data disks attached to the virtual machine to be owned by the current user. This operation can take a while to complete. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("VirtualMachines_TransferDisks") transferDisks is LabVirtualMachineOps.ActionAsync< LabVirtualMachine, void, @@ -267,7 +250,6 @@ interface LabVirtualMachines { * Release ownership of an existing virtual machine This operation can take a while to complete. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("VirtualMachines_UnClaim") unClaim is LabVirtualMachineOps.ActionAsync< LabVirtualMachine, void, @@ -277,19 +259,19 @@ interface LabVirtualMachines { @@doc(LabVirtualMachine.name, "The name of the virtual machine."); @@doc(LabVirtualMachine.properties, "The properties of the resource."); -@@doc(LabVirtualMachines.createOrUpdate::parameters.resource, +@@doc(VirtualMachines.createOrUpdate::parameters.resource, "A virtual machine." ); -@@doc(LabVirtualMachines.update::parameters.properties, "A virtual machine."); -@@doc(LabVirtualMachines.addDataDisk::parameters.body, +@@doc(VirtualMachines.update::parameters.properties, "A virtual machine."); +@@doc(VirtualMachines.addDataDisk::parameters.body, "Request body for adding a new or existing data disk to a virtual machine." ); -@@doc(LabVirtualMachines.applyArtifacts::parameters.body, +@@doc(VirtualMachines.applyArtifacts::parameters.body, "Request body for applying artifacts to a virtual machine." ); -@@doc(LabVirtualMachines.detachDataDisk::parameters.body, +@@doc(VirtualMachines.detachDataDisk::parameters.body, "Request body for detaching data disk from a virtual machine." ); -@@doc(LabVirtualMachines.resize::parameters.body, +@@doc(VirtualMachines.resize::parameters.body, "Request body for resizing a virtual machine." ); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp index 5f2ca8c18d57..6274968ab71c 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp @@ -73,7 +73,8 @@ interface Secrets { */ createOrUpdate is SecretOps.CreateOrUpdateAsync< Secret, - LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader + LroHeaders = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader >; /** diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp index 14c490ce8f73..61bb64f54ef0 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp @@ -72,7 +72,8 @@ interface ServiceFabrics { */ createOrUpdate is ServiceFabricOps.CreateOrUpdateAsync< ServiceFabric, - LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader + LroHeaders = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader >; /** diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp index 11c8e6231108..15bac15e7739 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp @@ -70,7 +70,8 @@ interface Users { */ createOrUpdate is UserOps.CreateOrUpdateAsync< User, - LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader + LroHeaders = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader >; /** diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp index 3c7ed1dbe98b..eecd7befdc96 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp @@ -70,7 +70,8 @@ interface VirtualNetworks { */ createOrUpdate is VirtualNetworkOps.CreateOrUpdateAsync< VirtualNetwork, - LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader + LroHeaders = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader >; /** diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/back-compatible.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/back-compatible.tsp index 1d3ae52e3071..3e97276f0029 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/back-compatible.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/back-compatible.tsp @@ -69,7 +69,7 @@ using Microsoft.DevTestLab; #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(Artifact.properties); -@@clientName(LabCosts.createOrUpdate::parameters.resource, "labCost"); +@@clientName(Costs.createOrUpdate::parameters.resource, "labCost"); #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(LabCost.properties); @@ -114,10 +114,10 @@ using Microsoft.DevTestLab; #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(Disk.properties); -@@clientName(DtlEnvironments.createOrUpdate::parameters.resource, +@@clientName(Environments.createOrUpdate::parameters.resource, "dtlEnvironment" ); -@@clientName(DtlEnvironments.update::parameters.properties, "dtlEnvironment"); +@@clientName(Environments.update::parameters.properties, "dtlEnvironment"); #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(DtlEnvironment.properties); @@ -133,22 +133,22 @@ using Microsoft.DevTestLab; #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(ServiceFabric.properties); -@@clientName(LabVirtualMachines.createOrUpdate::parameters.resource, +@@clientName(VirtualMachines.createOrUpdate::parameters.resource, "labVirtualMachine" ); -@@clientName(LabVirtualMachines.update::parameters.properties, +@@clientName(VirtualMachines.update::parameters.properties, "labVirtualMachine" ); -@@clientName(LabVirtualMachines.addDataDisk::parameters.body, +@@clientName(VirtualMachines.addDataDisk::parameters.body, "dataDiskProperties" ); -@@clientName(LabVirtualMachines.applyArtifacts::parameters.body, +@@clientName(VirtualMachines.applyArtifacts::parameters.body, "applyArtifactsRequest" ); -@@clientName(LabVirtualMachines.detachDataDisk::parameters.body, +@@clientName(VirtualMachines.detachDataDisk::parameters.body, "detachDataDiskProperties" ); -@@clientName(LabVirtualMachines.resize::parameters.body, +@@clientName(VirtualMachines.resize::parameters.body, "resizeLabVirtualMachineProperties" ); #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@ -161,7 +161,4 @@ using Microsoft.DevTestLab; #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(VirtualNetwork.properties); -@@clientName(LabCosts, "Costs", "python"); -@@clientName(DtlEnvironments, "Environments", "python"); @@clientName(OperationsOperationGroup, "Operations", "python"); -@@clientName(LabVirtualMachines, "VirtualMachines", "python"); diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index 123dbe380663..8583e8c2a99a 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -67,7 +67,7 @@ "name": "Artifacts" }, { - "name": "LabCosts" + "name": "Costs" }, { "name": "CustomImages" @@ -97,7 +97,7 @@ "name": "Disks" }, { - "name": "DtlEnvironments" + "name": "Environments" }, { "name": "Secrets" @@ -106,7 +106,7 @@ "name": "ServiceFabrics" }, { - "name": "LabVirtualMachines" + "name": "VirtualMachines" }, { "name": "VirtualNetworks" @@ -1404,7 +1404,7 @@ "get": { "operationId": "Costs_Get", "tags": [ - "LabCosts" + "Costs" ], "description": "Get cost.", "parameters": [ @@ -1462,7 +1462,7 @@ "put": { "operationId": "Costs_CreateOrUpdate", "tags": [ - "LabCosts" + "Costs" ], "description": "Create or replace an existing cost.", "parameters": [ @@ -4894,7 +4894,7 @@ "get": { "operationId": "Environments_List", "tags": [ - "DtlEnvironments" + "Environments" ], "description": "List environments in a given user profile.", "parameters": [ @@ -4979,7 +4979,7 @@ "get": { "operationId": "Environments_Get", "tags": [ - "DtlEnvironments" + "Environments" ], "description": "Get environment.", "parameters": [ @@ -5044,7 +5044,7 @@ "put": { "operationId": "Environments_CreateOrUpdate", "tags": [ - "DtlEnvironments" + "Environments" ], "description": "Create or replace an existing environment. This operation can take a while to complete.", "parameters": [ @@ -5132,7 +5132,7 @@ "patch": { "operationId": "Environments_Update", "tags": [ - "DtlEnvironments" + "Environments" ], "description": "Allows modifying tags of environments. All other properties will be ignored.", "parameters": [ @@ -5199,7 +5199,7 @@ "delete": { "operationId": "Environments_Delete", "tags": [ - "DtlEnvironments" + "Environments" ], "description": "Delete environment. This operation can take a while to complete.", "parameters": [ @@ -6702,7 +6702,7 @@ "get": { "operationId": "VirtualMachines_List", "tags": [ - "LabVirtualMachines" + "VirtualMachines" ], "description": "List virtual machines in a given lab.", "parameters": [ @@ -6780,7 +6780,7 @@ "get": { "operationId": "VirtualMachines_Get", "tags": [ - "LabVirtualMachines" + "VirtualMachines" ], "description": "Get virtual machine.", "parameters": [ @@ -6838,7 +6838,7 @@ "put": { "operationId": "VirtualMachines_CreateOrUpdate", "tags": [ - "LabVirtualMachines" + "VirtualMachines" ], "description": "Create or replace an existing virtual machine. This operation can take a while to complete.", "parameters": [ @@ -6919,7 +6919,7 @@ "patch": { "operationId": "VirtualMachines_Update", "tags": [ - "LabVirtualMachines" + "VirtualMachines" ], "description": "Allows modifying tags of virtual machines. All other properties will be ignored.", "parameters": [ @@ -6979,7 +6979,7 @@ "delete": { "operationId": "VirtualMachines_Delete", "tags": [ - "LabVirtualMachines" + "VirtualMachines" ], "description": "Delete virtual machine. This operation can take a while to complete.", "parameters": [ @@ -7050,7 +7050,7 @@ "post": { "operationId": "VirtualMachines_AddDataDisk", "tags": [ - "LabVirtualMachines" + "VirtualMachines" ], "description": "Attach a new or existing data disk to virtual machine. This operation can take a while to complete.", "parameters": [ @@ -7127,7 +7127,7 @@ "post": { "operationId": "VirtualMachines_ApplyArtifacts", "tags": [ - "LabVirtualMachines" + "VirtualMachines" ], "description": "Apply artifacts to virtual machine. This operation can take a while to complete.", "parameters": [ @@ -7204,7 +7204,7 @@ "post": { "operationId": "VirtualMachines_Claim", "tags": [ - "LabVirtualMachines" + "VirtualMachines" ], "description": "Take ownership of an existing virtual machine This operation can take a while to complete.", "parameters": [ @@ -7272,7 +7272,7 @@ "post": { "operationId": "VirtualMachines_DetachDataDisk", "tags": [ - "LabVirtualMachines" + "VirtualMachines" ], "description": "Detach the specified disk from the virtual machine. This operation can take a while to complete.", "parameters": [ @@ -7349,7 +7349,7 @@ "post": { "operationId": "VirtualMachines_GetRdpFileContents", "tags": [ - "LabVirtualMachines" + "VirtualMachines" ], "description": "Gets a string that represents the contents of the RDP file for the virtual machine", "parameters": [ @@ -7402,7 +7402,7 @@ "post": { "operationId": "VirtualMachines_ListApplicableSchedules", "tags": [ - "LabVirtualMachines" + "VirtualMachines" ], "description": "Lists the applicable start/stop schedules, if any.", "parameters": [ @@ -7455,7 +7455,7 @@ "post": { "operationId": "VirtualMachines_Redeploy", "tags": [ - "LabVirtualMachines" + "VirtualMachines" ], "description": "Redeploy a virtual machine This operation can take a while to complete.", "parameters": [ @@ -7523,7 +7523,7 @@ "post": { "operationId": "VirtualMachines_Resize", "tags": [ - "LabVirtualMachines" + "VirtualMachines" ], "description": "Resize Virtual Machine. This operation can take a while to complete.", "parameters": [ @@ -7600,7 +7600,7 @@ "post": { "operationId": "VirtualMachines_Restart", "tags": [ - "LabVirtualMachines" + "VirtualMachines" ], "description": "Restart a virtual machine. This operation can take a while to complete.", "parameters": [ @@ -8093,7 +8093,7 @@ "post": { "operationId": "VirtualMachines_Start", "tags": [ - "LabVirtualMachines" + "VirtualMachines" ], "description": "Start a virtual machine. This operation can take a while to complete.", "parameters": [ @@ -8161,7 +8161,7 @@ "post": { "operationId": "VirtualMachines_Stop", "tags": [ - "LabVirtualMachines" + "VirtualMachines" ], "description": "Stop a virtual machine This operation can take a while to complete.", "parameters": [ @@ -8229,7 +8229,7 @@ "post": { "operationId": "VirtualMachines_TransferDisks", "tags": [ - "LabVirtualMachines" + "VirtualMachines" ], "description": "Transfers all data disks attached to the virtual machine to be owned by the current user. This operation can take a while to complete.", "parameters": [ @@ -8297,7 +8297,7 @@ "post": { "operationId": "VirtualMachines_UnClaim", "tags": [ - "LabVirtualMachines" + "VirtualMachines" ], "description": "Release ownership of an existing virtual machine This operation can take a while to complete.", "parameters": [ From 1013aabd5e86d5383c810063c28e65192def813d Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Mon, 14 Jul 2025 15:54:20 -0700 Subject: [PATCH 57/59] ts validation check --- .../Microsoft.DevTestLab.Management/LabVirtualMachine.tsp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp index 92bffba58fd6..bf34ba16d1f3 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp @@ -72,7 +72,8 @@ interface VirtualMachines { #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" createOrUpdate is LabVirtualMachineOps.CreateOrUpdateAsync< LabVirtualMachine, - LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader + LroHeaders = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader >; /** From 51e19366ab1655615f7e49d03351f6d2677781b2 Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Tue, 15 Jul 2025 12:47:12 -0700 Subject: [PATCH 58/59] Record unknown update --- .../back-compatible.tsp | 2 -- .../models.tsp | 30 ++++++++++++------- .../routes.tsp | 5 +--- .../stable/2018-09-15/DTL.json | 11 ++----- 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/back-compatible.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/back-compatible.tsp index 3e97276f0029..5e8c30db0b07 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/back-compatible.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/back-compatible.tsp @@ -160,5 +160,3 @@ using Microsoft.DevTestLab; @@clientName(VirtualNetworks.update::parameters.properties, "virtualNetwork"); #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(VirtualNetwork.properties); - -@@clientName(OperationsOperationGroup, "Operations", "python"); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp index 132a245df190..3a7e136c9e00 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp @@ -965,9 +965,11 @@ model ArmTemplateProperties { /** * The contents of the ARM template. */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/no-unknown" "For backward compatibility" + @OpenAPI.extension("type", "object") @visibility(Lifecycle.Read) - contents?: Record; + contents?: unknown; /** * The creation date of the armTemplate. @@ -1002,8 +1004,10 @@ model ParametersValueFileInfo { /** * Contents of the file. */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" - parametersValueInfo?: Record; + #suppress "@azure-tools/typespec-azure-core/no-openapi" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/no-unknown" "For backward compatibility" + @OpenAPI.extension("type", "object") + parametersValueInfo?: unknown; } /** @@ -1055,9 +1059,11 @@ model ArtifactProperties { /** * The artifact's parameters. */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/no-unknown" "For backward compatibility" + @OpenAPI.extension("type", "object") @visibility(Lifecycle.Read) - parameters?: Record; + parameters?: unknown; /** * The artifact's creation date. @@ -1114,14 +1120,18 @@ model ArmTemplateInfo { /** * The template's contents. */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" - template?: Record; + #suppress "@azure-tools/typespec-azure-core/no-openapi" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/no-unknown" "For backward compatibility" + @OpenAPI.extension("type", "object") + template?: unknown; /** * The parameters of the ARM template. */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" - parameters?: Record; + #suppress "@azure-tools/typespec-azure-core/no-openapi" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/no-unknown" "For backward compatibility" + @OpenAPI.extension("type", "object") + parameters?: unknown; } /** diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/routes.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/routes.tsp index 3a13d05266e6..ce48fc604b13 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/routes.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/routes.tsp @@ -6,15 +6,13 @@ import "./models.tsp"; import "@azure-tools/typespec-azure-resource-manager"; import "@typespec/openapi"; -using TypeSpec.Rest; using TypeSpec.Http; using Azure.ResourceManager; -using TypeSpec.OpenAPI; namespace Microsoft.DevTestLab; #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" -interface OperationsOperationGroup { +interface Operations { /** * Get operation. */ @@ -22,7 +20,6 @@ interface OperationsOperationGroup { #suppress "@azure-tools/typespec-azure-resource-manager/no-response-body" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/lro-location-header" "For backward compatibility" - @operationId("Operations_Get") @route("/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/locations/{locationName}/operations/{name}") @get get( diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index 8583e8c2a99a..740b3159abf5 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -9203,13 +9203,11 @@ "properties": { "template": { "type": "object", - "description": "The template's contents.", - "additionalProperties": {} + "description": "The template's contents." }, "parameters": { "type": "object", - "description": "The parameters of the ARM template.", - "additionalProperties": {} + "description": "The parameters of the ARM template." } } }, @@ -9275,7 +9273,6 @@ "contents": { "type": "object", "description": "The contents of the ARM template.", - "additionalProperties": {}, "readOnly": true }, "createdDate": { @@ -9449,7 +9446,6 @@ "parameters": { "type": "object", "description": "The artifact's parameters.", - "additionalProperties": {}, "readOnly": true }, "createdDate": { @@ -12104,8 +12100,7 @@ }, "parametersValueInfo": { "type": "object", - "description": "Contents of the file.", - "additionalProperties": {} + "description": "Contents of the file." } } }, From 68a76b07cc1e0df2f3496fabf3d635966e6eacdc Mon Sep 17 00:00:00 2001 From: nandiniy_microsoft Date: Tue, 15 Jul 2025 23:33:47 -0700 Subject: [PATCH 59/59] Update to Record unknown --- .../models.tsp | 30 +++++++------------ .../stable/2018-09-15/DTL.json | 11 +++++-- 2 files changed, 18 insertions(+), 23 deletions(-) diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp index 3a7e136c9e00..132a245df190 100644 --- a/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp @@ -965,11 +965,9 @@ model ArmTemplateProperties { /** * The contents of the ARM template. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "For backward compatibility" - #suppress "@azure-tools/typespec-azure-core/no-unknown" "For backward compatibility" - @OpenAPI.extension("type", "object") + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" @visibility(Lifecycle.Read) - contents?: unknown; + contents?: Record; /** * The creation date of the armTemplate. @@ -1004,10 +1002,8 @@ model ParametersValueFileInfo { /** * Contents of the file. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "For backward compatibility" - #suppress "@azure-tools/typespec-azure-core/no-unknown" "For backward compatibility" - @OpenAPI.extension("type", "object") - parametersValueInfo?: unknown; + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + parametersValueInfo?: Record; } /** @@ -1059,11 +1055,9 @@ model ArtifactProperties { /** * The artifact's parameters. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "For backward compatibility" - #suppress "@azure-tools/typespec-azure-core/no-unknown" "For backward compatibility" - @OpenAPI.extension("type", "object") + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" @visibility(Lifecycle.Read) - parameters?: unknown; + parameters?: Record; /** * The artifact's creation date. @@ -1120,18 +1114,14 @@ model ArmTemplateInfo { /** * The template's contents. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "For backward compatibility" - #suppress "@azure-tools/typespec-azure-core/no-unknown" "For backward compatibility" - @OpenAPI.extension("type", "object") - template?: unknown; + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + template?: Record; /** * The parameters of the ARM template. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "For backward compatibility" - #suppress "@azure-tools/typespec-azure-core/no-unknown" "For backward compatibility" - @OpenAPI.extension("type", "object") - parameters?: unknown; + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + parameters?: Record; } /** diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index 740b3159abf5..8583e8c2a99a 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -9203,11 +9203,13 @@ "properties": { "template": { "type": "object", - "description": "The template's contents." + "description": "The template's contents.", + "additionalProperties": {} }, "parameters": { "type": "object", - "description": "The parameters of the ARM template." + "description": "The parameters of the ARM template.", + "additionalProperties": {} } } }, @@ -9273,6 +9275,7 @@ "contents": { "type": "object", "description": "The contents of the ARM template.", + "additionalProperties": {}, "readOnly": true }, "createdDate": { @@ -9446,6 +9449,7 @@ "parameters": { "type": "object", "description": "The artifact's parameters.", + "additionalProperties": {}, "readOnly": true }, "createdDate": { @@ -12100,7 +12104,8 @@ }, "parametersValueInfo": { "type": "object", - "description": "Contents of the file." + "description": "Contents of the file.", + "additionalProperties": {} } } },