diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp new file mode 100644 index 000000000000..4a336fec632b --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArmTemplate.tsp @@ -0,0 +1,105 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.Rest; + +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" +@Azure.ResourceManager.Legacy.customAzureResource +@Http.Private.includeInapplicableMetadataInPayload(false) +model ArmTemplate extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("armtemplates") + name: string; + + 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("artifactsources") artifactSourceName: string, + }, + KeysOf> + > {} + +@armResourceOperations +interface ArmTemplates { + /** + * Get azure resource manager template. + */ + get is ArmTemplatesOps.Read< + 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 ArmTemplatesOps.List< + 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..cea050c13487 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Artifact.tsp @@ -0,0 +1,118 @@ +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. + */ +#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 Artifact extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("artifacts") + name: string; + + 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("artifactsources") artifactSourceName: string, + }, + KeysOf> + > {} + +@armResourceOperations +interface Artifacts { + /** + * Get artifact. + */ + get is ArtifactOps.Read< + Artifact, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=title)' + */ + @query("$expand") + $expand?: string; + } + >; + + /** + * List artifacts in a given artifact source. + */ + list is ArtifactOps.List< + 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 ArtifactOps.ActionSync< + 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..df3bd3d3308c --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ArtifactSource.tsp @@ -0,0 +1,128 @@ +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; +/** + * 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" +@Azure.ResourceManager.Legacy.customAzureResource +@Http.Private.includeInapplicableMetadataInPayload(false) +model ArtifactSource extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("artifactsources") + name: string; + + properties: ArtifactSourceProperties; +} + +@armResourceOperations +interface ArtifactSourceOps + 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 ArtifactSources { + /** + * Get artifact source. + */ + get is ArtifactSourceOps.Read< + ArtifactSource, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=displayName)' + */ + @query("$expand") + $expand?: string; + } + >; + + /** + * Create or replace an existing artifact source. + */ + createOrUpdate is ArtifactSourceOps.CreateOrUpdateSync; + + /** + * 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 ArtifactSourceOps.CustomPatchSync< + ArtifactSource, + PatchModel = ArtifactSourceFragment + >; + + /** + * Delete artifact source. + */ + delete is ArtifactSourceOps.DeleteSync; + + /** + * List artifact sources in a given lab. + */ + list is ArtifactSourceOps.List< + 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..d77def80b80a --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/CustomImage.tsp @@ -0,0 +1,132 @@ +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 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" +@Azure.ResourceManager.Legacy.customAzureResource +@Http.Private.includeInapplicableMetadataInPayload(false) +model CustomImage extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("customimages") + name: string; + + 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 CustomImageOps.Read< + 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 CustomImageOps.CreateOrUpdateAsync< + CustomImage, + LroHeaders = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader + >; + + /** + * Allows modifying tags of custom images. All other properties will be ignored. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "CustomImageFragment contains tags as expected by the patch operation." + @patch(#{ implicitOptionality: false }) + 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 CustomImageOps.DeleteWithoutOkAsync< + CustomImage, + Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >; + + /** + * List custom images in a given lab. + */ + list is CustomImageOps.List< + 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..b7db34b36daf --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Disk.tsp @@ -0,0 +1,145 @@ +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. + */ +#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 Disk extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("disks") + name: string; + + 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 DiskOps.Read< + 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 DiskOps.CreateOrUpdateAsync< + Disk, + LroHeaders = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader + >; + + /** + * 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 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 DiskOps.DeleteWithoutOkAsync< + Disk, + Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >; + + /** + * List disks in a given user profile. + */ + list is DiskOps.List< + 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 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 DiskOps.ActionAsync; +} + +@@doc(Disk.name, "The name of the disk."); +@@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."); +@@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..af0d3fcb8f33 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/DtlEnvironment.tsp @@ -0,0 +1,145 @@ +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. + */ +#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 DtlEnvironment extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("environments") + name: string; + + 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 Environments { + /** + * Get environment. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + get is EnvironmentOps.Read< + 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" + createOrUpdate is EnvironmentOps.CreateOrUpdateAsync< + 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" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" + @patch(#{ implicitOptionality: false }) + update is EnvironmentOps.CustomPatchSync< + 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" + delete is EnvironmentOps.DeleteWithoutOkAsync< + DtlEnvironment, + Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >; + + /** + * List environments in a given user profile. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + list is EnvironmentOps.List< + 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 environment."); +@@doc(Environments.createOrUpdate::parameters.resource, + "An environment, which is essentially an ARM template deployment." +); +@@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 new file mode 100644 index 000000000000..67c3f345bf3b --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Formula.tsp @@ -0,0 +1,130 @@ +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 + */ +#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 Formula extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("formulas") + name: string; + + 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 FormulaOps.Read< + 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 FormulaOps.CreateOrUpdateAsync< + Formula, + LroHeaders = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader + >; + + /** + * 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 }) + update is FormulaOps.CustomPatchSync; + + /** + * Delete formula. + */ + delete is FormulaOps.DeleteSync; + + /** + * List formulas in a given lab. + */ + list is FormulaOps.List< + 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 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" +); 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 new file mode 100644 index 000000000000..bb36cb0383eb --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Lab.tsp @@ -0,0 +1,200 @@ +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. + */ +#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") + name: string; + + properties: LabProperties; +} + +@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>; +} + +@@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" +); diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp new file mode 100644 index 000000000000..c4cd4d69b568 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabCost.tsp @@ -0,0 +1,81 @@ +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. + */ +#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 LabCost extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("costs") + name: string; + + 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 Costs { + /** + * Get cost. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Costs_Get") + get is LabCostOps.Read< + 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 LabCostOps.CreateOrUpdateSync; +} + +@@doc(LabCost.name, "The name of the cost."); +@@doc(LabCost.properties, "The properties of the resource."); +@@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 new file mode 100644 index 000000000000..bf34ba16d1f3 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/LabVirtualMachine.tsp @@ -0,0 +1,278 @@ +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. + */ +#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 LabVirtualMachine extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("virtualmachines") + name: string; + + 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 VirtualMachines { + /** + * Get virtual machine. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + get is LabVirtualMachineOps.Read< + 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" + createOrUpdate is LabVirtualMachineOps.CreateOrUpdateAsync< + 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" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" + @patch(#{ implicitOptionality: false }) + update is LabVirtualMachineOps.CustomPatchSync< + 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" + delete is LabVirtualMachineOps.DeleteWithoutOkAsync< + LabVirtualMachine, + Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >; + + /** + * List virtual machines in a given lab. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + list is LabVirtualMachineOps.List< + 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" + addDataDisk is LabVirtualMachineOps.ActionAsync< + 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" + applyArtifacts is LabVirtualMachineOps.ActionAsync< + 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" + 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" + detachDataDisk is LabVirtualMachineOps.ActionAsync< + 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" + getRdpFileContents is LabVirtualMachineOps.ActionSync< + LabVirtualMachine, + void, + ArmResponse + >; + + /** + * Lists the applicable start/stop schedules, if any. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + listApplicableSchedules is LabVirtualMachineOps.ActionSync< + 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" + 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" + resize is LabVirtualMachineOps.ActionAsync< + 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" + 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" + 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" + 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" + 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" + 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(VirtualMachines.createOrUpdate::parameters.resource, + "A virtual machine." +); +@@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(VirtualMachines.applyArtifacts::parameters.body, + "Request body for applying artifacts to a virtual machine." +); +@@doc(VirtualMachines.detachDataDisk::parameters.body, + "Request body for detaching data disk from a virtual machine." +); +@@doc(VirtualMachines.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..0bc468ae255c --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/NotificationChannel.tsp @@ -0,0 +1,138 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.Rest; + +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" +@Azure.ResourceManager.Legacy.customAzureResource +@Http.Private.includeInapplicableMetadataInPayload(false) +model NotificationChannel extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("notificationchannels") + name: string; + + 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 NotificationChannelOps.Read< + NotificationChannel, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=webHookUrl)' + */ + @query("$expand") + $expand?: string; + } + >; + + /** + * Create or replace an existing notification channel. + */ + 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 NotificationChannelOps.CustomPatchSync< + NotificationChannel, + PatchModel = NotificationChannelFragment + >; + + /** + * Delete notification channel. + */ + delete is NotificationChannelOps.DeleteSync; + + /** + * List notification channels in a given lab. + */ + list is NotificationChannelOps.List< + 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 NotificationChannelOps.ActionSync< + 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..eda43cfcfd83 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Policy.tsp @@ -0,0 +1,127 @@ +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. + */ +#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") + name: string; + + properties: PolicyProperties; +} + +@armResourceOperations +interface PolicyOps + 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 PolicyOps.Read< + Policy, + Parameters = { + /** + * Specify the $expand query. Example: 'properties($select=description)' + */ + @query("$expand") + $expand?: string; + } + >; + + /** + * Create or replace an existing policy. + */ + 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 PolicyOps.CustomPatchSync; + + /** + * Delete policy. + */ + delete is PolicyOps.DeleteSync; + + /** + * List policies in a given policy set. + */ + list is PolicyOps.List< + 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(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/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/Schedule.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp new file mode 100644 index 000000000000..a0b6d4f06472 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Schedule.tsp @@ -0,0 +1,499 @@ +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. + */ +#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") + name: string; + + properties: ScheduleProperties; +} + +@armResourceOperations +interface ScheduleOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + }, + KeysOf> + > {} + +@armResourceOperations +interface GlobalSchedules { + /** + * Get schedule. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + 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" + 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" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" + @patch(#{ implicitOptionality: false }) + update is ScheduleOps.CustomPatchSync< + Schedule, + PatchModel = ScheduleFragment + >; + + /** + * Delete schedule. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + delete is ScheduleOps.DeleteSync; + + /** + * List schedules in a resource group. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + 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" + 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" + 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" + 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 Schedules { + /** + * Get schedule. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + 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" + 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" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" + @patch(#{ implicitOptionality: false }) + update is ScheduleOperationGroupOps.CustomPatchSync< + Schedule, + PatchModel = ScheduleFragment + >; + + /** + * Delete schedule. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + delete is ScheduleOperationGroupOps.DeleteSync; + + /** + * List schedules in a given lab. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + 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" + execute is ScheduleOperationGroupOps.ActionAsync; + + /** + * Lists all applicable schedules + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + 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. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" + @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. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "Already contains tags" + @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(Schedule.location, "The location of the resource."); +@@doc(Schedule.tags, "The tags of the resource."); +@@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(Schedules.createOrUpdate::parameters.resource, "A schedule."); +@@doc(Schedules.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..6274968ab71c --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/Secret.tsp @@ -0,0 +1,129 @@ +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. + */ +#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 Secret extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("secrets") + name: string; + + 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 SecretOps.Read< + 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 SecretOps.CreateOrUpdateAsync< + Secret, + LroHeaders = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader + >; + + /** + * 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 SecretOps.CustomPatchSync; + + /** + * Delete secret. + */ + delete is SecretOps.DeleteSync; + + /** + * List secrets in a given user profile. + */ + list is SecretOps.List< + 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..61bb64f54ef0 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceFabric.tsp @@ -0,0 +1,154 @@ +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 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" +@Azure.ResourceManager.Legacy.customAzureResource +@Http.Private.includeInapplicableMetadataInPayload(false) +model ServiceFabric extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("servicefabrics") + name: string; + + 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 ServiceFabricOps.Read< + 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 ServiceFabricOps.CreateOrUpdateAsync< + ServiceFabric, + LroHeaders = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader + >; + + /** + * 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 ServiceFabricOps.CustomPatchSync< + 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 ServiceFabricOps.DeleteWithoutOkAsync< + ServiceFabric, + Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >; + + /** + * List service fabrics in a given user profile. + */ + list is ServiceFabricOps.List< + 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 ServiceFabricOps.ActionSync< + ServiceFabric, + void, + ArmResponse + >; + + /** + * Start a service fabric. This operation can take a while to complete. + */ + start is ServiceFabricOps.ActionAsync; + + /** + * Stop a service fabric This operation can take a while to complete. + */ + stop is ServiceFabricOps.ActionAsync; +} + +@@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..5d3d54bcc51a --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/ServiceRunner.tsp @@ -0,0 +1,79 @@ +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 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" +@Azure.ResourceManager.Legacy.customAzureResource +@Http.Private.includeInapplicableMetadataInPayload(false) +model ServiceRunner extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("servicerunners") + name: string; + + /** + * The identity of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + 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 ServiceRunnerOps.Read; + + /** + * Create or replace an existing service runner. + */ + createOrUpdate is ServiceRunnerOps.CreateOrUpdateSync; + + /** + * Delete service runner. + */ + delete is ServiceRunnerOps.DeleteSync; +} + +@@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..15bac15e7739 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/User.tsp @@ -0,0 +1,130 @@ +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. + */ +#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 User extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("users") + 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 UserOps.Read< + 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 UserOps.CreateOrUpdateAsync< + User, + LroHeaders = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader + >; + + /** + * 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 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 UserOps.DeleteWithoutOkAsync< + User, + Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >; + + /** + * List user profiles in a given lab. + */ + list is UserOps.List< + 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..eecd7befdc96 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/VirtualNetwork.tsp @@ -0,0 +1,135 @@ +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. + */ +#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 VirtualNetwork extends Resource { + @visibility(Lifecycle.Read) + @path + @key + @segment("virtualnetworks") + name: string; + + 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 VirtualNetworkOps.Read< + 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 VirtualNetworkOps.CreateOrUpdateAsync< + VirtualNetwork, + LroHeaders = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader + >; + + /** + * 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 VirtualNetworkOps.CustomPatchSync< + 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 VirtualNetworkOps.DeleteWithoutOkAsync< + VirtualNetwork, + Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >; + + /** + * List virtual networks in a given lab. + */ + list is VirtualNetworkOps.List< + 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..5e8c30db0b07 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/back-compatible.tsp @@ -0,0 +1,162 @@ +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(PolicySets.evaluatePolicies::parameters.body, + "evaluatePoliciesRequest" +); +#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(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(Costs.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(Environments.createOrUpdate::parameters.resource, + "dtlEnvironment" +); +@@clientName(Environments.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(VirtualMachines.createOrUpdate::parameters.resource, + "labVirtualMachine" +); +@@clientName(VirtualMachines.update::parameters.properties, + "labVirtualMachine" +); +@@clientName(VirtualMachines.addDataDisk::parameters.body, + "dataDiskProperties" +); +@@clientName(VirtualMachines.applyArtifacts::parameters.body, + "applyArtifactsRequest" +); +@@clientName(VirtualMachines.detachDataDisk::parameters.body, + "detachDataDiskProperties" +); +@@clientName(VirtualMachines.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..f92e3693667a --- /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" +} 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..76ca5212d59f --- /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" +} 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..43527ac67a0f --- /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" +} 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..c243741e5378 --- /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" +} 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..0f56aaf30a09 --- /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" +} 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..b8471dd5df16 --- /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" +} 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..ad5daa171224 --- /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" +} 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..0acb236e641c --- /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" +} 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..263790c8e021 --- /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" +} 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..2fbff482c60b --- /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" +} 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..b00243b84b04 --- /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" +} 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..4cd5b3cc261f --- /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" +} 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..73f523e29d0d --- /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" +} 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..82bc6b75b285 --- /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" +} 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..13be3e2ca428 --- /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" +} 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..6d9dae96fe4c --- /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" +} 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..3106d5b207bd --- /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" +} 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..72dd79a80de6 --- /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" +} 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..7ec1e3222dbf --- /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" +} 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..daf771b9529a --- /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": "@me" + }, + "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" +} 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..e883f33f41b9 --- /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" +} 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..49f3973a823e --- /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" +} 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..2f1caa184da3 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/Disks_List.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "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" +} 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..d3cf6d1632f6 --- /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" +} 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..b09582120db9 --- /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" +} 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..87ab6bb3145a --- /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" +} 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..b8765a870d43 --- /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" +} 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..e16a9c9cb781 --- /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" +} 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..0ac4d2350493 --- /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" +} 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..255aecd3efa7 --- /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" +} 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..15416a09a159 --- /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" +} 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..44ac7238ab5b --- /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" +} 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..92d40854e2e9 --- /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" +} 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..3e47f7bdf256 --- /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" +} 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..62d6dc4c5828 --- /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" +} 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..b2c4ebd72863 --- /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" +} 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..dd9e34e31e45 --- /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" +} 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..4e5c1d45335a --- /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" +} 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..3530e0027f28 --- /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" +} 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..a2ae6b493a29 --- /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" +} 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..d2543776d333 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/GlobalSchedules_ListBySubscription.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "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_ListBySubscription", + "title": "GlobalSchedules_ListBySubscription" +} 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..44ef6c77761e --- /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" +} 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..4d26babda70d --- /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" +} 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..854b75d5cd23 --- /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" +} 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..5d8349e7fef2 --- /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" +} 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..23be3b348a50 --- /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" +} 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..4f142111991b --- /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" +} 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..6ef5ee9c9bb6 --- /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" +} 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..8ee7a4128bd4 --- /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" +} 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..2e555f7b602d --- /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" +} 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..ec2d8f1390d7 --- /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" +} 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..8a9e116f548a --- /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" +} 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..79a6a0940d6d --- /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" +} 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..779547ca97c4 --- /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" +} 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..f781f867ed90 --- /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" +} 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..1be5876a5f23 --- /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" +} 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..181dde96bc7f --- /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" +} 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..72d37f63062c --- /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" +} 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..0d16e0487c0a --- /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" +} 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..266171432b44 --- /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" +} 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..5e1609cfaf39 --- /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" +} 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..33d69e1f5223 --- /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" +} 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..038bcc90c202 --- /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" +} 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..f9139b2dc873 --- /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" +} 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..1b5745f169e8 --- /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" +} 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..cbebe4fd94cb --- /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" +} 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..ca6b90d2952f --- /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" +} 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..804a9e935e33 --- /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" +} 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..1f18bab05135 --- /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" +} 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..d7ccdbf71e6d --- /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" +} 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..628b987dd9cb --- /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" +} 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..18f4b19de759 --- /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" +} 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..c32a2985cb4f --- /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" +} 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..29c942143860 --- /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" +} 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..605bf7142b1a --- /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" +} 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..1a05dffc7637 --- /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" +} 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..ee35f8641802 --- /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" +} 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..67d580ca9b81 --- /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" +} 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..dc38d4422be8 --- /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" +} 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..0ba1b168f7e9 --- /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" +} 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..7ded3937f8b2 --- /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" +} 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..ad01b56fde27 --- /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" +} 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..cc151ce16bfb --- /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" +} 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..1bf76912abd2 --- /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" +} 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..72e8f82cc1e8 --- /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" +} 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..47d64d59f2cb --- /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" +} 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..e0a05f1d823c --- /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" +} 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..b613efd85302 --- /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" +} 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..2dbe4a6197bb --- /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" +} 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..7d6a473b1458 --- /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" +} 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..5970cc04e13c --- /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" +} 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..a815504446c4 --- /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" +} 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..d9995665cc75 --- /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" +} 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..c6020eface0a --- /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" +} 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..1d2cbec7ff36 --- /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" +} 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..d61c8d98fa5f --- /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" +} 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..74af4b262d1c --- /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" +} 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..05027cbb83a1 --- /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" +} 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..69daa78e6d03 --- /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" +} 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..4f9c6fe50d41 --- /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" +} 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..07888edd26d4 --- /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" +} 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..5d7361c328b4 --- /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" +} 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..854d1cd637fe --- /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" +} 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..ab880b3a89d9 --- /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" +} 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..f5f81911ceb8 --- /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" +} 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..38d13297ff4b --- /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" +} 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..e5be2ab5479b --- /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" +} 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..f27c9fe8828d --- /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" +} 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..b7527cf8c708 --- /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" +} 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..bbfdc5149ef8 --- /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" +} 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..104c1c6e9088 --- /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" +} 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..0ed82f2b076d --- /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" +} 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..4ba31c051205 --- /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" +} 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..91fbfc00b8b7 --- /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" +} 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..cdefea609245 --- /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" +} 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..b609eca03f97 --- /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" +} 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..d999cc7a2d7f --- /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" +} 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..36a9fc33b715 --- /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" +} 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..b878e1ded820 --- /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" +} 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..a82ca58b75a7 --- /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" +} 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..d3cdcc8e30e2 --- /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" +} 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..bc85a8990a52 --- /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" +} 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..7a970b7cd54c --- /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" +} 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..9e160ff47fc3 --- /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" +} 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..f92da98a1888 --- /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" +} 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..0b3b9b9d2c9c --- /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" +} 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..44a7e16f2135 --- /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" +} 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..a81679aa3185 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/examples/2018-09-15/VirtualNetworks_CreateOrUpdate.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "name": "{virtualNetworkName}", + "api-version": "2018-09-15", + "labName": "{labName}", + "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" + } + } + }, + "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" +} 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..0afd481bedec --- /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" +} 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..2bb4fe724969 --- /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" +} 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..df963297cf04 --- /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" +} 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..efbb53085882 --- /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" +} diff --git a/specification/devtestlabs/Microsoft.DevTestLab.Management/main.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/main.tsp new file mode 100644 index 000000000000..bde6b2c135f2 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/main.tsp @@ -0,0 +1,63 @@ +/** + * 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 "./GalleryImage.tsp"; +import "./NotificationChannel.tsp"; +import "./Policy.tsp"; +import "./PolicySet.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 Azure.ResourceManager; +using TypeSpec.Versioning; +/** + * The DevTest Labs Client. + */ +#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "For backward compatibility" +@armProviderNamespace +@service(#{ title: "DevTestLabsClient" }) +@versioned(Versions) +@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", +} + +#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/Microsoft.DevTestLab.Management/models.tsp b/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp new file mode 100644 index 000000000000..132a245df190 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/models.tsp @@ -0,0 +1,3460 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; + +namespace Microsoft.DevTestLab; + +using OpenAPI; + +/** + * 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 = 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. + */ + 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. + */ +#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard resource" +@extension("x-ms-azure-resource", true) +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 = EnableStatus.Disabled; + + /** + * 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 = EnableStatus.Disabled; + + /** + * 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. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + @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) + @OpenAPI.extension("x-ms-identifiers", #[]) + 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. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + 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. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + @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. + */ + #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; +} + +/** + * 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 {} + +/** + * 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) + @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[]; + + /** + * 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. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + 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. + */ + #suppress "@azure-tools/typespec-azure-core/casing-style" "For backward compatibility" + 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 + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + 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" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "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 = false; + + /** + * The artifacts to be installed on the virtual machine. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + 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 = false; + + /** + * 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 + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + 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 + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + 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 = EnableStatus.Disabled; + + /** + * 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" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "For backward compatibility" +model FormulaFragment extends UpdateResource {} + +/** + * The response of a list operation. + */ +model GalleryImageList is Azure.Core.Page; + +/** + * 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. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + 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" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "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. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + 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. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + 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. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + 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" +#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 {} + +/** + * 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" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "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" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "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" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "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" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "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" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "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 = false; + + /** + * The artifacts to be installed on the virtual machine. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + 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 = false; + + /** + * 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 + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + 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. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + 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" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "For backward compatibility" +model LabVirtualMachineFragment extends UpdateResource {} + +/** + * Request body for applying artifacts to a virtual machine. + */ +model ApplyArtifactsRequest { + /** + * The list of artifacts to apply. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + 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. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + 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. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + 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 + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + 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" +#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 {} + +/** + * 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" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "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..ce48fc604b13 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/routes.tsp @@ -0,0 +1,58 @@ +// 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.Http; +using Azure.ResourceManager; + +namespace Microsoft.DevTestLab; + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +interface Operations { + /** + * 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" + @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 | 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/Microsoft.DevTestLab.Management/tspconfig.yaml b/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml new file mode 100644 index 000000000000..692bee290f44 --- /dev/null +++ b/specification/devtestlabs/Microsoft.DevTestLab.Management/tspconfig.yaml @@ -0,0 +1,52 @@ +emit: + - "@azure-tools/typespec-autorest" +parameters: + service-dir: + default: "sdk/devtestlabs" +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 + "@azure-tools/typespec-csharp": + flavor: azure + package-dir: "Azure.ResourceManager.DevTestLabs" + clear-output-folder: true + model-namespace: true + namespace: "{package-dir}" + "@azure-tools/typespec-python": + namespace: "azure.mgmt.devtestlabs" + package-dir: "azure-mgmt-devtestlabs" + payload-flattening-threshold: 2 + generate-test: true + generate-sample: true + flavor: "azure" + "@azure-tools/typespec-java": + package-dir: "azure-resourcemanager-devtestlabs" + namespace: "com.azure.resourcemanager.devtestlabs" + service-name: "DevTestLabs" + 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": + 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 + generate-fakes: true + head-as-boolean: true + inject-spans: true +linter: + extends: + - "@azure-tools/typespec-azure-rulesets/resource-manager" 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/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index 40eb6bce4e70..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 @@ -1,44 +1,141 @@ { "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": "GlobalSchedules" + }, + { + "name": "Schedules" + }, + { + "name": "ServiceFabricSchedules" + }, + { + "name": "VirtualMachineSchedules" + }, + { + "name": "ArtifactSources" + }, + { + "name": "ArmTemplates" + }, + { + "name": "Artifacts" + }, + { + "name": "Costs" + }, + { + "name": "CustomImages" + }, + { + "name": "Formulas" + }, + { + "name": "GalleryImages" + }, + { + "name": "NotificationChannels" + }, + { + "name": "Policies" + }, + { + "name": "PolicySets" + }, + { + "name": "ServiceRunners" + }, + { + "name": "Users" + }, + { + "name": "Disks" + }, + { + "name": "Environments" + }, + { + "name": "Secrets" + }, + { + "name": "ServiceFabrics" + }, + { + "name": "VirtualMachines" + }, + { + "name": "VirtualNetworks" + } + ], "paths": { "/providers/Microsoft.DevTestLab/operations": { "get": { + "operationId": "ProviderOperations_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" } } }, @@ -54,31 +151,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 +189,77 @@ "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", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/OperationResult" } }, "202": { - "description": "Accepted", + "description": "Response for operations that return with 202 Accepted status code.", "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 +272,37 @@ }, "/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/schedules": { "get": { + "operationId": "GlobalSchedules_ListBySubscription", "tags": [ "GlobalSchedules" ], "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 +310,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": { "get": { + "operationId": "Labs_ListByResourceGroup", "tags": [ "Labs" ], "description": "List labs in a resource group.", - "operationId": "Labs_ListByResourceGroup", "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)'", + "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,53 +381,53 @@ "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_ListByResourceGroup": { "$ref": "./examples/Labs_ListByResourceGroup.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}": { "get": { + "operationId": "Labs_Get", "tags": [ - "ArtifactSources" + "Labs" ], - "description": "List artifact sources in a given lab.", - "operationId": "ArtifactSources_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, @@ -326,249 +436,264 @@ { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=displayName)'", - "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/ArtifactSourceList" + "$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/ArtifactSource", "x-ms-examples": { - "ArtifactSources_List": { - "$ref": "./examples/ArtifactSources_List.json" + "Labs_Get": { + "$ref": "./examples/Labs_Get.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/armtemplates": { - "get": { + }, + "put": { + "operationId": "Labs_CreateOrUpdate", "tags": [ - "ArmTemplates" + "Labs" ], - "description": "List azure resource manager templates in a given artifact source.", - "operationId": "ArmTemplates_List", + "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": "artifactSourceName", + "name": "name", "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)'", - "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": "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/ArmTemplateList" + "$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-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/ArmTemplate", "x-ms-examples": { - "ArmTemplates_List": { - "$ref": "./examples/ArmTemplates_List.json" + "Labs_CreateOrUpdate": { + "$ref": "./examples/Labs_CreateOrUpdate.json" } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/armtemplates/{name}": { - "get": { + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Labs_Update", "tags": [ - "ArmTemplates" + "Labs" ], - "description": "Get azure resource manager template.", - "operationId": "ArmTemplates_Get", + "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", + "$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": "artifactSourceName", - "in": "path", - "description": "The name of the artifact source.", + "name": "lab", + "in": "body", + "description": "A lab.", "required": true, - "type": "string" + "schema": { + "$ref": "#/definitions/LabFragment" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Lab" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Labs_Update": { + "$ref": "./examples/Labs_Update.json" + } + } + }, + "delete": { + "operationId": "Labs_Delete", + "tags": [ + "Labs" + ], + "description": "Delete lab. This operation can take a while to complete.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "name", - "in": "path", - "description": "The name of the azure resource manager template.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=displayName)'", - "type": "string" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/api-version" + "name": "name", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ArmTemplate" + "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": { - "ArmTemplates_Get": { - "$ref": "./examples/ArmTemplates_Get.json" + "Labs_Delete": { + "$ref": "./examples/Labs_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}/artifactsources/{artifactSourceName}/artifacts": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources": { "get": { + "operationId": "ArtifactSources_List", "tags": [ - "Artifacts" + "ArtifactSources" ], - "description": "List artifacts in a given artifact source.", - "operationId": "Artifacts_List", + "description": "List artifact sources 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": "artifactSourceName", + "name": "labName", "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=title)'", + "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" }, @@ -576,242 +701,174 @@ "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/ArtifactList" + "$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-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/Artifact", "x-ms-examples": { - "Artifacts_List": { - "$ref": "./examples/Artifacts_List.json" + "ArtifactSources_List": { + "$ref": "./examples/ArtifactSources_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{name}": { "get": { + "operationId": "ArtifactSources_Get", "tags": [ - "Artifacts" + "ArtifactSources" ], - "description": "Get artifact.", - "operationId": "Artifacts_Get", + "description": "Get 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": "artifactSourceName", + "name": "labName", "in": "path", - "description": "The name of the artifact source.", + "description": "The name of the lab.", "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)'", + "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/Artifact" + "$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": { - "Artifacts_Get": { - "$ref": "./examples/Artifacts_Get.json" + "ArtifactSources_Get": { + "$ref": "./examples/ArtifactSources_Get.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts/{name}/generateArmTemplate": { - "post": { + }, + "put": { + "operationId": "ArtifactSources_CreateOrUpdate", "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.", - "operationId": "Artifacts_GenerateArmTemplate", + "description": "Create or replace an existing 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": "artifactSourceName", + "name": "labName", "in": "path", - "description": "The name of the artifact source.", + "description": "The name of the lab.", "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", + "name": "artifactSource", "in": "body", - "description": "Parameters for generating an ARM template for deploying artifacts.", + "description": "Properties of an artifact source.", "required": true, "schema": { - "$ref": "#/definitions/GenerateArmTemplateRequest" + "$ref": "#/definitions/ArtifactSource" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ArmTemplateInfo" - } - }, - "default": { - "description": "BadRequest", + "description": "Resource 'ArtifactSource' update operation succeeded", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "#/definitions/ArtifactSource" } - } - }, - "x-ms-examples": { - "Artifacts_GenerateArmTemplate": { - "$ref": "./examples/Artifacts_GenerateArmTemplate.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{name}": { - "get": { - "tags": [ - "ArtifactSources" - ], - "description": "Get artifact source.", - "operationId": "ArtifactSources_Get", - "parameters": [ - { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" - }, - { - "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=displayName)'", - "type": "string" }, - { - "$ref": "#/parameters/api-version" - } - ], - "responses": { - "200": { - "description": "OK", + "201": { + "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" } } }, "x-ms-examples": { - "ArtifactSources_Get": { - "$ref": "./examples/ArtifactSources_Get.json" + "ArtifactSources_CreateOrUpdate": { + "$ref": "./examples/ArtifactSources_CreateOrUpdate.json" } } }, - "put": { + "patch": { + "operationId": "ArtifactSources_Update", "tags": [ "ArtifactSources" ], - "description": "Create or replace an existing artifact source.", - "operationId": "ArtifactSources_CreateOrUpdate", + "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": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", @@ -823,7 +880,7 @@ { "name": "name", "in": "path", - "description": "The name of the artifact source.", + "description": "The name of the ArtifactSource", "required": true, "type": "string" }, @@ -833,51 +890,45 @@ "description": "Properties of an artifact source.", "required": true, "schema": { - "$ref": "#/definitions/ArtifactSource" + "$ref": "#/definitions/ArtifactSourceFragment" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ArtifactSource" - } - }, - "201": { - "description": "Created", + "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_CreateOrUpdate": { - "$ref": "./examples/ArtifactSources_CreateOrUpdate.json" + "ArtifactSources_Update": { + "$ref": "./examples/ArtifactSources_Update.json" } } }, "delete": { + "operationId": "ArtifactSources_Delete", "tags": [ "ArtifactSources" ], "description": "Delete artifact source.", - "operationId": "ArtifactSources_Delete", "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", @@ -889,25 +940,22 @@ { "name": "name", "in": "path", - "description": "The name of the artifact source.", + "description": "The name of the ArtifactSource", "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" } } }, @@ -916,19 +964,24 @@ "$ref": "./examples/ArtifactSources_Delete.json" } } - }, - "patch": { + } + }, + "/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.", - "operationId": "ArtifactSources_Update", + "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": "labName", @@ -938,116 +991,82 @@ "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/ArtifactSourceFragment" - } - }, - { - "$ref": "#/parameters/api-version" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ArtifactSource" - } - }, - "default": { - "description": "BadRequest", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "ArtifactSources_Update": { - "$ref": "./examples/ArtifactSources_Update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/costs/{name}": { - "get": { - "tags": [ - "Costs" - ], - "description": "Get cost.", - "operationId": "Costs_Get", - "parameters": [ - { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=displayName)'", + "required": false, "type": "string" }, { - "name": "name", - "in": "path", - "description": "The name of the cost.", - "required": true, + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", + "required": false, "type": "string" }, { - "name": "$expand", + "name": "$top", "in": "query", - "description": "Specify the $expand query. Example: 'properties($expand=labCostDetails)'", - "type": "string" + "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/LabCost" + "$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-examples": { - "Costs_Get": { - "$ref": "./examples/Costs_Get.json" + "ArmTemplates_List": { + "$ref": "./examples/ArmTemplates_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "put": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/armtemplates/{name}": { + "get": { + "operationId": "ArmTemplates_Get", "tags": [ - "Costs" + "ArmTemplates" ], - "description": "Create or replace an existing cost.", - "operationId": "Costs_CreateOrUpdate", + "description": "Get azure resource manager template.", "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", @@ -1057,65 +1076,64 @@ "type": "string" }, { - "name": "name", + "name": "artifactSourceName", "in": "path", - "description": "The name of the cost.", + "description": "The name of the artifact source.", "required": true, "type": "string" }, { - "name": "labCost", - "in": "body", - "description": "A cost item.", + "name": "name", + "in": "path", + "description": "The name of the ArmTemplate", "required": true, - "schema": { - "$ref": "#/definitions/LabCost" - } + "type": "string" }, { - "$ref": "#/parameters/api-version" + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=displayName)'", + "required": false, + "type": "string" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/LabCost" - } - }, - "201": { - "description": "Created", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/LabCost" + "$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-examples": { - "Costs_CreateOrUpdate": { - "$ref": "./examples/Costs_CreateOrUpdate.json" + "ArmTemplates_Get": { + "$ref": "./examples/ArmTemplates_Get.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts": { "get": { + "operationId": "Artifacts_List", "tags": [ - "CustomImages" + "Artifacts" ], - "description": "List custom images in a given lab.", - "operationId": "CustomImages_List", + "description": "List artifacts 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": "labName", @@ -1124,22 +1142,32 @@ "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" }, { "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,50 +1175,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" + "$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/CustomImage", "x-ms-examples": { - "CustomImages_List": { - "$ref": "./examples/CustomImages_List.json" + "Artifacts_List": { + "$ref": "./examples/Artifacts_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/labs/{labName}/artifactsources/{artifactSourceName}/artifacts/{name}": { "get": { + "operationId": "Artifacts_Get", "tags": [ - "CustomImages" + "Artifacts" ], - "description": "Get custom image.", - "operationId": "CustomImages_Get", + "description": "Get artifact.", "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", @@ -1199,55 +1227,65 @@ "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 custom image.", + "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" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/CustomImage" + "$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": { - "CustomImages_Get": { - "$ref": "./examples/CustomImages_Get.json" + "Artifacts_Get": { + "$ref": "./examples/Artifacts_Get.json" } } - }, - "put": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts/{name}/generateArmTemplate": { + "post": { + "operationId": "Artifacts_GenerateArmTemplate", "tags": [ - "CustomImages" + "Artifacts" ], - "description": "Create or replace an existing custom image. This operation can take a while to complete.", - "operationId": "CustomImages_CreateOrUpdate", + "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": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", @@ -1256,120 +1294,128 @@ "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 custom image.", + "description": "The name of the Artifact", "required": true, "type": "string" }, { - "name": "customImage", + "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" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CustomImage" - } - }, - "201": { - "description": "Created", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/CustomImage" + "$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-examples": { - "CustomImages_CreateOrUpdate": { - "$ref": "./examples/CustomImages_CreateOrUpdate.json" + "Artifacts_GenerateArmTemplate": { + "$ref": "./examples/Artifacts_GenerateArmTemplate.json" } - }, - "x-ms-long-running-operation": true - }, - "delete": { + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/claimAnyVm": { + "post": { + "operationId": "Labs_ClaimAnyVm", "tags": [ - "CustomImages" + "Labs" ], - "description": "Delete custom image. This operation can take a while to complete.", - "operationId": "CustomImages_Delete", + "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", - "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 custom image.", + "description": "The name of the lab.", "required": true, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK" + "description": "The request has succeeded." }, "202": { - "description": "Accepted" - }, - "204": { - "description": "No Content" + "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": { - "CustomImages_Delete": { - "$ref": "./examples/CustomImages_Delete.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": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/costs/{name}": { + "get": { + "operationId": "Costs_Get", "tags": [ - "CustomImages" + "Costs" ], - "description": "Allows modifying tags of custom images. All other properties will be ignored.", - "operationId": "CustomImages_Update", + "description": "Get cost.", "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", @@ -1381,57 +1427,191 @@ { "name": "name", "in": "path", - "description": "The name of the custom image.", + "description": "The name of the LabCost", "required": true, "type": "string" }, { - "name": "customImage", - "in": "body", - "description": "A custom image.", - "required": true, + "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/CustomImageFragment" + "$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": [ + "Costs" + ], + "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": "labName", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/api-version" + "name": "name", + "in": "path", + "description": "The name of the LabCost", + "required": true, + "type": "string" + }, + { + "name": "labCost", + "in": "body", + "description": "A cost item.", + "required": true, + "schema": { + "$ref": "#/definitions/LabCost" + } } ], "responses": { "200": { - "description": "OK", + "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": { - "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" + "Costs_CreateOrUpdate": { + "$ref": "./examples/Costs_CreateOrUpdate.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas": { + "/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 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": "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_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}/customimages": { "get": { + "operationId": "CustomImages_List", "tags": [ - "Formulas" + "CustomImages" ], - "description": "List formulas in a given lab.", - "operationId": "Formulas_List", + "description": "List custom images 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", @@ -1443,19 +1623,22 @@ { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=description)'", + "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" }, @@ -1463,50 +1646,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/FormulaList" + "$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/Formula", "x-ms-examples": { - "Formulas_List": { - "$ref": "./examples/Formulas_List.json" + "CustomImages_List": { + "$ref": "./examples/CustomImages_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/labs/{labName}/customimages/{name}": { "get": { + "operationId": "CustomImages_Get", "tags": [ - "Formulas" + "CustomImages" ], - "description": "Get formula.", - "operationId": "Formulas_Get", + "description": "Get custom image.", "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", @@ -1518,52 +1701,53 @@ { "name": "name", "in": "path", - "description": "The name of the formula.", + "description": "The name of the CustomImage", "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=vm)'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Formula" + "$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": { - "Formulas_Get": { - "$ref": "./examples/Formulas_Get.json" + "CustomImages_Get": { + "$ref": "./examples/CustomImages_Get.json" } } }, "put": { + "operationId": "CustomImages_CreateOrUpdate", "tags": [ - "Formulas" + "CustomImages" ], - "description": "Create or replace an existing formula. This operation can take a while to complete.", - "operationId": "Formulas_CreateOrUpdate", + "description": "Create or replace an existing 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": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", @@ -1575,62 +1759,76 @@ { "name": "name", "in": "path", - "description": "The name of the formula.", + "description": "The name of the CustomImage", "required": true, "type": "string" }, { - "name": "formula", + "name": "customImage", "in": "body", - "description": "A formula for creating a VM, specifying an image base and other parameters", + "description": "A custom image.", "required": true, "schema": { - "$ref": "#/definitions/Formula" + "$ref": "#/definitions/CustomImage" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'CustomImage' update operation succeeded", "schema": { - "$ref": "#/definitions/Formula" + "$ref": "#/definitions/CustomImage" } }, "201": { - "description": "Created", + "description": "Resource 'CustomImage' create operation succeeded", "schema": { - "$ref": "#/definitions/Formula" + "$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" } } }, "x-ms-examples": { - "Formulas_CreateOrUpdate": { - "$ref": "./examples/Formulas_CreateOrUpdate.json" + "CustomImages_CreateOrUpdate": { + "$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": [ - "Formulas" + "CustomImages" ], - "description": "Delete formula.", - "operationId": "Formulas_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": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", @@ -1642,46 +1840,55 @@ { "name": "name", "in": "path", - "description": "The name of the formula.", + "description": "The name of the CustomImage", "required": true, "type": "string" }, { - "$ref": "#/parameters/api-version" + "name": "customImage", + "in": "body", + "description": "A custom image.", + "required": true, + "schema": { + "$ref": "#/definitions/CustomImageFragment" + } } ], "responses": { "200": { - "description": "OK" - }, - "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": { - "Formulas_Delete": { - "$ref": "./examples/Formulas_Delete.json" + "CustomImages_Update": { + "$ref": "./examples/CustomImages_Update.json" } } }, - "patch": { + "delete": { + "operationId": "CustomImages_Delete", "tags": [ - "Formulas" + "CustomImages" ], - "description": "Allows modifying tags of formulas. All other properties will be ignored.", - "operationId": "Formulas_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" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", @@ -1693,132 +1900,136 @@ { "name": "name", "in": "path", - "description": "The name of the formula.", + "description": "The name of the CustomImage", "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" + "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}/galleryimages": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/exportResourceUsage": { + "post": { + "operationId": "Labs_ExportResourceUsage", "tags": [ - "GalleryImages" + "Labs" ], - "description": "List gallery images in a given lab.", - "operationId": "GalleryImages_List", + "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": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=author)'", - "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": "exportResourceUsageParameters", + "in": "body", + "description": "The parameters of the export operation.", + "required": true, + "schema": { + "$ref": "#/definitions/ExportResourceUsageParameters" + } } ], "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" + "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/{labName}/notificationchannels": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas": { "get": { + "operationId": "Formulas_List", "tags": [ - "NotificationChannels" + "Formulas" ], - "description": "List notification channels in a given lab.", - "operationId": "NotificationChannels_List", + "description": "List formulas 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", @@ -1830,19 +2041,22 @@ { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=webHookUrl)'", + "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" }, @@ -1850,50 +2064,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/NotificationChannelList" + "$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-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/NotificationChannel", "x-ms-examples": { - "NotificationChannels_List": { - "$ref": "./examples/NotificationChannels_List.json" + "Formulas_List": { + "$ref": "./examples/Formulas_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/labs/{labName}/formulas/{name}": { "get": { + "operationId": "Formulas_Get", "tags": [ - "NotificationChannels" + "Formulas" ], - "description": "Get notification channel.", - "operationId": "NotificationChannels_Get", + "description": "Get formula.", "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", @@ -1905,52 +2119,53 @@ { "name": "name", "in": "path", - "description": "The name of the notification channel.", + "description": "The name of the Formula", "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=description)'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/NotificationChannel" + "$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": { - "NotificationChannels_Get": { - "$ref": "./examples/NotificationChannels_Get.json" + "Formulas_Get": { + "$ref": "./examples/Formulas_Get.json" } } }, "put": { + "operationId": "Formulas_CreateOrUpdate", "tags": [ - "NotificationChannels" + "Formulas" ], - "description": "Create or replace an existing notification channel.", - "operationId": "NotificationChannels_CreateOrUpdate", + "description": "Create or replace an existing formula. 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": "labName", @@ -1962,61 +2177,76 @@ { "name": "name", "in": "path", - "description": "The name of the notification channel.", + "description": "The name of the Formula", "required": true, "type": "string" }, { - "name": "notificationChannel", + "name": "formula", "in": "body", - "description": "A notification.", + "description": "A formula for creating a VM, specifying an image base and other parameters", "required": true, "schema": { - "$ref": "#/definitions/NotificationChannel" + "$ref": "#/definitions/Formula" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'Formula' update operation succeeded", "schema": { - "$ref": "#/definitions/NotificationChannel" + "$ref": "#/definitions/Formula" } }, "201": { - "description": "Created", + "description": "Resource 'Formula' create operation succeeded", "schema": { - "$ref": "#/definitions/NotificationChannel" + "$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": { - "NotificationChannels_CreateOrUpdate": { - "$ref": "./examples/NotificationChannels_CreateOrUpdate.json" + "Formulas_CreateOrUpdate": { + "$ref": "./examples/Formulas_CreateOrUpdate.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true }, - "delete": { + "patch": { + "operationId": "Formulas_Update", "tags": [ - "NotificationChannels" + "Formulas" ], - "description": "Delete notification channel.", - "operationId": "NotificationChannels_Delete", + "description": "Allows modifying tags of formulas. 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", @@ -2028,46 +2258,55 @@ { "name": "name", "in": "path", - "description": "The name of the notification channel.", + "description": "The name of the Formula", "required": true, "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/FormulaFragment" + } } ], "responses": { "200": { - "description": "OK" - }, - "204": { - "description": "No Content" + "description": "Azure operation completed successfully.", + "schema": { + "$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": { - "NotificationChannels_Delete": { - "$ref": "./examples/NotificationChannels_Delete.json" + "Formulas_Update": { + "$ref": "./examples/Formulas_Update.json" } } }, - "patch": { + "delete": { + "operationId": "Formulas_Delete", "tags": [ - "NotificationChannels" + "Formulas" ], - "description": "Allows modifying tags of notification channels. All other properties will be ignored.", - "operationId": "NotificationChannels_Update", + "description": "Delete formula.", "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", @@ -2079,57 +2318,48 @@ { "name": "name", "in": "path", - "description": "The name of the notification channel.", + "description": "The name of the Formula", "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." + }, + "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" + "Formulas_Delete": { + "$ref": "./examples/Formulas_Delete.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels/{name}/notify": { - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/galleryimages": { + "get": { + "operationId": "GalleryImages_List", "tags": [ - "NotificationChannels" + "GalleryImages" ], - "description": "Send notification to provided channel.", - "operationId": "NotificationChannels_Notify", + "description": "List gallery images 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", @@ -2139,149 +2369,276 @@ "type": "string" }, { - "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=displayName)'", + "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" + }, + { + "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/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": { - "NotificationChannels_Notify": { - "$ref": "./examples/NotificationChannels_Notify.json" + "GalleryImages_List": { + "$ref": "./examples/GalleryImages_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{name}/evaluatePolicies": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/generateUploadUri": { "post": { + "operationId": "Labs_GenerateUploadUri", "tags": [ - "PolicySets" + "Labs" ], - "description": "Evaluates lab policy.", - "operationId": "PolicySets_EvaluatePolicies", + "description": "Generate a URI for uploading custom disk images to a 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 policy set.", + "description": "The name of the lab.", "required": true, "type": "string" }, { - "name": "evaluatePoliciesRequest", + "name": "generateUploadUriParameter", "in": "body", - "description": "Request body for evaluating a policy set.", + "description": "Properties for generating an upload URI.", "required": true, "schema": { - "$ref": "#/definitions/EvaluatePoliciesRequest" + "$ref": "#/definitions/GenerateUploadUriParameter" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/EvaluatePoliciesResponse" + "$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": { - "PolicySets_EvaluatePolicies": { - "$ref": "./examples/PolicySets_EvaluatePolicies.json" + "Labs_GenerateUploadUri": { + "$ref": "./examples/Labs_GenerateUploadUri.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/importVirtualMachine": { + "post": { + "operationId": "Labs_ImportVirtualMachine", "tags": [ - "Policies" + "Labs" ], - "description": "List policies in a given policy set.", - "operationId": "Policies_List", + "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", + "$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": "policySetName", + "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, + "schema": { + "$ref": "#/definitions/ImportLabVirtualMachineRequest" + } + } + ], + "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_ImportVirtualMachine": { + "$ref": "./examples/Labs_ImportVirtualMachine.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": { + "post": { + "operationId": "Labs_ListVhds", + "tags": [ + "Labs" + ], + "description": "List disk images available for custom image creation.", + "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 lab.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/LabVhdList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Labs_ListVhds": { + "$ref": "./examples/Labs_ListVhds.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/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": "labName", "in": "path", - "description": "The name of the policy set.", + "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($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" }, @@ -2289,314 +2646,287 @@ "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/PolicyList" + "$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/Policy", "x-ms-examples": { - "Policies_List": { - "$ref": "./examples/Policies_List.json" + "NotificationChannels_List": { + "$ref": "./examples/NotificationChannels_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels/{name}": { "get": { + "operationId": "NotificationChannels_Get", "tags": [ - "Policies" + "NotificationChannels" ], - "description": "Get policy.", - "operationId": "Policies_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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "policySetName", + "name": "labName", "in": "path", - "description": "The name of the policy set.", + "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 NotificationChannel", "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=webHookUrl)'", + "required": false, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Policy" + "$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": { - "Policies_Get": { - "$ref": "./examples/Policies_Get.json" + "NotificationChannels_Get": { + "$ref": "./examples/NotificationChannels_Get.json" } } }, "put": { + "operationId": "NotificationChannels_CreateOrUpdate", "tags": [ - "Policies" + "NotificationChannels" ], - "description": "Create or replace an existing policy.", - "operationId": "Policies_CreateOrUpdate", + "description": "Create or replace an existing 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": "policySetName", + "name": "labName", "in": "path", - "description": "The name of the policy set.", + "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 NotificationChannel", "required": true, "type": "string" }, { - "name": "policy", + "name": "notificationChannel", "in": "body", - "description": "A Policy.", + "description": "A notification.", "required": true, "schema": { - "$ref": "#/definitions/Policy" + "$ref": "#/definitions/NotificationChannel" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'NotificationChannel' update operation succeeded", "schema": { - "$ref": "#/definitions/Policy" + "$ref": "#/definitions/NotificationChannel" } }, "201": { - "description": "Created", + "description": "Resource 'NotificationChannel' create operation succeeded", "schema": { - "$ref": "#/definitions/Policy" + "$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": { - "Policies_CreateOrUpdate": { - "$ref": "./examples/Policies_CreateOrUpdate.json" + "NotificationChannels_CreateOrUpdate": { + "$ref": "./examples/NotificationChannels_CreateOrUpdate.json" } } }, - "delete": { + "patch": { + "operationId": "NotificationChannels_Update", "tags": [ - "Policies" + "NotificationChannels" ], - "description": "Delete policy.", - "operationId": "Policies_Delete", + "description": "Allows modifying tags of notification channels. 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": "policySetName", + "name": "labName", "in": "path", - "description": "The name of the policy set.", + "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 NotificationChannel", "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": { - "Policies_Delete": { - "$ref": "./examples/Policies_Delete.json" + "NotificationChannels_Update": { + "$ref": "./examples/NotificationChannels_Update.json" } } }, - "patch": { + "delete": { + "operationId": "NotificationChannels_Delete", "tags": [ - "Policies" + "NotificationChannels" ], - "description": "Allows modifying tags of policies. All other properties will be ignored.", - "operationId": "Policies_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": "policySetName", + "name": "labName", "in": "path", - "description": "The name of the policy set.", + "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 NotificationChannel", "required": true, "type": "string" - }, - { - "name": "policy", - "in": "body", - "description": "A Policy.", - "required": true, - "schema": { - "$ref": "#/definitions/PolicyFragment" - } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Policy" - } + "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": { - "Policies_Update": { - "$ref": "./examples/Policies_Update.json" + "NotificationChannels_Delete": { + "$ref": "./examples/NotificationChannels_Delete.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels/{name}/notify": { + "post": { + "operationId": "NotificationChannels_Notify", "tags": [ - "Schedules" + "NotificationChannels" ], - "description": "List schedules in a given lab.", - "operationId": "Schedules_List", + "description": "Send notification to provided channel.", "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", @@ -2606,787 +2936,907 @@ "type": "string" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=status)'", + "name": "name", + "in": "path", + "description": "The name of the NotificationChannel", + "required": true, "type": "string" }, { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "type": "string" + "name": "notifyParameters", + "in": "body", + "description": "Properties for generating a Notification.", + "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/labs/{labName}/policysets/{name}/evaluatePolicies": { + "post": { + "operationId": "PolicySets_EvaluatePolicies", + "tags": [ + "PolicySets" + ], + "description": "Evaluates lab policy.", + "parameters": [ { - "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/ApiVersionParameter" }, { - "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/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 PolicySet", + "required": true, "type": "string" }, { - "$ref": "#/parameters/api-version" + "name": "evaluatePoliciesRequest", + "in": "body", + "description": "Request body for evaluating a policy set.", + "required": true, + "schema": { + "$ref": "#/definitions/EvaluatePoliciesRequest" + } } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ScheduleList" + "$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-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/Schedule", "x-ms-examples": { - "Schedules_List": { - "$ref": "./examples/Schedules_List.json" + "PolicySets_EvaluatePolicies": { + "$ref": "./examples/PolicySets_EvaluatePolicies.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies": { "get": { + "operationId": "Policies_List", "tags": [ - "Schedules" + "Policies" ], - "description": "Get schedule.", - "operationId": "Schedules_Get", + "description": "List policies in a given policy set.", "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", + "name": "policySetName", "in": "path", - "description": "The name of the schedule.", + "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" + }, + { + "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", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Schedule" + "$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-examples": { - "Schedules_Get": { - "$ref": "./examples/Schedules_Get.json" + "Policies_List": { + "$ref": "./examples/Policies_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "put": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{name}": { + "get": { + "operationId": "Policies_Get", "tags": [ - "Schedules" + "Policies" ], - "description": "Create or replace an existing schedule.", - "operationId": "Schedules_CreateOrUpdate", + "description": "Get policy.", "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", + "name": "policySetName", "in": "path", - "description": "The name of the schedule.", + "description": "policysets", "required": true, "type": "string" }, { - "name": "schedule", - "in": "body", - "description": "A schedule.", + "name": "name", + "in": "path", + "description": "The name of the Schedule", "required": true, - "schema": { - "$ref": "#/definitions/Schedule" - } + "type": "string" }, { - "$ref": "#/parameters/api-version" + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=description)'", + "required": false, + "type": "string" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Schedule" - } - }, - "201": { - "description": "Created", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Schedule" + "$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": { - "Schedules_CreateOrUpdate": { - "$ref": "./examples/Schedules_CreateOrUpdate.json" + "Policies_Get": { + "$ref": "./examples/Policies_Get.json" } } }, - "delete": { + "put": { + "operationId": "Policies_CreateOrUpdate", "tags": [ - "Schedules" + "Policies" ], - "description": "Delete schedule.", - "operationId": "Schedules_Delete", + "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" + }, + { + "$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": "policySetName", + "in": "path", + "description": "policysets", "required": true, "type": "string" }, { "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": "policy", + "in": "body", + "description": "A Policy.", + "required": true, + "schema": { + "$ref": "#/definitions/Policy" + } } ], "responses": { "200": { - "description": "OK" + "description": "Resource 'Policy' update operation succeeded", + "schema": { + "$ref": "#/definitions/Policy" + } }, - "204": { - "description": "No Content" + "201": { + "description": "Resource 'Policy' create operation succeeded", + "schema": { + "$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": { - "Schedules_Delete": { - "$ref": "./examples/Schedules_Delete.json" + "Policies_CreateOrUpdate": { + "$ref": "./examples/Policies_CreateOrUpdate.json" } } }, "patch": { + "operationId": "Policies_Update", "tags": [ - "Schedules" + "Policies" ], - "description": "Allows modifying tags of schedules. All other properties will be ignored.", - "operationId": "Schedules_Update", + "description": "Allows modifying tags of policies. 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": "policySetName", + "in": "path", + "description": "policysets", "required": true, "type": "string" }, { "name": "name", "in": "path", - "description": "The name of the schedule.", + "description": "The name of the Schedule", "required": true, "type": "string" }, { - "name": "schedule", + "name": "policy", "in": "body", - "description": "A schedule.", + "description": "A Policy.", "required": true, "schema": { - "$ref": "#/definitions/ScheduleFragment" + "$ref": "#/definitions/PolicyFragment" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Schedule" + "$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": { - "Schedules_Update": { - "$ref": "./examples/Schedules_Update.json" + "Policies_Update": { + "$ref": "./examples/Policies_Update.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}/execute": { - "post": { + }, + "delete": { + "operationId": "Policies_Delete", "tags": [ - "Schedules" + "Policies" ], - "description": "Execute a schedule. This operation can take a while to complete.", - "operationId": "Schedules_Execute", + "description": "Delete policy.", "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", + "name": "policySetName", "in": "path", - "description": "The name of the schedule.", + "description": "policysets", "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": "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": { - "Schedules_Execute": { - "$ref": "./examples/Schedules_Execute.json" + "Policies_Delete": { + "$ref": "./examples/Policies_Delete.json" } - }, - "x-ms-long-running-operation": true + } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}/listApplicable": { - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules": { + "get": { + "operationId": "Schedules_List", "tags": [ "Schedules" ], - "description": "Lists all applicable schedules", - "operationId": "Schedules_ListApplicable", + "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": "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" }, { - "$ref": "#/parameters/api-version" + "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", + "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-examples": { - "Schedules_ListApplicable": { - "$ref": "./examples/Schedules_ListApplicable.json" + "Schedules_List": { + "$ref": "./examples/Schedules_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/servicerunners/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}": { "get": { + "operationId": "Schedules_Get", "tags": [ - "ServiceRunners" + "Schedules" ], - "description": "Get service runner.", - "operationId": "ServiceRunners_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 service runner.", + "description": "The name of the Schedule", "required": true, "type": "string" }, { - "$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", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ServiceRunner" + "$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": { - "ServiceRunners_Get": { - "$ref": "./examples/ServiceRunners_Get.json" + "Schedules_Get": { + "$ref": "./examples/Schedules_Get.json" } } }, "put": { + "operationId": "Schedules_CreateOrUpdate", "tags": [ - "ServiceRunners" + "Schedules" ], - "description": "Create or replace an existing service runner.", - "operationId": "ServiceRunners_CreateOrUpdate", + "description": "Create or replace an existing 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 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/Schedule" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'Schedule' update operation succeeded", "schema": { - "$ref": "#/definitions/ServiceRunner" + "$ref": "#/definitions/Schedule" } }, "201": { - "description": "Created", + "description": "Resource 'Schedule' create operation succeeded", "schema": { - "$ref": "#/definitions/ServiceRunner" + "$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": { - "ServiceRunners_CreateOrUpdate": { - "$ref": "./examples/ServiceRunners_CreateOrUpdate.json" + "Schedules_CreateOrUpdate": { + "$ref": "./examples/Schedules_CreateOrUpdate.json" } } }, - "delete": { + "patch": { + "operationId": "Schedules_Update", "tags": [ - "ServiceRunners" + "Schedules" ], - "description": "Delete service runner.", - "operationId": "ServiceRunners_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 service runner.", + "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" - }, - "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": { - "ServiceRunners_Delete": { - "$ref": "./examples/ServiceRunners_Delete.json" + "Schedules_Update": { + "$ref": "./examples/Schedules_Update.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users": { - "get": { + }, + "delete": { + "operationId": "Schedules_Delete", "tags": [ - "Users" + "Schedules" ], - "description": "List user profiles in a given lab.", - "operationId": "Users_List", + "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": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=identity)'", - "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'", + "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/UserList" - } + "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-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/User", "x-ms-examples": { - "Users_List": { - "$ref": "./examples/Users_List.json" + "Schedules_Delete": { + "$ref": "./examples/Schedules_Delete.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{name}": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}/execute": { + "post": { + "operationId": "Schedules_Execute", "tags": [ - "Users" + "Schedules" ], - "description": "Get user profile.", - "operationId": "Users_Get", + "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": "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)'", - "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "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": { - "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_Execute": { + "$ref": "./examples/Schedules_Execute.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/labs/{labName}/schedules/{name}/listApplicable": { + "post": { + "operationId": "Schedules_ListApplicable", "tags": [ - "Users" + "Schedules" ], - "description": "Create or replace an existing user profile. This operation can take a while to complete.", - "operationId": "Users_CreateOrUpdate", + "description": "Lists all applicable schedules", "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", - "in": "body", - "description": "Profile of a lab user.", - "required": true, - "schema": { - "$ref": "#/definitions/User" - } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/User" - } - }, - "201": { - "description": "Created", + "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_CreateOrUpdate": { - "$ref": "./examples/Users_CreateOrUpdate.json" + "Schedules_ListApplicable": { + "$ref": "./examples/Schedules_ListApplicable.json" } }, - "x-ms-long-running-operation": true - }, - "delete": { + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/servicerunners/{name}": { + "get": { + "operationId": "ServiceRunners_Get", "tags": [ - "Users" + "ServiceRunners" ], - "description": "Delete user profile. This operation can take a while to complete.", - "operationId": "Users_Delete", + "description": "Get service runner.", "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", @@ -3398,50 +3848,46 @@ { "name": "name", "in": "path", - "description": "The name of the user profile.", + "description": "The name of the ServiceRunner", "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/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": { - "Users_Delete": { - "$ref": "./examples/Users_Delete.json" + "ServiceRunners_Get": { + "$ref": "./examples/ServiceRunners_Get.json" } - }, - "x-ms-long-running-operation": true + } }, - "patch": { + "put": { + "operationId": "ServiceRunners_CreateOrUpdate", "tags": [ - "Users" + "ServiceRunners" ], - "description": "Allows modifying tags of user profiles. All other properties will be ignored.", - "operationId": "Users_Update", + "description": "Create or replace an existing service runner.", "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", @@ -3453,57 +3899,61 @@ { "name": "name", "in": "path", - "description": "The name of the user profile.", + "description": "The name of the ServiceRunner", "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" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "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": { - "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" + "ServiceRunners_CreateOrUpdate": { + "$ref": "./examples/ServiceRunners_CreateOrUpdate.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks": { - "get": { + }, + "delete": { + "operationId": "ServiceRunners_Delete", "tags": [ - "Disks" + "ServiceRunners" ], - "description": "List disks in a given user profile.", - "operationId": "Disks_List", + "description": "Delete service runner.", "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", @@ -3513,28 +3963,77 @@ "type": "string" }, { - "name": "userName", + "name": "name", "in": "path", - "description": "The name of the user profile.", + "description": "The name of the ServiceRunner", + "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": { + "ServiceRunners_Delete": { + "$ref": "./examples/ServiceRunners_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users": { + "get": { + "operationId": "Users_List", + "tags": [ + "Users" + ], + "description": "List user profiles 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=diskType)'", + "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" }, @@ -3542,459 +4041,320 @@ "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/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/Disk", "x-ms-examples": { - "Disks_List": { - "$ref": "./examples/Disks_List.json" + "Users_List": { + "$ref": "./examples/Users_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/{name}": { "get": { + "operationId": "Users_Get", "tags": [ - "Disks" + "Users" ], - "description": "Get disk.", - "operationId": "Disks_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" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "userName", + "name": "labName", "in": "path", - "description": "The name of the user profile.", + "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 User", "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" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Disk" + "$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": { - "Disks_Get": { - "$ref": "./examples/Disks_Get.json" + "Users_Get": { + "$ref": "./examples/Users_Get.json" } } }, "put": { + "operationId": "Users_CreateOrUpdate", "tags": [ - "Disks" + "Users" ], - "description": "Create or replace an existing disk. This operation can take a while to complete.", - "operationId": "Disks_CreateOrUpdate", + "description": "Create or replace an existing user profile. 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": "userName", + "name": "labName", "in": "path", - "description": "The name of the user profile.", + "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 User", "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" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'User' update operation succeeded", "schema": { - "$ref": "#/definitions/Disk" + "$ref": "#/definitions/User" } }, "201": { - "description": "Created", + "description": "Resource 'User' create operation succeeded", "schema": { - "$ref": "#/definitions/Disk" + "$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": { - "Disks_CreateOrUpdate": { - "$ref": "./examples/Disks_CreateOrUpdate.json" + "Users_CreateOrUpdate": { + "$ref": "./examples/Users_CreateOrUpdate.json" } }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-long-running-operation": true }, - "delete": { + "patch": { + "operationId": "Users_Update", "tags": [ - "Disks" + "Users" ], - "description": "Delete disk. This operation can take a while to complete.", - "operationId": "Disks_Delete", + "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" + "$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": "labName", "in": "path", - "description": "The name of the user profile.", + "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 User", "required": true, "type": "string" }, { - "$ref": "#/parameters/api-version" + "name": "user", + "in": "body", + "description": "Profile of a lab user.", + "required": true, + "schema": { + "$ref": "#/definitions/UserFragment" + } } ], "responses": { "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "204": { - "description": "No Content" + "description": "Azure operation completed successfully.", + "schema": { + "$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": { - "Disks_Delete": { - "$ref": "./examples/Disks_Delete.json" + "Users_Update": { + "$ref": "./examples/Users_Update.json" } - }, - "x-ms-long-running-operation": true + } }, - "patch": { + "delete": { + "operationId": "Users_Delete", "tags": [ - "Disks" + "Users" ], - "description": "Allows modifying tags of disks. All other properties will be ignored.", - "operationId": "Disks_Update", + "description": "Delete user profile. 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": "userName", + "name": "labName", "in": "path", - "description": "The name of the user profile.", + "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 User", "required": true, "type": "string" - }, - { - "name": "disk", - "in": "body", - "description": "A Disk.", - "required": true, - "schema": { - "$ref": "#/definitions/DiskFragment" - } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Disk" - } - }, - "default": { - "description": "BadRequest", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Disks_Update": { - "$ref": "./examples/Disks_Update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}/attach": { - "post": { - "tags": [ - "Disks" - ], - "description": "Attach and create the lease of the disk to the virtual machine. This operation can take a while to complete.", - "operationId": "Disks_Attach", - "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 disk.", - "required": true, - "type": "string" + "description": "Resource deleted successfully." }, - { - "name": "attachDiskProperties", - "in": "body", - "description": "Properties of the disk to attach.", - "required": true, - "schema": { - "$ref": "#/definitions/AttachDiskProperties" + "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." + } } }, - { - "$ref": "#/parameters/api-version" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "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" + "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}/users/{userName}/disks/{name}/detach": { - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks": { + "get": { + "operationId": "Disks_List", "tags": [ "Disks" ], - "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": "List disks in a given user profile.", "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 disk.", - "required": true, - "type": "string" - }, - { - "name": "detachDiskProperties", - "in": "body", - "description": "Properties of the disk to detach.", - "required": true, - "schema": { - "$ref": "#/definitions/DetachDiskProperties" - } - }, - { - "$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": { - "Disks_Detach": { - "$ref": "./examples/Disks_Detach.json" - } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments": { - "get": { - "tags": [ - "Environments" - ], - "description": "List environments in a given user profile.", - "operationId": "Environments_List", - "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": "labName", @@ -4013,19 +4373,22 @@ { "name": "$expand", "in": "query", - "description": "Specify the $expand query. Example: 'properties($select=deploymentProperties)'", + "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" }, @@ -4033,50 +4396,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/DtlEnvironmentList" + "$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/DtlEnvironment", "x-ms-examples": { - "Environments_List": { - "$ref": "./examples/Environments_List.json" + "Disks_List": { + "$ref": "./examples/Disks_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}/users/{userName}/disks/{name}": { "get": { + "operationId": "Disks_Get", "tags": [ - "Environments" + "Disks" ], - "description": "Get environment.", - "operationId": "Environments_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" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", @@ -4095,52 +4458,53 @@ { "name": "name", "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)'", + "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/DtlEnvironment" + "$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": { - "Environments_Get": { - "$ref": "./examples/Environments_Get.json" + "Disks_Get": { + "$ref": "./examples/Disks_Get.json" } } }, "put": { + "operationId": "Disks_CreateOrUpdate", "tags": [ - "Environments" + "Disks" ], - "description": "Create or replace an existing environment. This operation can take a while to complete.", - "operationId": "Environments_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": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", @@ -4159,62 +4523,76 @@ { "name": "name", "in": "path", - "description": "The name of the environment.", + "description": "The name of the Disk", "required": true, "type": "string" }, { - "name": "dtlEnvironment", + "name": "disk", "in": "body", - "description": "An environment, which is essentially an ARM template deployment.", + "description": "A Disk.", "required": true, "schema": { - "$ref": "#/definitions/DtlEnvironment" + "$ref": "#/definitions/Disk" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'Disk' update operation succeeded", "schema": { - "$ref": "#/definitions/DtlEnvironment" + "$ref": "#/definitions/Disk" } }, "201": { - "description": "Created", + "description": "Resource 'Disk' create operation succeeded", "schema": { - "$ref": "#/definitions/DtlEnvironment" + "$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": { - "Environments_CreateOrUpdate": { - "$ref": "./examples/Environments_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": [ - "Environments" + "Disks" ], - "description": "Delete environment. This operation can take a while to complete.", - "operationId": "Environments_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": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", @@ -4233,50 +4611,55 @@ { "name": "name", "in": "path", - "description": "The name of the environment.", + "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" - }, - "202": { - "description": "Accepted" - }, - "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": { - "Environments_Delete": { - "$ref": "./examples/Environments_Delete.json" + "Disks_Update": { + "$ref": "./examples/Disks_Update.json" } - }, - "x-ms-long-running-operation": true + } }, - "patch": { + "delete": { + "operationId": "Disks_Delete", "tags": [ - "Environments" + "Disks" ], - "description": "Allows modifying tags of environments. All other properties will be ignored.", - "operationId": "Environments_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" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", @@ -4295,57 +4678,234 @@ { "name": "name", "in": "path", - "description": "The name of the environment.", + "description": "The name of the Disk", "required": true, "type": "string" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." }, - { - "name": "dtlEnvironment", - "in": "body", - "description": "An environment, which is essentially an ARM template deployment.", - "required": true, - "schema": { - "$ref": "#/definitions/DtlEnvironmentFragment" + "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": { + "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}/disks/{name}/attach": { + "post": { + "operationId": "Disks_Attach", + "tags": [ + "Disks" + ], + "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" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/api-version" + "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 Disk", + "required": true, + "type": "string" + }, + { + "name": "attachDiskProperties", + "in": "body", + "description": "Properties of the disk to attach.", + "required": true, + "schema": { + "$ref": "#/definitions/AttachDiskProperties" + } } ], "responses": { "200": { - "description": "OK", + "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/DtlEnvironment" + "$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/labs/{labName}/users/{userName}/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" + }, + { + "$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 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": "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": { - "Environments_Update": { - "$ref": "./examples/Environments_Update.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}/users/{userName}/secrets": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments": { "get": { + "operationId": "Environments_List", "tags": [ - "Secrets" + "Environments" ], - "description": "List secrets in a given user profile.", - "operationId": "Secrets_List", + "description": "List environments in a given user profile.", "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", @@ -4364,19 +4924,22 @@ { "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" }, { "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,50 +4947,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/SecretList" + "$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/Secret", "x-ms-examples": { - "Secrets_List": { - "$ref": "./examples/Secrets_List.json" + "Environments_List": { + "$ref": "./examples/Environments_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/labs/{labName}/users/{userName}/environments/{name}": { "get": { + "operationId": "Environments_Get", "tags": [ - "Secrets" + "Environments" ], - "description": "Get secret.", - "operationId": "Secrets_Get", + "description": "Get environment.", "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", @@ -4446,52 +5009,53 @@ { "name": "name", "in": "path", - "description": "The name of the secret.", + "description": "The name of the DtlEnvironment", "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" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Secret" + "$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": { - "Secrets_Get": { - "$ref": "./examples/Secrets_Get.json" + "Environments_Get": { + "$ref": "./examples/Environments_Get.json" } } }, "put": { + "operationId": "Environments_CreateOrUpdate", "tags": [ - "Secrets" + "Environments" ], - "description": "Create or replace an existing secret. This operation can take a while to complete.", - "operationId": "Secrets_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": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", @@ -4510,62 +5074,76 @@ { "name": "name", "in": "path", - "description": "The name of the secret.", + "description": "The name of the DtlEnvironment", "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" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'DtlEnvironment' update operation succeeded", "schema": { - "$ref": "#/definitions/Secret" + "$ref": "#/definitions/DtlEnvironment" } }, "201": { - "description": "Created", + "description": "Resource 'DtlEnvironment' create operation succeeded", "schema": { - "$ref": "#/definitions/Secret" + "$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": { - "Secrets_CreateOrUpdate": { - "$ref": "./examples/Secrets_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": [ - "Secrets" + "Environments" ], - "description": "Delete secret.", - "operationId": "Secrets_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" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", @@ -4584,46 +5162,55 @@ { "name": "name", "in": "path", - "description": "The name of the secret.", + "description": "The name of the DtlEnvironment", "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": { - "Secrets_Delete": { - "$ref": "./examples/Secrets_Delete.json" + "Environments_Update": { + "$ref": "./examples/Environments_Update.json" } } }, - "patch": { + "delete": { + "operationId": "Environments_Delete", "tags": [ - "Secrets" + "Environments" ], - "description": "Allows modifying tags of secrets. All other properties will be ignored.", - "operationId": "Secrets_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": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", @@ -4642,57 +5229,66 @@ { "name": "name", "in": "path", - "description": "The name of the secret.", + "description": "The name of the DtlEnvironment", "required": true, "type": "string" - }, - { - "name": "secret", - "in": "body", - "description": "A secret.", - "required": true, - "schema": { - "$ref": "#/definitions/SecretFragment" - } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Secret" + "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." + } } }, - "default": { - "description": "BadRequest", + "204": { + "description": "Resource does not exist." + }, + "default": { + "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" + "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": "Secrets_List", "tags": [ - "ServiceFabrics" + "Secrets" ], - "description": "List service fabrics in a given user profile.", - "operationId": "ServiceFabrics_List", + "description": "List secrets in a given user profile.", "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", @@ -4711,19 +5307,22 @@ { "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" }, { "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,50 +5330,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/ServiceFabricList" + "$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-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/ServiceFabric", "x-ms-examples": { - "ServiceFabrics_List": { - "$ref": "./examples/ServiceFabrics_List.json" + "Secrets_List": { + "$ref": "./examples/Secrets_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/labs/{labName}/users/{userName}/secrets/{name}": { "get": { + "operationId": "Secrets_Get", "tags": [ - "ServiceFabrics" + "Secrets" ], - "description": "Get service fabric.", - "operationId": "ServiceFabrics_Get", + "description": "Get secret.", "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", @@ -4793,52 +5392,53 @@ { "name": "name", "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" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ServiceFabric" + "$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": { - "ServiceFabrics_Get": { - "$ref": "./examples/ServiceFabrics_Get.json" + "Secrets_Get": { + "$ref": "./examples/Secrets_Get.json" } } }, "put": { + "operationId": "Secrets_CreateOrUpdate", "tags": [ - "ServiceFabrics" + "Secrets" ], - "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 secret. 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": "labName", @@ -4857,62 +5457,76 @@ { "name": "name", "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" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'Secret' update operation succeeded", "schema": { - "$ref": "#/definitions/ServiceFabric" + "$ref": "#/definitions/Secret" } }, "201": { - "description": "Created", + "description": "Resource 'Secret' create operation succeeded", "schema": { - "$ref": "#/definitions/ServiceFabric" + "$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": { - "ServiceFabrics_CreateOrUpdate": { - "$ref": "./examples/ServiceFabrics_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 }, - "delete": { + "patch": { + "operationId": "Secrets_Update", "tags": [ - "ServiceFabrics" + "Secrets" ], - "description": "Delete service fabric. This operation can take a while to complete.", - "operationId": "ServiceFabrics_Delete", + "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": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", @@ -4931,50 +5545,55 @@ { "name": "name", "in": "path", - "description": "The name of the service fabric.", + "description": "The name of the Secret", "required": true, "type": "string" }, { - "$ref": "#/parameters/api-version" + "name": "secret", + "in": "body", + "description": "A secret.", + "required": true, + "schema": { + "$ref": "#/definitions/SecretFragment" + } } ], "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": { - "ServiceFabrics_Delete": { - "$ref": "./examples/ServiceFabrics_Delete.json" + "Secrets_Update": { + "$ref": "./examples/Secrets_Update.json" } - }, - "x-ms-long-running-operation": true + } }, - "patch": { + "delete": { + "operationId": "Secrets_Delete", "tags": [ - "ServiceFabrics" + "Secrets" ], - "description": "Allows modifying tags of service fabrics. All other properties will be ignored.", - "operationId": "ServiceFabrics_Update", + "description": "Delete secret.", "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", @@ -4993,57 +5612,48 @@ { "name": "name", "in": "path", - "description": "The name of the service fabric.", + "description": "The name of the Secret", "required": true, "type": "string" - }, - { - "name": "serviceFabric", - "in": "body", - "description": "A Service Fabric.", - "required": true, - "schema": { - "$ref": "#/definitions/ServiceFabricFragment" - } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ServiceFabric" - } + "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": { - "ServiceFabrics_Update": { - "$ref": "./examples/ServiceFabrics_Update.json" + "Secrets_Delete": { + "$ref": "./examples/Secrets_Delete.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}/listApplicableSchedules": { - "post": { + "/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.", - "operationId": "ServiceFabrics_ListApplicableSchedules", + "description": "List service fabrics in a given user profile.", "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", @@ -5060,50 +5670,75 @@ "type": "string" }, { - "name": "name", - "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" }, { - "$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", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ApplicableSchedule" + "$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": { - "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/{name}/start": { - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}": { + "get": { + "operationId": "ServiceFabrics_Get", "tags": [ "ServiceFabrics" ], - "description": "Start a service fabric. This operation can take a while to complete.", - "operationId": "ServiceFabrics_Start", + "description": "Get service fabric.", "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", @@ -5122,49 +5757,53 @@ { "name": "name", "in": "path", - "description": "The name of the service fabric.", + "description": "The name of the ServiceFabric", "required": true, "type": "string" }, { - "$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": { - "ServiceFabrics_Start": { - "$ref": "./examples/ServiceFabrics_Start.json" + "ServiceFabrics_Get": { + "$ref": "./examples/ServiceFabrics_Get.json" } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}/stop": { - "post": { + } + }, + "put": { + "operationId": "ServiceFabrics_CreateOrUpdate", "tags": [ "ServiceFabrics" ], - "description": "Stop a service fabric This operation can take a while to complete.", - "operationId": "ServiceFabrics_Stop", + "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": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", @@ -5183,52 +5822,224 @@ { "name": "name", "in": "path", - "description": "The name of the service fabric.", + "description": "The name of the ServiceFabric", "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/ServiceFabric" + } }, - "202": { - "description": "Accepted" + "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": { - "ServiceFabrics_Stop": { - "$ref": "./examples/ServiceFabrics_Stop.json" + "ServiceFabrics_CreateOrUpdate": { + "$ref": "./examples/ServiceFabrics_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}/users/{userName}/servicefabrics/{serviceFabricName}/schedules": { - "get": { + }, + "patch": { + "operationId": "ServiceFabrics_Update", "tags": [ - "ServiceFabricSchedules" + "ServiceFabrics" ], - "description": "List schedules in a given service fabric.", - "operationId": "ServiceFabricSchedules_List", + "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", + "$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 ServiceFabric", + "required": true, + "type": "string" + }, + { + "name": "serviceFabric", + "in": "body", + "description": "A Service Fabric.", + "required": true, + "schema": { + "$ref": "#/definitions/ServiceFabricFragment" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ServiceFabric" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ServiceFabrics_Update": { + "$ref": "./examples/ServiceFabrics_Update.json" + } + } + }, + "delete": { + "operationId": "ServiceFabrics_Delete", + "tags": [ + "ServiceFabrics" + ], + "description": "Delete 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": "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 ServiceFabric", + "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": { + "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}/users/{userName}/servicefabrics/{name}/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": "labName", "in": "path", "description": "The name of the lab.", "required": true, @@ -5241,10 +6052,70 @@ "required": true, "type": "string" }, + { + "name": "name", + "in": "path", + "description": "The name of the ServiceFabric", + "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/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules": { + "get": { + "operationId": "ServiceFabricSchedules_List", + "tags": [ + "ServiceFabricSchedules" + ], + "description": "List schedules in a given service fabric.", + "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": "userName", + "in": "path", + "description": "users", + "required": true, + "type": "string" + }, { "name": "serviceFabricName", "in": "path", - "description": "The name of the service fabric.", + "description": "servicefabrics", "required": true, "type": "string" }, @@ -5252,18 +6123,21 @@ "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,76 +6145,76 @@ "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" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules/{name}": { "get": { + "operationId": "ServiceFabricSchedules_Get", "tags": [ "ServiceFabricSchedules" ], "description": "Get schedule.", - "operationId": "ServiceFabricSchedules_Get", "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": "The name of the service fabric.", + "description": "servicefabrics", "required": true, "type": "string" }, { "name": "name", "in": "path", - "description": "The name of the schedule.", + "description": "The name of the Schedule", "required": true, "type": "string" }, @@ -5348,23 +6222,21 @@ "name": "$expand", "in": "query", "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/Schedule" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -5375,43 +6247,46 @@ } }, "put": { + "operationId": "ServiceFabricSchedules_CreateOrUpdate", "tags": [ "ServiceFabricSchedules" ], "description": "Create or replace an existing schedule.", - "operationId": "ServiceFabricSchedules_CreateOrUpdate", "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": "The name of the service fabric.", + "description": "servicefabrics", "required": true, "type": "string" }, { "name": "name", "in": "path", - "description": "The name of the schedule.", + "description": "The name of the Schedule", "required": true, "type": "string" }, @@ -5423,28 +6298,25 @@ "schema": { "$ref": "#/definitions/Schedule" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'Schedule' update operation succeeded", "schema": { "$ref": "#/definitions/Schedule" } }, "201": { - "description": "Created", + "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" } } }, @@ -5454,203 +6326,214 @@ } } }, - "delete": { + "patch": { + "operationId": "ServiceFabricSchedules_Update", "tags": [ "ServiceFabricSchedules" ], - "description": "Delete schedule.", - "operationId": "ServiceFabricSchedules_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", "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.", + "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" - }, - "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": { - "ServiceFabricSchedules_Delete": { - "$ref": "./examples/ServiceFabricSchedules_Delete.json" + "ServiceFabricSchedules_Update": { + "$ref": "./examples/ServiceFabricSchedules_Update.json" } } }, - "patch": { + "delete": { + "operationId": "ServiceFabricSchedules_Delete", "tags": [ "ServiceFabricSchedules" ], - "description": "Allows modifying tags of schedules. All other properties will be ignored.", - "operationId": "ServiceFabricSchedules_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": "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.", + "description": "The name of the Schedule", "required": true, "type": "string" - }, - { - "name": "schedule", - "in": "body", - "description": "A schedule.", - "required": true, - "schema": { - "$ref": "#/definitions/ScheduleFragment" - } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Schedule" - } + "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": { - "ServiceFabricSchedules_Update": { - "$ref": "./examples/ServiceFabricSchedules_Update.json" + "ServiceFabricSchedules_Delete": { + "$ref": "./examples/ServiceFabricSchedules_Delete.json" } } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules/{name}/execute": { "post": { + "operationId": "ServiceFabricSchedules_Execute", "tags": [ "ServiceFabricSchedules" ], "description": "Execute a schedule. This operation can take a while to complete.", - "operationId": "ServiceFabricSchedules_Execute", "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": "The name of the service fabric.", + "description": "servicefabrics", "required": true, "type": "string" }, { "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": "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" } } }, @@ -5659,22 +6542,178 @@ "$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}/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": "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 ServiceFabric", + "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": { + "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}/users/{userName}/servicefabrics/{name}/stop": { + "post": { + "operationId": "ServiceFabrics_Stop", + "tags": [ + "ServiceFabrics" + ], + "description": "Stop 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": "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 ServiceFabric", + "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": { + "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": { "get": { + "operationId": "VirtualMachines_List", "tags": [ "VirtualMachines" ], "description": "List virtual machines in a given lab.", - "operationId": "VirtualMachines_List", "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", @@ -5687,18 +6726,21 @@ "name": "$expand", "in": "query", "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" }, @@ -5706,50 +6748,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/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/LabVirtualMachine", "x-ms-examples": { "VirtualMachines_List": { "$ref": "./examples/VirtualMachines_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}": { "get": { + "operationId": "VirtualMachines_Get", "tags": [ "VirtualMachines" ], "description": "Get virtual machine.", - "operationId": "VirtualMachines_Get", "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", @@ -5761,7 +6803,7 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" }, @@ -5769,23 +6811,21 @@ "name": "$expand", "in": "query", "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/LabVirtualMachine" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -5796,17 +6836,20 @@ } }, "put": { + "operationId": "VirtualMachines_CreateOrUpdate", "tags": [ "VirtualMachines" ], "description": "Create or replace an existing virtual machine. This operation can take a while to complete.", - "operationId": "VirtualMachines_CreateOrUpdate", "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", @@ -5818,7 +6861,7 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" }, @@ -5830,28 +6873,36 @@ "schema": { "$ref": "#/definitions/LabVirtualMachine" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'LabVirtualMachine' update operation succeeded", "schema": { "$ref": "#/definitions/LabVirtualMachine" } }, "201": { - "description": "Created", + "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." + } } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -5860,20 +6911,26 @@ "$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": [ "VirtualMachines" ], - "description": "Delete virtual machine. This operation can take a while to complete.", - "operationId": "VirtualMachines_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": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", @@ -5885,50 +6942,55 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" }, { - "$ref": "#/parameters/api-version" + "name": "labVirtualMachine", + "in": "body", + "description": "A virtual machine.", + "required": true, + "schema": { + "$ref": "#/definitions/LabVirtualMachineFragment" + } } ], "responses": { "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "204": { - "description": "No Content" + "description": "Azure operation completed successfully.", + "schema": { + "$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": { - "VirtualMachines_Delete": { - "$ref": "./examples/VirtualMachines_Delete.json" + "VirtualMachines_Update": { + "$ref": "./examples/VirtualMachines_Update.json" } - }, - "x-ms-long-running-operation": true + } }, - "patch": { + "delete": { + "operationId": "VirtualMachines_Delete", "tags": [ "VirtualMachines" ], - "description": "Allows modifying tags of virtual machines. All other properties will be ignored.", - "operationId": "VirtualMachines_Update", + "description": "Delete 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": "labName", @@ -5940,57 +7002,66 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" - }, - { - "name": "labVirtualMachine", - "in": "body", - "description": "A virtual machine.", - "required": true, - "schema": { - "$ref": "#/definitions/LabVirtualMachineFragment" - } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/LabVirtualMachine" + "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": { - "VirtualMachines_Update": { - "$ref": "./examples/VirtualMachines_Update.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}/addDataDisk": { "post": { + "operationId": "VirtualMachines_AddDataDisk", "tags": [ "VirtualMachines" ], "description": "Attach a new or existing data disk to virtual machine. This operation can take a while to complete.", - "operationId": "VirtualMachines_AddDataDisk", "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", @@ -6002,7 +7073,7 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" }, @@ -6014,22 +7085,30 @@ "schema": { "$ref": "#/definitions/DataDiskProperties" } - }, - { - "$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" } } }, @@ -6038,22 +7117,28 @@ "$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/{labName}/virtualmachines/{name}/applyArtifacts": { "post": { + "operationId": "VirtualMachines_ApplyArtifacts", "tags": [ "VirtualMachines" ], "description": "Apply artifacts to virtual machine. This operation can take a while to complete.", - "operationId": "VirtualMachines_ApplyArtifacts", "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", @@ -6065,7 +7150,7 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" }, @@ -6077,22 +7162,30 @@ "schema": { "$ref": "#/definitions/ApplyArtifactsRequest" } - }, - { - "$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" } } }, @@ -6101,22 +7194,28 @@ "$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/labs/{labName}/virtualmachines/{name}/claim": { "post": { + "operationId": "VirtualMachines_Claim", "tags": [ "VirtualMachines" ], "description": "Take ownership of an existing virtual machine This operation can take a while to complete.", - "operationId": "VirtualMachines_Claim", "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", @@ -6128,25 +7227,33 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "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" } } }, @@ -6155,22 +7262,28 @@ "$ref": "./examples/VirtualMachines_Claim.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}/detachDataDisk": { "post": { + "operationId": "VirtualMachines_DetachDataDisk", "tags": [ "VirtualMachines" ], "description": "Detach the specified disk from the virtual machine. This operation can take a while to complete.", - "operationId": "VirtualMachines_DetachDataDisk", "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", @@ -6182,7 +7295,7 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" }, @@ -6194,22 +7307,30 @@ "schema": { "$ref": "#/definitions/DetachDataDiskProperties" } - }, - { - "$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" } } }, @@ -6218,22 +7339,28 @@ "$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": [ "VirtualMachines" ], "description": "Gets a string that represents the contents of the RDP file for the virtual machine", - "operationId": "VirtualMachines_GetRdpFileContents", "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", @@ -6245,25 +7372,22 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "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" } } }, @@ -6276,17 +7400,20 @@ }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/listApplicableSchedules": { "post": { + "operationId": "VirtualMachines_ListApplicableSchedules", "tags": [ "VirtualMachines" ], "description": "Lists the applicable start/stop schedules, if any.", - "operationId": "VirtualMachines_ListApplicableSchedules", "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", @@ -6298,25 +7425,22 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "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" } } }, @@ -6329,17 +7453,20 @@ }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/redeploy": { "post": { + "operationId": "VirtualMachines_Redeploy", "tags": [ "VirtualMachines" ], "description": "Redeploy a virtual machine This operation can take a while to complete.", - "operationId": "VirtualMachines_Redeploy", "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", @@ -6351,25 +7478,33 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "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" } } }, @@ -6378,22 +7513,28 @@ "$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": [ "VirtualMachines" ], "description": "Resize Virtual Machine. This operation can take a while to complete.", - "operationId": "VirtualMachines_Resize", "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", @@ -6405,7 +7546,7 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" }, @@ -6417,22 +7558,30 @@ "schema": { "$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" } } }, @@ -6441,130 +7590,28 @@ "$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": { - "tags": [ - "VirtualMachines" - ], - "description": "Restart a virtual machine. This operation can take a while to complete.", "operationId": "VirtualMachines_Restart", - "parameters": [ - { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "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" - }, - { - "$ref": "#/parameters/api-version" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "default": { - "description": "BadRequest", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "VirtualMachines_Restart": { - "$ref": "./examples/VirtualMachines_Restart.json" - } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/start": { - "post": { "tags": [ "VirtualMachines" ], - "description": "Start a virtual machine. This operation can take a while to complete.", - "operationId": "VirtualMachines_Start", + "description": "Restart a virtual machine. 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": "name", - "in": "path", - "description": "The name of the virtual machine.", - "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": { - "VirtualMachines_Start": { - "$ref": "./examples/VirtualMachines_Start.json" - } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/stop": { - "post": { - "tags": [ - "VirtualMachines" - ], - "description": "Stop a virtual machine This operation can take a while to complete.", - "operationId": "VirtualMachines_Stop", - "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": "labName", @@ -6576,169 +7623,75 @@ { "name": "name", "in": "path", - "description": "The name of the virtual machine.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK" + "description": "The request has succeeded." }, "202": { - "description": "Accepted" - }, - "default": { - "description": "BadRequest", - "schema": { - "$ref": "#/definitions/CloudError" + "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." + } } - } - }, - "x-ms-examples": { - "VirtualMachines_Stop": { - "$ref": "./examples/VirtualMachines_Stop.json" - } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/transferDisks": { - "post": { - "tags": [ - "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.", - "operationId": "VirtualMachines_TransferDisks", - "parameters": [ - { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "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" - }, - { - "$ref": "#/parameters/api-version" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" }, "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" - } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/unClaim": { - "post": { - "tags": [ - "VirtualMachines" - ], - "description": "Release ownership of an existing virtual machine This operation can take a while to complete.", - "operationId": "VirtualMachines_UnClaim", - "parameters": [ - { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "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" - }, - { - "$ref": "#/parameters/api-version" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "default": { - "description": "BadRequest", - "schema": { - "$ref": "#/definitions/CloudError" - } + "VirtualMachines_Restart": { + "$ref": "./examples/VirtualMachines_Restart.json" } }, - "x-ms-examples": { - "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/labs/{labName}/virtualmachines/{virtualMachineName}/schedules": { "get": { + "operationId": "VirtualMachineSchedules_List", "tags": [ "VirtualMachineSchedules" ], "description": "List schedules in a given virtual machine.", - "operationId": "VirtualMachineSchedules_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" + }, + { + "$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": "virtualMachineName", "in": "path", - "description": "The name of the virtual machine.", + "description": "virtualmachines", "required": true, "type": "string" }, @@ -6746,18 +7699,21 @@ "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" }, @@ -6765,69 +7721,69 @@ "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": { "VirtualMachineSchedules_List": { "$ref": "./examples/VirtualMachineSchedules_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules/{name}": { "get": { + "operationId": "VirtualMachineSchedules_Get", "tags": [ "VirtualMachineSchedules" ], "description": "Get schedule.", - "operationId": "VirtualMachineSchedules_Get", "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": "virtualMachineName", "in": "path", - "description": "The name of the virtual machine.", + "description": "virtualmachines", "required": true, "type": "string" }, { "name": "name", "in": "path", - "description": "The name of the schedule.", + "description": "The name of the Schedule", "required": true, "type": "string" }, @@ -6835,23 +7791,21 @@ "name": "$expand", "in": "query", "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/Schedule" } }, "default": { - "description": "BadRequest", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -6862,36 +7816,39 @@ } }, "put": { + "operationId": "VirtualMachineSchedules_CreateOrUpdate", "tags": [ "VirtualMachineSchedules" ], "description": "Create or replace an existing schedule.", - "operationId": "VirtualMachineSchedules_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" + }, + { + "$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": "virtualMachineName", "in": "path", - "description": "The name of the virtual machine.", + "description": "virtualmachines", "required": true, "type": "string" }, { "name": "name", "in": "path", - "description": "The name of the schedule.", + "description": "The name of the Schedule", "required": true, "type": "string" }, @@ -6903,28 +7860,25 @@ "schema": { "$ref": "#/definitions/Schedule" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'Schedule' update operation succeeded", "schema": { "$ref": "#/definitions/Schedule" } }, "201": { - "description": "Created", + "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" } } }, @@ -6934,182 +7888,193 @@ } } }, - "delete": { + "patch": { + "operationId": "VirtualMachineSchedules_Update", "tags": [ "VirtualMachineSchedules" ], - "description": "Delete schedule.", - "operationId": "VirtualMachineSchedules_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": "virtualMachineName", "in": "path", - "description": "The name of the virtual machine.", + "description": "virtualmachines", "required": true, "type": "string" }, { "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/ScheduleFragment" + } } ], "responses": { "200": { - "description": "OK" - }, - "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": { - "VirtualMachineSchedules_Delete": { - "$ref": "./examples/VirtualMachineSchedules_Delete.json" + "VirtualMachineSchedules_Update": { + "$ref": "./examples/VirtualMachineSchedules_Update.json" } } }, - "patch": { + "delete": { + "operationId": "VirtualMachineSchedules_Delete", "tags": [ "VirtualMachineSchedules" ], - "description": "Allows modifying tags of schedules. All other properties will be ignored.", - "operationId": "VirtualMachineSchedules_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": "virtualMachineName", "in": "path", - "description": "The name of the virtual machine.", + "description": "virtualmachines", "required": true, "type": "string" }, { "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/ScheduleFragment" - } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Schedule" - } + "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": { - "VirtualMachineSchedules_Update": { - "$ref": "./examples/VirtualMachineSchedules_Update.json" + "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.", - "operationId": "VirtualMachineSchedules_Execute", "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": "virtualMachineName", "in": "path", - "description": "The name of the virtual machine.", + "description": "virtualmachines", "required": true, "type": "string" }, { "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": "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" } } }, @@ -7118,22 +8083,28 @@ "$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/labs/{labName}/virtualnetworks": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/start": { + "post": { + "operationId": "VirtualMachines_Start", "tags": [ - "VirtualNetworks" + "VirtualMachines" ], - "description": "List virtual networks in a given lab.", - "operationId": "VirtualNetworks_List", + "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": "labName", @@ -7143,72 +8114,65 @@ "type": "string" }, { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($expand=externalSubnets)'", - "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'", + "name": "name", + "in": "path", + "description": "The name of the LabVirtualMachine", + "required": true, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/VirtualNetworkList" + "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/VirtualNetwork", "x-ms-examples": { - "VirtualNetworks_List": { - "$ref": "./examples/VirtualNetworks_List.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/{labName}/virtualnetworks/{name}": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/stop": { + "post": { + "operationId": "VirtualMachines_Stop", "tags": [ - "VirtualNetworks" + "VirtualMachines" ], - "description": "Get virtual network.", - "operationId": "VirtualNetworks_Get", + "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": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "labName", @@ -7220,52 +8184,63 @@ { "name": "name", "in": "path", - "description": "The name of the virtual network.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" - }, - { - "name": "$expand", - "in": "query", - "description": "Specify the $expand query. Example: 'properties($expand=externalSubnets)'", - "type": "string" - }, - { - "$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_Get": { - "$ref": "./examples/VirtualNetworks_Get.json" + "VirtualMachines_Stop": { + "$ref": "./examples/VirtualMachines_Stop.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/labs/{labName}/virtualmachines/{name}/transferDisks": { + "post": { + "operationId": "VirtualMachines_TransferDisks", "tags": [ - "VirtualNetworks" + "VirtualMachines" ], - "description": "Create or replace an existing virtual network. This operation can take a while to complete.", - "operationId": "VirtualNetworks_CreateOrUpdate", + "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": "#/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", @@ -7277,62 +8252,63 @@ { "name": "name", "in": "path", - "description": "The name of the virtual network.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" - }, - { - "name": "virtualNetwork", - "in": "body", - "description": "A virtual network.", - "required": true, - "schema": { - "$ref": "#/definitions/VirtualNetwork" - } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/VirtualNetwork" - } + "description": "The request has succeeded." }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/VirtualNetwork" + "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_CreateOrUpdate": { - "$ref": "./examples/VirtualNetworks_CreateOrUpdate.json" + "VirtualMachines_TransferDisks": { + "$ref": "./examples/VirtualMachines_TransferDisks.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/labs/{labName}/virtualmachines/{name}/unClaim": { + "post": { + "operationId": "VirtualMachines_UnClaim", "tags": [ - "VirtualNetworks" + "VirtualMachines" ], - "description": "Delete virtual network. This operation can take a while to complete.", - "operationId": "VirtualNetworks_Delete", + "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": "labName", @@ -7344,50 +8320,63 @@ { "name": "name", "in": "path", - "description": "The name of the virtual network.", + "description": "The name of the LabVirtualMachine", "required": true, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK" + "description": "The request has succeeded." }, "202": { - "description": "Accepted" - }, - "204": { - "description": "No Content" + "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_Delete": { - "$ref": "./examples/VirtualNetworks_Delete.json" + "VirtualMachines_UnClaim": { + "$ref": "./examples/VirtualMachines_UnClaim.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/labs/{labName}/virtualnetworks": { + "get": { + "operationId": "VirtualNetworks_List", "tags": [ "VirtualNetworks" ], - "description": "Allows modifying tags of virtual networks. All other properties will be ignored.", - "operationId": "VirtualNetworks_Update", + "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": "labName", @@ -7397,791 +8386,599 @@ "type": "string" }, { - "name": "name", - "in": "path", - "description": "The name of the virtual network.", - "required": true, + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($expand=externalSubnets)'", + "required": false, "type": "string" }, { - "name": "virtualNetwork", - "in": "body", - "description": "A virtual network.", - "required": true, - "schema": { - "$ref": "#/definitions/VirtualNetworkFragment" - } + "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" }, { - "$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/VirtualNetwork" + "$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-examples": { - "VirtualNetworks_Update": { - "$ref": "./examples/VirtualNetworks_Update.json" + "VirtualNetworks_List": { + "$ref": "./examples/VirtualNetworks_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualnetworks/{name}": { "get": { + "operationId": "VirtualNetworks_Get", "tags": [ - "Labs" + "VirtualNetworks" ], - "description": "Get lab.", - "operationId": "Labs_Get", + "description": "Get virtual network.", "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": "name", + "$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=defaultStorageAccount)'", + "name": "name", + "in": "path", + "description": "The name of the VirtualNetwork", + "required": true, "type": "string" }, { - "$ref": "#/parameters/api-version" + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($expand=externalSubnets)'", + "required": false, + "type": "string" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Lab" + "$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": { - "Labs_Get": { - "$ref": "./examples/Labs_Get.json" + "VirtualNetworks_Get": { + "$ref": "./examples/VirtualNetworks_Get.json" } } }, "put": { + "operationId": "VirtualNetworks_CreateOrUpdate", "tags": [ - "Labs" + "VirtualNetworks" ], - "description": "Create or replace an existing lab. This operation can take a while to complete.", - "operationId": "Labs_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" }, { - "name": "name", + "$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": "lab", + "name": "name", + "in": "path", + "description": "The name of the VirtualNetwork", + "required": true, + "type": "string" + }, + { + "name": "virtualNetwork", "in": "body", - "description": "A lab.", + "description": "A virtual network.", "required": true, "schema": { - "$ref": "#/definitions/Lab" + "$ref": "#/definitions/VirtualNetwork" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Resource 'VirtualNetwork' update operation succeeded", "schema": { - "$ref": "#/definitions/Lab" + "$ref": "#/definitions/VirtualNetwork" } }, "201": { - "description": "Created", + "description": "Resource 'VirtualNetwork' create operation succeeded", "schema": { - "$ref": "#/definitions/Lab" + "$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": { - "Labs_CreateOrUpdate": { - "$ref": "./examples/Labs_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 }, - "delete": { + "patch": { + "operationId": "VirtualNetworks_Update", "tags": [ - "Labs" + "VirtualNetworks" ], - "description": "Delete lab. This operation can take a while to complete.", - "operationId": "Labs_Delete", + "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": "#/parameters/resourceGroupName" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "name", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "labName", "in": "path", "description": "The name of the lab.", "required": true, "type": "string" }, { - "$ref": "#/parameters/api-version" + "name": "name", + "in": "path", + "description": "The name of the VirtualNetwork", + "required": true, + "type": "string" + }, + { + "name": "virtualNetwork", + "in": "body", + "description": "A virtual network.", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualNetworkFragment" + } } ], "responses": { "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "204": { - "description": "No Content" + "description": "Azure operation completed successfully.", + "schema": { + "$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": { - "Labs_Delete": { - "$ref": "./examples/Labs_Delete.json" + "VirtualNetworks_Update": { + "$ref": "./examples/VirtualNetworks_Update.json" } - }, - "x-ms-long-running-operation": true + } }, - "patch": { + "delete": { + "operationId": "VirtualNetworks_Delete", "tags": [ - "Labs" + "VirtualNetworks" ], - "description": "Allows modifying tags of labs. All other properties will be ignored.", - "operationId": "Labs_Update", + "description": "Delete 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" }, { - "name": "name", + "$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": "lab", - "in": "body", - "description": "A lab.", + "name": "name", + "in": "path", + "description": "The name of the VirtualNetwork", "required": true, - "schema": { - "$ref": "#/definitions/LabFragment" - } - }, - { - "$ref": "#/parameters/api-version" + "type": "string" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Lab" + "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": { - "Labs_Update": { - "$ref": "./examples/Labs_Update.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/labs/{name}/claimAnyVm": { - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules": { + "get": { + "operationId": "GlobalSchedules_ListByResourceGroup", "tags": [ - "Labs" + "GlobalSchedules" ], - "description": "Claim a random claimable virtual machine in the lab. This operation can take a while to complete.", - "operationId": "Labs_ClaimAnyVm", + "description": "List schedules 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": "name", - "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($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" }, { - "$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/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": { - "Labs_ClaimAnyVm": { - "$ref": "./examples/Labs_ClaimAnyVm.json" + "GlobalSchedules_ListByResourceGroup": { + "$ref": "./examples/GlobalSchedules_ListByResourceGroup.json" } }, - "x-ms-long-running-operation": true + "x-ms-pageable": { + "nextLinkName": "nextLink" + } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/createEnvironment": { - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules/{name}": { + "get": { + "operationId": "GlobalSchedules_Get", "tags": [ - "Labs" + "GlobalSchedules" ], - "description": "Create virtual machines in a lab. This operation can take a while to complete.", - "operationId": "Labs_CreateEnvironment", + "description": "Get 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": "name", "in": "path", - "description": "The name of the lab.", + "description": "The name of the Schedule", "required": true, "type": "string" }, { - "name": "labVirtualMachineCreationParameter", - "in": "body", - "description": "Properties for creating a virtual machine.", - "required": true, - "schema": { - "$ref": "#/definitions/LabVirtualMachineCreationParameter" - } - }, - { - "$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" - }, - "202": { - "description": "Accepted" + "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": { - "Labs_CreateEnvironment": { - "$ref": "./examples/Labs_CreateEnvironment.json" + "GlobalSchedules_Get": { + "$ref": "./examples/GlobalSchedules_Get.json" } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/exportResourceUsage": { - "post": { + } + }, + "put": { + "operationId": "GlobalSchedules_CreateOrUpdate", "tags": [ - "Labs" + "GlobalSchedules" ], - "description": "Exports the lab resource usage into a storage account This operation can take a while to complete.", - "operationId": "Labs_ExportResourceUsage", + "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": "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/Schedule" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK" + "description": "Resource 'Schedule' update operation succeeded", + "schema": { + "$ref": "#/definitions/Schedule" + } }, - "202": { - "description": "Accepted" + "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": { - "Labs_ExportResourceUsage": { - "$ref": "./examples/Labs_ExportResourceUsage.json" + "GlobalSchedules_CreateOrUpdate": { + "$ref": "./examples/GlobalSchedules_CreateOrUpdate.json" } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/generateUploadUri": { - "post": { + } + }, + "patch": { + "operationId": "GlobalSchedules_Update", "tags": [ - "Labs" + "GlobalSchedules" ], - "description": "Generate a URI for uploading custom disk images to a Lab.", - "operationId": "Labs_GenerateUploadUri", + "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": "name", "in": "path", - "description": "The name of the lab.", + "description": "The name of the Schedule", "required": true, "type": "string" }, { - "name": "generateUploadUriParameter", + "name": "schedule", "in": "body", - "description": "Properties for generating an upload URI.", + "description": "A schedule.", "required": true, "schema": { - "$ref": "#/definitions/GenerateUploadUriParameter" + "$ref": "#/definitions/ScheduleFragment" } - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/GenerateUploadUriResponse" + "$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": { - "Labs_GenerateUploadUri": { - "$ref": "./examples/Labs_GenerateUploadUri.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/importVirtualMachine": { - "post": { - "tags": [ - "Labs" - ], - "description": "Import a virtual machine into a different lab. This operation can take a while to complete.", - "operationId": "Labs_ImportVirtualMachine", - "parameters": [ - { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "name": "name", - "in": "path", - "description": "The name of the lab.", - "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", - "required": true, - "schema": { - "$ref": "#/definitions/ImportLabVirtualMachineRequest" - } - }, - { - "$ref": "#/parameters/api-version" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "default": { - "description": "BadRequest", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Labs_ImportVirtualMachine": { - "$ref": "./examples/Labs_ImportVirtualMachine.json" - } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/listVhds": { - "post": { - "tags": [ - "Labs" - ], - "description": "List disk images available for custom image creation.", - "operationId": "Labs_ListVhds", - "parameters": [ - { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "name": "name", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/api-version" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/LabVhdList" - } - }, - "default": { - "description": "BadRequest", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "Labs_ListVhds": { - "$ref": "./examples/Labs_ListVhds.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules": { - "get": { - "tags": [ - "GlobalSchedules" - ], - "description": "List schedules in a resource group.", - "operationId": "GlobalSchedules_ListByResourceGroup", - "parameters": [ - { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "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'", - "type": "string" - }, - { - "$ref": "#/parameters/api-version" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ScheduleList" - } - }, - "default": { - "description": "BadRequest", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/Schedule", - "x-ms-examples": { - "GlobalSchedules_ListByResourceGroup": { - "$ref": "./examples/GlobalSchedules_ListByResourceGroup.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules/{name}": { - "get": { - "tags": [ - "GlobalSchedules" - ], - "description": "Get schedule.", - "operationId": "GlobalSchedules_Get", - "parameters": [ - { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "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": { - "GlobalSchedules_Get": { - "$ref": "./examples/GlobalSchedules_Get.json" - } - } - }, - "put": { - "tags": [ - "GlobalSchedules" - ], - "description": "Create or replace an existing schedule.", - "operationId": "GlobalSchedules_CreateOrUpdate", - "parameters": [ - { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "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" - } - }, - { - "$ref": "#/parameters/api-version" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Schedule" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Schedule" - } - }, - "default": { - "description": "BadRequest", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "GlobalSchedules_CreateOrUpdate": { - "$ref": "./examples/GlobalSchedules_CreateOrUpdate.json" + "GlobalSchedules_Update": { + "$ref": "./examples/GlobalSchedules_Update.json" } } }, "delete": { + "operationId": "GlobalSchedules_Delete", "tags": [ "GlobalSchedules" ], "description": "Delete schedule.", - "operationId": "GlobalSchedules_Delete", "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 Schedule", "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" } } }, @@ -8190,97 +8987,55 @@ "$ref": "./examples/GlobalSchedules_Delete.json" } } - }, - "patch": { - "tags": [ - "GlobalSchedules" - ], - "description": "Allows modifying tags of schedules. All other properties will be ignored.", - "operationId": "GlobalSchedules_Update", - "parameters": [ - { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "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/ScheduleFragment" - } - }, - { - "$ref": "#/parameters/api-version" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Schedule" - } - }, - "default": { - "description": "BadRequest", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "GlobalSchedules_Update": { - "$ref": "./examples/GlobalSchedules_Update.json" - } - } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules/{name}/execute": { "post": { + "operationId": "GlobalSchedules_Execute", "tags": [ "GlobalSchedules" ], "description": "Execute a schedule. This operation can take a while to complete.", - "operationId": "GlobalSchedules_Execute", "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 Schedule", "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" } } }, @@ -8289,27 +9044,33 @@ "$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": [ "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/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 Schedule", "required": true, "type": "string" }, @@ -8321,22 +9082,30 @@ "schema": { "$ref": "#/definitions/RetargetScheduleProperties" } - }, - { - "$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" } } }, @@ -8345,43 +9114,45 @@ "$ref": "./examples/GlobalSchedules_Retarget.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 +9164,684 @@ } } }, - "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": { + "type": "object", "description": "An Azure Resource Manager template.", + "properties": { + "properties": { + "$ref": "#/definitions/ArmTemplateProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + } + }, "required": [ "properties" ], - "type": "object", "allOf": [ { "$ref": "#/definitions/Resource" } - ], - "properties": { - "properties": { - "$ref": "#/definitions/ArmTemplateProperties", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + ] }, "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": { + "type": "object", "description": "An artifact.", + "properties": { + "properties": { + "$ref": "#/definitions/ArtifactProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + } + }, "required": [ "properties" ], - "type": "object", "allOf": [ { "$ref": "#/definitions/Resource" } - ], - "properties": { - "properties": { - "$ref": "#/definitions/ArtifactProperties", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + ] }, "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" } }, "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.", + } + }, + "ArtifactSource": { + "type": "object", + "description": "Properties of an artifact source.", + "properties": { + "properties": { + "$ref": "#/definitions/ArtifactSourceProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + } + }, "required": [ "properties" ], - "type": "object", "allOf": [ { "$ref": "#/definitions/Resource" } - ], - "properties": { - "properties": { - "$ref": "#/definitions/ArtifactSourceProperties", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + ] }, "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" } } } }, - "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" - ], - "type": "string", - "x-ms-enum": { - "name": "CostThresholdStatus", - "modelAsString": true - } + "$ref": "#/definitions/CostThresholdStatus", + "description": "Indicates whether notifications will be sent when this threshold is exceeded." }, "notificationSent": { - "description": "Indicates the datetime when notifications were last sent for this threshold.", - "type": "string" + "type": "string", + "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" + } + ] + } + }, "CustomImage": { + "type": "object", "description": "A custom image.", + "properties": { + "properties": { + "$ref": "#/definitions/CustomImageProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + } + }, "required": [ "properties" ], - "type": "object", "allOf": [ { "$ref": "#/definitions/Resource" } - ], - "properties": { - "properties": { - "$ref": "#/definitions/CustomImageProperties", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + ] }, "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 +9852,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 +9958,497 @@ } } }, - "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": { + "type": "object", "description": "A Disk.", + "properties": { + "properties": { + "$ref": "#/definitions/DiskProperties", + "description": "The properties of the disk.", + "x-ms-client-flatten": true + } + }, "required": [ "properties" ], - "type": "object", "allOf": [ { "$ref": "#/definitions/Resource" } - ], - "properties": { - "properties": { - "$ref": "#/definitions/DiskProperties", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + ] }, "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": { + "type": "object", "description": "An environment, which is essentially an ARM template deployment.", + "properties": { + "properties": { + "$ref": "#/definitions/EnvironmentProperties", + "description": "The properties of the environment.", + "x-ms-client-flatten": true + } + }, "required": [ "properties" ], - "type": "object", "allOf": [ { "$ref": "#/definitions/Resource" } - ], - "properties": { - "properties": { - "$ref": "#/definitions/EnvironmentProperties", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + ] }, "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" } } } }, - "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": { + "type": "object", "description": "A formula for creating a VM, specifying an image base and other parameters", + "properties": { + "properties": { + "$ref": "#/definitions/FormulaProperties", + "description": "The properties of the formula.", + "x-ms-client-flatten": true + } + }, "required": [ "properties" ], - "type": "object", "allOf": [ { "$ref": "#/definitions/Resource" } - ], - "properties": { - "properties": { - "$ref": "#/definitions/FormulaProperties", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + ] }, "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 +10460,617 @@ "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 gallery image.", + "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" } }, "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 } - } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] }, "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": { + "type": "object", "description": "A cost item.", + "properties": { + "properties": { + "$ref": "#/definitions/LabCostProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + } + }, "required": [ "properties" ], - "type": "object", "allOf": [ { "$ref": "#/definitions/Resource" } - ], - "properties": { - "properties": { - "$ref": "#/definitions/LabCostProperties", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + ] }, "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,120 +11082,126 @@ "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": { + "type": "string", "description": "Type of storage used by the lab. It can be either Premium or Standard. Default is Premium.", "default": "Premium", "enum": [ @@ -10287,55 +11209,52 @@ "Premium", "StandardSSD" ], - "type": "string", "x-ms-enum": { "name": "StorageType", - "modelAsString": true + "modelAsString": true, + "values": [ + { + "name": "Standard", + "value": "Standard" + }, + { + "name": "Premium", + "value": "Premium" + }, + { + "name": "StandardSSD", + "value": "StandardSSD" + } + ] } }, "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 +11265,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": { + "type": "object", "description": "A virtual machine.", + "properties": { + "properties": { + "$ref": "#/definitions/LabVirtualMachineProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + } + }, "required": [ "properties" ], - "type": "object", "allOf": [ { "$ref": "#/definitions/Resource" } - ], - "properties": { - "properties": { - "$ref": "#/definitions/LabVirtualMachineProperties", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + ] }, "LabVirtualMachineCreationParameter": { - "description": "Properties for creating a virtual machine.", "type": "object", + "description": "Properties for creating a virtual machine.", "properties": { "properties": { "$ref": "#/definitions/LabVirtualMachineCreationParameterProperties", @@ -10515,270 +11420,262 @@ "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": { + "type": "boolean", "description": "Indicates whether the virtual machine is to be created without a public IP address.", - "default": false, - "type": "boolean" + "default": false }, "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": { + "type": "boolean", "description": "Indicates whether another user can take ownership of the virtual machine", - "default": false, - "type": "boolean" + "default": false }, "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" } } } }, - "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" } }, "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": { + "type": "boolean", "description": "Indicates whether the virtual machine is to be created without a public IP address.", - "default": false, - "type": "boolean" + "default": false }, "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 +11687,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 +11705,165 @@ "readOnly": true }, "expirationDate": { + "type": "string", "format": "date-time", - "description": "The expiration date for VM.", - "type": "string" + "description": "The expiration date for VM." }, "allowClaim": { + "type": "boolean", "description": "Indicates whether another user can take ownership of the virtual machine", - "default": false, - "type": "boolean" + "default": false }, "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" } }, "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", - "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 + "LinuxOsInfo": { + "type": "object", + "description": "Information about a Linux OS.", + "properties": { + "linuxOsState": { + "$ref": "#/definitions/LinuxOsState", + "description": "The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied)." + } + } + }, + "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" } - } + ] } }, - "LinuxOsInfoFragment": { - "description": "Information about a Linux OS.", - "type": "object", - "properties": {} - }, "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 +11871,208 @@ } } }, - "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" } + ] + }, + "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": { + "type": "string", "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 + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled" + }, + { + "name": "Disabled", + "value": "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,296 +12081,383 @@ } }, "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" } + ] + }, + "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" } @@ -11526,41 +12466,41 @@ "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": { + "type": "object", "description": "A schedule.", + "properties": { + "properties": { + "$ref": "#/definitions/ScheduleProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + } + }, "required": [ "properties" ], - "type": "object", "allOf": [ { "$ref": "#/definitions/Resource" } - ], - "properties": { - "properties": { - "$ref": "#/definitions/ScheduleProperties", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + ] }, "ScheduleCreationParameter": { - "description": "Properties for creating a schedule.", "type": "object", + "description": "Properties for creating a schedule.", "properties": { "properties": { "$ref": "#/definitions/ScheduleCreationParameterProperties", @@ -11568,48 +12508,53 @@ "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": { + "type": "string", "description": "The status of the schedule (i.e. Enabled, Disabled)", "default": "Disabled", "enum": [ "Enabled", "Disabled" ], - "type": "string", "x-ms-enum": { "name": "EnableStatus", - "modelAsString": true + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled" + }, + { + "name": "Disabled", + "value": "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 +12569,79 @@ "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": { + "type": "string", "description": "The status of the schedule (i.e. Enabled, Disabled)", "default": "Disabled", "enum": [ "Enabled", "Disabled" ], - "type": "string", "x-ms-enum": { "name": "EnableStatus", - "modelAsString": true + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled" + }, + { + "name": "Disabled", + "value": "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 +12656,164 @@ "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": { + "type": "object", "description": "A secret.", + "properties": { + "properties": { + "$ref": "#/definitions/SecretProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + } + }, "required": [ "properties" ], - "type": "object", "allOf": [ { "$ref": "#/definitions/Resource" } - ], - "properties": { - "properties": { - "$ref": "#/definitions/SecretProperties", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + ] }, "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": { + "type": "object", "description": "A Service Fabric.", + "properties": { + "properties": { + "$ref": "#/definitions/ServiceFabricProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + } + }, "required": [ "properties" ], - "type": "object", "allOf": [ { "$ref": "#/definitions/Resource" } - ], - "properties": { - "properties": { - "$ref": "#/definitions/ServiceFabricProperties", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + ] }, "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" } }, "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 +12821,365 @@ "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": { "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": "#/definitions/Resource" } - } + ] }, "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": [] } } }, - "SharedPublicIpAddressConfigurationFragment": { - "description": "Properties of a virtual machine that determine how it is connected to a load balancer.", - "type": "object", - "properties": {} + "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" + } + ] + } }, - "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 } - } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] }, "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 +13190,221 @@ "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 } - } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] }, "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..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,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" } 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..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 @@ -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" } 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..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,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" } 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..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,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" } 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..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,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" } 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..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 @@ -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" } 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..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,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" } 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..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,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" } 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..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,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" } 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..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 @@ -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" } 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..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,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" } 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..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,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" } 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..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,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" } 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..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,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" } 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..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,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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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,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" } 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..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,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" } 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..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": { + "name": "{diskName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "userName": "{userId}", - "name": "{diskName}" + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", + "userName": "@me" }, "responses": { "200": {}, @@ -15,5 +15,7 @@ } }, "204": {} - } + }, + "operationId": "Disks_Delete", + "title": "Disks_Delete" } 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..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,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" } 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..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,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" } 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..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,10 +1,9 @@ { "parameters": { "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{diskName}", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "{subscriptionId}", "userName": "@me" }, "responses": { @@ -12,16 +11,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 +29,7 @@ ] } } - } + }, + "operationId": "Disks_List", + "title": "Disks_List" } 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..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,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" } 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..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,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" } 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..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,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" } 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..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,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" } 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..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 @@ -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" } 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..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,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" } 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..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,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" } 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..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,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" } 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..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,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" } 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..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 @@ -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" } 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..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,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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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,40 @@ }, "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", + "title": "GlobalSchedules_ListBySubscription" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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,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" } 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..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,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" } 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..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,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" } 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..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,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" } 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..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,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" } 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..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,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" } 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..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,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" } 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..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,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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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,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" } 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..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,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" } 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..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,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" } 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..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,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" } 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..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,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" } 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..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 @@ -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" } 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..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,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" } 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..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,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" } 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..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 @@ -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" } 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" +} 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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,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" } 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/Schedules_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_CreateOrUpdate.json index 3da352bda297..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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,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" } 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..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,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" } 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..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,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" } 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..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 @@ -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" } 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..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,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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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,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" } 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..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,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" } 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..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,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" } 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..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 @@ -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" } 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..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,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" } 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..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,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" } 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..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,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" } 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..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,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" } 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..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,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" } 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..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,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" } 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..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,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" } 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..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,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" } 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..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,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" } 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..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,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" } 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..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 @@ -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" } 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..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,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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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,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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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 @@ -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" } 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..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,11 +1,20 @@ { "parameters": { + "name": "{virtualNetworkName}", "api-version": "2018-09-15", - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "resourceGroupName", "labName": "{labName}", - "name": "{virtualNetworkName}", + "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" @@ -15,14 +24,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 +39,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" } 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..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,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" } 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..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,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" } 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..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 @@ -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" } 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..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,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" } diff --git a/specification/devtestlabs/resource-manager/readme.md b/specification/devtestlabs/resource-manager/readme.md index 074a2ebbb7d9..7a8360e15665 100644 --- a/specification/devtestlabs/resource-manager/readme.md +++ b/specification/devtestlabs/resource-manager/readme.md @@ -37,6 +37,28 @@ 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: 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 + - code: PostResponseCodes + 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 ``` ### Tag: package-2016-05