From 13dc6c0b1424dfcaeb33d39ad026721d353777d0 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 30 May 2025 17:09:22 +0000 Subject: [PATCH 001/111] Add package.json --- eng/tools/api-doc-preview/package.json | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 eng/tools/api-doc-preview/package.json diff --git a/eng/tools/api-doc-preview/package.json b/eng/tools/api-doc-preview/package.json new file mode 100644 index 000000000000..aa093bfb752d --- /dev/null +++ b/eng/tools/api-doc-preview/package.json @@ -0,0 +1,21 @@ +{ + "name": "api-doc-preview", + "type": "module", + "private": true, + "main": "api-doc-preview.js", + "scripts": { + "test": "vitest", + "test:ci": "vitest run --coverage --reporter=verbose", + "prettier": "prettier \"**/*.js\" --check", + "prettier:debug": "prettier \"**/*.js\" --check ---log-level debug", + "prettier:write": "prettier \"**/*.js\" --write" + }, + "dependencies": { + "@azure-tools/specs-shared": "file:../../../.github/shared" + }, + "devDependencies": { + "prettier": "~3.5.3", + "vitest": "^3.0.2", + "@vitest/coverage-v8": "^3.0.2" + } +} From bb7d0243dc4c57e6463d74989993b8e70532fad2 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 30 May 2025 17:13:37 +0000 Subject: [PATCH 002/111] Enable eng/tools in JS --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 23e8f5dfc864..96c6b5add9fb 100644 --- a/.gitignore +++ b/.gitignore @@ -120,6 +120,7 @@ warnings.txt # Blanket ignores *.js !.github/**/*.js +!eng/tools/**/*.js *.d.ts *.js.map *.d.ts.map From 7c8ebe1f1d6d2fa8e5b45000c63c546944d56cf7 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 30 May 2025 17:13:43 +0000 Subject: [PATCH 003/111] First cut at direct port --- .../api-doc-preview/src/api-doc-preview.js | 133 ++++++++++++++ eng/tools/api-doc-preview/src/util.js | 164 ++++++++++++++++++ eng/tools/api-doc-preview/test/util.test.js | 57 ++++++ 3 files changed, 354 insertions(+) create mode 100644 eng/tools/api-doc-preview/src/api-doc-preview.js create mode 100644 eng/tools/api-doc-preview/src/util.js create mode 100644 eng/tools/api-doc-preview/test/util.test.js diff --git a/eng/tools/api-doc-preview/src/api-doc-preview.js b/eng/tools/api-doc-preview/src/api-doc-preview.js new file mode 100644 index 000000000000..08a76502468b --- /dev/null +++ b/eng/tools/api-doc-preview/src/api-doc-preview.js @@ -0,0 +1,133 @@ +import { join, resolve, dirname } from "path"; +import { fileURLToPath } from "url"; +import { parseArgs } from "util"; +import { mkdir, writeFile } from "fs/promises"; + +import { swagger, readFileList } from "@azure-tools/specs-shared/changed-files"; +import { filterAsync } from "@azure-tools/specs-shared/array"; + +import { + mappingJSONTemplate, + repoJSONTemplate, + indexMd, + pathExists, + getSwaggersToProcess, +} from "./util.js"; + +const __dirname = dirname(fileURLToPath(import.meta.url)); + +/** + * Displays usage information for the CLI tool + */ +function usage() { + console.log( + "Usage: api-doc-preview --changed-files-path --output [--spec-root ] [--build-id ] [--spec-repo-owner ] [--spec-repo-name ] [--spec-repo-pr-number ]", + ); + console.log("TODO"); +} + +/** + * Main entry point for the CLI tool. Parses arguments, processes changed files, and writes doc preview artifacts. + * @returns {Promise} + */ +async function main() { + const { + values: { + "changed-files-path": changedFilesPath, + output: outputDir, + "build-id": buildId, + "spec-repo-owner": specRepoOwner, + "spec-repo-name": specRepoName, + "spec-repo-pr-number": specRepoPrNumber, + "spec-repo-root": specRepoRoot, + }, + } = parseArgs({ + options: { + "changed-files-path": { type: "string" }, + output: { type: "string" }, + "build-id": { + type: "string", + default: process.env.UNIFIED_PIPELINE_BUILD_ID || "", + }, + "spec-repo-owner": { + type: "string", + default: process.env.SPEC_REPO_OWNER || "", + }, + "spec-repo-name": { + type: "string", + default: process.env.SPEC_REPO_NAME || "", + }, + "spec-repo-pr-number": { + type: "string", + default: process.env.SPEC_REPO_PULL_REQUEST_NUMBER || "", + }, + "spec-repo-root": { + type: "string", + default: resolve(__dirname, "../../../../"), + }, + }, + allowPositionals: false, + }); + + // TODO: Better validation + let validArgs = true; + if (!changedFilesPath) { + console.log("Missing required parameter --changed-files-path"); + validArgs = false; + } + + if (!outputDir) { + console.log("Missing required parameter --output"); + validArgs = false; + } + + if (!validArgs) { + usage(); + process.exitCode = 1; + return; + } + + // Get selected version and swaggers to process + + const changedFiles = await readFileList(changedFilesPath); + // TODO: `swagger` filter doesn't perfectly overlap with existing process. Determine if additional changes are needed to `swagger` check. + const swaggerPaths = changedFiles.filter(swagger); + const existingSwaggerFiles = await filterAsync( + swaggerPaths, + async (p) => await pathExists(resolve(specRepoRoot, p)), + ); + + if (existingSwaggerFiles.length === 0) { + console.log( + "No eligible swagger files found. No documentation artifacts will be written.", + ); + return; + } + + const { selectedVersion, swaggersToProcess } = + getSwaggersToProcess(existingSwaggerFiles); + + const key = { + owner: specRepoOwner, + repo: specRepoName, + prNumber: specRepoPrNumber, + }; + + await mkdir(outputDir, { recursive: true }); + await writeFile( + join(outputDir, "repo.json"), + JSON.stringify(repoJSONTemplate(key), null, 2), + ); + await writeFile( + join(outputDir, "mapping.json"), + JSON.stringify(mappingJSONTemplate(swaggersToProcess), null, 2), + ); + await writeFile(join(outputDir, "index.md"), indexMd(buildId, key)); + console.log(`Documentation preview artifacts written to ${outputDir}`); + + console.log(`Doc preview for API version ${selectedVersion} includes:`); + swaggersToProcess.forEach((swagger) => console.log(` - ${swagger}`)); + console.log(`Artifacts written to: ${outputDir}`); +} + +main(); diff --git a/eng/tools/api-doc-preview/src/util.js b/eng/tools/api-doc-preview/src/util.js new file mode 100644 index 000000000000..fce210de99ab --- /dev/null +++ b/eng/tools/api-doc-preview/src/util.js @@ -0,0 +1,164 @@ +import { access } from "fs/promises"; + +const DOCS_NAMESPACE = "_swagger_specs"; +const SPEC_FILE_REGEX = + "(specification/)+(.*)/(resourcemanager|resource-manager|dataplane|data-plane|control-plane)/(.*)/(preview|stable|privatepreview)/(.*?)/(example)?(.*)"; + +/** + * Extract swagger file metadata from path. + * @param {string} specPath + * @returns {{ + * path: string, + * serviceName: string, + * serviceType: string, + * resourceProvider: string, + * releaseState: string, + * apiVersion: string, + * fileName: string + * } | null} + */ +export function parseSwaggerFilePath(specPath) { + const m = specPath.match(SPEC_FILE_REGEX); + if (!m) { + console.log( + `Path "${specPath}" does not match expected swagger file pattern.`, + ); + return null; + } + const [ + path, + , + serviceName, + serviceType, + resourceProvider, + releaseState, + apiVersion, + , + fileName, + ] = m; + return { + path, + serviceName, + serviceType, + resourceProvider, + releaseState, + apiVersion, + fileName, + }; +} + +/** + * @param {{owner: string, repo: string, prNumber: string}} prKey + * @returns {object} + */ +export function repoJSONTemplate({ owner, repo, prNumber }) { + return { + repo: [ + { + url: `https://github.com/${owner}/${repo}`, + prNumber: prNumber, + name: DOCS_NAMESPACE, + }, + ], + }; +} + +/** + * @param {string[]} files + * @returns {object} + */ +export function mappingJSONTemplate(files) { + return { + target_api_root_dir: "structured", + enable_markdown_fragment: true, + markdown_fragment_folder: "authored", + use_yaml_toc: true, + formalize_url: true, + version_list: ["default"], + organizations: [ + { + index: "index.md", + default_toc_title: "Getting Started", + version: "default", + services: [ + { + toc_title: "Documentation Preview", + url_group: "documentation-preview", + swagger_files: files.map((source) => ({ + source: `${DOCS_NAMESPACE}/${source}`, + })), + }, + ], + }, + ], + }; +} + +/** + * @param {string} buildId + * @param {{owner: string, repo: string, prNumber: string}} key + * @returns {string} + */ +// TODO: Use aka.ms link for Teams channel +export function indexMd(buildId, { owner, repo, prNumber }) { + return `# Documentation Preview for swagger pipeline build #${buildId} + +Welcome to documentation preview for ${owner}/${repo}/pull/${prNumber} +created via the swagger pipeline. + +Your documentation may be viewed in the menu on the left hand side. + +If you have issues around documentation generation, please feel free to contact +us in the [Docs Support Teams Channel](https://teams.microsoft.com/l/channel/19%3A7506cc3e220f430ab89d992c7db5284f%40thread.skype/API%20Reference%20and%20Samples?groupId=de9ddba4-2574-4830-87ed-41668c07a1ca&tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47)`; +} + +/** + * Given a list of changed swagger files, select an API version and a list of + * swagger files in that API version to process. + * @param {string[]} swaggerFiles + **/ +export function getSwaggersToProcess(swaggerFiles) { + const swaggerFileObjs = swaggerFiles + .map(parseSwaggerFilePath) + .filter(Boolean); + + const versions = swaggerFileObjs.map((obj) => obj.apiVersion).filter(Boolean); + const uniqueVersions = [...new Set(versions)]; + if (uniqueVersions.length === 0) { + console.log( + "No API versions found in eligible swagger files. No documentation artifacts will be written.", + ); + return { selectedVersion: null, swaggersToProcess: [] }; + } + + let selectedVersion = uniqueVersions[0]; + if (uniqueVersions.length > 1) { + const sortedVersions = [...uniqueVersions].sort(); + selectedVersion = sortedVersions[sortedVersions.length - 1]; + console.log( + `Multiple API versions found: ${JSON.stringify(sortedVersions)}. Selected version: ${selectedVersion}`, + ); + } else { + console.log(`Single API version found: ${selectedVersion}`); + } + + const swaggersToProcess = swaggerFileObjs + .filter((obj) => obj.apiVersion === selectedVersion) + .map((obj) => obj.path); + + return { selectedVersion, swaggersToProcess }; +} + +/** + * Check if a path exists + * @param path Path to check for existence + * @returns true if the path exists, false otherwise + */ +export async function pathExists(path) { + try { + await access(path); + return true; + } catch { + return false; + } +} diff --git a/eng/tools/api-doc-preview/test/util.test.js b/eng/tools/api-doc-preview/test/util.test.js new file mode 100644 index 000000000000..d440b6f10887 --- /dev/null +++ b/eng/tools/api-doc-preview/test/util.test.js @@ -0,0 +1,57 @@ +import { test, describe, expect } from "vitest"; +import { parseSwaggerFilePath, getSwaggersToProcess } from "../src/util.js"; + +describe("parseSwaggerFilePath", () => { + test("returns null for invalid path", () => { + const result = parseSwaggerFilePath("invalid/path/to/swagger.json"); + expect(result).toBeNull(); + }); + + test("parses valid swagger file path", () => { + const path = + "specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json"; + const result = parseSwaggerFilePath(path); + + expect(result).toEqual({ + path: path, + serviceName: "batch", + serviceType: "data-plane", + resourceProvider: "Azure.Batch", + releaseState: "preview", + apiVersion: "2024-07-01.20.0", + fileName: "BatchService.json", + }); + }); +}); + +describe("getSwaggersToProcess", () => { + test("returns empty array for no files", () => { + const { selectedVersion, swaggersToProcess } = getSwaggersToProcess([]); + + expect(selectedVersion).toEqual(null); + expect(swaggersToProcess).toEqual([]); + }); + + test("returns swaggers to process for valid files", () => { + const files = [ + "specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json", + ]; + + const { selectedVersion, swaggersToProcess } = getSwaggersToProcess(files); + + expect(selectedVersion).toEqual("2024-07-01.20.0"); + expect(swaggersToProcess).toEqual(files); + }); + + test("selects the latest version from multiple files with multiple versions", () => { + const files = [ + "specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json", + "specification/batch/data-plane/Azure.Batch/preview/2025-06-01/BatchService.json", + ]; + + const { selectedVersion, swaggersToProcess } = getSwaggersToProcess(files); + + expect(selectedVersion).toEqual("2025-06-01"); + expect(swaggersToProcess).toEqual([files[1]]); + }); +}); From f9089e7fa1a5e527ce628e44c4d190a82e107478 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 30 May 2025 17:22:27 +0000 Subject: [PATCH 004/111] Wire up command, move some functions into changed-files.js --- .github/shared/src/changed-files.js | 30 +++++++++++++++++++ .../api-doc-preview/cmd/api-doc-preview.js | 3 ++ eng/tools/api-doc-preview/package.json | 3 ++ .../api-doc-preview/src/api-doc-preview.js | 7 ++--- eng/tools/api-doc-preview/src/util.js | 14 --------- 5 files changed, 38 insertions(+), 19 deletions(-) create mode 100755 eng/tools/api-doc-preview/cmd/api-doc-preview.js diff --git a/.github/shared/src/changed-files.js b/.github/shared/src/changed-files.js index 66ac8512e491..81be386d2cff 100644 --- a/.github/shared/src/changed-files.js +++ b/.github/shared/src/changed-files.js @@ -2,6 +2,7 @@ import debug from "debug"; import { simpleGit } from "simple-git"; +import { readFile, access } from "fs/promises"; // Enable simple-git debug logging to improve console output debug.enable("simple-git"); @@ -224,3 +225,32 @@ export function scenario(file) { typeof file === "string" && json(file) && specification(file) && file.includes("/scenarios/") ); } + +/** + * Given the path to a file return an array of strings where each entry in the + * array is a line in the file + * + * @param changedFilesPath Path to the file containing the list of changed files with one on each line + * @returns + */ +export async function readFileList(changedFilesPath) { + const data = await readFile(changedFilesPath, { encoding: "utf-8" }); + return data + .split("\n") + .map((line) => line.trim()) + .filter((line) => line.length > 0); +} + +/** + * Check if a path exists + * @param path Path to check for existence + * @returns true if the path exists, false otherwise + */ +export async function pathExists(path) { + try { + await access(path); + return true; + } catch { + return false; + } +} diff --git a/eng/tools/api-doc-preview/cmd/api-doc-preview.js b/eng/tools/api-doc-preview/cmd/api-doc-preview.js new file mode 100755 index 000000000000..3720133103d2 --- /dev/null +++ b/eng/tools/api-doc-preview/cmd/api-doc-preview.js @@ -0,0 +1,3 @@ +#!/usr/bin/env node +import { main } from "../src/api-doc-preview.js"; +await main(); diff --git a/eng/tools/api-doc-preview/package.json b/eng/tools/api-doc-preview/package.json index aa093bfb752d..82cc960b54a3 100644 --- a/eng/tools/api-doc-preview/package.json +++ b/eng/tools/api-doc-preview/package.json @@ -3,6 +3,9 @@ "type": "module", "private": true, "main": "api-doc-preview.js", + "bin": { + "api-doc-preview": "cmd/api-doc-preview.js" + }, "scripts": { "test": "vitest", "test:ci": "vitest run --coverage --reporter=verbose", diff --git a/eng/tools/api-doc-preview/src/api-doc-preview.js b/eng/tools/api-doc-preview/src/api-doc-preview.js index 08a76502468b..a8acccc34997 100644 --- a/eng/tools/api-doc-preview/src/api-doc-preview.js +++ b/eng/tools/api-doc-preview/src/api-doc-preview.js @@ -3,14 +3,13 @@ import { fileURLToPath } from "url"; import { parseArgs } from "util"; import { mkdir, writeFile } from "fs/promises"; -import { swagger, readFileList } from "@azure-tools/specs-shared/changed-files"; +import { swagger, readFileList, pathExists } from "@azure-tools/specs-shared/changed-files"; import { filterAsync } from "@azure-tools/specs-shared/array"; import { mappingJSONTemplate, repoJSONTemplate, indexMd, - pathExists, getSwaggersToProcess, } from "./util.js"; @@ -30,7 +29,7 @@ function usage() { * Main entry point for the CLI tool. Parses arguments, processes changed files, and writes doc preview artifacts. * @returns {Promise} */ -async function main() { +export async function main() { const { values: { "changed-files-path": changedFilesPath, @@ -129,5 +128,3 @@ async function main() { swaggersToProcess.forEach((swagger) => console.log(` - ${swagger}`)); console.log(`Artifacts written to: ${outputDir}`); } - -main(); diff --git a/eng/tools/api-doc-preview/src/util.js b/eng/tools/api-doc-preview/src/util.js index fce210de99ab..1d62cf426e90 100644 --- a/eng/tools/api-doc-preview/src/util.js +++ b/eng/tools/api-doc-preview/src/util.js @@ -148,17 +148,3 @@ export function getSwaggersToProcess(swaggerFiles) { return { selectedVersion, swaggersToProcess }; } - -/** - * Check if a path exists - * @param path Path to check for existence - * @returns true if the path exists, false otherwise - */ -export async function pathExists(path) { - try { - await access(path); - return true; - } catch { - return false; - } -} From 909e216e59a95a2d3b42a6991fae473294cbc4db Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Thu, 5 Jun 2025 22:21:01 +0000 Subject: [PATCH 005/111] Move, pipeline, refactor --- .../shared/cmd}/api-doc-preview.js | 42 ++++++----------- .github/shared/package.json | 3 +- .github/shared/src/changed-files.js | 4 +- .../shared/src/doc-preview.js | 10 ++--- .../shared/test/api-doc-preview-util.test.js | 2 +- eng/pipelines/swagger-api-doc-preview.yml | 45 +++++++++++++++++++ .../api-doc-preview/cmd/api-doc-preview.js | 3 -- 7 files changed, 68 insertions(+), 41 deletions(-) rename {eng/tools/api-doc-preview/src => .github/shared/cmd}/api-doc-preview.js (72%) mode change 100644 => 100755 rename eng/tools/api-doc-preview/src/util.js => .github/shared/src/doc-preview.js (93%) rename eng/tools/api-doc-preview/test/util.test.js => .github/shared/test/api-doc-preview-util.test.js (98%) create mode 100644 eng/pipelines/swagger-api-doc-preview.yml delete mode 100755 eng/tools/api-doc-preview/cmd/api-doc-preview.js diff --git a/eng/tools/api-doc-preview/src/api-doc-preview.js b/.github/shared/cmd/api-doc-preview.js old mode 100644 new mode 100755 similarity index 72% rename from eng/tools/api-doc-preview/src/api-doc-preview.js rename to .github/shared/cmd/api-doc-preview.js index a8acccc34997..f34ddc2ec8e9 --- a/eng/tools/api-doc-preview/src/api-doc-preview.js +++ b/.github/shared/cmd/api-doc-preview.js @@ -1,64 +1,50 @@ +#!/usr/bin/env node import { join, resolve, dirname } from "path"; import { fileURLToPath } from "url"; import { parseArgs } from "util"; import { mkdir, writeFile } from "fs/promises"; -import { swagger, readFileList, pathExists } from "@azure-tools/specs-shared/changed-files"; -import { filterAsync } from "@azure-tools/specs-shared/array"; +import { swagger, readFileList, pathExists } from "../src/changed-files.js"; +import { filterAsync } from "../src/array.js"; import { mappingJSONTemplate, repoJSONTemplate, indexMd, getSwaggersToProcess, -} from "./util.js"; +} from "../src/doc-preview.js"; const __dirname = dirname(fileURLToPath(import.meta.url)); -/** - * Displays usage information for the CLI tool - */ function usage() { console.log( "Usage: api-doc-preview --changed-files-path --output [--spec-root ] [--build-id ] [--spec-repo-owner ] [--spec-repo-name ] [--spec-repo-pr-number ]", ); - console.log("TODO"); } -/** - * Main entry point for the CLI tool. Parses arguments, processes changed files, and writes doc preview artifacts. - * @returns {Promise} - */ export async function main() { const { values: { - "changed-files-path": changedFilesPath, output: outputDir, "build-id": buildId, - "spec-repo-owner": specRepoOwner, "spec-repo-name": specRepoName, "spec-repo-pr-number": specRepoPrNumber, "spec-repo-root": specRepoRoot, }, } = parseArgs({ options: { - "changed-files-path": { type: "string" }, output: { type: "string" }, "build-id": { type: "string", - default: process.env.UNIFIED_PIPELINE_BUILD_ID || "", - }, - "spec-repo-owner": { - type: "string", - default: process.env.SPEC_REPO_OWNER || "", + default: process.env.BUILD_BUILDID || "", }, "spec-repo-name": { type: "string", - default: process.env.SPEC_REPO_NAME || "", + default: process.env.BUILD_REPOSITORY_NAME || "", }, "spec-repo-pr-number": { type: "string", - default: process.env.SPEC_REPO_PULL_REQUEST_NUMBER || "", + default: process.env.SYSTEM_PULLREQUEST_PULLREQUESTNUMBER || "", }, "spec-repo-root": { type: "string", @@ -70,10 +56,6 @@ export async function main() { // TODO: Better validation let validArgs = true; - if (!changedFilesPath) { - console.log("Missing required parameter --changed-files-path"); - validArgs = false; - } if (!outputDir) { console.log("Missing required parameter --output"); @@ -88,7 +70,12 @@ export async function main() { // Get selected version and swaggers to process - const changedFiles = await readFileList(changedFilesPath); + const changedFiles = await getChangedFiles({ cwd: specRepoRoot }); + console.log( + `Found ${changedFiles.length} changed files in ${specRepoRoot}`, + ); + console.log("Changed files:"); + changedFiles.forEach((file) => console.log(` - ${file}`)); // TODO: `swagger` filter doesn't perfectly overlap with existing process. Determine if additional changes are needed to `swagger` check. const swaggerPaths = changedFiles.filter(swagger); const existingSwaggerFiles = await filterAsync( @@ -107,8 +94,7 @@ export async function main() { getSwaggersToProcess(existingSwaggerFiles); const key = { - owner: specRepoOwner, - repo: specRepoName, + repoName: specRepoName, prNumber: specRepoPrNumber, }; diff --git a/.github/shared/package.json b/.github/shared/package.json index 5c94d416ddfb..e72286455b5d 100644 --- a/.github/shared/package.json +++ b/.github/shared/package.json @@ -22,7 +22,8 @@ "./test/examples": "./test/examples.js" }, "bin": { - "spec-model": "./cmd/spec-model.js" + "spec-model": "./cmd/spec-model.js", + "api-doc-preview": "cmd/api-doc-preview.js" }, "_comments": { "dependencies": "Runtime dependencies must be kept to an absolute minimum for performance, ideally with no transitive dependencies", diff --git a/.github/shared/src/changed-files.js b/.github/shared/src/changed-files.js index 81be386d2cff..bac9f8dfb71b 100644 --- a/.github/shared/src/changed-files.js +++ b/.github/shared/src/changed-files.js @@ -230,7 +230,7 @@ export function scenario(file) { * Given the path to a file return an array of strings where each entry in the * array is a line in the file * - * @param changedFilesPath Path to the file containing the list of changed files with one on each line + * @param {string} changedFilesPath Path to the file containing the list of changed files with one on each line * @returns */ export async function readFileList(changedFilesPath) { @@ -243,7 +243,7 @@ export async function readFileList(changedFilesPath) { /** * Check if a path exists - * @param path Path to check for existence + * @param {string} path Path to check for existence * @returns true if the path exists, false otherwise */ export async function pathExists(path) { diff --git a/eng/tools/api-doc-preview/src/util.js b/.github/shared/src/doc-preview.js similarity index 93% rename from eng/tools/api-doc-preview/src/util.js rename to .github/shared/src/doc-preview.js index 1d62cf426e90..41ba6de1bd34 100644 --- a/eng/tools/api-doc-preview/src/util.js +++ b/.github/shared/src/doc-preview.js @@ -1,5 +1,3 @@ -import { access } from "fs/promises"; - const DOCS_NAMESPACE = "_swagger_specs"; const SPEC_FILE_REGEX = "(specification/)+(.*)/(resourcemanager|resource-manager|dataplane|data-plane|control-plane)/(.*)/(preview|stable|privatepreview)/(.*?)/(example)?(.*)"; @@ -51,11 +49,11 @@ export function parseSwaggerFilePath(specPath) { * @param {{owner: string, repo: string, prNumber: string}} prKey * @returns {object} */ -export function repoJSONTemplate({ owner, repo, prNumber }) { +export function repoJSONTemplate({ repoName, prNumber }) { return { repo: [ { - url: `https://github.com/${owner}/${repo}`, + url: `https://github.com/${repoName}`, prNumber: prNumber, name: DOCS_NAMESPACE, }, @@ -100,10 +98,10 @@ export function mappingJSONTemplate(files) { * @returns {string} */ // TODO: Use aka.ms link for Teams channel -export function indexMd(buildId, { owner, repo, prNumber }) { +export function indexMd(buildId, { repoName, prNumber }) { return `# Documentation Preview for swagger pipeline build #${buildId} -Welcome to documentation preview for ${owner}/${repo}/pull/${prNumber} +Welcome to documentation preview for ${repoName}/pull/${prNumber} created via the swagger pipeline. Your documentation may be viewed in the menu on the left hand side. diff --git a/eng/tools/api-doc-preview/test/util.test.js b/.github/shared/test/api-doc-preview-util.test.js similarity index 98% rename from eng/tools/api-doc-preview/test/util.test.js rename to .github/shared/test/api-doc-preview-util.test.js index d440b6f10887..7dfa210ee347 100644 --- a/eng/tools/api-doc-preview/test/util.test.js +++ b/.github/shared/test/api-doc-preview-util.test.js @@ -1,5 +1,5 @@ import { test, describe, expect } from "vitest"; -import { parseSwaggerFilePath, getSwaggersToProcess } from "../src/util.js"; +import { parseSwaggerFilePath, getSwaggersToProcess } from "../src/api-doc-preview-util.js"; describe("parseSwaggerFilePath", () => { test("returns null for invalid path", () => { diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml new file mode 100644 index 000000000000..6e3fff53a51b --- /dev/null +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -0,0 +1,45 @@ +trigger: none +pr: + paths: + include: + - specification/** + +jobs: + - job: SwaggerApiDocPreview + variables: + - template: /eng/pipelines/templates/variables/globals.yml + + steps: + # TODO: Use sparse checkout instead + - checkout: self + + - template: /eng/common/pipelines/templates/steps/sparse-checkout.yml + parameters: + Paths: + - repo.json + - mapping.json + - index.md + Repositories: + - Name: MicrosoftDocs/AzureRestPreview + Commitish: refs/heads/doc-preview-migration-test + WorkingDirectory: AzureRestPreview + + - template: /eng/pipelines/templates/steps/npm-install.yml + + # TODO: Use variables for triggering repository instead of hardcoding + - script: | + npm exec --no api-doc-preview --output AzureRestPreview + displayName: 'Generate Swagger API documentation preview' + workingDirectory: .github/shared + + - template: /eng/common/pipelines/templates/steps/git-push-changes.yml + parameters: + WorkingDirectory: AzureRestPreview + TargetRepoOwner: MicrosoftDocs + TargetRepoName: AzureRestPreview + # TODO: Determine this value at runtime + BaseRepoBranch: doc-preview-migration-test-01 + + - script: echo "launch pipeline, await pipeline, download artifact from pipeline..." + + - script: echo "interpret results..." diff --git a/eng/tools/api-doc-preview/cmd/api-doc-preview.js b/eng/tools/api-doc-preview/cmd/api-doc-preview.js deleted file mode 100755 index 3720133103d2..000000000000 --- a/eng/tools/api-doc-preview/cmd/api-doc-preview.js +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env node -import { main } from "../src/api-doc-preview.js"; -await main(); From abb8b30fd1dc5b90b0823cc85f9239fdaafea233 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Thu, 5 Jun 2025 22:21:23 +0000 Subject: [PATCH 006/111] Trivial test change to a spec file --- .../Azure.Batch/preview/2024-07-01.20.0/BatchService.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json index d448b7cc8670..f87d31705b34 100644 --- a/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json +++ b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json @@ -3,7 +3,7 @@ "info": { "title": "Azure Batch", "version": "2024-07-01.20.0", - "description": "Azure Batch provides Cloud-scale job scheduling and compute management.", + "description": "Azure Batch provides Cloud-scale job scheduling and compute management. Trivial change to test.", "x-typespec-generated": [ { "emitter": "@azure-tools/typespec-autorest" From fc265e234c02193741ee0dc8afe4d5f96131e9d3 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Mon, 9 Jun 2025 19:27:56 +0000 Subject: [PATCH 007/111] Usage, logging, add pathExists to changed-files.js, types in doc-preview.js, coverage for doc-preview.js --- .github/shared/cmd/api-doc-preview.js | 22 ++- .github/shared/src/changed-files.js | 17 +- .github/shared/src/doc-preview.js | 9 +- .../shared/test/api-doc-preview-util.test.js | 57 ------- .github/shared/test/doc-preview.test.js | 147 ++++++++++++++++++ 5 files changed, 168 insertions(+), 84 deletions(-) delete mode 100644 .github/shared/test/api-doc-preview-util.test.js create mode 100644 .github/shared/test/doc-preview.test.js diff --git a/.github/shared/cmd/api-doc-preview.js b/.github/shared/cmd/api-doc-preview.js index f34ddc2ec8e9..39eb768b2504 100755 --- a/.github/shared/cmd/api-doc-preview.js +++ b/.github/shared/cmd/api-doc-preview.js @@ -4,7 +4,7 @@ import { fileURLToPath } from "url"; import { parseArgs } from "util"; import { mkdir, writeFile } from "fs/promises"; -import { swagger, readFileList, pathExists } from "../src/changed-files.js"; +import { swagger, getChangedFiles, pathExists } from "../src/changed-files.js"; import { filterAsync } from "../src/array.js"; import { @@ -17,9 +17,15 @@ import { const __dirname = dirname(fileURLToPath(import.meta.url)); function usage() { - console.log( - "Usage: api-doc-preview --changed-files-path --output [--spec-root ] [--build-id ] [--spec-repo-owner ] [--spec-repo-name ] [--spec-repo-pr-number ]", - ); + console.log(`Usage: +npx api-doc-preview --output + +parameters: + --output Directory to write documentation artifacts to. + --build-id Build ID, used in the documentation index. Defaults to BUILD_BUILDID environment variable. + --spec-repo-name Name of the repository containing the swagger files of the form /. Defaults to BUILD_REPOSITORY_NAME environment variable. + --spec-repo-pr-number PR number of the repository containing the swagger files. Defaults to SYSTEM_PULLREQUEST_PULLREQUESTNUMBER environment variable. + --spec-repo-root Root path of the repository containing the swagger files. Defaults to the root of the repository containing this script.`); } export async function main() { @@ -58,7 +64,7 @@ export async function main() { let validArgs = true; if (!outputDir) { - console.log("Missing required parameter --output"); + console.log(`Missing required parameter --output. Value given: ${outputDir || ''}`); validArgs = false; } @@ -71,9 +77,7 @@ export async function main() { // Get selected version and swaggers to process const changedFiles = await getChangedFiles({ cwd: specRepoRoot }); - console.log( - `Found ${changedFiles.length} changed files in ${specRepoRoot}`, - ); + console.log(`Found ${changedFiles.length} changed files in ${specRepoRoot}`); console.log("Changed files:"); changedFiles.forEach((file) => console.log(` - ${file}`)); // TODO: `swagger` filter doesn't perfectly overlap with existing process. Determine if additional changes are needed to `swagger` check. @@ -114,3 +118,5 @@ export async function main() { swaggersToProcess.forEach((swagger) => console.log(` - ${swagger}`)); console.log(`Artifacts written to: ${outputDir}`); } + +await main(); \ No newline at end of file diff --git a/.github/shared/src/changed-files.js b/.github/shared/src/changed-files.js index bac9f8dfb71b..fa538566c6fc 100644 --- a/.github/shared/src/changed-files.js +++ b/.github/shared/src/changed-files.js @@ -2,7 +2,7 @@ import debug from "debug"; import { simpleGit } from "simple-git"; -import { readFile, access } from "fs/promises"; +import { access } from "fs/promises"; // Enable simple-git debug logging to improve console output debug.enable("simple-git"); @@ -226,21 +226,6 @@ export function scenario(file) { ); } -/** - * Given the path to a file return an array of strings where each entry in the - * array is a line in the file - * - * @param {string} changedFilesPath Path to the file containing the list of changed files with one on each line - * @returns - */ -export async function readFileList(changedFilesPath) { - const data = await readFile(changedFilesPath, { encoding: "utf-8" }); - return data - .split("\n") - .map((line) => line.trim()) - .filter((line) => line.length > 0); -} - /** * Check if a path exists * @param {string} path Path to check for existence diff --git a/.github/shared/src/doc-preview.js b/.github/shared/src/doc-preview.js index 41ba6de1bd34..d01e456d814c 100644 --- a/.github/shared/src/doc-preview.js +++ b/.github/shared/src/doc-preview.js @@ -46,7 +46,7 @@ export function parseSwaggerFilePath(specPath) { } /** - * @param {{owner: string, repo: string, prNumber: string}} prKey + * @param {{repoName: string, prNumber: string}} prKey * @returns {object} */ export function repoJSONTemplate({ repoName, prNumber }) { @@ -94,7 +94,7 @@ export function mappingJSONTemplate(files) { /** * @param {string} buildId - * @param {{owner: string, repo: string, prNumber: string}} key + * @param {{repoName: string, prNumber: string}} key * @returns {string} */ // TODO: Use aka.ms link for Teams channel @@ -116,9 +116,12 @@ us in the [Docs Support Teams Channel](https://teams.microsoft.com/l/channel/19% * @param {string[]} swaggerFiles **/ export function getSwaggersToProcess(swaggerFiles) { + // swaggerFileObjs never has any `null` elements, otherwise, returns the + // output type of `parseSwaggerFilePath`. + /** @type {Exclude, null>[]} */ const swaggerFileObjs = swaggerFiles .map(parseSwaggerFilePath) - .filter(Boolean); + .filter((obj) => obj !== null); const versions = swaggerFileObjs.map((obj) => obj.apiVersion).filter(Boolean); const uniqueVersions = [...new Set(versions)]; diff --git a/.github/shared/test/api-doc-preview-util.test.js b/.github/shared/test/api-doc-preview-util.test.js deleted file mode 100644 index 7dfa210ee347..000000000000 --- a/.github/shared/test/api-doc-preview-util.test.js +++ /dev/null @@ -1,57 +0,0 @@ -import { test, describe, expect } from "vitest"; -import { parseSwaggerFilePath, getSwaggersToProcess } from "../src/api-doc-preview-util.js"; - -describe("parseSwaggerFilePath", () => { - test("returns null for invalid path", () => { - const result = parseSwaggerFilePath("invalid/path/to/swagger.json"); - expect(result).toBeNull(); - }); - - test("parses valid swagger file path", () => { - const path = - "specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json"; - const result = parseSwaggerFilePath(path); - - expect(result).toEqual({ - path: path, - serviceName: "batch", - serviceType: "data-plane", - resourceProvider: "Azure.Batch", - releaseState: "preview", - apiVersion: "2024-07-01.20.0", - fileName: "BatchService.json", - }); - }); -}); - -describe("getSwaggersToProcess", () => { - test("returns empty array for no files", () => { - const { selectedVersion, swaggersToProcess } = getSwaggersToProcess([]); - - expect(selectedVersion).toEqual(null); - expect(swaggersToProcess).toEqual([]); - }); - - test("returns swaggers to process for valid files", () => { - const files = [ - "specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json", - ]; - - const { selectedVersion, swaggersToProcess } = getSwaggersToProcess(files); - - expect(selectedVersion).toEqual("2024-07-01.20.0"); - expect(swaggersToProcess).toEqual(files); - }); - - test("selects the latest version from multiple files with multiple versions", () => { - const files = [ - "specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json", - "specification/batch/data-plane/Azure.Batch/preview/2025-06-01/BatchService.json", - ]; - - const { selectedVersion, swaggersToProcess } = getSwaggersToProcess(files); - - expect(selectedVersion).toEqual("2025-06-01"); - expect(swaggersToProcess).toEqual([files[1]]); - }); -}); diff --git a/.github/shared/test/doc-preview.test.js b/.github/shared/test/doc-preview.test.js new file mode 100644 index 000000000000..9bace5eed012 --- /dev/null +++ b/.github/shared/test/doc-preview.test.js @@ -0,0 +1,147 @@ +import { test, describe, expect } from "vitest"; +import { + parseSwaggerFilePath, + getSwaggersToProcess, + indexMd, + mappingJSONTemplate, + repoJSONTemplate, +} from "../src/doc-preview.js"; + +describe("parseSwaggerFilePath", () => { + test("returns null for invalid path", () => { + const result = parseSwaggerFilePath("invalid/path/to/swagger.json"); + expect(result).toBeNull(); + }); + + test("parses valid swagger file path", () => { + const path = + "specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json"; + const result = parseSwaggerFilePath(path); + + expect(result).toEqual({ + path: path, + serviceName: "batch", + serviceType: "data-plane", + resourceProvider: "Azure.Batch", + releaseState: "preview", + apiVersion: "2024-07-01.20.0", + fileName: "BatchService.json", + }); + }); +}); + +describe("getSwaggersToProcess", () => { + test("returns empty array for no files", () => { + const { selectedVersion, swaggersToProcess } = getSwaggersToProcess([]); + + expect(selectedVersion).toEqual(null); + expect(swaggersToProcess).toEqual([]); + }); + + test("returns swaggers to process for valid files", () => { + const files = [ + "specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json", + ]; + + const { selectedVersion, swaggersToProcess } = getSwaggersToProcess(files); + + expect(selectedVersion).toEqual("2024-07-01.20.0"); + expect(swaggersToProcess).toEqual(files); + }); + + test("selects the latest version from multiple files with multiple versions", () => { + const files = [ + "specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json", + "specification/batch/data-plane/Azure.Batch/preview/2025-06-01/BatchService.json", + ]; + + const { selectedVersion, swaggersToProcess } = getSwaggersToProcess(files); + + expect(selectedVersion).toEqual("2025-06-01"); + expect(swaggersToProcess).toEqual([files[1]]); + }); +}); + +describe("repoJSONTemplate", () => { + test("matches snapshot", () => { + const actual = repoJSONTemplate({ + repoName: "test-repo", + prNumber: "1234", + }); + + expect(actual).toMatchInlineSnapshot(` + { + "repo": [ + { + "name": "_swagger_specs", + "prNumber": "1234", + "url": "https://github.com/test-repo", + }, + ], + } + `); + }); +}); + +describe("mappingJSONTemplate", () => { + test("matches snapshot", () => { + const swaggers = [ + "specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json", + ]; + const actual = mappingJSONTemplate(swaggers); + + expect(actual).toMatchInlineSnapshot(` + { + "enable_markdown_fragment": true, + "formalize_url": true, + "markdown_fragment_folder": "authored", + "organizations": [ + { + "default_toc_title": "Getting Started", + "index": "index.md", + "services": [ + { + "swagger_files": [ + { + "source": "_swagger_specs/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json", + }, + ], + "toc_title": "Documentation Preview", + "url_group": "documentation-preview", + }, + ], + "version": "default", + }, + ], + "target_api_root_dir": "structured", + "use_yaml_toc": true, + "version_list": [ + "default", + ], + } + `); + }); +}); + +describe("indexMd", () => { + test("matches snapshot", () => { + const buildId = "build-123"; + const key = { + repoName: "test-repo", + prNumber: "1234", + }; + const actual = indexMd(buildId, key); + + expect(actual).toMatchInlineSnapshot(` + "# Documentation Preview for swagger pipeline build #build-123 + + Welcome to documentation preview for test-repo/pull/1234 + created via the swagger pipeline. + + Your documentation may be viewed in the menu on the left hand side. + + If you have issues around documentation generation, please feel free to contact + us in the [Docs Support Teams Channel](https://teams.microsoft.com/l/channel/19%3A7506cc3e220f430ab89d992c7db5284f%40thread.skype/API%20Reference%20and%20Samples?groupId=de9ddba4-2574-4830-87ed-41668c07a1ca&tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47)" + `); + }); +}); From f1485eaa920b2df268d935053e6f934ee831f545 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Mon, 9 Jun 2025 20:40:07 +0000 Subject: [PATCH 008/111] Prettier --- .github/shared/cmd/api-doc-preview.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/shared/cmd/api-doc-preview.js b/.github/shared/cmd/api-doc-preview.js index 39eb768b2504..789bda6bce68 100755 --- a/.github/shared/cmd/api-doc-preview.js +++ b/.github/shared/cmd/api-doc-preview.js @@ -64,7 +64,9 @@ export async function main() { let validArgs = true; if (!outputDir) { - console.log(`Missing required parameter --output. Value given: ${outputDir || ''}`); + console.log( + `Missing required parameter --output. Value given: ${outputDir || ""}`, + ); validArgs = false; } @@ -119,4 +121,4 @@ export async function main() { console.log(`Artifacts written to: ${outputDir}`); } -await main(); \ No newline at end of file +await main(); From 3cad9ae637613ff0dbd07e8494cc0356aa34b7e9 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Thu, 12 Jun 2025 03:51:21 +0000 Subject: [PATCH 009/111] SkipCheckoutNone --- eng/pipelines/swagger-api-doc-preview.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 6e3fff53a51b..9c6ad1af3cec 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -9,12 +9,13 @@ jobs: variables: - template: /eng/pipelines/templates/variables/globals.yml - steps: + steps: # TODO: Use sparse checkout instead - checkout: self - template: /eng/common/pipelines/templates/steps/sparse-checkout.yml parameters: + SkipCheckoutNone: true Paths: - repo.json - mapping.json From ef1e1bd456b123b968c428c7f602590efe64620d Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Thu, 12 Jun 2025 03:58:14 +0000 Subject: [PATCH 010/111] Git token auth --- eng/pipelines/swagger-api-doc-preview.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 9c6ad1af3cec..2a0f3374a735 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -16,6 +16,7 @@ jobs: - template: /eng/common/pipelines/templates/steps/sparse-checkout.yml parameters: SkipCheckoutNone: true + TokenToUseForAuth: $(azuresdk-github-pat) Paths: - repo.json - mapping.json From ebb9b995b031d5be11c3b66ac7c6c7f755863f8c Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Thu, 12 Jun 2025 04:01:31 +0000 Subject: [PATCH 011/111] -- --- eng/pipelines/swagger-api-doc-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 2a0f3374a735..52b244b5add2 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -30,7 +30,7 @@ jobs: # TODO: Use variables for triggering repository instead of hardcoding - script: | - npm exec --no api-doc-preview --output AzureRestPreview + npm exec --no -- api-doc-preview --output AzureRestPreview displayName: 'Generate Swagger API documentation preview' workingDirectory: .github/shared From 2a627e8936816691d576f9189f06063ae923892a Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 18 Jun 2025 18:46:57 +0000 Subject: [PATCH 012/111] ../ --- .github/shared/cmd/api-doc-preview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/shared/cmd/api-doc-preview.js b/.github/shared/cmd/api-doc-preview.js index 789bda6bce68..1ec5af5dc902 100755 --- a/.github/shared/cmd/api-doc-preview.js +++ b/.github/shared/cmd/api-doc-preview.js @@ -54,7 +54,7 @@ export async function main() { }, "spec-repo-root": { type: "string", - default: resolve(__dirname, "../../../../"), + default: resolve(__dirname, "../../../"), }, }, allowPositionals: false, From 99387fdf1b63dde7f279775fc9d018a777136582 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 18 Jun 2025 18:49:37 +0000 Subject: [PATCH 013/111] Pool --- eng/pipelines/swagger-api-doc-preview.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 52b244b5add2..d5a72df12b9e 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -6,8 +6,15 @@ pr: jobs: - job: SwaggerApiDocPreview + + pool: + name: $(LINUXPOOL) + vmImage: $(LINUXVMIMAGE) + os: linux + variables: - template: /eng/pipelines/templates/variables/globals.yml + - template: /eng/pipelines/templates/variables/image.yml steps: # TODO: Use sparse checkout instead From 8dae139961c6007b2caaffc967a6133e46ff1a30 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 18 Jun 2025 18:54:57 +0000 Subject: [PATCH 014/111] fetchDepth: 2 --- eng/pipelines/swagger-api-doc-preview.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index d5a72df12b9e..c07341093b74 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -19,6 +19,7 @@ jobs: steps: # TODO: Use sparse checkout instead - checkout: self + fetchDepth: 2 - template: /eng/common/pipelines/templates/steps/sparse-checkout.yml parameters: From 8a31cc7bad8be9b00680a846c323d78cc35dfff4 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 18 Jun 2025 19:04:08 +0000 Subject: [PATCH 015/111] Get-ChildItem --- eng/pipelines/swagger-api-doc-preview.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index c07341093b74..27f2958247a2 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -34,6 +34,9 @@ jobs: Commitish: refs/heads/doc-preview-migration-test WorkingDirectory: AzureRestPreview + - pwsh: Get-ChildItem * + workingDirectory: AzureRestPreview + - template: /eng/pipelines/templates/steps/npm-install.yml # TODO: Use variables for triggering repository instead of hardcoding From 7fd80bdc960c7f54f889d84eadaa2fd8935ac5f9 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 18 Jun 2025 19:12:02 +0000 Subject: [PATCH 016/111] More logging --- eng/pipelines/swagger-api-doc-preview.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 27f2958247a2..95691a73fb5d 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -34,7 +34,7 @@ jobs: Commitish: refs/heads/doc-preview-migration-test WorkingDirectory: AzureRestPreview - - pwsh: Get-ChildItem * + - pwsh: Get-ChildItem * | Select-Object -Property FullName workingDirectory: AzureRestPreview - template: /eng/pipelines/templates/steps/npm-install.yml @@ -45,6 +45,12 @@ jobs: displayName: 'Generate Swagger API documentation preview' workingDirectory: .github/shared + - script: | + pwd + ls -lh + git diff --name-only + workingDirectory: AzureRestPreview + - template: /eng/common/pipelines/templates/steps/git-push-changes.yml parameters: WorkingDirectory: AzureRestPreview From 3b1fc648918663d05ed8bc6876f2829892b0a932 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 18 Jun 2025 19:23:23 +0000 Subject: [PATCH 017/111] Directory --- eng/pipelines/swagger-api-doc-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 95691a73fb5d..f6f72d8f8ea1 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -41,7 +41,7 @@ jobs: # TODO: Use variables for triggering repository instead of hardcoding - script: | - npm exec --no -- api-doc-preview --output AzureRestPreview + npm exec --no -- api-doc-preview --output $(System.DefaultWorkingDirectory)/AzureRestPreview displayName: 'Generate Swagger API documentation preview' workingDirectory: .github/shared From 87b04808aadda73ba3c2d042f9df36bd3cad2a05 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 18 Jun 2025 19:28:52 +0000 Subject: [PATCH 018/111] BaseRepoOwner --- eng/pipelines/swagger-api-doc-preview.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index f6f72d8f8ea1..a7c6238990b2 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -54,6 +54,7 @@ jobs: - template: /eng/common/pipelines/templates/steps/git-push-changes.yml parameters: WorkingDirectory: AzureRestPreview + BaseRepoOwner: MicrosoftDocs TargetRepoOwner: MicrosoftDocs TargetRepoName: AzureRestPreview # TODO: Determine this value at runtime From 36a8d4a510b5f3170b6ca70d235fefbb59fd5097 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Thu, 3 Jul 2025 04:17:22 +0000 Subject: [PATCH 019/111] Cleanup --- eng/pipelines/swagger-api-doc-preview.yml | 33 +++++++++++++---------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index a7c6238990b2..5aaf25b0dda2 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -19,24 +19,20 @@ jobs: steps: # TODO: Use sparse checkout instead - checkout: self + # Fetch depth required to get list of changed files fetchDepth: 2 - template: /eng/common/pipelines/templates/steps/sparse-checkout.yml parameters: SkipCheckoutNone: true TokenToUseForAuth: $(azuresdk-github-pat) - Paths: - - repo.json - - mapping.json - - index.md + # Path does not need to be set because sparse-checkout.yml already + # checks out files in the repo root Repositories: - Name: MicrosoftDocs/AzureRestPreview Commitish: refs/heads/doc-preview-migration-test WorkingDirectory: AzureRestPreview - - pwsh: Get-ChildItem * | Select-Object -Property FullName - workingDirectory: AzureRestPreview - - template: /eng/pipelines/templates/steps/npm-install.yml # TODO: Use variables for triggering repository instead of hardcoding @@ -45,12 +41,6 @@ jobs: displayName: 'Generate Swagger API documentation preview' workingDirectory: .github/shared - - script: | - pwd - ls -lh - git diff --name-only - workingDirectory: AzureRestPreview - - template: /eng/common/pipelines/templates/steps/git-push-changes.yml parameters: WorkingDirectory: AzureRestPreview @@ -59,7 +49,22 @@ jobs: TargetRepoName: AzureRestPreview # TODO: Determine this value at runtime BaseRepoBranch: doc-preview-migration-test-01 + CommitMsg: | + Update API Doc Preview + Build: $(System.CollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId) + PR: $(System.PullRequest.SourceRepositoryURI)/pull/$(System.PullRequest.PullRequestId) - - script: echo "launch pipeline, await pipeline, download artifact from pipeline..." + - task: AzureCLI@2 + displayName: Start and wait for docs build + inputs: + azureSubscription: msdocs-apidrop-connection + scriptType: bash + scriptLocation: inlineScript + inlineScript: >- + az pipelines build queue + --organization "https://dev.azure.com/apidrop/" + --project "Content CI" + --definition-id "8120" + --variables 'params={"target_repo":{"url":"https://github.com/MicrosoftDocs/AzureRestPreview","branch":"doc-preview-migration-test-01"}, "source_of_truth": "code"}' - script: echo "interpret results..." From 2e2cae3de564957cc29473e31ce2631ccb0630d4 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Thu, 3 Jul 2025 04:17:37 +0000 Subject: [PATCH 020/111] 02 --- eng/pipelines/swagger-api-doc-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 5aaf25b0dda2..dbb48adb901f 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -48,7 +48,7 @@ jobs: TargetRepoOwner: MicrosoftDocs TargetRepoName: AzureRestPreview # TODO: Determine this value at runtime - BaseRepoBranch: doc-preview-migration-test-01 + BaseRepoBranch: doc-preview-migration-test-02 CommitMsg: | Update API Doc Preview Build: $(System.CollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId) From 97933ba6ce57f46597868d0eb64d13420ad23a08 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Thu, 3 Jul 2025 04:18:52 +0000 Subject: [PATCH 021/111] Comment --- eng/pipelines/swagger-api-doc-preview.yml | 24 +++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index dbb48adb901f..7ec9ca22cf91 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -54,17 +54,17 @@ jobs: Build: $(System.CollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId) PR: $(System.PullRequest.SourceRepositoryURI)/pull/$(System.PullRequest.PullRequestId) - - task: AzureCLI@2 - displayName: Start and wait for docs build - inputs: - azureSubscription: msdocs-apidrop-connection - scriptType: bash - scriptLocation: inlineScript - inlineScript: >- - az pipelines build queue - --organization "https://dev.azure.com/apidrop/" - --project "Content CI" - --definition-id "8120" - --variables 'params={"target_repo":{"url":"https://github.com/MicrosoftDocs/AzureRestPreview","branch":"doc-preview-migration-test-01"}, "source_of_truth": "code"}' + # - task: AzureCLI@2 + # displayName: Start and wait for docs build + # inputs: + # azureSubscription: msdocs-apidrop-connection + # scriptType: bash + # scriptLocation: inlineScript + # inlineScript: >- + # az pipelines build queue + # --organization "https://dev.azure.com/apidrop/" + # --project "Content CI" + # --definition-id "8120" + # --variables 'params={"target_repo":{"url":"https://github.com/MicrosoftDocs/AzureRestPreview","branch":"doc-preview-migration-test-01"}, "source_of_truth": "code"}' - script: echo "interpret results..." From 91f2706f7994e87108ef5df46073eb2791935358 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Thu, 3 Jul 2025 04:23:22 +0000 Subject: [PATCH 022/111] Test a change that should break the docs build --- .../Azure.Batch/preview/2024-07-01.20.0/BatchService.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json index f87d31705b34..9adeeab327e4 100644 --- a/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json +++ b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json @@ -3,7 +3,7 @@ "info": { "title": "Azure Batch", "version": "2024-07-01.20.0", - "description": "Azure Batch provides Cloud-scale job scheduling and compute management. Trivial change to test.", + "description": "Azure Batch provides Cloud-scale job scheduling and compute management. Trivial change to test. Test breaking, "x-typespec-generated": [ { "emitter": "@azure-tools/typespec-autorest" From f164da22c0dd94c7f36d6eb6b42bd348ae31ddb6 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Thu, 3 Jul 2025 04:28:44 +0000 Subject: [PATCH 023/111] Queue docs build --- eng/pipelines/swagger-api-doc-preview.yml | 24 +++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 7ec9ca22cf91..dbb48adb901f 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -54,17 +54,17 @@ jobs: Build: $(System.CollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId) PR: $(System.PullRequest.SourceRepositoryURI)/pull/$(System.PullRequest.PullRequestId) - # - task: AzureCLI@2 - # displayName: Start and wait for docs build - # inputs: - # azureSubscription: msdocs-apidrop-connection - # scriptType: bash - # scriptLocation: inlineScript - # inlineScript: >- - # az pipelines build queue - # --organization "https://dev.azure.com/apidrop/" - # --project "Content CI" - # --definition-id "8120" - # --variables 'params={"target_repo":{"url":"https://github.com/MicrosoftDocs/AzureRestPreview","branch":"doc-preview-migration-test-01"}, "source_of_truth": "code"}' + - task: AzureCLI@2 + displayName: Start and wait for docs build + inputs: + azureSubscription: msdocs-apidrop-connection + scriptType: bash + scriptLocation: inlineScript + inlineScript: >- + az pipelines build queue + --organization "https://dev.azure.com/apidrop/" + --project "Content CI" + --definition-id "8120" + --variables 'params={"target_repo":{"url":"https://github.com/MicrosoftDocs/AzureRestPreview","branch":"doc-preview-migration-test-01"}, "source_of_truth": "code"}' - script: echo "interpret results..." From 8b8e43ffbc77322b57731b6e4adb64945cff8cc2 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Thu, 3 Jul 2025 04:29:15 +0000 Subject: [PATCH 024/111] 02 --- eng/pipelines/swagger-api-doc-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index dbb48adb901f..339784f29c1d 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -65,6 +65,6 @@ jobs: --organization "https://dev.azure.com/apidrop/" --project "Content CI" --definition-id "8120" - --variables 'params={"target_repo":{"url":"https://github.com/MicrosoftDocs/AzureRestPreview","branch":"doc-preview-migration-test-01"}, "source_of_truth": "code"}' + --variables 'params={"target_repo":{"url":"https://github.com/MicrosoftDocs/AzureRestPreview","branch":"doc-preview-migration-test-02"}, "source_of_truth": "code"}' - script: echo "interpret results..." From 32bbcf7abf0f66a7430d5bbd369178b80a886c8a Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Thu, 3 Jul 2025 04:40:21 +0000 Subject: [PATCH 025/111] Tab --- eng/pipelines/swagger-api-doc-preview.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 339784f29c1d..3086ad1c2c66 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -62,9 +62,9 @@ jobs: scriptLocation: inlineScript inlineScript: >- az pipelines build queue - --organization "https://dev.azure.com/apidrop/" - --project "Content CI" - --definition-id "8120" - --variables 'params={"target_repo":{"url":"https://github.com/MicrosoftDocs/AzureRestPreview","branch":"doc-preview-migration-test-02"}, "source_of_truth": "code"}' + --organization "https://dev.azure.com/apidrop/" + --project "Content CI" + --definition-id "8120" + --variables 'params={"target_repo":{"url":"https://github.com/MicrosoftDocs/AzureRestPreview","branch":"doc-preview-migration-test-02"}, "source_of_truth": "code"}' - script: echo "interpret results..." From 8fcf1a00ffb902e28f03f0bc1ff25d1f65b716cd Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Mon, 7 Jul 2025 18:36:12 +0000 Subject: [PATCH 026/111] Add wait and result output --- eng/pipelines/swagger-api-doc-preview.yml | 42 ++++++--- eng/scripts/api-doc-preview-interpret.mjs | 71 ++++++++++++++ eng/scripts/api-doc-preview-wait.mjs | 109 ++++++++++++++++++++++ 3 files changed, 209 insertions(+), 13 deletions(-) create mode 100644 eng/scripts/api-doc-preview-interpret.mjs create mode 100755 eng/scripts/api-doc-preview-wait.mjs diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 3086ad1c2c66..dc10ae5ef6d3 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -1,6 +1,6 @@ trigger: none pr: - paths: + paths: include: - specification/** @@ -11,11 +11,13 @@ jobs: name: $(LINUXPOOL) vmImage: $(LINUXVMIMAGE) os: linux - + variables: - template: /eng/pipelines/templates/variables/globals.yml - template: /eng/pipelines/templates/variables/image.yml - + - name: BranchName + value: preview/$(Build.Repository.Name)/pr/$(System.PullRequest.PullRequestId)/build/$(Build.BuildId)/attempt/$(System.JobAttempt) + steps: # TODO: Use sparse checkout instead - checkout: self @@ -30,6 +32,7 @@ jobs: # checks out files in the repo root Repositories: - Name: MicrosoftDocs/AzureRestPreview + # TODO: use main Commitish: refs/heads/doc-preview-migration-test WorkingDirectory: AzureRestPreview @@ -48,23 +51,36 @@ jobs: TargetRepoOwner: MicrosoftDocs TargetRepoName: AzureRestPreview # TODO: Determine this value at runtime - BaseRepoBranch: doc-preview-migration-test-02 + BaseRepoBranch: $(BranchName) CommitMsg: | Update API Doc Preview - Build: $(System.CollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId) + Build: $(System.CollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId) PR: $(System.PullRequest.SourceRepositoryURI)/pull/$(System.PullRequest.PullRequestId) - + - task: AzureCLI@2 - displayName: Start and wait for docs build + displayName: Start docs build inputs: azureSubscription: msdocs-apidrop-connection scriptType: bash scriptLocation: inlineScript inlineScript: >- - az pipelines build queue - --organization "https://dev.azure.com/apidrop/" - --project "Content CI" - --definition-id "8120" - --variables 'params={"target_repo":{"url":"https://github.com/MicrosoftDocs/AzureRestPreview","branch":"doc-preview-migration-test-02"}, "source_of_truth": "code"}' + az pipelines build queue + --organization "https://dev.azure.com/apidrop/" + --project "Content CI" + --definition-id "8120" + --variables 'params={"target_repo":{"url":"https://github.com/MicrosoftDocs/AzureRestPreview","branch":"$(BranchName)"}, "source_of_truth": "code"}' + > buildstart.json + + - task: AzureCLI@2 + displayName: Wait for docs build to finish + # Retry on failure to handle transient issues or builds that run longer + # than the token used by az CLI is valid + retryCountOnTaskFailure: 3 + inputs: + azureSubscription: msdocs-apidrop-connection + scriptType: bash + scriptLocation: scriptPath + scriptPath: eng/scripts/api-doc-preview-wait.mjs - - script: echo "interpret results..." + - script: eng/scripts/api-doc-preview-interpret.mjs + displayName: Output results diff --git a/eng/scripts/api-doc-preview-interpret.mjs b/eng/scripts/api-doc-preview-interpret.mjs new file mode 100644 index 000000000000..766a7c338b8f --- /dev/null +++ b/eng/scripts/api-doc-preview-interpret.mjs @@ -0,0 +1,71 @@ +#!/usr/bin/env node +import { resolve, dirname } from "path"; +import { fileURLToPath } from "url"; +import { parseArgs } from "util"; +import { readFile } from "fs"; + +const __dirname = dirname(fileURLToPath(import.meta.url)); + +function usage() { + console.log(`Usage: +npx api-doc-preview-interpret --input --build-start + +parameters: + --report Path to the build start JSON file. Defaults to "report.json" at repo root. + --build-start Path to the build start JSON file. Defaults to "buildstart.json" at repo root. +`); +} + +export async function main() { + const { + values: { + "report": resultArtifactPath, + "build-start": buildStartPath, + }, + } = parseArgs({ + options: { + "report": { + type: "string", + default: resolve(__dirname, "../../report.json"), + }, + "build-start": { + type: "string", + default: resolve(__dirname, "../../buildstart.json"), + }, + }, + allowPositionals: false, + }); + + let resultArtifactData, resultArtifactRaw; + try { + resultArtifactRaw = await readFile(resultArtifactPath, "utf8"); + resultArtifactData = JSON.parse(resultArtifactRaw); + } catch (error) { + console.error(`Failed to read or parse input file "${resultArtifactPath}": ${error.message}`); + usage(); + process.exitCode = 1; + return; + } + + if (resultArtifactData.status != "Succeeded") { + console.error(`Build failed: ${resultArtifactData.status}`); + console.log(`Raw output:\n${resultArtifactRaw}`); + + // Read build ID from build start file to provide a link to build details + const buildStartData = JSON.parse(await readFile(buildStartPath, "utf8")); + const buildId = buildStartData.id; + const buildLink = `https://dev.azure.com/apidrop/Content%20CI/_build/results?buildId=${buildId}`; + console.error(`See build details at: ${buildLink}`); + console.log(`##[task.logissue type=error]Error in docs build. See build details at: ${buildLink}`); + + process.exitCode = 1; + return; + } + + console.log(`Build completed successfully.`); + const docsPreviewUrl = `https://review.learn.microsoft.com/en-us/rest/api/azure-rest-preview/?branch=${urlencode(resultArtifactData.branch)}&view=azure-rest-preview` + // Log a warning to generate some output in the PR check + console.log(`##[task.logissue type=warning]Docs build completed successfully. See preview docs at: ${docsPreviewUrl}`) +} + +await main(); diff --git a/eng/scripts/api-doc-preview-wait.mjs b/eng/scripts/api-doc-preview-wait.mjs new file mode 100755 index 000000000000..b8f3935bd762 --- /dev/null +++ b/eng/scripts/api-doc-preview-wait.mjs @@ -0,0 +1,109 @@ +#!/usr/bin/env node +import { resolve, dirname } from "path"; +import { fileURLToPath } from "url"; +import { parseArgs } from "util"; +import { execFile } from "../../.github/shared/src/exec.js"; +import { readFile } from "fs"; + +const __dirname = dirname(fileURLToPath(import.meta.url)); + +function usage() { + console.log(`Usage: +node api-doc-preview-wait.mjs --input + +parameters: + --input Path to the build start JSON file. Defaults to "buildstart.json" at repo root. +`); +} + +export async function main() { + const { + values: { + "input": buildStartPath, + }, + } = parseArgs({ + options: { + "input": { + type: "string", + default: resolve(__dirname, "../../buildstart.json"), + }, + }, + allowPositionals: false, + }); + + let buildStartData, buildId; + try { + buildStartData = JSON.parse(await readFile(buildStartPath, "utf8")); + buildId = buildStartData.id; + } catch (error) { + console.error(`Failed to read or parse input file "${buildStartPath}": ${error.message}`); + usage(); + process.exitCode = 1; + return; + } + + const buildIdentifiers = [ + "--organization", "https://dev.azure.com/apidrop/", + "--project", "Content CI", + "--id", buildId, + ]; + let status = null; + + while (status !== "completed") { + try { + // TODO: Query? + const { stdout, } = await execFile( + "az", + [ + "pipelines", "runs", "show", + ...buildIdentifiers, + ], + ); + + const run = JSON.parse(stdout); + status = run.status; + + console.log(`Build ${buildId} status: ${status}`); + + // Sleep 10 seconds to avoid calling the API too frequently + await new Promise(resolve => setTimeout(resolve, 10_000)); + + } catch (error) { + console.error(`Failed to check build status: ${error.message}`); + if (error.stdout) { + console.error(`Command output:\n${error.stdout}`); + } + if (error.stderr) { + console.error(`Command error output:\n${error.stderr}`); + } + } + } + console.log(`Build ${buildId} completed.`); + + console.log("Downloading artifact..."); + try { + await execFile( + "az", + [ + "pipelines", "runs", "artifact", "download", + ...buildIdentifiers, + "--artifact-name", "report", + "--path", resolve(__dirname, "../../"), + ], + ); + } catch (error) { + console.error(`Failed to download artifact: ${error.message}`); + if (error.stdout) { + console.error(`Command output:\n${error.stdout}`); + } + if (error.stderr) { + console.error(`Command error output:\n${error.stderr}`); + } + process.exitCode = 1; + return; + } + + console.log("##vso[task.setvariable variable=DocsBuildFinished;]true"); +} + +await main(); From 98300edcc275cad12c1d158feda5168382c75464 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Mon, 7 Jul 2025 18:53:20 +0000 Subject: [PATCH 027/111] Log files --- eng/pipelines/swagger-api-doc-preview.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index dc10ae5ef6d3..205fb56af97a 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -71,6 +71,8 @@ jobs: --variables 'params={"target_repo":{"url":"https://github.com/MicrosoftDocs/AzureRestPreview","branch":"$(BranchName)"}, "source_of_truth": "code"}' > buildstart.json + - pwsh: Get-Location | Write-Host; Get-ChildItem eng/ -Recurse | Select-Object FullName + - task: AzureCLI@2 displayName: Wait for docs build to finish # Retry on failure to handle transient issues or builds that run longer From 43e07c81e02104ca608f639e2b6d184fc5a82fa4 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Mon, 7 Jul 2025 19:05:24 +0000 Subject: [PATCH 028/111] Direct invocation with valid path --- eng/pipelines/swagger-api-doc-preview.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 205fb56af97a..00a8b0a3d0fd 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -81,8 +81,8 @@ jobs: inputs: azureSubscription: msdocs-apidrop-connection scriptType: bash - scriptLocation: scriptPath - scriptPath: eng/scripts/api-doc-preview-wait.mjs + scriptLocation: inlineScript + inlineScript: eng/scripts/api-doc-preview-wait.mjs - script: eng/scripts/api-doc-preview-interpret.mjs displayName: Output results From b1667ff635e40f40a4889668256d4b62504f996c Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Mon, 7 Jul 2025 19:10:35 +0000 Subject: [PATCH 029/111] Output buildstart.json --- eng/pipelines/swagger-api-doc-preview.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 00a8b0a3d0fd..34c41fad7748 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -69,8 +69,7 @@ jobs: --project "Content CI" --definition-id "8120" --variables 'params={"target_repo":{"url":"https://github.com/MicrosoftDocs/AzureRestPreview","branch":"$(BranchName)"}, "source_of_truth": "code"}' - > buildstart.json - + | tee buildstart.json - pwsh: Get-Location | Write-Host; Get-ChildItem eng/ -Recurse | Select-Object FullName - task: AzureCLI@2 From 044323a21832d3057a66f867371b8f6a026c6056 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Mon, 7 Jul 2025 19:36:40 +0000 Subject: [PATCH 030/111] Fixes --- eng/scripts/api-doc-preview-interpret.mjs | 25 ++++++++++++++++++----- eng/scripts/api-doc-preview-wait.mjs | 23 +++++++++++---------- 2 files changed, 32 insertions(+), 16 deletions(-) mode change 100644 => 100755 eng/scripts/api-doc-preview-interpret.mjs diff --git a/eng/scripts/api-doc-preview-interpret.mjs b/eng/scripts/api-doc-preview-interpret.mjs old mode 100644 new mode 100755 index 766a7c338b8f..6cbef3376edd --- a/eng/scripts/api-doc-preview-interpret.mjs +++ b/eng/scripts/api-doc-preview-interpret.mjs @@ -2,7 +2,7 @@ import { resolve, dirname } from "path"; import { fileURLToPath } from "url"; import { parseArgs } from "util"; -import { readFile } from "fs"; +import { readFile } from "fs/promises"; const __dirname = dirname(fileURLToPath(import.meta.url)); @@ -38,10 +38,25 @@ export async function main() { let resultArtifactData, resultArtifactRaw; try { - resultArtifactRaw = await readFile(resultArtifactPath, "utf8"); - resultArtifactData = JSON.parse(resultArtifactRaw); + // TODO: CLEANUP + resultArtifactRaw = await readFile(resultArtifactPath, { encoding: "utf8" }); + if (!resultArtifactRaw.trim()) { + throw new Error(`File "${resultArtifactPath}" is empty or contains only whitespace.`); + } + try { + resultArtifactData = JSON.parse(resultArtifactRaw); + } catch (parseError) { + console.error(`Failed to parse JSON in file "${resultArtifactPath}": ${parseError.message}`); + console.error("Raw file content:"); + console.error(resultArtifactRaw); + console.error("Stack trace:"); + console.error(parseError.stack); + usage(); + process.exitCode = 1; + return; + } } catch (error) { - console.error(`Failed to read or parse input file "${resultArtifactPath}": ${error.message}`); + console.error(`Failed to read input file "${resultArtifactPath}": ${error.message}`); usage(); process.exitCode = 1; return; @@ -52,7 +67,7 @@ export async function main() { console.log(`Raw output:\n${resultArtifactRaw}`); // Read build ID from build start file to provide a link to build details - const buildStartData = JSON.parse(await readFile(buildStartPath, "utf8")); + const buildStartData = JSON.parse(await readFile(buildStartPath, { encoding: "utf8" })); const buildId = buildStartData.id; const buildLink = `https://dev.azure.com/apidrop/Content%20CI/_build/results?buildId=${buildId}`; console.error(`See build details at: ${buildLink}`); diff --git a/eng/scripts/api-doc-preview-wait.mjs b/eng/scripts/api-doc-preview-wait.mjs index b8f3935bd762..a54ab7d5bdda 100755 --- a/eng/scripts/api-doc-preview-wait.mjs +++ b/eng/scripts/api-doc-preview-wait.mjs @@ -3,7 +3,7 @@ import { resolve, dirname } from "path"; import { fileURLToPath } from "url"; import { parseArgs } from "util"; import { execFile } from "../../.github/shared/src/exec.js"; -import { readFile } from "fs"; +import { readFile } from "fs/promises"; const __dirname = dirname(fileURLToPath(import.meta.url)); @@ -33,7 +33,7 @@ export async function main() { let buildStartData, buildId; try { - buildStartData = JSON.parse(await readFile(buildStartPath, "utf8")); + buildStartData = JSON.parse(await readFile(buildStartPath, { encoding: "utf8" })); buildId = buildStartData.id; } catch (error) { console.error(`Failed to read or parse input file "${buildStartPath}": ${error.message}`); @@ -42,28 +42,30 @@ export async function main() { return; } - const buildIdentifiers = [ + const devOpsIdentifiers = [ "--organization", "https://dev.azure.com/apidrop/", "--project", "Content CI", - "--id", buildId, ]; - let status = null; - while (status !== "completed") { + while (true) { try { // TODO: Query? const { stdout, } = await execFile( "az", [ "pipelines", "runs", "show", - ...buildIdentifiers, + ...devOpsIdentifiers, + "--id", buildId, ], ); const run = JSON.parse(stdout); - status = run.status; + const status = run.status; console.log(`Build ${buildId} status: ${status}`); + if (status === "completed") { + break; + } // Sleep 10 seconds to avoid calling the API too frequently await new Promise(resolve => setTimeout(resolve, 10_000)); @@ -86,7 +88,8 @@ export async function main() { "az", [ "pipelines", "runs", "artifact", "download", - ...buildIdentifiers, + ...devOpsIdentifiers, + "--run-id", buildId, "--artifact-name", "report", "--path", resolve(__dirname, "../../"), ], @@ -102,8 +105,6 @@ export async function main() { process.exitCode = 1; return; } - - console.log("##vso[task.setvariable variable=DocsBuildFinished;]true"); } await main(); From 541a4b096fc9b4e7c82c23045f67368b4ee6f204 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Mon, 7 Jul 2025 20:03:52 +0000 Subject: [PATCH 031/111] Remove BOM --- eng/scripts/api-doc-preview-interpret.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eng/scripts/api-doc-preview-interpret.mjs b/eng/scripts/api-doc-preview-interpret.mjs index 6cbef3376edd..64b608d2fe3a 100755 --- a/eng/scripts/api-doc-preview-interpret.mjs +++ b/eng/scripts/api-doc-preview-interpret.mjs @@ -40,6 +40,10 @@ export async function main() { try { // TODO: CLEANUP resultArtifactRaw = await readFile(resultArtifactPath, { encoding: "utf8" }); + // Strip BOM if present + if (resultArtifactRaw.charCodeAt(0) === 0xFEFF) { + resultArtifactRaw = resultArtifactRaw.slice(1); + } if (!resultArtifactRaw.trim()) { throw new Error(`File "${resultArtifactPath}" is empty or contains only whitespace.`); } From 05ce4e2ecb87847bbc610bf4f38a585143b6c355 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Mon, 7 Jul 2025 20:38:47 +0000 Subject: [PATCH 032/111] PR Number --- eng/pipelines/swagger-api-doc-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 34c41fad7748..bb0f8100f082 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -16,7 +16,7 @@ jobs: - template: /eng/pipelines/templates/variables/globals.yml - template: /eng/pipelines/templates/variables/image.yml - name: BranchName - value: preview/$(Build.Repository.Name)/pr/$(System.PullRequest.PullRequestId)/build/$(Build.BuildId)/attempt/$(System.JobAttempt) + value: preview/$(Build.Repository.Name)/pr/$(System.PullRequest.PullRequestNumber)/build/$(Build.BuildId)/attempt/$(System.JobAttempt) steps: # TODO: Use sparse checkout instead From eb65d1cb74903af0c0ba6b48c495814a8cd9334d Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Mon, 7 Jul 2025 20:45:16 +0000 Subject: [PATCH 033/111] Test changes that won't break the build --- .../Azure.Batch/preview/2024-07-01.20.0/BatchService.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json index 9adeeab327e4..f87d31705b34 100644 --- a/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json +++ b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json @@ -3,7 +3,7 @@ "info": { "title": "Azure Batch", "version": "2024-07-01.20.0", - "description": "Azure Batch provides Cloud-scale job scheduling and compute management. Trivial change to test. Test breaking, + "description": "Azure Batch provides Cloud-scale job scheduling and compute management. Trivial change to test.", "x-typespec-generated": [ { "emitter": "@azure-tools/typespec-autorest" From e52370ed475be72384fedf04725adaa878060b03 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Mon, 7 Jul 2025 21:00:51 +0000 Subject: [PATCH 034/111] encodeURIComponent --- eng/scripts/api-doc-preview-interpret.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eng/scripts/api-doc-preview-interpret.mjs b/eng/scripts/api-doc-preview-interpret.mjs index 64b608d2fe3a..9853050fc3bc 100755 --- a/eng/scripts/api-doc-preview-interpret.mjs +++ b/eng/scripts/api-doc-preview-interpret.mjs @@ -4,6 +4,7 @@ import { fileURLToPath } from "url"; import { parseArgs } from "util"; import { readFile } from "fs/promises"; + const __dirname = dirname(fileURLToPath(import.meta.url)); function usage() { @@ -82,7 +83,7 @@ export async function main() { } console.log(`Build completed successfully.`); - const docsPreviewUrl = `https://review.learn.microsoft.com/en-us/rest/api/azure-rest-preview/?branch=${urlencode(resultArtifactData.branch)}&view=azure-rest-preview` + const docsPreviewUrl = `https://review.learn.microsoft.com/en-us/rest/api/azure-rest-preview/?branch=${encodeURIComponent(resultArtifactData.branch)}&view=azure-rest-preview` // Log a warning to generate some output in the PR check console.log(`##[task.logissue type=warning]Docs build completed successfully. See preview docs at: ${docsPreviewUrl}`) } From f23fef2e8006db9a5284f6b6930b8470558f51a4 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Mon, 7 Jul 2025 21:07:21 +0000 Subject: [PATCH 035/111] -pwsh --- eng/pipelines/swagger-api-doc-preview.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index bb0f8100f082..f571618cd3ec 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -70,7 +70,6 @@ jobs: --definition-id "8120" --variables 'params={"target_repo":{"url":"https://github.com/MicrosoftDocs/AzureRestPreview","branch":"$(BranchName)"}, "source_of_truth": "code"}' | tee buildstart.json - - pwsh: Get-Location | Write-Host; Get-ChildItem eng/ -Recurse | Select-Object FullName - task: AzureCLI@2 displayName: Wait for docs build to finish From d6b28c553f568268b794976b8f5e2d540c5f70f0 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Tue, 8 Jul 2025 04:27:13 +0000 Subject: [PATCH 036/111] Revert BatchService.json testing --- .../Azure.Batch/preview/2024-07-01.20.0/BatchService.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json index f87d31705b34..d448b7cc8670 100644 --- a/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json +++ b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json @@ -3,7 +3,7 @@ "info": { "title": "Azure Batch", "version": "2024-07-01.20.0", - "description": "Azure Batch provides Cloud-scale job scheduling and compute management. Trivial change to test.", + "description": "Azure Batch provides Cloud-scale job scheduling and compute management.", "x-typespec-generated": [ { "emitter": "@azure-tools/typespec-autorest" From 04aeecce042d8de6df064596339aa8e57687d534 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Tue, 8 Jul 2025 04:28:20 +0000 Subject: [PATCH 037/111] Test from another PR --- .../2025-07-01-preview/commonDefinitions.json | 170 + .../preview/2025-07-01-preview/devcenter.json | 8329 +++++++++++++++++ .../examples/AttachedNetworks_Create.json | 54 + .../examples/AttachedNetworks_Delete.json | 18 + .../AttachedNetworks_GetByDevCenter.json | 32 + .../AttachedNetworks_GetByProject.json | 32 + .../AttachedNetworks_ListByDevCenter.json | 54 + .../AttachedNetworks_ListByProject.json | 54 + .../examples/Catalogs_Connect.json | 17 + .../examples/Catalogs_CreateAdo.json | 92 + .../examples/Catalogs_CreateGitHub.json | 92 + .../examples/Catalogs_Delete.json | 18 + .../examples/Catalogs_Get.json | 48 + .../Catalogs_GetSyncErrorDetails.json | 36 + .../examples/Catalogs_List.json | 50 + .../examples/Catalogs_Patch.json | 62 + .../examples/Catalogs_Sync.json | 17 + .../examples/CheckNameAvailability.json | 17 + ...opedNameAvailability_DevCenterCatalog.json | 18 + ...ScopedNameAvailability_ProjectCatalog.json | 18 + .../examples/CustomizationTasks_Get.json | 40 + .../CustomizationTasks_GetErrorDetails.json | 22 + .../CustomizationTasks_ListByCatalog.json | 42 + .../examples/DevBoxDefinitions_Create.json | 75 + .../examples/DevBoxDefinitions_Delete.json | 18 + .../examples/DevBoxDefinitions_Get.json | 37 + .../DevBoxDefinitions_GetByProject.json | 37 + .../DevBoxDefinitions_ListByDevCenter.json | 41 + .../DevBoxDefinitions_ListByProject.json | 41 + .../examples/DevBoxDefinitions_Patch.json | 50 + .../DevCenterEncryptionSets_Create.json | 96 + ...rEncryptionSets_CreateWithKeyIdentity.json | 96 + ...s_CreateWithSystemAssignedKeyIdentity.json | 85 + .../DevCenterEncryptionSets_Delete.json | 18 + .../examples/DevCenterEncryptionSets_Get.json | 45 + .../DevCenterEncryptionSets_List.json | 48 + .../DevCenterEncryptionSets_Patch.json | 56 + ...CenterEncryptionSets_PatchKeyIdentity.json | 55 + .../DevCenterImageDefinitions_BuildImage.json | 18 + ...nterImageDefinitions_CancelImageBuild.json | 19 + ...enterImageDefinitions_GetErrorDetails.json | 22 + ...vCenterImageDefinitions_GetImageBuild.json | 34 + ...ImageDefinitions_GetImageBuildDetails.json | 73 + ...ions_ListImageBuildsByImageDefinition.json | 38 + .../examples/DevCenters_Create.json | 93 + ...ers_CreateWithDisabledManagedNetworks.json | 100 + .../DevCenters_CreateWithEncryption.json | 124 + .../DevCenters_CreateWithUserIdentity.json | 97 + .../examples/DevCenters_Delete.json | 17 + .../examples/DevCenters_Get.json | 41 + .../DevCenters_ListByResourceGroup.json | 37 + .../DevCenters_ListBySubscription.json | 36 + .../examples/DevCenters_Patch.json | 45 + .../examples/EnvironmentDefinitions_Get.json | 53 + ...onmentDefinitions_GetByProjectCatalog.json | 53 + ...nvironmentDefinitions_GetErrorDetails.json | 22 + .../EnvironmentDefinitions_ListByCatalog.json | 56 + ...nmentDefinitions_ListByProjectCatalog.json | 56 + .../examples/EnvironmentTypes_Delete.json | 13 + .../examples/EnvironmentTypes_Get.json | 33 + .../examples/EnvironmentTypes_List.json | 32 + .../examples/EnvironmentTypes_Patch.json | 41 + .../examples/EnvironmentTypes_Put.json | 63 + .../examples/Galleries_Create.json | 54 + .../examples/Galleries_Delete.json | 18 + .../examples/Galleries_Get.json | 30 + .../examples/Galleries_List.json | 50 + .../examples/ImageDefinitions_BuildImage.json | 18 + .../ImageDefinitions_CancelImageBuild.json | 19 + ...mageDefinitions_GetByDevCenterCatalog.json | 68 + .../ImageDefinitions_GetByProjectCatalog.json | 48 + .../ImageDefinitions_GetImageBuild.json | 34 + ...ImageDefinitions_GetImageBuildDetails.json | 73 + ...ageDefinitions_ListByDevCenterCatalog.json | 51 + ...ImageDefinitions_ListByProjectCatalog.json | 51 + ...ions_ListImageBuildsByImageDefinition.json | 38 + .../examples/ImageVersions_Get.json | 34 + .../examples/ImageVersions_GetByProject.json | 33 + .../examples/ImageVersions_List.json | 37 + .../examples/ImageVersions_ListByProject.json | 36 + .../examples/Images_Get.json | 44 + .../examples/Images_GetByProject.json | 43 + .../examples/Images_ListByDevCenter.json | 75 + .../examples/Images_ListByGallery.json | 76 + .../examples/Images_ListByProject.json | 105 + .../examples/NetworkConnections_Delete.json | 17 + .../examples/NetworkConnections_Get.json | 35 + .../NetworkConnections_GetHealthDetails.json | 37 + ...etworkConnections_ListByResourceGroup.json | 37 + ...NetworkConnections_ListBySubscription.json | 36 + .../NetworkConnections_ListHealthDetails.json | 41 + ...tOutboundNetworkDependenciesEndpoints.json | 55 + .../examples/NetworkConnections_Patch.json | 45 + .../examples/NetworkConnections_Put.json | 69 + .../NetworkConnections_RunHealthChecks.json | 16 + .../examples/OperationStatus_Get.json | 42 + .../examples/Operations_Get.json | 21 + .../examples/Pools_Delete.json | 18 + .../examples/Pools_Get.json | 65 + .../examples/Pools_GetUnhealthyStatus.json | 64 + .../examples/Pools_List.json | 68 + .../examples/Pools_Patch.json | 61 + .../examples/Pools_Put.json | 149 + .../examples/Pools_PutWithManagedNetwork.json | 111 + .../Pools_PutWithValueDevBoxDefinition.json | 131 + .../examples/Pools_RunHealthChecks.json | 17 + .../ProjectAllowedEnvironmentTypes_Get.json | 26 + .../ProjectAllowedEnvironmentTypes_List.json | 29 + ...nvironmentDefinitions_GetErrorDetails.json | 22 + ...talogImageDefinitions_GetErrorDetails.json | 22 + .../examples/ProjectCatalogs_Connect.json | 17 + .../examples/ProjectCatalogs_CreateAdo.json | 95 + .../ProjectCatalogs_CreateGitHub.json | 95 + .../examples/ProjectCatalogs_Delete.json | 18 + .../examples/ProjectCatalogs_Get.json | 50 + .../ProjectCatalogs_GetSyncErrorDetails.json | 36 + .../examples/ProjectCatalogs_List.json | 50 + .../examples/ProjectCatalogs_Patch.json | 60 + .../examples/ProjectCatalogs_Sync.json | 17 + .../ProjectEnvironmentTypes_Delete.json | 13 + .../examples/ProjectEnvironmentTypes_Get.json | 63 + .../ProjectEnvironmentTypes_List.json | 66 + .../ProjectEnvironmentTypes_Patch.json | 85 + .../examples/ProjectEnvironmentTypes_Put.json | 146 + .../examples/ProjectPolicies_Delete.json | 18 + .../examples/ProjectPolicies_Get.json | 37 + .../ProjectPolicies_ListByDevCenter.json | 40 + .../examples/ProjectPolicies_Patch.json | 52 + .../examples/ProjectPolicies_Put.json | 75 + .../examples/Projects_Delete.json | 17 + .../examples/Projects_Get.json | 41 + .../Projects_GetInheritedSettings.json | 20 + .../Projects_ListByResourceGroup.json | 38 + .../examples/Projects_ListBySubscription.json | 37 + .../examples/Projects_Patch.json | 62 + .../examples/Projects_Put.json | 72 + ...Projects_PutWithCustomizationSettings.json | 117 + ...hCustomizationSettings_SystemIdentity.json | 103 + .../Projects_PutWithMaxDevBoxPerUser.json | 72 + ...dules_CreateDailyShutdownPoolSchedule.json | 67 + .../examples/Schedules_Delete.json | 19 + .../examples/Schedules_Get.json | 35 + .../examples/Schedules_ListByPool.json | 38 + .../examples/Schedules_Patch.json | 46 + .../examples/Skus_ListByProject.json | 32 + .../examples/Skus_ListBySubscription.json | 30 + .../examples/Usages_ListByLocation.json | 34 + .../preview/2025-07-01-preview/vdi.json | 2091 +++++ .../devcenter/resource-manager/readme.md | 17 +- 149 files changed, 17635 insertions(+), 1 deletion(-) create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/commonDefinitions.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/devcenter.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_Create.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_Delete.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_GetByDevCenter.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_GetByProject.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_ListByDevCenter.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_ListByProject.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Connect.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_CreateAdo.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_CreateGitHub.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Delete.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Get.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_GetSyncErrorDetails.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_List.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Patch.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Sync.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckNameAvailability.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckScopedNameAvailability_DevCenterCatalog.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckScopedNameAvailability_ProjectCatalog.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_Get.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_GetErrorDetails.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_ListByCatalog.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Create.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Delete.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Get.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_GetByProject.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_ListByDevCenter.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_ListByProject.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Patch.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Create.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_CreateWithKeyIdentity.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_CreateWithSystemAssignedKeyIdentity.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Delete.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Get.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_List.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Patch.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_PatchKeyIdentity.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_BuildImage.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_CancelImageBuild.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetErrorDetails.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetImageBuild.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetImageBuildDetails.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_ListImageBuildsByImageDefinition.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Create.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithDisabledManagedNetworks.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithEncryption.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithUserIdentity.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Delete.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Get.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_ListByResourceGroup.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_ListBySubscription.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Patch.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_Get.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_GetByProjectCatalog.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_GetErrorDetails.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_ListByCatalog.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_ListByProjectCatalog.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Delete.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Get.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_List.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Patch.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Put.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Create.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Delete.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Get.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_List.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_BuildImage.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_CancelImageBuild.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetByDevCenterCatalog.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetByProjectCatalog.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetImageBuild.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetImageBuildDetails.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListByDevCenterCatalog.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListByProjectCatalog.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListImageBuildsByImageDefinition.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_Get.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_GetByProject.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_List.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_ListByProject.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_Get.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_GetByProject.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByDevCenter.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByGallery.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByProject.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Delete.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Get.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_GetHealthDetails.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListByResourceGroup.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListBySubscription.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListHealthDetails.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListOutboundNetworkDependenciesEndpoints.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Patch.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Put.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_RunHealthChecks.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/OperationStatus_Get.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Operations_Get.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Delete.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Get.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_GetUnhealthyStatus.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_List.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Patch.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Put.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_PutWithManagedNetwork.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_PutWithValueDevBoxDefinition.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_RunHealthChecks.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectAllowedEnvironmentTypes_Get.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectAllowedEnvironmentTypes_List.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogEnvironmentDefinitions_GetErrorDetails.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogImageDefinitions_GetErrorDetails.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Connect.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_CreateAdo.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_CreateGitHub.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Delete.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Get.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_GetSyncErrorDetails.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_List.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Patch.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Sync.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Delete.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Get.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_List.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Patch.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Put.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Delete.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Get.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_ListByDevCenter.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Patch.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Put.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Delete.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Get.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_GetInheritedSettings.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_ListByResourceGroup.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_ListBySubscription.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Patch.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Put.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithCustomizationSettings.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithCustomizationSettings_SystemIdentity.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithMaxDevBoxPerUser.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_CreateDailyShutdownPoolSchedule.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Delete.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Get.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_ListByPool.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Patch.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Skus_ListByProject.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Skus_ListBySubscription.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Usages_ListByLocation.json create mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/vdi.json diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/commonDefinitions.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/commonDefinitions.json new file mode 100644 index 000000000000..d1782b91d467 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/commonDefinitions.json @@ -0,0 +1,170 @@ +{ + "swagger": "2.0", + "info": { + "version": "2025-07-01-preview", + "title": "DevCenter", + "description": "DevCenter Management API" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": {}, + "definitions": { + "Capability": { + "description": "A name/value pair to describe a capability.", + "type": "object", + "properties": { + "name": { + "description": "Name of the capability.", + "type": "string", + "readOnly": true + }, + "value": { + "description": "Value of the capability.", + "type": "string", + "readOnly": true + } + } + }, + "TrackedResourceUpdate": { + "description": "Base tracked resource type for PATCH updates", + "type": "object", + "properties": { + "tags": { + "$ref": "#/definitions/Tags", + "description": "Resource tags." + }, + "location": { + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ], + "description": "The geo-location where the resource lives" + } + } + }, + "Tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Resource tags." + }, + "DevCenterSku": { + "description": "The resource model definition representing SKU for DevCenter resources", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Sku" + } + ], + "properties": { + "resourceType": { + "type": "string", + "description": "The name of the resource type", + "readOnly": true + }, + "locations": { + "description": "SKU supported locations.", + "type": "array", + "readOnly": true, + "items": { + "type": "string" + } + }, + "capabilities": { + "description": "Collection of name/value pairs to describe the SKU capabilities.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Capability" + }, + "x-ms-identifiers": [] + } + }, + "required": [ + "name" + ] + }, + "ProvisioningState": { + "type": "string", + "description": "Provisioning state of the resource.", + "enum": [ + "NotSpecified", + "Accepted", + "Running", + "Creating", + "Created", + "Updating", + "Updated", + "Deleting", + "Deleted", + "Succeeded", + "Failed", + "Canceled", + "MovingResources", + "TransientFailure", + "RolloutInProgress", + "StorageProvisioningFailed" + ], + "readOnly": true, + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + } + }, + "parameters": { + "ProjectNameParameter": { + "name": "projectName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the project.", + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", + "minLength": 3, + "maxLength": 63 + }, + "TopParameter": { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'.", + "type": "integer", + "format": "int32", + "required": false, + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/devcenter.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/devcenter.json new file mode 100644 index 000000000000..36abf0a43b56 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/devcenter.json @@ -0,0 +1,8329 @@ +{ + "swagger": "2.0", + "info": { + "version": "2025-07-01-preview", + "title": "DevCenter", + "description": "DevCenter Management API" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/devcenters": { + "get": { + "tags": [ + "DevCenters" + ], + "description": "Lists all devcenters in a subscription.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "commonDefinitions.json#/parameters/TopParameter" + } + ], + "operationId": "DevCenters_ListBySubscription", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevCenterListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DevCenters_ListBySubscription": { + "$ref": "./examples/DevCenters_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters": { + "get": { + "tags": [ + "DevCenters" + ], + "description": "Lists all devcenters in a resource group.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "commonDefinitions.json#/parameters/TopParameter" + } + ], + "operationId": "DevCenters_ListByResourceGroup", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevCenterListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DevCenters_ListByResourceGroup": { + "$ref": "./examples/DevCenters_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}": { + "get": { + "tags": [ + "DevCenters" + ], + "description": "Gets a devcenter.", + "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/DevCenterNameParameter" + } + ], + "operationId": "DevCenters_Get", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevCenter" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DevCenters_Get": { + "$ref": "./examples/DevCenters_Get.json" + } + } + }, + "put": { + "tags": [ + "DevCenters" + ], + "description": "Creates or updates a devcenter resource", + "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/DevCenterNameParameter" + }, + { + "name": "body", + "in": "body", + "description": "Represents a devcenter.", + "required": true, + "schema": { + "$ref": "#/definitions/DevCenter" + } + } + ], + "operationId": "DevCenters_CreateOrUpdate", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevCenter" + } + }, + "201": { + "description": "Created. The request will complete asynchronously.", + "schema": { + "$ref": "#/definitions/DevCenter" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DevCenters_Create": { + "$ref": "./examples/DevCenters_Create.json" + }, + "DevCenters_CreateWithUserIdentity": { + "$ref": "./examples/DevCenters_CreateWithUserIdentity.json" + }, + "DevCenters_CreateWithEncryption": { + "$ref": "./examples/DevCenters_CreateWithEncryption.json" + }, + "DevCenters_CreateWithDisabledManagedNetworks": { + "$ref": "./examples/DevCenters_CreateWithDisabledManagedNetworks.json" + } + } + }, + "patch": { + "tags": [ + "DevCenters" + ], + "description": "Partially updates a devcenter.", + "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/DevCenterNameParameter" + }, + { + "name": "body", + "in": "body", + "description": "Updatable devcenter properties.", + "required": true, + "schema": { + "$ref": "#/definitions/DevCenterUpdate" + } + } + ], + "operationId": "DevCenters_Update", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevCenter" + } + }, + "202": { + "description": "Accepted. The request will complete asynchronously.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DevCenters_Update": { + "$ref": "./examples/DevCenters_Patch.json" + } + } + }, + "delete": { + "tags": [ + "DevCenters" + ], + "description": "Deletes a devcenter", + "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/DevCenterNameParameter" + } + ], + "operationId": "DevCenters_Delete", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "responses": { + "202": { + "description": "Accepted. Operation will complete asynchronously.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DevCenters_Delete": { + "$ref": "./examples/DevCenters_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/encryptionSets": { + "get": { + "tags": [ + "EncryptionSets" + ], + "description": "Lists all encryption sets in the devcenter.", + "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/DevCenterNameParameter" + }, + { + "$ref": "commonDefinitions.json#/parameters/TopParameter" + } + ], + "operationId": "EncryptionSets_List", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/EncryptionSetListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EncryptionSets_List": { + "$ref": "./examples/DevCenterEncryptionSets_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/encryptionSets/{encryptionSetName}": { + "get": { + "tags": [ + "EncryptionSets" + ], + "description": "Gets a devcenter encryption set.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/DevCenterEncryptionSetNameParameter" + } + ], + "operationId": "EncryptionSets_Get", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevCenterEncryptionSet" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EncryptionSets_Get": { + "$ref": "./examples/DevCenterEncryptionSets_Get.json" + } + } + }, + "put": { + "tags": [ + "EncryptionSets" + ], + "description": "Creates or updates a devcenter encryption set resource", + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/DevCenterEncryptionSetNameParameter" + }, + { + "name": "body", + "in": "body", + "description": "Represents a devcenter encryption set.", + "required": true, + "schema": { + "$ref": "#/definitions/DevCenterEncryptionSet" + } + } + ], + "operationId": "EncryptionSets_CreateOrUpdate", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevCenterEncryptionSet" + } + }, + "201": { + "description": "Created. The request will complete asynchronously.", + "schema": { + "$ref": "#/definitions/DevCenterEncryptionSet" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EncryptionSets_Create": { + "$ref": "./examples/DevCenterEncryptionSets_Create.json" + } + } + }, + "patch": { + "tags": [ + "EncryptionSets" + ], + "description": "Partially updates a devcenter encryption set.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/DevCenterEncryptionSetNameParameter" + }, + { + "name": "body", + "in": "body", + "description": "Updatable devcenter encryption set properties.", + "required": true, + "schema": { + "$ref": "#/definitions/EncryptionSetUpdate" + } + } + ], + "operationId": "EncryptionSets_Update", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevCenterEncryptionSet" + } + }, + "202": { + "description": "Accepted. The request will complete asynchronously.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EncryptionSets_Update": { + "$ref": "./examples/DevCenterEncryptionSets_Patch.json" + } + } + }, + "delete": { + "tags": [ + "EncryptionSets" + ], + "description": "Deletes a devcenter encryption set", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/DevCenterEncryptionSetNameParameter" + } + ], + "operationId": "EncryptionSets_Delete", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "responses": { + "202": { + "description": "Accepted. Operation will complete asynchronously.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EncryptionSets_Delete": { + "$ref": "./examples/DevCenterEncryptionSets_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/projectPolicies": { + "get": { + "tags": [ + "Project Policies" + ], + "description": "Lists all project policies in the dev center", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DevCenterNameParameter" + }, + { + "$ref": "commonDefinitions.json#/parameters/TopParameter" + } + ], + "operationId": "ProjectPolicies_ListByDevCenter", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ProjectPolicyListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ProjectPolicies_ListByDevCenter": { + "$ref": "./examples/ProjectPolicies_ListByDevCenter.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/projectPolicies/{projectPolicyName}": { + "get": { + "tags": [ + "Project Policies" + ], + "description": "Gets a specific project policy.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/ProjectPolicyNameParameter" + } + ], + "operationId": "ProjectPolicies_Get", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ProjectPolicy" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ProjectPolicies_Get": { + "$ref": "./examples/ProjectPolicies_Get.json" + } + } + }, + "put": { + "tags": [ + "Project Policies" + ], + "description": "Creates or updates an project policy.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/ProjectPolicyNameParameter" + }, + { + "name": "body", + "in": "body", + "description": "Represents an project policy.", + "required": true, + "schema": { + "$ref": "#/definitions/ProjectPolicy" + } + } + ], + "operationId": "ProjectPolicies_CreateOrUpdate", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "responses": { + "200": { + "description": "Succeeded", + "schema": { + "$ref": "#/definitions/ProjectPolicy" + } + }, + "201": { + "description": "Accepted. Operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/ProjectPolicy" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ProjectPolicies_CreateOrUpdate": { + "$ref": "./examples/ProjectPolicies_Put.json" + } + } + }, + "patch": { + "tags": [ + "Project Policies" + ], + "description": "Partially updates an project policy.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/ProjectPolicyNameParameter" + }, + { + "name": "body", + "in": "body", + "description": "Updatable project policy properties.", + "required": true, + "schema": { + "$ref": "#/definitions/ProjectPolicyUpdate" + } + } + ], + "operationId": "ProjectPolicies_Update", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "responses": { + "200": { + "description": "Succeeded", + "schema": { + "$ref": "#/definitions/ProjectPolicy" + } + }, + "202": { + "description": "Accepted. Operation will complete asynchronously.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ProjectPolicies_Update": { + "$ref": "./examples/ProjectPolicies_Patch.json" + } + } + }, + "delete": { + "tags": [ + "Project Policies" + ], + "description": "Deletes an project policy.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/ProjectPolicyNameParameter" + } + ], + "operationId": "ProjectPolicies_Delete", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "responses": { + "202": { + "description": "Accepted. Operation will complete asynchronously.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ProjectPolicies_Delete": { + "$ref": "./examples/ProjectPolicies_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/projects": { + "get": { + "tags": [ + "Projects" + ], + "description": "Lists all projects in the subscription.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "commonDefinitions.json#/parameters/TopParameter" + } + ], + "operationId": "Projects_ListBySubscription", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ProjectListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Projects_ListBySubscription": { + "$ref": "./examples/Projects_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects": { + "get": { + "tags": [ + "Projects" + ], + "description": "Lists all projects in the resource group.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "commonDefinitions.json#/parameters/TopParameter" + } + ], + "operationId": "Projects_ListByResourceGroup", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ProjectListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Projects_ListByResourceGroup": { + "$ref": "./examples/Projects_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}": { + "get": { + "tags": [ + "Projects" + ], + "description": "Gets a specific project.", + "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/ProjectNameParameter" + } + ], + "operationId": "Projects_Get", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Project" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Projects_Get": { + "$ref": "./examples/Projects_Get.json" + } + } + }, + "put": { + "tags": [ + "Projects" + ], + "description": "Creates or updates a project.", + "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/ProjectNameParameter" + }, + { + "name": "body", + "in": "body", + "description": "Represents a project.", + "required": true, + "schema": { + "$ref": "#/definitions/Project" + } + } + ], + "operationId": "Projects_CreateOrUpdate", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "responses": { + "200": { + "description": "Succeeded", + "schema": { + "$ref": "#/definitions/Project" + } + }, + "201": { + "description": "Accepted. Operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/Project" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Projects_CreateOrUpdate": { + "$ref": "./examples/Projects_Put.json" + }, + "Projects_CreateOrUpdateWithLimitsPerDev": { + "$ref": "./examples/Projects_PutWithMaxDevBoxPerUser.json" + }, + "Projects_CreateOrUpdateWithCustomizationSettings": { + "$ref": "./examples/Projects_PutWithCustomizationSettings.json" + }, + "Projects_CreateOrUpdateWithCustomizationSettings_SystemIdentity": { + "$ref": "./examples/Projects_PutWithCustomizationSettings_SystemIdentity.json" + } + } + }, + "patch": { + "tags": [ + "Projects" + ], + "description": "Partially updates a project.", + "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/ProjectNameParameter" + }, + { + "name": "body", + "in": "body", + "description": "Updatable project properties.", + "required": true, + "schema": { + "$ref": "#/definitions/ProjectUpdate" + } + } + ], + "operationId": "Projects_Update", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "responses": { + "200": { + "description": "Succeeded", + "schema": { + "$ref": "#/definitions/Project" + } + }, + "202": { + "description": "Accepted. Operation will complete asynchronously.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Projects_Update": { + "$ref": "./examples/Projects_Patch.json" + } + } + }, + "delete": { + "tags": [ + "Projects" + ], + "description": "Deletes a project resource.", + "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/ProjectNameParameter" + } + ], + "operationId": "Projects_Delete", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "responses": { + "202": { + "description": "Accepted. Operation will complete asynchronously.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Projects_Delete": { + "$ref": "./examples/Projects_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/getInheritedSettings": { + "post": { + "tags": [ + "Projects" + ], + "description": "Gets applicable inherited settings for this project.", + "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/ProjectNameParameter" + } + ], + "operationId": "Projects_GetInheritedSettings", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/InheritedSettingsForProject" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Projects_GetInheritedSettings": { + "$ref": "./examples/Projects_GetInheritedSettings.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/attachednetworks": { + "get": { + "tags": [ + "Attached NetworkConnections." + ], + "description": "Lists the attached NetworkConnections for a Project.", + "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/ProjectNameParameter" + }, + { + "$ref": "commonDefinitions.json#/parameters/TopParameter" + } + ], + "operationId": "AttachedNetworks_ListByProject", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/AttachedNetworkListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "AttachedNetworks_ListByProject": { + "$ref": "./examples/AttachedNetworks_ListByProject.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/attachednetworks/{attachedNetworkConnectionName}": { + "get": { + "tags": [ + "Attached NetworkConnections" + ], + "description": "Gets an attached NetworkConnection.", + "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/ProjectNameParameter" + }, + { + "$ref": "#/parameters/AttachedNetworkConnectionNameParameter" + } + ], + "operationId": "AttachedNetworks_GetByProject", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/AttachedNetworkConnection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "AttachedNetworks_GetByProject": { + "$ref": "./examples/AttachedNetworks_GetByProject.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs": { + "get": { + "tags": [ + "Project Catalogs" + ], + "description": "Lists the catalogs associated with a project.", + "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/ProjectNameParameter" + }, + { + "$ref": "commonDefinitions.json#/parameters/TopParameter" + } + ], + "operationId": "ProjectCatalogs_List", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/CatalogListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ProjectCatalogs_List": { + "$ref": "./examples/ProjectCatalogs_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}": { + "get": { + "tags": [ + "Project Catalogs" + ], + "description": "Gets an associated project catalog.", + "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/ProjectNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + } + ], + "operationId": "ProjectCatalogs_Get", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Catalog" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ProjectCatalogs_Get": { + "$ref": "./examples/ProjectCatalogs_Get.json" + } + } + }, + "put": { + "tags": [ + "Project Catalogs" + ], + "description": "Creates or updates a project catalog.", + "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/ProjectNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + }, + { + "name": "body", + "in": "body", + "description": "Represents a catalog.", + "required": true, + "schema": { + "$ref": "#/definitions/Catalog" + } + } + ], + "operationId": "ProjectCatalogs_CreateOrUpdate", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Catalog" + } + }, + "201": { + "description": "Accepted. Operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/Catalog" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "ProjectCatalogs_CreateOrUpdateGitHub": { + "$ref": "./examples/ProjectCatalogs_CreateGitHub.json" + }, + "ProjectCatalogs_CreateOrUpdateAdo": { + "$ref": "./examples/ProjectCatalogs_CreateAdo.json" + } + } + }, + "patch": { + "tags": [ + "Project Catalogs" + ], + "description": "Partially updates a project catalog.", + "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/ProjectNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + }, + { + "name": "body", + "in": "body", + "description": "Updatable project catalog properties.", + "required": true, + "schema": { + "$ref": "#/definitions/CatalogUpdate" + } + } + ], + "operationId": "ProjectCatalogs_Patch", + "responses": { + "200": { + "description": "The resource was updated.", + "schema": { + "$ref": "#/definitions/Catalog" + } + }, + "202": { + "description": "The request will complete asynchronously.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "ProjectCatalogs_Patch": { + "$ref": "./examples/ProjectCatalogs_Patch.json" + } + } + }, + "delete": { + "tags": [ + "Project Catalogs" + ], + "description": "Deletes a project catalog resource.", + "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/ProjectNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + } + ], + "operationId": "ProjectCatalogs_Delete", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "responses": { + "202": { + "description": "Accepted. Operation will complete asynchronously.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ProjectCatalogs_Delete": { + "$ref": "./examples/ProjectCatalogs_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions": { + "get": { + "tags": [ + "Environment Definitions" + ], + "description": "Lists the environment definitions in this project catalog.", + "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/ProjectNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + } + ], + "operationId": "EnvironmentDefinitions_ListByProjectCatalog", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/EnvironmentDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnvironmentDefinitions_ListByProjectCatalog": { + "$ref": "./examples/EnvironmentDefinitions_ListByProjectCatalog.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}": { + "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/ProjectNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentDefinitionNameParameter" + } + ], + "get": { + "tags": [ + "Environment Definitions" + ], + "description": "Gets an environment definition from the catalog.", + "operationId": "EnvironmentDefinitions_GetByProjectCatalog", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/EnvironmentDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnvironmentDefinitions_GetByProjectCatalog": { + "$ref": "./examples/EnvironmentDefinitions_GetByProjectCatalog.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}/getErrorDetails": { + "post": { + "tags": [ + "Environment Definitions" + ], + "description": "Gets Environment Definition error details", + "operationId": "ProjectCatalogEnvironmentDefinitions_GetErrorDetails", + "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/ProjectNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentDefinitionNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "vdi.json#/definitions/CatalogResourceValidationErrorDetails" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ProjectCatalogEnvironmentDefinitions_GetErrorDetails": { + "$ref": "./examples/ProjectCatalogEnvironmentDefinitions_GetErrorDetails.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/getSyncErrorDetails": { + "post": { + "tags": [ + "Project Catalogs" + ], + "description": "Gets project catalog synchronization error details", + "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/ProjectNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + } + ], + "operationId": "ProjectCatalogs_GetSyncErrorDetails", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/SyncErrorDetails" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ProjectCatalogs_GetSyncErrorDetails": { + "$ref": "./examples/ProjectCatalogs_GetSyncErrorDetails.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/sync": { + "post": { + "tags": [ + "Project Catalogs" + ], + "description": "Syncs templates for a template source.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ProjectNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + } + ], + "operationId": "ProjectCatalogs_Sync", + "responses": { + "202": { + "description": "Accepted. Operation will complete asynchronously.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "ProjectCatalogs_Sync": { + "$ref": "./examples/ProjectCatalogs_Sync.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/connect": { + "post": { + "tags": [ + "Project Catalogs" + ], + "description": "Connects a project catalog to enable syncing.", + "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/ProjectNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + } + ], + "operationId": "ProjectCatalogs_Connect", + "responses": { + "202": { + "description": "Accepted. Operation will complete asynchronously.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "ProjectCatalogs_Connect": { + "$ref": "./examples/ProjectCatalogs_Connect.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries": { + "get": { + "tags": [ + "Galleries" + ], + "description": "Lists galleries for a devcenter.", + "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/DevCenterNameParameter" + }, + { + "$ref": "commonDefinitions.json#/parameters/TopParameter" + } + ], + "operationId": "Galleries_ListByDevCenter", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/GalleryListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Galleries_ListByDevCenter": { + "$ref": "./examples/Galleries_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}": { + "get": { + "tags": [ + "Galleries" + ], + "description": "Gets a gallery", + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/GalleryNameParameter" + } + ], + "operationId": "Galleries_Get", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Gallery" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Galleries_Get": { + "$ref": "./examples/Galleries_Get.json" + } + } + }, + "put": { + "tags": [ + "Galleries" + ], + "description": "Creates or updates a gallery.", + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/GalleryNameParameter" + }, + { + "name": "body", + "in": "body", + "description": "Represents a gallery.", + "required": true, + "schema": { + "$ref": "#/definitions/Gallery" + } + } + ], + "operationId": "Galleries_CreateOrUpdate", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Gallery" + } + }, + "201": { + "description": "Accepted. Operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/Gallery" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Galleries_CreateOrUpdate": { + "$ref": "./examples/Galleries_Create.json" + } + } + }, + "delete": { + "tags": [ + "Galleries" + ], + "description": "Deletes a gallery resource.", + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/GalleryNameParameter" + } + ], + "operationId": "Galleries_Delete", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "responses": { + "202": { + "description": "Accepted. Operation will complete asynchronously.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Galleries_Delete": { + "$ref": "./examples/Galleries_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/images": { + "get": { + "tags": [ + "Images" + ], + "description": "Lists images for a devcenter.", + "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/DevCenterNameParameter" + }, + { + "$ref": "commonDefinitions.json#/parameters/TopParameter" + } + ], + "operationId": "Images_ListByDevCenter", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ImageListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Images_ListByDevCenter": { + "$ref": "./examples/Images_ListByDevCenter.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images": { + "get": { + "tags": [ + "Images" + ], + "description": "Lists images for a gallery.", + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/GalleryNameParameter" + }, + { + "$ref": "commonDefinitions.json#/parameters/TopParameter" + } + ], + "operationId": "Images_ListByGallery", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ImageListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Images_ListByGallery": { + "$ref": "./examples/Images_ListByGallery.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images/{imageName}": { + "get": { + "tags": [ + "Images" + ], + "description": "Gets a gallery image.", + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/GalleryNameParameter" + }, + { + "$ref": "#/parameters/ImageNameParameter" + } + ], + "operationId": "Images_Get", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Image" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Images_Get": { + "$ref": "./examples/Images_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images/{imageName}/versions": { + "get": { + "tags": [ + "Image Versions" + ], + "description": "Lists versions for an image.", + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/GalleryNameParameter" + }, + { + "$ref": "#/parameters/ImageNameParameter" + } + ], + "operationId": "ImageVersions_ListByImage", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ImageVersionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ImageVersions_ListByImage": { + "$ref": "./examples/ImageVersions_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images/{imageName}/versions/{versionName}": { + "get": { + "tags": [ + "Image Versions" + ], + "description": "Gets an image version.", + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/GalleryNameParameter" + }, + { + "$ref": "#/parameters/ImageNameParameter" + }, + { + "$ref": "#/parameters/VersionNameParameter" + } + ], + "operationId": "ImageVersions_Get", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ImageVersion" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Versions_Get": { + "$ref": "./examples/ImageVersions_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/images": { + "get": { + "tags": [ + "Images" + ], + "description": "Lists images for a project.", + "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": "commonDefinitions.json#/parameters/ProjectNameParameter" + } + ], + "operationId": "Images_ListByProject", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ImageListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Images_ListByProject": { + "$ref": "./examples/Images_ListByProject.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/images/{imageName}": { + "get": { + "tags": [ + "Images" + ], + "description": "Gets an image.", + "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": "commonDefinitions.json#/parameters/ProjectNameParameter" + }, + { + "$ref": "#/parameters/ProjectImageNameParameter" + } + ], + "operationId": "Images_GetByProject", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Image" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Images_GetByProject": { + "$ref": "./examples/Images_GetByProject.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/images/{imageName}/versions": { + "get": { + "tags": [ + "Image Versions" + ], + "description": "Lists versions for an image.", + "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": "commonDefinitions.json#/parameters/ProjectNameParameter" + }, + { + "$ref": "#/parameters/ProjectImageNameParameter" + } + ], + "operationId": "ImageVersions_ListByProject", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ImageVersionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ImageVersions_ListByProject": { + "$ref": "./examples/ImageVersions_ListByProject.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/images/{imageName}/versions/{versionName}": { + "get": { + "tags": [ + "Image Versions" + ], + "description": "Gets an image version.", + "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": "commonDefinitions.json#/parameters/ProjectNameParameter" + }, + { + "$ref": "#/parameters/ProjectImageNameParameter" + }, + { + "$ref": "#/parameters/VersionNameParameter" + } + ], + "operationId": "ImageVersions_GetByProject", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ImageVersion" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ImageVersions_GetByProject": { + "$ref": "./examples/ImageVersions_GetByProject.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/listSkus": { + "post": { + "tags": [ + "Project SKUs" + ], + "description": "Lists SKUs available to the project", + "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/ProjectNameParameter" + } + ], + "operationId": "Skus_ListByProject", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "vdi.json#/definitions/SkuListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Skus_ListByProject": { + "$ref": "./examples/Skus_ListByProject.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/attachednetworks": { + "get": { + "tags": [ + "Attached NetworkConnections." + ], + "description": "Lists the attached NetworkConnections for a DevCenter.", + "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/DevCenterNameParameter" + }, + { + "$ref": "commonDefinitions.json#/parameters/TopParameter" + } + ], + "operationId": "AttachedNetworks_ListByDevCenter", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/AttachedNetworkListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "AttachedNetworks_ListByDevCenter": { + "$ref": "./examples/AttachedNetworks_ListByDevCenter.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/attachednetworks/{attachedNetworkConnectionName}": { + "get": { + "tags": [ + "Attached NetworkConnections" + ], + "description": "Gets an attached NetworkConnection.", + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/AttachedNetworkConnectionNameParameter" + } + ], + "operationId": "AttachedNetworks_GetByDevCenter", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/AttachedNetworkConnection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "AttachedNetworks_GetByDevCenter": { + "$ref": "./examples/AttachedNetworks_GetByDevCenter.json" + } + } + }, + "put": { + "tags": [ + "Attached NetworkConnections" + ], + "description": "Creates or updates an attached NetworkConnection.", + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/AttachedNetworkConnectionNameParameter" + }, + { + "name": "body", + "in": "body", + "description": "Represents an attached NetworkConnection.", + "required": true, + "schema": { + "$ref": "#/definitions/AttachedNetworkConnection" + } + } + ], + "operationId": "AttachedNetworks_CreateOrUpdate", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/AttachedNetworkConnection" + } + }, + "201": { + "description": "Accepted. Operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/AttachedNetworkConnection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "AttachedNetworks_Create": { + "$ref": "./examples/AttachedNetworks_Create.json" + } + } + }, + "delete": { + "tags": [ + "Attached NetworkConnections" + ], + "description": "Un-attach a NetworkConnection.", + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/AttachedNetworkConnectionNameParameter" + } + ], + "operationId": "AttachedNetworks_Delete", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "responses": { + "202": { + "description": "Accepted. Operation will complete asynchronously.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "AttachedNetworks_Delete": { + "$ref": "./examples/AttachedNetworks_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs": { + "get": { + "tags": [ + "Catalogs" + ], + "description": "Lists catalogs for a devcenter.", + "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/DevCenterNameParameter" + }, + { + "$ref": "commonDefinitions.json#/parameters/TopParameter" + } + ], + "operationId": "Catalogs_ListByDevCenter", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/CatalogListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Catalogs_ListByDevCenter": { + "$ref": "./examples/Catalogs_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}": { + "get": { + "tags": [ + "Catalogs" + ], + "description": "Gets a catalog", + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + } + ], + "operationId": "Catalogs_Get", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Catalog" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Catalogs_Get": { + "$ref": "./examples/Catalogs_Get.json" + } + } + }, + "put": { + "tags": [ + "Catalogs" + ], + "description": "Creates or updates a catalog.", + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + }, + { + "name": "body", + "in": "body", + "description": "Represents a catalog.", + "required": true, + "schema": { + "$ref": "#/definitions/Catalog" + } + } + ], + "operationId": "Catalogs_CreateOrUpdate", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Catalog" + } + }, + "201": { + "description": "Accepted. Operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/Catalog" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Catalogs_CreateOrUpdateGitHub": { + "$ref": "./examples/Catalogs_CreateGitHub.json" + }, + "Catalogs_CreateOrUpdateAdo": { + "$ref": "./examples/Catalogs_CreateAdo.json" + } + } + }, + "patch": { + "tags": [ + "Catalogs" + ], + "description": "Partially updates a catalog.", + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + }, + { + "name": "body", + "in": "body", + "description": "Updatable catalog properties.", + "required": true, + "schema": { + "$ref": "#/definitions/CatalogUpdate" + } + } + ], + "operationId": "Catalogs_Update", + "responses": { + "200": { + "description": "The resource was updated.", + "schema": { + "$ref": "#/definitions/Catalog" + } + }, + "202": { + "description": "The request will complete asynchronously.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Catalogs_Update": { + "$ref": "./examples/Catalogs_Patch.json" + } + } + }, + "delete": { + "tags": [ + "Catalogs" + ], + "description": "Deletes a catalog resource.", + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + } + ], + "operationId": "Catalogs_Delete", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "responses": { + "202": { + "description": "Accepted. Operation will complete asynchronously.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Catalogs_Delete": { + "$ref": "./examples/Catalogs_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/getSyncErrorDetails": { + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + } + ], + "post": { + "tags": [ + "Catalogs" + ], + "description": "Gets catalog synchronization error details", + "operationId": "Catalogs_GetSyncErrorDetails", + "parameters": [], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/SyncErrorDetails" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Catalogs_GetSyncErrorDetails": { + "$ref": "./examples/Catalogs_GetSyncErrorDetails.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/sync": { + "post": { + "tags": [ + "Catalogs" + ], + "description": "Syncs templates for a template source.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + } + ], + "operationId": "Catalogs_Sync", + "responses": { + "202": { + "description": "Accepted. Operation will complete asynchronously.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Catalogs_Sync": { + "$ref": "./examples/Catalogs_Sync.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/connect": { + "post": { + "tags": [ + "Catalogs" + ], + "description": "Connects a catalog to enable syncing.", + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + } + ], + "operationId": "Catalogs_Connect", + "responses": { + "202": { + "description": "Accepted. Operation will complete asynchronously.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Catalogs_Connect": { + "$ref": "./examples/Catalogs_Connect.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes": { + "get": { + "tags": [ + "Environment Types" + ], + "description": "Lists environment types for the devcenter.", + "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/DevCenterNameParameter" + }, + { + "$ref": "commonDefinitions.json#/parameters/TopParameter" + } + ], + "operationId": "EnvironmentTypes_ListByDevCenter", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/EnvironmentTypeListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnvironmentTypes_ListByDevCenter": { + "$ref": "./examples/EnvironmentTypes_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes/{environmentTypeName}": { + "get": { + "tags": [ + "Environment Types" + ], + "description": "Gets an environment type.", + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentTypeNameParameter" + } + ], + "operationId": "EnvironmentTypes_Get", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/EnvironmentType" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnvironmentTypes_Get": { + "$ref": "./examples/EnvironmentTypes_Get.json" + } + } + }, + "put": { + "tags": [ + "Environment Types" + ], + "description": "Creates or updates an environment type.", + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentTypeNameParameter" + }, + { + "name": "body", + "in": "body", + "description": "Represents an Environment Type.", + "required": true, + "schema": { + "$ref": "#/definitions/EnvironmentType" + } + } + ], + "operationId": "EnvironmentTypes_CreateOrUpdate", + "responses": { + "200": { + "description": "Succeeded", + "schema": { + "$ref": "#/definitions/EnvironmentType" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/EnvironmentType" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnvironmentTypes_CreateOrUpdate": { + "$ref": "./examples/EnvironmentTypes_Put.json" + } + } + }, + "patch": { + "tags": [ + "Environment Types" + ], + "description": "Partially updates an environment type.", + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentTypeNameParameter" + }, + { + "name": "body", + "in": "body", + "description": "Updatable environment type properties.", + "required": true, + "schema": { + "$ref": "#/definitions/EnvironmentTypeUpdate" + } + } + ], + "operationId": "EnvironmentTypes_Update", + "responses": { + "200": { + "description": "The resource was updated.", + "schema": { + "$ref": "#/definitions/EnvironmentType" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnvironmentTypes_Update": { + "$ref": "./examples/EnvironmentTypes_Patch.json" + } + } + }, + "delete": { + "tags": [ + "Environment Types" + ], + "description": "Deletes an environment type.", + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentTypeNameParameter" + } + ], + "operationId": "EnvironmentTypes_Delete", + "responses": { + "200": { + "description": "Resource was deleted." + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnvironmentTypes_Delete": { + "$ref": "./examples/EnvironmentTypes_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/allowedEnvironmentTypes": { + "get": { + "tags": [ + "Environment Types" + ], + "description": "Lists allowed environment types for a project.", + "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/ProjectNameParameter" + }, + { + "$ref": "commonDefinitions.json#/parameters/TopParameter" + } + ], + "operationId": "ProjectAllowedEnvironmentTypes_List", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/AllowedEnvironmentTypeListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ProjectAllowedEnvironmentTypes_List": { + "$ref": "./examples/ProjectAllowedEnvironmentTypes_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/allowedEnvironmentTypes/{environmentTypeName}": { + "get": { + "tags": [ + "Environment Types" + ], + "description": "Gets an allowed environment type.", + "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/ProjectNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentTypeNameParameter" + } + ], + "operationId": "ProjectAllowedEnvironmentTypes_Get", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/AllowedEnvironmentType" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ProjectAllowedEnvironmentTypes_Get": { + "$ref": "./examples/ProjectAllowedEnvironmentTypes_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/environmentTypes": { + "get": { + "tags": [ + "Environment Types" + ], + "description": "Lists environment types for a project.", + "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/ProjectNameParameter" + }, + { + "$ref": "commonDefinitions.json#/parameters/TopParameter" + } + ], + "operationId": "ProjectEnvironmentTypes_List", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ProjectEnvironmentTypeListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ProjectEnvironmentTypes_List": { + "$ref": "./examples/ProjectEnvironmentTypes_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/environmentTypes/{environmentTypeName}": { + "get": { + "tags": [ + "Environment Types" + ], + "description": "Gets a project environment type.", + "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/ProjectNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentTypeNameParameter" + } + ], + "operationId": "ProjectEnvironmentTypes_Get", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ProjectEnvironmentType" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ProjectEnvironmentTypes_Get": { + "$ref": "./examples/ProjectEnvironmentTypes_Get.json" + } + } + }, + "put": { + "tags": [ + "Environment Types" + ], + "description": "Creates or updates a project environment type.", + "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/ProjectNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentTypeNameParameter" + }, + { + "name": "body", + "in": "body", + "description": "Represents a Project Environment Type.", + "required": true, + "schema": { + "$ref": "#/definitions/ProjectEnvironmentType" + } + } + ], + "operationId": "ProjectEnvironmentTypes_CreateOrUpdate", + "responses": { + "200": { + "description": "Succeeded", + "schema": { + "$ref": "#/definitions/ProjectEnvironmentType" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/ProjectEnvironmentType" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ProjectEnvironmentTypes_CreateOrUpdate": { + "$ref": "./examples/ProjectEnvironmentTypes_Put.json" + } + } + }, + "patch": { + "tags": [ + "Environment Types" + ], + "description": "Partially updates a project environment type.", + "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/ProjectNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentTypeNameParameter" + }, + { + "name": "body", + "in": "body", + "description": "Updatable project environment type properties.", + "required": true, + "schema": { + "$ref": "#/definitions/ProjectEnvironmentTypeUpdate" + } + } + ], + "operationId": "ProjectEnvironmentTypes_Update", + "responses": { + "200": { + "description": "The resource was updated.", + "schema": { + "$ref": "#/definitions/ProjectEnvironmentType" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ProjectEnvironmentTypes_Update": { + "$ref": "./examples/ProjectEnvironmentTypes_Patch.json" + } + } + }, + "delete": { + "tags": [ + "Environment Types" + ], + "description": "Deletes a project environment type.", + "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/ProjectNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentTypeNameParameter" + } + ], + "operationId": "ProjectEnvironmentTypes_Delete", + "responses": { + "200": { + "description": "Resource was deleted." + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ProjectEnvironmentTypes_Delete": { + "$ref": "./examples/ProjectEnvironmentTypes_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions": { + "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/DevCenterNameParameter" + }, + { + "$ref": "commonDefinitions.json#/parameters/TopParameter" + } + ], + "get": { + "tags": [ + "Dev Box Definitions" + ], + "description": "List Dev Box definitions for a devcenter.", + "operationId": "DevBoxDefinitions_ListByDevCenter", + "parameters": [], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevBoxDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "DevBoxDefinitions_ListByDevCenter": { + "$ref": "./examples/DevBoxDefinitions_ListByDevCenter.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}": { + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/DevBoxDefinitionName" + } + ], + "get": { + "tags": [ + "Dev Box Definitions" + ], + "description": "Gets a Dev Box definition", + "operationId": "DevBoxDefinitions_Get", + "parameters": [], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevBoxDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DevBoxDefinitions_Get": { + "$ref": "./examples/DevBoxDefinitions_Get.json" + } + } + }, + "put": { + "tags": [ + "Dev Box Definitions" + ], + "description": "Creates or updates a Dev Box definition.", + "operationId": "DevBoxDefinitions_CreateOrUpdate", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "parameters": [ + { + "in": "body", + "name": "body", + "description": "Represents a Dev Box definition.", + "required": true, + "schema": { + "$ref": "#/definitions/DevBoxDefinition" + } + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevBoxDefinition" + } + }, + "201": { + "description": "Created. The operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/DevBoxDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DevBoxDefinitions_Create": { + "$ref": "./examples/DevBoxDefinitions_Create.json" + } + } + }, + "patch": { + "tags": [ + "Dev Box Definitions" + ], + "description": "Partially updates a Dev Box definition.", + "operationId": "DevBoxDefinitions_Update", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "parameters": [ + { + "in": "body", + "name": "body", + "description": "Represents a Dev Box definition.", + "required": true, + "schema": { + "$ref": "#/definitions/DevBoxDefinitionUpdate" + } + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevBoxDefinition" + } + }, + "202": { + "description": "Accepted. The operation will complete asynchronously.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DevBoxDefinitions_Patch": { + "$ref": "./examples/DevBoxDefinitions_Patch.json" + } + } + }, + "delete": { + "tags": [ + "Dev Box Definitions" + ], + "description": "Deletes a Dev Box definition", + "operationId": "DevBoxDefinitions_Delete", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "parameters": [], + "responses": { + "202": { + "description": "Accepted. Operation will complete asynchronously.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DevBoxDefinitions_Delete": { + "$ref": "./examples/DevBoxDefinitions_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/devboxdefinitions": { + "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/ProjectNameParameter" + }, + { + "$ref": "commonDefinitions.json#/parameters/TopParameter" + } + ], + "get": { + "tags": [ + "Dev Box Definitions" + ], + "description": "List Dev Box definitions configured for a project.", + "operationId": "DevBoxDefinitions_ListByProject", + "parameters": [], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevBoxDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "DevBoxDefinitions_ListByProject": { + "$ref": "./examples/DevBoxDefinitions_ListByProject.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/devboxdefinitions/{devBoxDefinitionName}": { + "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/ProjectNameParameter" + }, + { + "$ref": "#/parameters/DevBoxDefinitionName" + } + ], + "get": { + "tags": [ + "Dev Box Definitions" + ], + "description": "Gets a Dev Box definition configured for a project", + "operationId": "DevBoxDefinitions_GetByProject", + "parameters": [], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevBoxDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DevBoxDefinitions_GetByProject": { + "$ref": "./examples/DevBoxDefinitions_GetByProject.json" + } + } + } + }, + "/providers/Microsoft.DevCenter/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists all of the available resource provider operations.", + "operationId": "Operations_List", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Operations_Get": { + "$ref": "./examples/Operations_Get.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/locations/{location}/operationStatuses/{operationId}": { + "get": { + "description": "Gets the current status of an async operation.", + "operationId": "OperationStatuses_Get", + "summary": "Get Operation Status", + "tags": [ + "OperationStatus" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + }, + { + "$ref": "#/parameters/OperationIdParameter" + } + ], + "responses": { + "200": { + "description": "The requested operation status", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "202": { + "description": "The requested operation status", + "headers": { + "Location": { + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get OperationStatus": { + "$ref": "./examples/OperationStatus_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/locations/{location}/usages": { + "get": { + "operationId": "Usages_ListByLocation", + "description": "Lists the current usages and limits in this location for the provided subscription.", + "tags": [ + "Usages" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful; a list of usages is returned", + "schema": { + "$ref": "#/definitions/ListUsagesResult" + } + }, + "default": { + "description": "The default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "listUsages": { + "$ref": "./examples/Usages_ListByLocation.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/checkNameAvailability": { + "post": { + "tags": [ + "CheckNameAvailability" + ], + "operationId": "CheckNameAvailability_Execute", + "x-ms-examples": { + "NameAvailability": { + "$ref": "./examples/CheckNameAvailability.json" + } + }, + "description": "Check the availability of name for resource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "nameAvailabilityRequest", + "in": "body", + "required": true, + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityRequest" + }, + "description": "The required parameters for checking if resource name is available." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/checkScopedNameAvailability": { + "post": { + "tags": [ + "CheckScopedNameAvailability" + ], + "operationId": "CheckScopedNameAvailability_Execute", + "x-ms-examples": { + "DevcenterCatalogNameAvailability": { + "$ref": "./examples/CheckScopedNameAvailability_DevCenterCatalog.json" + }, + "ProjectCatalogNameAvailability": { + "$ref": "./examples/CheckScopedNameAvailability_ProjectCatalog.json" + } + }, + "description": "Check the availability of name for resource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "nameAvailabilityRequest", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CheckScopedNameAvailabilityRequest" + }, + "description": "The required parameters for checking if resource name is available." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks": { + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + }, + { + "$ref": "commonDefinitions.json#/parameters/TopParameter" + } + ], + "get": { + "tags": [ + "Customization Tasks" + ], + "description": "List Tasks in the catalog.", + "operationId": "CustomizationTasks_ListByCatalog", + "parameters": [], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/CustomizationTaskListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "CustomizationTasks_ListByCatalog": { + "$ref": "./examples/CustomizationTasks_ListByCatalog.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks/{taskName}": { + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + }, + { + "$ref": "#/parameters/CustomizationTaskNameParameter" + } + ], + "get": { + "tags": [ + "Customization Tasks" + ], + "description": "Gets a Task from the catalog", + "operationId": "CustomizationTasks_Get", + "parameters": [], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/CustomizationTask" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CustomizationTasks_Get": { + "$ref": "./examples/CustomizationTasks_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks/{taskName}/getErrorDetails": { + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + }, + { + "$ref": "#/parameters/CustomizationTaskNameParameter" + } + ], + "post": { + "tags": [ + "Customization Tasks" + ], + "description": "Gets Customization Task error details", + "operationId": "CustomizationTasks_GetErrorDetails", + "parameters": [], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "vdi.json#/definitions/CatalogResourceValidationErrorDetails" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CustomizationTasks_GetErrorDetails": { + "$ref": "./examples/CustomizationTasks_GetErrorDetails.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions": { + "get": { + "tags": [ + "Environment Definitions" + ], + "description": "List environment definitions in the catalog.", + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + }, + { + "$ref": "commonDefinitions.json#/parameters/TopParameter" + } + ], + "operationId": "EnvironmentDefinitions_ListByCatalog", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/EnvironmentDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "EnvironmentDefinitions_ListByCatalog": { + "$ref": "./examples/EnvironmentDefinitions_ListByCatalog.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}": { + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentDefinitionNameParameter" + } + ], + "get": { + "tags": [ + "Environment Definitions" + ], + "description": "Gets an environment definition from the catalog.", + "operationId": "EnvironmentDefinitions_Get", + "parameters": [], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/EnvironmentDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnvironmentDefinitions_Get": { + "$ref": "./examples/EnvironmentDefinitions_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}/getErrorDetails": { + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentDefinitionNameParameter" + } + ], + "post": { + "tags": [ + "Environment Definitions" + ], + "description": "Gets Environment Definition error details", + "operationId": "EnvironmentDefinitions_GetErrorDetails", + "parameters": [], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "vdi.json#/definitions/CatalogResourceValidationErrorDetails" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EnvironmentDefinitions_GetErrorDetails": { + "$ref": "./examples/EnvironmentDefinitions_GetErrorDetails.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions": { + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + }, + { + "$ref": "commonDefinitions.json#/parameters/TopParameter" + } + ], + "get": { + "tags": [ + "Image Definitions" + ], + "description": "List Image Definitions in the catalog.", + "operationId": "DevCenterCatalogImageDefinitions_ListByDevCenterCatalog", + "parameters": [], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ImageDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ImageDefinitions_ListByDevCenterCatalog": { + "$ref": "./examples/ImageDefinitions_ListByDevCenterCatalog.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}": { + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + }, + { + "$ref": "#/parameters/ImageDefinitionNameParameter" + } + ], + "get": { + "tags": [ + "Image Definitions" + ], + "description": "Gets an Image Definition from the catalog", + "operationId": "DevCenterCatalogImageDefinitions_GetByDevCenterCatalog", + "parameters": [], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ImageDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ImageDefinitions_GetByDevCenterCatalog": { + "$ref": "./examples/ImageDefinitions_GetByDevCenterCatalog.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/getErrorDetails": { + "post": { + "tags": [ + "Image Definitions" + ], + "description": "Gets Image Definition error details", + "operationId": "DevCenterCatalogImageDefinitions_GetErrorDetails", + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + }, + { + "$ref": "#/parameters/ImageDefinitionNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "vdi.json#/definitions/CatalogResourceValidationErrorDetails" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DevCenterImageDefinitions_GetErrorDetails": { + "$ref": "./examples/DevCenterImageDefinitions_GetErrorDetails.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/buildImage": { + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + }, + { + "$ref": "#/parameters/ImageDefinitionNameParameter" + } + ], + "post": { + "tags": [ + "Image Definitions" + ], + "description": "Builds an image for the specified Image Definition.", + "operationId": "DevCenterCatalogImageDefinitions_BuildImage", + "parameters": [], + "responses": { + "202": { + "description": "Accepted. Operation will complete asynchronously.", + "headers": { + "Azure-AsyncOperation": { + "type": "string" + }, + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "DevCenterCatalogImageDefinitions_BuildImage": { + "$ref": "./examples/DevCenterImageDefinitions_BuildImage.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds": { + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + }, + { + "$ref": "#/parameters/ImageDefinitionNameParameter" + } + ], + "get": { + "tags": [ + "Image Definitions" + ], + "description": "Lists builds for a specified image definition.", + "operationId": "DevCenterCatalogImageDefinitionBuilds_ListByImageDefinition", + "parameters": [], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ImageDefinitionBuildListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DevCenterImageDefinitionBuilds_ListByImageDefinition": { + "$ref": "./examples/DevCenterImageDefinitions_ListImageBuildsByImageDefinition.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds/{buildName}": { + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + }, + { + "$ref": "#/parameters/ImageDefinitionNameParameter" + }, + { + "$ref": "#/parameters/ImageDefinitionBuildNameParameter" + } + ], + "get": { + "tags": [ + "Image Definitions" + ], + "description": "Gets a build for a specified image definition.", + "operationId": "DevCenterCatalogImageDefinitionBuild_Get", + "parameters": [], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ImageDefinitionBuild" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DevCenterImageDefinitionBuilds_GetByImageDefinition": { + "$ref": "./examples/DevCenterImageDefinitions_GetImageBuild.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds/{buildName}/cancel": { + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + }, + { + "$ref": "#/parameters/ImageDefinitionNameParameter" + }, + { + "$ref": "#/parameters/ImageDefinitionBuildNameParameter" + } + ], + "post": { + "tags": [ + "Image Definitions" + ], + "description": "Cancels the specified build for an image definition.", + "operationId": "DevCenterCatalogImageDefinitionBuild_Cancel", + "parameters": [], + "responses": { + "202": { + "description": "Accepted. Operation will complete asynchronously.", + "headers": { + "Azure-AsyncOperation": { + "type": "string" + }, + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "DevCenterImageDefinitionBuilds_CancelByImageDefinition": { + "$ref": "./examples/DevCenterImageDefinitions_CancelImageBuild.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds/{buildName}/getBuildDetails": { + "post": { + "tags": [ + "Image Definitions" + ], + "description": "Gets Build details", + "operationId": "DevCenterCatalogImageDefinitionBuild_GetBuildDetails", + "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/DevCenterNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + }, + { + "$ref": "#/parameters/ImageDefinitionNameParameter" + }, + { + "$ref": "#/parameters/ImageDefinitionBuildNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ImageDefinitionBuildDetails" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DevCenterCatalogImageDefinitionBuild_GetErrorDetails": { + "$ref": "./examples/DevCenterImageDefinitions_GetImageBuildDetails.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions": { + "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/ProjectNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + }, + { + "$ref": "commonDefinitions.json#/parameters/TopParameter" + } + ], + "get": { + "tags": [ + "Image Definitions" + ], + "description": "List Image Definitions in the catalog.", + "operationId": "ProjectCatalogImageDefinitions_ListByProjectCatalog", + "parameters": [], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ImageDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ImageDefinitions_ListByProjectCatalog": { + "$ref": "./examples/ImageDefinitions_ListByProjectCatalog.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}": { + "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/ProjectNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + }, + { + "$ref": "#/parameters/ImageDefinitionNameParameter" + } + ], + "get": { + "tags": [ + "Image Definitions" + ], + "description": "Gets an Image Definition from the catalog", + "operationId": "ProjectCatalogImageDefinitions_GetByProjectCatalog", + "parameters": [], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ImageDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ImageDefinitions_GetByProjectCatalog": { + "$ref": "./examples/ImageDefinitions_GetByProjectCatalog.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/getErrorDetails": { + "post": { + "tags": [ + "Image Definitions" + ], + "description": "Gets Image Definition error details", + "operationId": "ProjectCatalogImageDefinitions_GetErrorDetails", + "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/ProjectNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + }, + { + "$ref": "#/parameters/ImageDefinitionNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "vdi.json#/definitions/CatalogResourceValidationErrorDetails" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ProjectCatalogImageDefinitions_GetErrorDetails": { + "$ref": "./examples/ProjectCatalogImageDefinitions_GetErrorDetails.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/buildImage": { + "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/ProjectNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + }, + { + "$ref": "#/parameters/ImageDefinitionNameParameter" + } + ], + "post": { + "tags": [ + "Image Definitions" + ], + "description": "Builds an image for the specified Image Definition.", + "operationId": "ProjectCatalogImageDefinitions_BuildImage", + "parameters": [], + "responses": { + "202": { + "description": "Accepted. Operation will complete asynchronously.", + "headers": { + "Azure-AsyncOperation": { + "type": "string" + }, + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "ProjectCatalogImageDefinitions_BuildImage": { + "$ref": "./examples/ImageDefinitions_BuildImage.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds": { + "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/ProjectNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + }, + { + "$ref": "#/parameters/ImageDefinitionNameParameter" + } + ], + "get": { + "tags": [ + "Image Definitions" + ], + "description": "Lists builds for a specified image definition.", + "operationId": "ProjectCatalogImageDefinitionBuilds_ListByImageDefinition", + "parameters": [], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ImageDefinitionBuildListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ImageDefinitionBuilds_ListByImageDefinition": { + "$ref": "./examples/ImageDefinitions_ListImageBuildsByImageDefinition.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds/{buildName}": { + "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/ProjectNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + }, + { + "$ref": "#/parameters/ImageDefinitionNameParameter" + }, + { + "$ref": "#/parameters/ImageDefinitionBuildNameParameter" + } + ], + "get": { + "tags": [ + "Image Definitions" + ], + "description": "Gets a build for a specified image definition.", + "operationId": "ProjectCatalogImageDefinitionBuild_Get", + "parameters": [], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ImageDefinitionBuild" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ImageDefinitionBuilds_GetByImageDefinition": { + "$ref": "./examples/ImageDefinitions_GetImageBuild.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds/{buildName}/cancel": { + "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/ProjectNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + }, + { + "$ref": "#/parameters/ImageDefinitionNameParameter" + }, + { + "$ref": "#/parameters/ImageDefinitionBuildNameParameter" + } + ], + "post": { + "tags": [ + "Image Definitions" + ], + "description": "Cancels the specified build for an image definition.", + "operationId": "ProjectCatalogImageDefinitionBuild_Cancel", + "parameters": [], + "responses": { + "202": { + "description": "Accepted. Operation will complete asynchronously.", + "headers": { + "Azure-AsyncOperation": { + "type": "string" + }, + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "ImageDefinitionBuilds_CancelByImageDefinition": { + "$ref": "./examples/ImageDefinitions_CancelImageBuild.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds/{buildName}/getBuildDetails": { + "post": { + "tags": [ + "Image Definitions" + ], + "description": "Gets Build details", + "operationId": "ProjectCatalogImageDefinitionBuild_GetBuildDetails", + "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/ProjectNameParameter" + }, + { + "$ref": "#/parameters/CatalogNameParameter" + }, + { + "$ref": "#/parameters/ImageDefinitionNameParameter" + }, + { + "$ref": "#/parameters/ImageDefinitionBuildNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ImageDefinitionBuildDetails" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ProjectCatalogImageDefinitionBuild_GetErrorDetails": { + "$ref": "./examples/ImageDefinitions_GetImageBuildDetails.json" + } + } + } + } + }, + "definitions": { + "DevCenter": { + "type": "object", + "description": "Represents a devcenter resource.", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "description": "DevCenter properties", + "x-ms-client-flatten": true, + "$ref": "#/definitions/DevCenterProperties" + }, + "identity": { + "description": "Managed identity properties", + "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity" + } + } + }, + "DevCenterProperties": { + "description": "Properties of the devcenter.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/DevCenterUpdateProperties" + } + ], + "properties": { + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "commonDefinitions.json#/definitions/ProvisioningState", + "readOnly": true + }, + "devCenterUri": { + "description": "The URI of the Dev Center.", + "$ref": "#/definitions/DevCenterUri", + "readOnly": true + } + } + }, + "DevCenterUpdateProperties": { + "description": "Properties of the devcenter. These properties can be updated after the resource has been created.", + "type": "object", + "properties": { + "encryption": { + "$ref": "#/definitions/Encryption", + "description": "Encryption settings to be used for server-side encryption for proprietary content (such as catalogs, logs, customizations)." + }, + "displayName": { + "type": "string", + "description": "The display name of the devcenter." + }, + "projectCatalogSettings": { + "$ref": "#/definitions/DevCenterProjectCatalogSettings", + "description": "Dev Center settings to be used when associating a project with a catalog." + }, + "networkSettings": { + "$ref": "#/definitions/DevCenterNetworkSettings", + "description": "Network settings that will be enforced on network resources associated with the Dev Center." + }, + "devBoxProvisioningSettings": { + "$ref": "#/definitions/DevBoxProvisioningSettings", + "description": "Settings to be used in the provisioning of all Dev Boxes that belong to this dev center." + } + } + }, + "DevCenterEncryptionSet": { + "description": "Represents a devcenter encryption set resource.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DevCenterEncryptionSetProperties", + "description": "Properties of a devcenter encryption set." + }, + "identity": { + "description": "Managed identity properties", + "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity" + } + } + }, + "DevCenterEncryptionSetProperties": { + "description": "Properties of the devcenter encryption set.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/DevCenterEncryptionSetUpdateProperties" + } + ], + "properties": { + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "commonDefinitions.json#/definitions/ProvisioningState", + "readOnly": true + } + } + }, + "DevCenterEncryptionSetUpdateProperties": { + "description": "Properties of the devcenter encryption set. These properties can be updated after the resource has been created.", + "type": "object", + "properties": { + "devboxDisksEncryptionEnableStatus": { + "description": "Devbox disk encryption enable or disable status. Indicates if Devbox disks encryption using DevCenter CMK is enabled or not.", + "$ref": "#/definitions/DevboxDisksEncryptionEnableStatus" + }, + "keyEncryptionKeyUrl": { + "type": "string", + "format": "uri", + "description": "Key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek." + }, + "keyEncryptionKeyIdentity": { + "type": "object", + "description": "The managed identity configuration used for key vault access.", + "properties": { + "type": { + "$ref": "#/definitions/CmkIdentityType", + "description": "The type of managed identity to use for key vault access." + }, + "userAssignedIdentityResourceId": { + "type": "string", + "description": "For system assigned identity, this will be null. For user assigned identity, this should be the resource ID of the identity." + } + } + } + } + }, + "CmkIdentityType": { + "description": "The type of identity used to access the key vault key.", + "enum": [ + "SystemAssigned", + "UserAssigned" + ], + "type": "string", + "x-ms-enum": { + "name": "CmkIdentityType", + "modelAsString": true + } + }, + "DevboxDisksEncryptionEnableStatus": { + "description": "Devbox disk encryption enable or disable status. Indicates if Devbox disks encryption is enabled or not.", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "DevboxDisksEncryptionEnableStatus", + "modelAsString": true + } + }, + "DevCenterProjectCatalogSettings": { + "type": "object", + "description": "Project catalog settings for project catalogs under a project associated to this dev center.", + "properties": { + "catalogItemSyncEnableStatus": { + "description": "Whether project catalogs associated with projects in this dev center can be configured to sync catalog items.", + "$ref": "#/definitions/CatalogItemSyncEnableStatus" + } + } + }, + "DevCenterResourceType": { + "description": "Indicates dev center resource types.", + "enum": [ + "Images", + "AttachedNetworks", + "Skus" + ], + "type": "string", + "x-ms-enum": { + "name": "DevCenterResourceType", + "modelAsString": true + } + }, + "DevBoxProvisioningSettings": { + "type": "object", + "description": "Provisioning settings that apply to all Dev Boxes created in this dev center", + "properties": { + "installAzureMonitorAgentEnableStatus": { + "description": "Whether project catalogs associated with projects in this dev center can be configured to sync catalog items.", + "$ref": "#/definitions/InstallAzureMonitorAgentEnableStatus" + } + } + }, + "CatalogItemSyncEnableStatus": { + "description": "Catalog item sync types enable or disable status. Indicates whether project catalogs are allowed to sync catalog items under projects associated to this dev center.", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "CatalogItemSyncEnableStatus", + "modelAsString": true + } + }, + "DevCenterNetworkSettings": { + "type": "object", + "description": "Network settings for the Dev Center.", + "properties": { + "microsoftHostedNetworkEnableStatus": { + "$ref": "#/definitions/MicrosoftHostedNetworkEnableStatus" + } + } + }, + "ProjectNetworkSettings": { + "type": "object", + "description": "Network settings for the project.", + "properties": { + "microsoftHostedNetworkEnableStatus": { + "$ref": "#/definitions/MicrosoftHostedNetworkEnableStatus", + "readOnly": true + } + } + }, + "MicrosoftHostedNetworkEnableStatus": { + "description": "Indicates whether pools in this Dev Center can use Microsoft Hosted Networks. Defaults to Enabled if not set.", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "MicrosoftHostedNetworkEnableStatus", + "modelAsString": true + } + }, + "UserCustomizationsEnableStatus": { + "description": "Indicates whether user customizations are enabled.", + "enum": [ + "Disabled", + "Enabled" + ], + "type": "string", + "x-ms-enum": { + "name": "UserCustomizationsEnableStatus", + "modelAsString": true + } + }, + "DevBoxDeleteMode": { + "description": "Indicates possible values for Dev Box delete mode.", + "enum": [ + "Manual", + "Auto" + ], + "type": "string", + "x-ms-enum": { + "name": "DevBoxDeleteMode", + "modelAsString": true, + "values": [ + { + "value": "Manual", + "description": "Dev Boxes will not be deleted automatically, and user must manually delete. This is the default." + }, + { + "value": "Auto", + "description": "Dev Boxes will be deleted automatically according to configured settings." + } + ] + } + }, + "AzureAiServicesMode": { + "description": "Indicates whether Azure AI services are enabled for a project.", + "enum": [ + "Disabled", + "AutoDeploy" + ], + "type": "string", + "x-ms-enum": { + "name": "AzureAiServicesMode", + "modelAsString": true, + "values": [ + { + "value": "Disabled", + "description": "Azure AI services are disabled for this project." + }, + { + "value": "AutoDeploy", + "description": "Azure AI services are enabled for this project and necessary resources will be automatically setup." + } + ] + } + }, + "Encryption": { + "type": "object", + "properties": { + "customerManagedKeyEncryption": { + "$ref": "../../../../../common-types/resource-management/v4/customermanagedkeys.json#/definitions/customerManagedKeyEncryption" + } + } + }, + "InstallAzureMonitorAgentEnableStatus": { + "description": "Setting to be used when determining whether to install the Azure Monitor Agent service on Dev Boxes that belong to this dev center.", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "InstallAzureMonitorAgentEnableStatus", + "modelAsString": true + } + }, + "DevCenterUpdate": { + "description": "The devcenter resource for partial updates. Properties not provided in the update request will not be changed.", + "type": "object", + "allOf": [ + { + "$ref": "commonDefinitions.json#/definitions/TrackedResourceUpdate" + } + ], + "properties": { + "identity": { + "description": "Managed identity properties", + "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DevCenterUpdateProperties", + "description": "Properties of a Dev Center to be updated." + } + } + }, + "EncryptionSetUpdate": { + "description": "The devcenter encryption set resource for partial updates. Properties not provided in the update request will not be changed.", + "type": "object", + "allOf": [ + { + "$ref": "commonDefinitions.json#/definitions/TrackedResourceUpdate" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DevCenterEncryptionSetUpdateProperties", + "description": "Properties of a Dev Center encryption set to be updated." + }, + "identity": { + "description": "Managed identity properties", + "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity" + } + } + }, + "DevCenterListResult": { + "description": "Result of the list devcenters operation", + "type": "object", + "properties": { + "value": { + "description": "Current page of results.", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/DevCenter" + } + }, + "nextLink": { + "description": "URL to get the next set of results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "EncryptionSetListResult": { + "description": "Result of the list devcenter encryption set operation", + "type": "object", + "properties": { + "value": { + "description": "Current page of results.", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/DevCenterEncryptionSet" + } + }, + "nextLink": { + "description": "URL to get the next set of results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "DevCenterUri": { + "description": "The URI of the resource.", + "readOnly": true, + "type": "string" + }, + "Project": { + "description": "Represents a project resource.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ProjectProperties", + "description": "Properties of a project." + }, + "identity": { + "description": "Managed identity properties", + "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity" + } + } + }, + "ProjectUpdateProperties": { + "description": "Properties of a project. These properties can be updated after the resource has been created.", + "type": "object", + "properties": { + "devCenterId": { + "type": "string", + "description": "Resource Id of an associated DevCenter" + }, + "description": { + "type": "string", + "description": "Description of the project." + }, + "maxDevBoxesPerUser": { + "type": "integer", + "format": "int32", + "minimum": 0, + "description": "When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. This will have no effect on existing Dev Boxes when reduced." + }, + "displayName": { + "type": "string", + "description": "The display name of the project." + }, + "catalogSettings": { + "$ref": "#/definitions/ProjectCatalogSettings", + "description": "Settings to be used when associating a project with a catalog." + }, + "customizationSettings": { + "$ref": "#/definitions/ProjectCustomizationSettings", + "description": "Settings to be used for customizations." + }, + "devBoxAutoDeleteSettings": { + "description": "Dev Box Auto Delete settings.", + "$ref": "#/definitions/DevBoxAutoDeleteSettings" + }, + "azureAiServicesSettings": { + "description": "Indicates whether Azure AI services are enabled for a project.", + "$ref": "#/definitions/AzureAiServicesSettings" + }, + "serverlessGpuSessionsSettings": { + "$ref": "#/definitions/ServerlessGpuSessionsSettings", + "description": "Settings to be used for serverless GPU." + }, + "workspaceStorageSettings": { + "description": "Settings to be used for workspace storage.", + "$ref": "#/definitions/WorkspaceStorageSettings" + } + } + }, + "ProjectCatalogSettings": { + "description": "Settings to be used when associating a project with a catalog.", + "type": "object", + "properties": { + "catalogItemSyncTypes": { + "description": "Indicates catalog item types that can be synced.", + "type": "array", + "items": { + "$ref": "#/definitions/CatalogItemType" + } + } + } + }, + "ProjectCustomizationManagedIdentity": { + "description": "A reference to a Managed Identity that is attached to the Project.", + "type": "object", + "properties": { + "identityType": { + "type": "string", + "enum": [ + "systemAssignedIdentity", + "userAssignedIdentity" + ], + "x-ms-enum": { + "name": "ProjectCustomizationIdentityType", + "modelAsString": true + }, + "description": "Values can be systemAssignedIdentity or userAssignedIdentity" + }, + "identityResourceId": { + "type": "string", + "format": "arm-id", + "description": "Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity." + } + } + }, + "ProjectCustomizationSettings": { + "description": "Settings to be used for customizations.", + "type": "object", + "properties": { + "identities": { + "description": "The identities that can to be used in customization scenarios; e.g., to clone a repository.", + "type": "array", + "items": { + "$ref": "#/definitions/ProjectCustomizationManagedIdentity" + } + }, + "userCustomizationsEnableStatus": { + "description": "Indicates whether user customizations are enabled.", + "$ref": "#/definitions/UserCustomizationsEnableStatus" + } + } + }, + "ServerlessGpuSessionsSettings": { + "description": "Represents settings for serverless GPU access.", + "type": "object", + "properties": { + "serverlessGpuSessionsMode": { + "description": "The property indicates whether serverless GPU access is enabled on the project.", + "$ref": "#/definitions/ServerlessGpuSessionsMode" + }, + "maxConcurrentSessionsPerProject": { + "type": "integer", + "format": "int32", + "minimum": 1, + "description": "When specified, limits the maximum number of concurrent sessions across all pools in the project." + } + } + }, + "WorkspaceStorageSettings": { + "description": "Settings to be used for workspace storage.", + "type": "object", + "properties": { + "workspaceStorageMode": { + "description": "Indicates whether workspace storage is enabled.", + "$ref": "#/definitions/WorkspaceStorageMode" + } + } + }, + "ServerlessGpuSessionsMode": { + "description": "Indicates whether serverless GPU session access is enabled.", + "enum": [ + "Disabled", + "AutoDeploy" + ], + "type": "string", + "x-ms-enum": { + "name": "ServerlessGpuSessionsMode", + "modelAsString": true, + "values": [ + { + "value": "Disabled", + "description": "Serverless GPU session access is disabled." + }, + { + "value": "AutoDeploy", + "description": "Serverless GPU session access is enabled and necessary resources will be automatically setup." + } + ] + } + }, + "WorkspaceStorageMode": { + "description": "Indicates whether workspace storage is enabled.", + "enum": [ + "Disabled", + "AutoDeploy" + ], + "type": "string", + "x-ms-enum": { + "name": "WorkspaceStorageMode", + "modelAsString": true, + "values": [ + { + "value": "Disabled", + "description": "Workspace storage is disabled." + }, + { + "value": "AutoDeploy", + "description": "Workspace storage is enabled and necessary resources will be automatically setup." + } + ] + } + }, + "ProjectProperties": { + "description": "Properties of a project.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ProjectUpdateProperties" + } + ], + "properties": { + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "commonDefinitions.json#/definitions/ProvisioningState", + "readOnly": true + }, + "devCenterUri": { + "description": "The URI of the Dev Center resource this project is associated with.", + "$ref": "#/definitions/DevCenterUri", + "readOnly": true + } + } + }, + "ProjectUpdate": { + "description": "The project properties for partial update. Properties not provided in the update request will not be changed.", + "type": "object", + "allOf": [ + { + "$ref": "commonDefinitions.json#/definitions/TrackedResourceUpdate" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ProjectUpdateProperties", + "description": "Properties of a project to be updated." + }, + "identity": { + "description": "Managed identity properties", + "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity" + } + } + }, + "ProjectListResult": { + "description": "Results of the project list operation.", + "type": "object", + "properties": { + "value": { + "description": "Current page of results.", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/Project" + } + }, + "nextLink": { + "description": "URL to get the next set of results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "InheritedSettingsForProject": { + "description": "Applicable inherited settings for a project.", + "type": "object", + "properties": { + "projectCatalogSettings": { + "$ref": "#/definitions/DevCenterProjectCatalogSettings", + "description": "Dev Center settings to be used when associating a project with a catalog.", + "readOnly": true + }, + "networkSettings": { + "$ref": "#/definitions/ProjectNetworkSettings", + "description": "Network settings that will be enforced on this project.", + "readOnly": true + } + } + }, + "ResourcePolicy": { + "description": "A resource policy.", + "type": "object", + "properties": { + "resources": { + "description": "Resources that are included and shared as a part of a project policy.", + "type": "string" + }, + "filter": { + "description": "Optional. When specified, this expression is used to filter the resources.", + "type": "string" + }, + "action": { + "description": "Policy action to be taken on the resources. This is optional, and defaults to allow", + "$ref": "#/definitions/PolicyAction" + }, + "resourceType": { + "description": "Optional. The resource type being restricted or allowed by a project policy. Used with a given action to restrict or allow access to a resource type.", + "$ref": "#/definitions/DevCenterResourceType" + } + } + }, + "PolicyAction": { + "description": "Indicates what action to perform for the policy.", + "enum": [ + "Allow", + "Deny" + ], + "type": "string", + "x-ms-enum": { + "name": "PolicyAction", + "modelAsString": true + } + }, + "ProjectPolicyListResult": { + "description": "Results of the project policy list operation.", + "type": "object", + "properties": { + "value": { + "description": "Current page of results.", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ProjectPolicy" + } + }, + "nextLink": { + "description": "URL to get the next set of results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "ProjectPolicy": { + "description": "Represents an project policy resource.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ProjectPolicyProperties", + "description": "Properties of an project policy." + } + } + }, + "ProjectPolicyProperties": { + "description": "Properties of an project policy.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ProjectPolicyUpdateProperties" + } + ], + "properties": { + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "commonDefinitions.json#/definitions/ProvisioningState", + "readOnly": true + } + } + }, + "ProjectPolicyUpdateProperties": { + "description": "Properties of an project policy. These properties can be updated after the resource has been created.", + "type": "object", + "properties": { + "resourcePolicies": { + "description": "Resource policies that are a part of this project policy.", + "type": "array", + "items": { + "$ref": "#/definitions/ResourcePolicy" + } + }, + "scopes": { + "description": "Resources that have access to the shared resources that are a part of this project policy.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ProjectPolicyUpdate": { + "description": "The project policy properties for partial update. Properties not provided in the update request will not be changed.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ProjectPolicyUpdateProperties", + "description": "Properties of an project policy to be updated." + } + } + }, + "DevBoxAutoDeleteSettings": { + "description": "Settings controlling the auto deletion of inactive dev boxes.", + "type": "object", + "properties": { + "deleteMode": { + "description": "Indicates the delete mode for Dev Boxes within this project.", + "$ref": "#/definitions/DevBoxDeleteMode" + }, + "inactiveThreshold": { + "description": "ISO8601 duration required for the dev box to not be inactive prior to it being scheduled for deletion. ISO8601 format PT[n]H[n]M[n]S.", + "type": "string" + }, + "gracePeriod": { + "description": "ISO8601 duration required for the dev box to be marked for deletion prior to it being deleted. ISO8601 format PT[n]H[n]M[n]S.", + "type": "string" + } + } + }, + "AzureAiServicesSettings": { + "description": "Configures Azure AI related services for the project.", + "type": "object", + "properties": { + "azureAiServicesMode": { + "description": "The property indicates whether Azure AI services is enabled.", + "$ref": "#/definitions/AzureAiServicesMode" + } + } + }, + "Catalog": { + "description": "Represents a catalog.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/CatalogProperties", + "description": "Catalog properties." + } + } + }, + "CatalogUpdateProperties": { + "description": "Properties of a catalog. These properties can be updated after the resource has been created.", + "type": "object", + "properties": { + "gitHub": { + "description": "Properties for a GitHub catalog type.", + "$ref": "#/definitions/GitCatalog" + }, + "adoGit": { + "description": "Properties for an Azure DevOps catalog type.", + "$ref": "#/definitions/GitCatalog" + }, + "syncType": { + "enum": [ + "Manual", + "Scheduled" + ], + "description": "Indicates the type of sync that is configured for the catalog.", + "type": "string", + "x-ms-enum": { + "name": "CatalogSyncType", + "modelAsString": true + } + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Resource tags." + } + } + }, + "CatalogProperties": { + "description": "Properties of a catalog.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CatalogUpdateProperties" + } + ], + "properties": { + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "commonDefinitions.json#/definitions/ProvisioningState", + "readOnly": true + }, + "syncState": { + "enum": [ + "Succeeded", + "InProgress", + "Failed", + "Canceled" + ], + "description": "The synchronization state of the catalog.", + "readOnly": true, + "type": "string", + "x-ms-enum": { + "name": "CatalogSyncState", + "modelAsString": true + } + }, + "lastSyncStats": { + "description": "Stats of the latest synchronization.", + "$ref": "#/definitions/SyncStats", + "readOnly": true + }, + "connectionState": { + "enum": [ + "Connected", + "Disconnected" + ], + "description": "The connection state of the catalog.", + "readOnly": true, + "type": "string", + "x-ms-enum": { + "name": "CatalogConnectionState", + "modelAsString": true + } + }, + "lastConnectionTime": { + "description": "When the catalog was last connected.", + "type": "string", + "readOnly": true, + "format": "date-time" + }, + "lastSyncTime": { + "description": "When the catalog was last synced.", + "type": "string", + "readOnly": true, + "format": "date-time" + } + } + }, + "SyncStats": { + "description": "Stats of the synchronization.", + "type": "object", + "properties": { + "added": { + "description": "Count of catalog items added during synchronization.", + "type": "integer", + "format": "int32", + "readOnly": true, + "minimum": 0 + }, + "updated": { + "description": "Count of catalog items updated during synchronization.", + "type": "integer", + "format": "int32", + "readOnly": true, + "minimum": 0 + }, + "unchanged": { + "description": "Count of catalog items that were unchanged during synchronization.", + "type": "integer", + "format": "int32", + "readOnly": true, + "minimum": 0 + }, + "removed": { + "description": "Count of catalog items removed during synchronization.", + "type": "integer", + "format": "int32", + "readOnly": true, + "minimum": 0 + }, + "validationErrors": { + "description": "Count of catalog items that had validation errors during synchronization.", + "type": "integer", + "format": "int32", + "readOnly": true, + "minimum": 0 + }, + "synchronizationErrors": { + "description": "Count of synchronization errors that occured during synchronization.", + "type": "integer", + "format": "int32", + "readOnly": true, + "minimum": 0 + }, + "syncedCatalogItemTypes": { + "description": "Indicates catalog item types that were synced.", + "type": "array", + "items": { + "$ref": "#/definitions/CatalogItemType" + } + } + } + }, + "GitCatalog": { + "description": "Properties for a Git repository catalog.", + "type": "object", + "properties": { + "uri": { + "description": "Git URI.", + "type": "string" + }, + "branch": { + "description": "Git branch.", + "type": "string" + }, + "secretIdentifier": { + "description": "A reference to the Key Vault secret containing a security token to authenticate to a Git repository.", + "type": "string" + }, + "path": { + "description": "The folder where the catalog items can be found inside the repository.", + "type": "string" + } + } + }, + "CatalogUpdate": { + "description": "The catalog's properties for partial update. Properties not provided in the update request will not be changed.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/CatalogUpdateProperties", + "description": "Catalog properties for update." + } + } + }, + "CatalogListResult": { + "description": "Results of the catalog list operation.", + "type": "object", + "properties": { + "value": { + "description": "Current page of results.", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/Catalog" + } + }, + "nextLink": { + "description": "URL to get the next set of results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "SyncErrorDetails": { + "description": "Synchronization error details.", + "type": "object", + "properties": { + "operationError": { + "description": "Error information for the overall synchronization operation.", + "readOnly": true, + "$ref": "vdi.json#/definitions/CatalogErrorDetails" + }, + "conflicts": { + "description": "Catalog items that have conflicting names.", + "type": "array", + "items": { + "$ref": "#/definitions/CatalogConflictError" + }, + "x-ms-identifiers": [], + "readOnly": true + }, + "errors": { + "description": "Errors that occured during synchronization.", + "type": "array", + "items": { + "$ref": "#/definitions/CatalogSyncError" + }, + "x-ms-identifiers": [], + "readOnly": true + } + } + }, + "CatalogSyncError": { + "description": "An individual synchronization error.", + "type": "object", + "properties": { + "path": { + "description": "The path of the file the error is associated with.", + "type": "string", + "readOnly": true + }, + "errorDetails": { + "description": "Errors associated with the file.", + "type": "array", + "items": { + "$ref": "vdi.json#/definitions/CatalogErrorDetails" + }, + "x-ms-identifiers": [], + "readOnly": true + } + } + }, + "CatalogConflictError": { + "description": "An individual conflict error.", + "type": "object", + "properties": { + "path": { + "description": "The path of the file that has a conflicting name.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Name of the conflicting catalog item.", + "type": "string", + "readOnly": true + } + } + }, + "Gallery": { + "description": "Represents a gallery.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GalleryProperties", + "description": "Gallery properties." + } + } + }, + "GalleryProperties": { + "description": "Properties of a gallery.", + "type": "object", + "properties": { + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "commonDefinitions.json#/definitions/ProvisioningState", + "readOnly": true + }, + "galleryResourceId": { + "description": "The resource ID of the backing Azure Compute Gallery.", + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + } + }, + "required": [ + "galleryResourceId" + ] + }, + "Image": { + "description": "Represents an image.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ImageProperties", + "description": "Image properties." + } + } + }, + "ImageProperties": { + "description": "Properties of an image.", + "type": "object", + "properties": { + "description": { + "description": "The description of the image.", + "type": "string", + "readOnly": true + }, + "publisher": { + "description": "The publisher of the image.", + "type": "string", + "readOnly": true + }, + "offer": { + "description": "The name of the image offer.", + "type": "string", + "readOnly": true + }, + "sku": { + "description": "The SKU name for the image.", + "type": "string", + "readOnly": true + }, + "recommendedMachineConfiguration": { + "description": "The recommended machine configuration to use with the image.", + "$ref": "#/definitions/RecommendedMachineConfiguration", + "readOnly": true + }, + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "commonDefinitions.json#/definitions/ProvisioningState", + "readOnly": true + }, + "hibernateSupport": { + "description": "Indicates whether this image has hibernate enabled. Not all images are capable of supporting hibernation. To find out more see https://aka.ms/devbox/hibernate", + "readOnly": true, + "$ref": "#/definitions/HibernateSupport" + } + } + }, + "RecommendedMachineConfiguration": { + "description": "Properties for a recommended machine configuration.", + "type": "object", + "properties": { + "memory": { + "description": "Recommended memory range.", + "$ref": "#/definitions/ResourceRange", + "readOnly": true + }, + "vCPUs": { + "description": "Recommended vCPU range.", + "$ref": "#/definitions/ResourceRange", + "readOnly": true + } + } + }, + "ResourceRange": { + "description": "Properties for a range of values.", + "type": "object", + "properties": { + "min": { + "description": "Minimum value.", + "type": "integer", + "format": "int32", + "readOnly": true + }, + "max": { + "description": "Maximum value.", + "type": "integer", + "format": "int32", + "readOnly": true + } + } + }, + "ImageVersion": { + "description": "Represents an image version.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ImageVersionProperties", + "description": "Image version properties." + } + } + }, + "ImageVersionProperties": { + "description": "Properties of an image version.", + "type": "object", + "properties": { + "name": { + "description": "The semantic version string.", + "type": "string", + "readOnly": true + }, + "publishedDate": { + "description": "The datetime that the backing image version was published.", + "type": "string", + "readOnly": true, + "format": "date-time" + }, + "excludeFromLatest": { + "description": "If the version should be excluded from being treated as the latest version.", + "type": "boolean", + "readOnly": true + }, + "osDiskImageSizeInGb": { + "description": "The size of the OS disk image, in GB.", + "type": "integer", + "format": "int32", + "readOnly": true + }, + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "commonDefinitions.json#/definitions/ProvisioningState", + "readOnly": true + } + } + }, + "GalleryListResult": { + "description": "Results of the gallery list operation.", + "type": "object", + "properties": { + "value": { + "description": "Current page of results.", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/Gallery" + } + }, + "nextLink": { + "description": "URL to get the next set of results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "ImageListResult": { + "description": "Results of the image list operation.", + "type": "object", + "properties": { + "value": { + "description": "Current page of results.", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/Image" + } + }, + "nextLink": { + "description": "URL to get the next set of results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "ImageVersionListResult": { + "description": "Results of the image version list operation.", + "type": "object", + "properties": { + "value": { + "description": "Current page of results.", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ImageVersion" + } + }, + "nextLink": { + "description": "URL to get the next set of results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "AllowedEnvironmentType": { + "description": "Represents an allowed environment type.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AllowedEnvironmentTypeProperties", + "description": "Properties of an allowed environment type." + } + } + }, + "AllowedEnvironmentTypeProperties": { + "description": "Properties of an allowed environment type.", + "type": "object", + "properties": { + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "commonDefinitions.json#/definitions/ProvisioningState", + "readOnly": true + }, + "displayName": { + "description": "The display name of the allowed environment type.", + "type": "string", + "readOnly": true + } + } + }, + "AllowedEnvironmentTypeListResult": { + "description": "Result of the allowed environment type list operation.", + "type": "object", + "properties": { + "value": { + "description": "Current page of results.", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/AllowedEnvironmentType" + } + }, + "nextLink": { + "description": "URL to get the next set of results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "EnvironmentType": { + "description": "Represents an environment type.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/EnvironmentTypeProperties", + "description": "Properties of an environment type." + }, + "tags": { + "$ref": "commonDefinitions.json#/definitions/Tags", + "description": "Resource tags." + } + } + }, + "EnvironmentTypeProperties": { + "description": "Properties of an environment type.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/EnvironmentTypeUpdateProperties" + } + ], + "properties": { + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "commonDefinitions.json#/definitions/ProvisioningState", + "readOnly": true + } + } + }, + "EnvironmentTypeUpdate": { + "description": "The environment type for partial update. Properties not provided in the update request will not be changed.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/EnvironmentTypeUpdateProperties", + "description": "Properties of an environment type to be updated." + }, + "tags": { + "$ref": "commonDefinitions.json#/definitions/Tags", + "description": "Resource tags." + } + } + }, + "EnvironmentTypeUpdateProperties": { + "description": "Properties of an environment type. These properties can be updated after the resource has been created.", + "type": "object", + "properties": { + "displayName": { + "type": "string", + "description": "The display name of the environment type." + } + } + }, + "EnvironmentTypeListResult": { + "description": "Result of the environment type list operation.", + "type": "object", + "properties": { + "value": { + "description": "Current page of results.", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/EnvironmentType" + } + }, + "nextLink": { + "description": "URL to get the next set of results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "ProjectEnvironmentType": { + "description": "Represents an environment type.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ProjectEnvironmentTypeProperties", + "description": "Properties of an environment type." + }, + "tags": { + "$ref": "commonDefinitions.json#/definitions/Tags", + "description": "Resource tags." + }, + "identity": { + "description": "Managed identity properties", + "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity" + }, + "location": { + "type": "string", + "description": "The geo-location for the environment type" + } + } + }, + "ProjectEnvironmentTypeUpdateProperties": { + "description": "Properties of a project environment type. These properties can be updated after the resource has been created.", + "type": "object", + "properties": { + "deploymentTargetId": { + "description": "Id of a subscription that the environment type will be mapped to. The environment's resources will be deployed into this subscription.", + "type": "string" + }, + "displayName": { + "description": "The display name of the project environment type.", + "type": "string" + }, + "status": { + "description": "Defines whether this Environment Type can be used in this Project.", + "$ref": "#/definitions/EnvironmentTypeEnableStatus" + }, + "creatorRoleAssignment": { + "description": "The role definition assigned to the environment creator on backing resources.", + "type": "object", + "properties": { + "roles": { + "type": "object", + "description": "A map of roles to assign to the environment creator.", + "additionalProperties": { + "$ref": "#/definitions/EnvironmentRole" + } + } + } + }, + "userRoleAssignments": { + "description": "Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role definition IDs.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/UserRoleAssignment" + } + } + } + }, + "ProjectEnvironmentTypeProperties": { + "description": "Properties of a project environment type.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ProjectEnvironmentTypeUpdateProperties" + } + ], + "properties": { + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "commonDefinitions.json#/definitions/ProvisioningState", + "readOnly": true + }, + "environmentCount": { + "description": "The number of environments of this type.", + "type": "integer", + "format": "int32", + "minimum": 0, + "readOnly": true + } + } + }, + "ProjectEnvironmentTypeUpdate": { + "description": "The project environment type for partial update. Properties not provided in the update request will not be changed.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ProjectEnvironmentTypeUpdateProperties", + "description": "Properties to configure an environment type." + }, + "tags": { + "$ref": "commonDefinitions.json#/definitions/Tags", + "description": "Resource tags." + }, + "identity": { + "description": "Managed identity properties", + "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity" + } + } + }, + "ProjectEnvironmentTypeListResult": { + "description": "Result of the project environment type list operation.", + "type": "object", + "properties": { + "value": { + "description": "Current page of results.", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ProjectEnvironmentType" + } + }, + "nextLink": { + "description": "URL to get the next set of results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "DevBoxDefinitionListResult": { + "description": "Results of the Dev Box definition list operation.", + "type": "object", + "properties": { + "value": { + "description": "Current page of results.", + "type": "array", + "items": { + "$ref": "#/definitions/DevBoxDefinition" + }, + "readOnly": true + }, + "nextLink": { + "description": "URL to get the next set of results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "DevBoxDefinitionUpdate": { + "description": "Partial update of a Dev Box definition resource.", + "type": "object", + "allOf": [ + { + "$ref": "commonDefinitions.json#/definitions/TrackedResourceUpdate" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DevBoxDefinitionUpdateProperties", + "description": "Properties of a Dev Box definition to be updated." + } + } + }, + "DevBoxDefinition": { + "description": "Represents a definition for a Developer Machine.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "description": "Dev Box definition properties", + "x-ms-client-flatten": true, + "$ref": "#/definitions/DevBoxDefinitionProperties" + } + } + }, + "DevBoxDefinitionUpdateProperties": { + "description": "Properties of a Dev Box definition. These properties can be updated after the resource has been created.", + "type": "object", + "properties": { + "imageReference": { + "$ref": "vdi.json#/definitions/ImageReference", + "description": "Image reference information." + }, + "sku": { + "description": "The SKU for Dev Boxes created using this definition.", + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Sku" + }, + "osStorageType": { + "description": "The storage type used for the Operating System disk of Dev Boxes created using this definition.", + "type": "string" + }, + "hibernateSupport": { + "description": "Indicates whether Dev Boxes created with this definition are capable of hibernation. Not all images are capable of supporting hibernation. To find out more see https://aka.ms/devbox/hibernate", + "$ref": "#/definitions/HibernateSupport" + } + } + }, + "DevBoxDefinitionProperties": { + "description": "Properties of a Dev Box definition.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/DevBoxDefinitionUpdateProperties" + } + ], + "properties": { + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "commonDefinitions.json#/definitions/ProvisioningState", + "readOnly": true + }, + "imageValidationStatus": { + "description": "Validation status of the configured image.", + "$ref": "vdi.json#/definitions/ImageValidationStatus", + "readOnly": true + }, + "imageValidationErrorDetails": { + "description": "Details for image validator error. Populated when the image validation is not successful.", + "$ref": "vdi.json#/definitions/ImageValidationErrorDetails", + "readOnly": true + }, + "validationStatus": { + "description": "Validation status for the Dev Box Definition.", + "$ref": "vdi.json#/definitions/CatalogResourceValidationStatus", + "readOnly": true + }, + "activeImageReference": { + "$ref": "vdi.json#/definitions/ImageReference", + "description": "Image reference information for the currently active image (only populated during updates).", + "readOnly": true + } + }, + "required": [ + "imageReference", + "sku" + ] + }, + "AttachedNetworkConnection": { + "description": "Represents an attached NetworkConnection.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AttachedNetworkConnectionProperties", + "description": "Attached NetworkConnection properties." + } + } + }, + "AttachedNetworkConnectionProperties": { + "description": "Properties of an attached NetworkConnection.", + "type": "object", + "properties": { + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "commonDefinitions.json#/definitions/ProvisioningState", + "readOnly": true + }, + "networkConnectionId": { + "description": "The resource ID of the NetworkConnection you want to attach.", + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "networkConnectionLocation": { + "description": "The geo-location where the NetworkConnection resource specified in 'networkConnectionResourceId' property lives.", + "type": "string", + "readOnly": true + }, + "healthCheckStatus": { + "$ref": "vdi.json#/definitions/HealthCheckStatus", + "readOnly": true + }, + "domainJoinType": { + "description": "AAD Join type of the network. This is populated based on the referenced Network Connection.", + "$ref": "vdi.json#/definitions/DomainJoinType", + "readOnly": true + } + }, + "required": [ + "networkConnectionId" + ] + }, + "AttachedNetworkListResult": { + "description": "Results of the Attached Networks list operation.", + "type": "object", + "properties": { + "value": { + "description": "Current page of results.", + "type": "array", + "items": { + "$ref": "#/definitions/AttachedNetworkConnection" + }, + "readOnly": true + }, + "nextLink": { + "description": "URL to get the next set of results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "EnvironmentRole": { + "type": "object", + "description": "A role that can be assigned to a user.", + "properties": { + "roleName": { + "description": "The common name of the Role Assignment. This is a descriptive name such as 'AcrPush'.", + "type": "string", + "readOnly": true + }, + "description": { + "description": "This is a description of the Role Assignment.", + "type": "string", + "readOnly": true + } + } + }, + "UserRoleAssignment": { + "type": "object", + "description": "Mapping of user object ID to role assignments.", + "x-ms-client-name": "userRoleAssignmentValue", + "properties": { + "roles": { + "type": "object", + "description": "A map of roles to assign to the parent user.", + "additionalProperties": { + "$ref": "#/definitions/EnvironmentRole" + } + } + } + }, + "OperationStatus": { + "description": "The current status of an async operation", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationStatusResult" + } + ], + "properties": { + "properties": { + "description": "Custom operation properties, populated only for a successful operation.", + "type": "object", + "readOnly": true + } + } + }, + "CatalogItemType": { + "description": "Indicates catalog item types.", + "enum": [ + "EnvironmentDefinition", + "ImageDefinition" + ], + "type": "string", + "x-ms-enum": { + "name": "CatalogItemType", + "modelAsString": true + } + }, + "EnvironmentTypeEnableStatus": { + "description": "Indicates whether the environment type is either enabled or disabled.", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "EnvironmentTypeEnableStatus", + "modelAsString": true + } + }, + "HibernateSupport": { + "description": "Indicates whether hibernate is enabled/disabled.", + "enum": [ + "Disabled", + "Enabled" + ], + "type": "string", + "x-ms-enum": { + "name": "HibernateSupport", + "modelAsString": true + } + }, + "AutoImageBuildStatus": { + "description": "Indicates whether auto image build is enabled/disabled.", + "enum": [ + "Disabled", + "Enabled" + ], + "type": "string", + "x-ms-enum": { + "name": "AutoImageBuildStatus", + "modelAsString": true + } + }, + "ListUsagesResult": { + "description": "List of Core Usages.", + "type": "object", + "properties": { + "value": { + "description": "The array page of Usages.", + "type": "array", + "items": { + "$ref": "#/definitions/Usage" + }, + "x-ms-identifiers": [], + "readOnly": true + }, + "nextLink": { + "description": "The link to get the next page of Usage result.", + "type": "string", + "readOnly": true + } + } + }, + "Usage": { + "description": "The core usage details.", + "type": "object", + "properties": { + "currentValue": { + "description": "The current usage.", + "type": "integer", + "format": "int64" + }, + "limit": { + "description": "The limit integer.", + "type": "integer", + "format": "int64" + }, + "unit": { + "description": "The unit details.", + "type": "string", + "enum": [ + "Count" + ], + "x-ms-enum": { + "name": "UsageUnit", + "modelAsString": true + } + }, + "name": { + "description": "The name.", + "$ref": "#/definitions/UsageName" + }, + "id": { + "description": "The fully qualified arm resource id.", + "type": "string" + } + } + }, + "UsageName": { + "description": "The Usage Names.", + "type": "object", + "properties": { + "localizedValue": { + "description": "The localized name of the resource.", + "type": "string" + }, + "value": { + "description": "The name of the resource.", + "type": "string" + } + } + }, + "CustomizationTaskListResult": { + "description": "Results of the Task list operation.", + "type": "object", + "properties": { + "value": { + "description": "Current page of results.", + "type": "array", + "items": { + "$ref": "#/definitions/CustomizationTask" + }, + "readOnly": true + }, + "nextLink": { + "description": "URL to get the next set of results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "CustomizationTask": { + "description": "Represents a Task to be used in customizing a Dev Box.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "description": "Task properties", + "x-ms-client-flatten": true, + "$ref": "#/definitions/CustomizationTaskProperties" + } + } + }, + "CustomizationTaskProperties": { + "description": "Properties of a Task.", + "type": "object", + "properties": { + "inputs": { + "description": "Inputs to the task.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/CustomizationTaskInput" + }, + "readOnly": true + }, + "timeout": { + "description": "The default timeout for the task.", + "type": "integer", + "format": "int32", + "readOnly": true + }, + "validationStatus": { + "description": "Validation status for the Task.", + "$ref": "vdi.json#/definitions/CatalogResourceValidationStatus", + "readOnly": true + } + } + }, + "CustomizationTaskInput": { + "description": "Input for a Task.", + "type": "object", + "properties": { + "description": { + "description": "Description of the input.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "Type of the input.", + "type": "string", + "enum": [ + "string", + "number", + "boolean" + ], + "x-ms-enum": { + "name": "CustomizationTaskInputType", + "modelAsString": true + }, + "readOnly": true + }, + "required": { + "description": "Whether or not the input is required.", + "type": "boolean", + "readOnly": true + } + } + }, + "EnvironmentDefinitionListResult": { + "description": "Results of the environment definition list operation.", + "type": "object", + "properties": { + "value": { + "description": "Current page of results.", + "type": "array", + "items": { + "$ref": "#/definitions/EnvironmentDefinition" + }, + "readOnly": true + }, + "nextLink": { + "description": "URL to get the next set of results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "EnvironmentDefinition": { + "description": "Represents an environment definition catalog item.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "description": "Environment definition properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/EnvironmentDefinitionProperties" + } + } + }, + "EnvironmentDefinitionProperties": { + "description": "Properties of an environment definition.", + "type": "object", + "properties": { + "description": { + "description": "A short description of the environment definition.", + "type": "string", + "readOnly": true + }, + "parameters": { + "type": "array", + "items": { + "$ref": "#/definitions/EnvironmentDefinitionParameter" + }, + "description": "Input parameters passed to an environment.", + "readOnly": true + }, + "templatePath": { + "description": "Path to the Environment Definition entrypoint file.", + "type": "string", + "readOnly": true + }, + "validationStatus": { + "description": "Validation status for the environment definition.", + "$ref": "vdi.json#/definitions/CatalogResourceValidationStatus", + "readOnly": true + } + } + }, + "EnvironmentDefinitionParameter": { + "type": "object", + "description": "Properties of an Environment Definition parameter", + "properties": { + "id": { + "type": "string", + "description": "Unique ID of the parameter", + "readOnly": true + }, + "name": { + "type": "string", + "description": "Display name of the parameter", + "readOnly": true + }, + "description": { + "type": "string", + "description": "Description of the parameter", + "readOnly": true + }, + "type": { + "description": "A string of one of the basic JSON types (number, integer, array, object, boolean, string)", + "$ref": "#/definitions/ParameterType", + "readOnly": true + }, + "readOnly": { + "type": "boolean", + "description": "Whether or not this parameter is read-only. If true, default should have a value.", + "readOnly": true + }, + "required": { + "type": "boolean", + "description": "Whether or not this parameter is required", + "readOnly": true + } + } + }, + "ParameterType": { + "type": "string", + "enum": [ + "array", + "boolean", + "integer", + "number", + "object", + "string" + ], + "description": "The type of data a parameter accepts.", + "readOnly": true, + "x-ms-enum": { + "name": "ParameterType", + "modelAsString": true, + "values": [ + { + "value": "array", + "description": "The parameter accepts an array of values." + }, + { + "value": "boolean", + "description": "The parameter accepts a boolean value." + }, + { + "value": "integer", + "description": "The parameter accepts an integer value." + }, + { + "value": "number", + "description": "The parameter accepts a number value." + }, + { + "value": "object", + "description": "The parameter accepts an object value." + }, + { + "value": "string", + "description": "The parameter accepts a string value." + } + ] + } + }, + "CheckScopedNameAvailabilityRequest": { + "description": "The scoped name check availability request body.", + "type": "object", + "properties": { + "name": { + "description": "The name of the resource for which availability needs to be checked.", + "type": "string" + }, + "type": { + "description": "The resource type.", + "type": "string" + }, + "scope": { + "description": "The resource id to scope the name check.", + "type": "string" + } + } + }, + "ImageDefinitionListResult": { + "description": "Results of the Image Definition list operation.", + "type": "object", + "properties": { + "value": { + "description": "Current page of results.", + "type": "array", + "items": { + "$ref": "#/definitions/ImageDefinition" + }, + "readOnly": true + }, + "nextLink": { + "description": "URL to get the next set of results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "ImageDefinition": { + "description": "Represents a definition for an Image.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "description": "Image Definition properties", + "x-ms-client-flatten": true, + "$ref": "#/definitions/ImageDefinitionProperties" + } + } + }, + "ImageDefinitionProperties": { + "description": "Properties of an Image Definition.", + "type": "object", + "properties": { + "imageReference": { + "$ref": "vdi.json#/definitions/ImageReference", + "description": "Image reference information." + }, + "fileUrl": { + "description": "The URL to the repository file containing the image definition.", + "type": "string", + "readOnly": true + }, + "latestBuild": { + "$ref": "#/definitions/LatestImageBuild", + "description": "Details about the latest build." + }, + "imageValidationStatus": { + "description": "Validation status of the configured image.", + "$ref": "vdi.json#/definitions/ImageValidationStatus", + "readOnly": true + }, + "imageValidationErrorDetails": { + "description": "Details for image validator error. Populated when the image validation is not successful.", + "$ref": "vdi.json#/definitions/ImageValidationErrorDetails", + "readOnly": true + }, + "validationStatus": { + "description": "Validation status for the Image Definition.", + "$ref": "vdi.json#/definitions/CatalogResourceValidationStatus", + "readOnly": true + }, + "activeImageReference": { + "$ref": "vdi.json#/definitions/ImageReference", + "description": "Image reference information for the currently active image (only populated during updates).", + "readOnly": true + }, + "autoImageBuild": { + "description": "Indicates if automatic image builds will be triggered for image definition updates", + "$ref": "#/definitions/AutoImageBuildStatus", + "readOnly": true + }, + "tasks": { + "description": "Tasks to run at Dev Box provisioning time.", + "type": "array", + "items": { + "$ref": "#/definitions/CustomizationTaskInstance" + } + }, + "userTasks": { + "description": "Tasks to run when a user first logs into a Dev Box.", + "type": "array", + "items": { + "$ref": "#/definitions/CustomizationTaskInstance" + } + }, + "extends": { + "description": "Another Image Definition that this one extends.", + "$ref": "#/definitions/ImageDefinitionReference" + } + } + }, + "ImageDefinitionReference": { + "type": "object", + "description": "A reference to an Image Definition.", + "required": [ + "imageDefinition" + ], + "properties": { + "imageDefinition": { + "type": "string", + "description": "Name of the referenced Image Definition." + }, + "parameters": { + "description": "Parameters for the referenced Image Definition.", + "$ref": "#/definitions/DefinitionParameters" + } + } + }, + "CustomizationTaskInstance": { + "type": "object", + "description": "A customization task to run.", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the task." + }, + "parameters": { + "description": "Parameters for the task.", + "$ref": "#/definitions/DefinitionParameters" + }, + "displayName": { + "type": "string", + "description": "Display name to help differentiate multiple instances of the same task." + }, + "timeoutInSeconds": { + "type": "integer", + "format": "int32", + "description": "Timeout, in seconds. Overrides any timeout provided on the task definition." + }, + "condition": { + "type": "string", + "description": "An expression that must evaluate to true in order for the task to run." + } + } + }, + "DefinitionParameters": { + "description": "Parameters for the definition task.", + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": [ + "name", + "value" + ] + } + }, + "LatestImageBuild": { + "type": "object", + "description": "Details about the latest build.", + "properties": { + "name": { + "description": "Identifier of a build.", + "type": "string", + "readOnly": true + }, + "startTime": { + "description": "Start time of the task group.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "endTime": { + "description": "End time of the task group.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "status": { + "description": "The state of an Image Definition Build.", + "$ref": "#/definitions/ImageDefinitionBuildStatus", + "readOnly": true + } + } + }, + "ImageDefinitionBuildStatus": { + "type": "string", + "enum": [ + "Succeeded", + "Running", + "ValidationFailed", + "Failed", + "Cancelled", + "TimedOut" + ], + "description": "The state of an Image Definition Build.", + "readOnly": true, + "x-ms-enum": { + "name": "ImageDefinitionBuildStatus", + "modelAsString": true, + "values": [ + { + "value": "Succeeded", + "description": "The image build has succeeded." + }, + { + "value": "Running", + "description": "The image build is running." + }, + { + "value": "ValidationFailed", + "description": "The built image has failed validation." + }, + { + "value": "Failed", + "description": "The image build has failed." + }, + { + "value": "Cancelled", + "description": "The image build has been cancelled." + }, + { + "value": "TimedOut", + "description": "The image build has timed out." + } + ] + } + }, + "ImageDefinitionBuildListResult": { + "description": "Results of the Image Definition Build list operation.", + "type": "object", + "properties": { + "value": { + "description": "Current page of results.", + "type": "array", + "items": { + "$ref": "#/definitions/ImageDefinitionBuild" + }, + "readOnly": true + }, + "nextLink": { + "description": "URL to get the next set of results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "ImageDefinitionBuild": { + "description": "Represents a specific build of an Image Definition.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "description": "Image Definition Build properties", + "x-ms-client-flatten": true, + "$ref": "#/definitions/ImageDefinitionBuildProperties" + } + } + }, + "ImageDefinitionBuildProperties": { + "description": "Properties of an Image Definition Build.", + "type": "object", + "properties": { + "imageReference": { + "$ref": "vdi.json#/definitions/ImageReference", + "description": "The specific image version used by the build.", + "readOnly": true + }, + "status": { + "description": "The status of the build.", + "$ref": "#/definitions/ImageDefinitionBuildStatus", + "readOnly": true + }, + "startTime": { + "description": "Start time of the task group.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "endTime": { + "description": "End time of the task group.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "errorDetails": { + "description": "Details for image creation error. Populated when the image creation is not successful.", + "$ref": "#/definitions/ImageCreationErrorDetails", + "readOnly": true + } + } + }, + "ImageDefinitionBuildDetails": { + "description": "Represents a specific build of an Image Definition.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "imageReference": { + "$ref": "vdi.json#/definitions/ImageReference", + "description": "The specific image version used by the build.", + "readOnly": true + }, + "status": { + "description": "The status of the build.", + "$ref": "#/definitions/ImageDefinitionBuildStatus", + "readOnly": true + }, + "startTime": { + "description": "Start time of the task group.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "endTime": { + "description": "End time of the task group.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "errorDetails": { + "description": "Details for image creation error. Populated when the image creation is not successful.", + "$ref": "#/definitions/ImageCreationErrorDetails", + "readOnly": true + }, + "taskGroups": { + "description": "The list of task groups executed during the image definition build.", + "type": "array", + "items": { + "$ref": "#/definitions/ImageDefinitionBuildTaskGroup" + }, + "readOnly": true + } + } + }, + "ImageCreationErrorDetails": { + "type": "object", + "description": "Image creation error details", + "properties": { + "code": { + "type": "string", + "description": "An identifier for the error." + }, + "message": { + "type": "string", + "description": "A message describing the error." + } + } + }, + "ImageDefinitionBuildTaskGroup": { + "description": "A task group executed during the image definition build.", + "type": "object", + "properties": { + "name": { + "description": "The name of the task group.", + "type": "string", + "readOnly": true + }, + "status": { + "description": "The status of the task group.", + "$ref": "#/definitions/ImageDefinitionBuildStatus", + "readOnly": true + }, + "startTime": { + "description": "Start time of the task group.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "endTime": { + "description": "End time of the task group.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "tasks": { + "description": "The list of tasks executed during the task group.", + "type": "array", + "items": { + "$ref": "#/definitions/ImageDefinitionBuildTask" + }, + "readOnly": true + } + } + }, + "ImageDefinitionBuildTask": { + "description": "A task executed during the image definition build.", + "type": "object", + "properties": { + "name": { + "description": "The name of the task.", + "type": "string" + }, + "parameters": { + "description": "Parameters for the task.", + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": [ + "key", + "value" + ] + } + }, + "displayName": { + "description": "Display name to help differentiate multiple instances of the same task.", + "type": "string" + }, + "id": { + "description": "ID of the task instance.", + "type": "string", + "readOnly": true + }, + "startTime": { + "description": "Start time of the task.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "endTime": { + "description": "End time of the task.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "status": { + "description": "The status of the task.", + "$ref": "#/definitions/ImageDefinitionBuildStatus", + "readOnly": true + }, + "logUri": { + "description": "The URI for retrieving logs for the task execution.", + "type": "string", + "readOnly": true + } + } + } + }, + "parameters": { + "DevCenterNameParameter": { + "name": "devCenterName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the devcenter.", + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$", + "minLength": 3, + "maxLength": 26 + }, + "DevCenterEncryptionSetNameParameter": { + "name": "encryptionSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the devcenter encryption set.", + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$", + "minLength": 3, + "maxLength": 63 + }, + "ProjectPolicyNameParameter": { + "name": "projectPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the project policy.", + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", + "minLength": 3, + "maxLength": 63 + }, + "ProjectNameParameter": { + "name": "projectName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the project.", + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", + "minLength": 3, + "maxLength": 63 + }, + "CatalogNameParameter": { + "name": "catalogName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Catalog.", + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", + "minLength": 3, + "maxLength": 63 + }, + "GalleryNameParameter": { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery.", + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", + "minLength": 3, + "maxLength": 63 + }, + "ImageNameParameter": { + "name": "imageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the image.", + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-.]{0,78}[a-zA-Z0-9]$", + "minLength": 3, + "maxLength": 80 + }, + "ProjectImageNameParameter": { + "name": "imageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the image.", + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9~][a-zA-Z0-9-.~]{0,151}[a-zA-Z0-9]$", + "minLength": 3, + "maxLength": 153 + }, + "VersionNameParameter": { + "name": "versionName", + "in": "path", + "required": true, + "type": "string", + "description": "The version of the image.", + "x-ms-parameter-location": "method", + "pattern": "^[0-9]{1,10}[.][0-9]{1,10}[.][0-9]{1,10}$", + "minLength": 5, + "maxLength": 32 + }, + "EnvironmentTypeNameParameter": { + "name": "environmentTypeName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the environment type.", + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", + "minLength": 3, + "maxLength": 63 + }, + "AttachedNetworkConnectionNameParameter": { + "name": "attachedNetworkConnectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the attached NetworkConnection.", + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", + "minLength": 3, + "maxLength": 63 + }, + "DevBoxDefinitionName": { + "name": "devBoxDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Dev Box definition.", + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", + "minLength": 3, + "maxLength": 63 + }, + "FilterParameter": { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName').", + "type": "string", + "required": false, + "x-ms-parameter-location": "method" + }, + "LocationParameter": { + "name": "location", + "in": "path", + "description": "The Azure region", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "OperationIdParameter": { + "name": "operationId", + "in": "path", + "description": "The ID of an ongoing async operation", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "CustomizationTaskNameParameter": { + "name": "taskName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Task.", + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", + "minLength": 3, + "maxLength": 63 + }, + "EnvironmentDefinitionNameParameter": { + "name": "environmentDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Environment Definition.", + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", + "minLength": 3, + "maxLength": 63 + }, + "ImageDefinitionNameParameter": { + "name": "imageDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Image Definition.", + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", + "minLength": 3, + "maxLength": 63 + }, + "ImageDefinitionBuildNameParameter": { + "name": "buildName", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Image Definition Build.", + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", + "minLength": 3, + "maxLength": 63 + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_Create.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_Create.json new file mode 100644 index 000000000000..f7e1bd3c365f --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_Create.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "attachedNetworkConnectionName": "network-uswest3", + "body": { + "properties": { + "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-uswest3", + "name": "network-uswest3", + "type": "Microsoft.DevCenter/devcenters/attachednetworks", + "properties": { + "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3", + "provisioningState": "Accepted" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-uswest3", + "name": "network-uswest3", + "type": "Microsoft.DevCenter/devcenters/attachednetworks", + "properties": { + "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3", + "provisioningState": "Accepted" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_Delete.json new file mode 100644 index 000000000000..4825cae6d7ad --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_Delete.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "attachedNetworkConnectionName": "network-uswest3" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + }, + "204": {} + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_GetByDevCenter.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_GetByDevCenter.json new file mode 100644 index 000000000000..952eec70bed3 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_GetByDevCenter.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "attachedNetworkConnectionName": "network-uswest3" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-uswest3", + "name": "network-uswest3", + "type": "Microsoft.DevCenter/devcenters/attachednetworks", + "properties": { + "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3", + "networkConnectionLocation": "centralus", + "healthCheckStatus": "Healthy", + "provisioningState": "Created" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_GetByProject.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_GetByProject.json new file mode 100644 index 000000000000..1b004c4afa6d --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_GetByProject.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "attachedNetworkConnectionName": "network-uswest3" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/attachednetworks/network-uswest3", + "name": "network-uswest3", + "type": "Microsoft.DevCenter/projects/attachednetworks", + "properties": { + "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3", + "networkConnectionLocation": "centralus", + "healthCheckStatus": "Healthy", + "provisioningState": "Created" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_ListByDevCenter.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_ListByDevCenter.json new file mode 100644 index 000000000000..a691fcf0e57d --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_ListByDevCenter.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/netmap1", + "name": "netmap1", + "type": "Microsoft.DevCenter/devcenters/attachedNetworks", + "properties": { + "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3", + "networkConnectionLocation": "centralus", + "healthCheckStatus": "Healthy", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "Application", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + }, + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/netmap2", + "name": "netmap2", + "type": "Microsoft.DevCenter/devcenters/attachedNetworks", + "properties": { + "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/network-uswest3", + "networkConnectionLocation": "centralus", + "healthCheckStatus": "Healthy", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_ListByProject.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_ListByProject.json new file mode 100644 index 000000000000..06ab2a09066f --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_ListByProject.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/attachednetworks/netmap1", + "name": "netmap1", + "type": "Microsoft.DevCenter/projects/attachedNetworks", + "properties": { + "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3", + "networkConnectionLocation": "centralus", + "healthCheckStatus": "Healthy", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "Application", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + }, + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/attachednetworks/netmap2", + "name": "netmap2", + "type": "Microsoft.DevCenter/projects/attachedNetworks", + "properties": { + "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3", + "networkConnectionLocation": "centralus", + "healthCheckStatus": "Healthy", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Connect.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Connect.json new file mode 100644 index 000000000000..66fd2c4c7605 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Connect.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "catalogName": "CentralCatalog" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_CreateAdo.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_CreateAdo.json new file mode 100644 index 000000000000..6bff100712b1 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_CreateAdo.json @@ -0,0 +1,92 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "catalogName": "CentralCatalog", + "body": { + "properties": { + "adoGit": { + "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "path": "/templates" + }, + "syncType": "Scheduled" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", + "name": "CentralCatalog", + "type": "Microsoft.DevCenter/devcenters/catalogs", + "properties": { + "adoGit": { + "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "path": "/templates" + }, + "lastSyncStats": { + "added": 0, + "updated": 0, + "unchanged": 0, + "removed": 0, + "validationErrors": 0, + "synchronizationErrors": 0 + }, + "provisioningState": "Accepted", + "connectionState": "Connected", + "syncState": "Succeeded", + "syncType": "Scheduled" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", + "name": "CentralCatalog", + "type": "Microsoft.DevCenter/devcenters/catalogs", + "properties": { + "adoGit": { + "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "path": "/templates" + }, + "lastSyncStats": { + "added": 0, + "updated": 0, + "unchanged": 0, + "removed": 0, + "validationErrors": 0, + "synchronizationErrors": 0 + }, + "provisioningState": "Accepted", + "connectionState": "Connected", + "syncState": "Succeeded", + "syncType": "Scheduled" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_CreateGitHub.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_CreateGitHub.json new file mode 100644 index 000000000000..959a819546d0 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_CreateGitHub.json @@ -0,0 +1,92 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "catalogName": "CentralCatalog", + "body": { + "properties": { + "gitHub": { + "uri": "https://github.com/Contoso/centralrepo-fake.git", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "path": "/templates" + }, + "syncType": "Manual" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", + "name": "CentralCatalog", + "type": "Microsoft.DevCenter/devcenters/catalogs", + "properties": { + "gitHub": { + "uri": "https://github.com/Contoso/centralrepo-fake.git", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "path": "/templates" + }, + "lastSyncStats": { + "added": 0, + "updated": 0, + "unchanged": 0, + "removed": 0, + "validationErrors": 0, + "synchronizationErrors": 0 + }, + "provisioningState": "Accepted", + "connectionState": "Connected", + "syncState": "Succeeded", + "syncType": "Manual" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", + "name": "CentralCatalog", + "type": "Microsoft.DevCenter/devcenters/catalogs", + "properties": { + "gitHub": { + "uri": "https://github.com/Contoso/centralrepo-fake.git", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "path": "/templates" + }, + "lastSyncStats": { + "added": 0, + "updated": 0, + "unchanged": 0, + "removed": 0, + "validationErrors": 0, + "synchronizationErrors": 0 + }, + "provisioningState": "Accepted", + "connectionState": "Connected", + "syncState": "Succeeded", + "syncType": "Manual" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Delete.json new file mode 100644 index 000000000000..ab062fc7770d --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Delete.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "catalogName": "CentralCatalog" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + }, + "204": {} + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Get.json new file mode 100644 index 000000000000..96174ad16194 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Get.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "catalogName": "CentralCatalog" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", + "name": "CentralCatalog", + "type": "Microsoft.DevCenter/devcenters/catalogs", + "properties": { + "gitHub": { + "uri": "https://github.com/Contoso/centralrepo-fake.git", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "path": "/templates" + }, + "lastSyncStats": { + "added": 1, + "updated": 1, + "unchanged": 1, + "removed": 1, + "validationErrors": 1, + "synchronizationErrors": 1 + }, + "lastConnectionTime": "2020-11-18T18:28:00.314Z", + "lastSyncTime": "2020-11-18T18:28:00.314Z", + "provisioningState": "Succeeded", + "connectionState": "Connected", + "syncState": "Succeeded", + "syncType": "Scheduled" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_GetSyncErrorDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_GetSyncErrorDetails.json new file mode 100644 index 000000000000..27995254fe1b --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_GetSyncErrorDetails.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "catalogName": "CentralCatalog" + }, + "responses": { + "200": { + "body": { + "operationError": { + "code": "Conflict", + "message": "The source control credentials could not be validated successfully." + }, + "conflicts": [ + { + "path": "/Environments/Duplicate/manifest.yaml", + "name": "DuplicateEnvironmentName" + } + ], + "errors": [ + { + "path": "/Environments/Invalid/manifest.yaml", + "errorDetails": [ + { + "code": "ParseError", + "message": "Schema Error Within Catalog Item: Missing Name" + } + ] + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_List.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_List.json new file mode 100644 index 000000000000..224b20a6aafb --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_List.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", + "name": "CentralCatalog", + "type": "Microsoft.DevCenter/devcenters/catalogs", + "properties": { + "gitHub": { + "uri": "https://github.com/Contoso/centralrepo-fake.git", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "path": "/templates" + }, + "lastSyncStats": { + "added": 1, + "updated": 1, + "unchanged": 1, + "removed": 1, + "validationErrors": 1, + "synchronizationErrors": 1 + }, + "lastConnectionTime": "2020-11-18T18:28:00.314Z", + "lastSyncTime": "2020-11-18T18:28:00.314Z", + "provisioningState": "Succeeded", + "connectionState": "Connected", + "syncState": "Succeeded" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Patch.json new file mode 100644 index 000000000000..35f1832e027c --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Patch.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "catalogName": "CentralCatalog", + "body": { + "properties": { + "gitHub": { + "path": "/environments" + }, + "syncType": "Scheduled" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", + "name": "CentralCatalog", + "type": "Microsoft.DevCenter/devcenters/catalogs", + "properties": { + "gitHub": { + "uri": "https://github.com/Contoso/centralrepo-fake.git", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "path": "/environments" + }, + "lastSyncStats": { + "added": 1, + "updated": 1, + "unchanged": 1, + "removed": 1, + "validationErrors": 1, + "synchronizationErrors": 1 + }, + "lastConnectionTime": "2020-11-18T18:28:00.314Z", + "lastSyncTime": "2020-11-18T18:28:00.314Z", + "provisioningState": "Succeeded", + "connectionState": "Connected", + "syncState": "Succeeded", + "syncType": "Scheduled" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Sync.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Sync.json new file mode 100644 index 000000000000..66fd2c4c7605 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Sync.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "catalogName": "CentralCatalog" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckNameAvailability.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckNameAvailability.json new file mode 100644 index 000000000000..cdd1ee388f95 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckNameAvailability.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "nameAvailabilityRequest": { + "name": "name1", + "type": "Microsoft.DevCenter/devcenters" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckScopedNameAvailability_DevCenterCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckScopedNameAvailability_DevCenterCatalog.json new file mode 100644 index 000000000000..f1d99091cfdd --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckScopedNameAvailability_DevCenterCatalog.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "nameAvailabilityRequest": { + "name": "name1", + "type": "Microsoft.DevCenter/devcenters/catalogs", + "scope": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckScopedNameAvailability_ProjectCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckScopedNameAvailability_ProjectCatalog.json new file mode 100644 index 000000000000..0364ed7480d0 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckScopedNameAvailability_ProjectCatalog.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "nameAvailabilityRequest": { + "name": "name1", + "type": "Microsoft.DevCenter/projects/catalogs", + "scope": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_Get.json new file mode 100644 index 000000000000..06d73f198ff2 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_Get.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "catalogName": "CentralCatalog", + "taskName": "SampleTask" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog/tasks/SampleTask", + "name": "SampleTask", + "type": "Microsoft.DevCenter/devcenters/catalogs/tasks", + "properties": { + "inputs": { + "package": { + "type": "string", + "required": true + }, + "feed": { + "type": "string" + } + }, + "timeout": 30, + "validationStatus": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_GetErrorDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_GetErrorDetails.json new file mode 100644 index 000000000000..69a4976c0e01 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_GetErrorDetails.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "catalogName": "CentralCatalog", + "taskName": "SampleTask" + }, + "responses": { + "200": { + "body": { + "errors": [ + { + "code": "ParameterValueInvalid", + "message": "Expected parameter value for 'InstanceCount' to be integer but found the string 'test'." + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_ListByCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_ListByCatalog.json new file mode 100644 index 000000000000..a6972810bd5d --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_ListByCatalog.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "catalogName": "CentralCatalog" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog/tasks/SampleTask", + "name": "SampleTask", + "type": "Microsoft.DevCenter/devcenters/catalogs/tasks", + "properties": { + "inputs": { + "package": { + "type": "string", + "required": true + }, + "feed": { + "type": "string" + } + }, + "timeout": 30 + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Create.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Create.json new file mode 100644 index 000000000000..23a84596c49b --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Create.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "devBoxDefinitionName": "WebDevBox", + "body": { + "properties": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "sku": { + "name": "Preview" + }, + "hibernateSupport": "Enabled" + }, + "location": "centralus" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/devboxdefinitions/devBoxDefinitionName", + "name": "WebDevBox", + "type": "Microsoft.DevCenter/devcenters/devboxdefinitions", + "properties": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "sku": { + "name": "Preview" + }, + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded" + }, + "location": "centralus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/devboxdefinitions/devBoxDefinitionName", + "name": "WebDevBox", + "type": "Microsoft.DevCenter/devcenters/devboxdefinitions", + "properties": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "sku": { + "name": "Preview" + }, + "hibernateSupport": "Enabled", + "provisioningState": "Created" + }, + "location": "centralus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Delete.json new file mode 100644 index 000000000000..f217b4155801 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Delete.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "devBoxDefinitionName": "WebDevBox" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + }, + "204": {} + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Get.json new file mode 100644 index 000000000000..e85a289701d1 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Get.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "devBoxDefinitionName": "WebDevBox" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/devboxdefinitions/WebDevBox", + "name": "WebDevBox", + "type": "Microsoft.DevCenter/devcenters/devboxdefinitions", + "properties": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "sku": { + "name": "Preview" + }, + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded" + }, + "location": "centralus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_GetByProject.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_GetByProject.json new file mode 100644 index 000000000000..f25a535e2e72 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_GetByProject.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "ContosoProject", + "devBoxDefinitionName": "WebDevBox" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProject/devboxdefinitions/WebDevBox", + "name": "WebDevBox", + "type": "Microsoft.DevCenter/projects/devboxdefinitions", + "properties": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "sku": { + "name": "Preview" + }, + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded" + }, + "location": "centralus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_ListByDevCenter.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_ListByDevCenter.json new file mode 100644 index 000000000000..9686d747401a --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_ListByDevCenter.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "devBoxDefinitionName": "WebDevBox" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/devboxdefinitions/WebDevBox", + "name": "WebDevBox", + "type": "Microsoft.DevCenter/devcenters/devboxdefinitions", + "properties": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "sku": { + "name": "Preview" + }, + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded" + }, + "location": "centralus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_ListByProject.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_ListByProject.json new file mode 100644 index 000000000000..053a9b28ac69 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_ListByProject.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "ContosoProject", + "devBoxDefinitionName": "WebDevBox" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProject/devboxdefinitions/WebDevBox", + "name": "WebDevBox", + "type": "Microsoft.DevCenter/projects/devboxdefinitions", + "properties": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "sku": { + "name": "Preview" + }, + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded" + }, + "location": "centralus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Patch.json new file mode 100644 index 000000000000..62bf2371b494 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Patch.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "devBoxDefinitionName": "WebDevBox", + "body": { + "properties": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/version/2.0.0" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/devboxdefinitions/WebDevBox", + "name": "WebDevBox", + "type": "Microsoft.DevCenter/devcenters/devboxdefinitions", + "properties": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/version/2.0.0" + }, + "sku": { + "name": "Preview" + }, + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded" + }, + "location": "centralus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Create.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Create.json new file mode 100644 index 000000000000..401525cae405 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Create.json @@ -0,0 +1,96 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "encryptionSetName": "EncryptionWestUs", + "body": { + "location": "westus", + "properties": { + "devboxDisksEncryptionEnableStatus": "Enabled", + "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", + "keyEncryptionKeyIdentity": { + "type": "UserAssigned", + "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + } + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUs", + "name": "EncryptionWestUs", + "type": "Microsoft.DevCenter/devcenters/encryptionSets", + "properties": { + "devboxDisksEncryptionEnableStatus": "Enabled", + "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", + "keyEncryptionKeyIdentity": { + "type": "UserAssigned", + "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + }, + "provisioningState": "Accepted" + }, + "location": "westus", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUs", + "name": "EncryptionWestUs", + "type": "Microsoft.DevCenter/devcenters/encryptionSets", + "properties": { + "devboxDisksEncryptionEnableStatus": "Enabled", + "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", + "keyEncryptionKeyIdentity": { + "type": "UserAssigned", + "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + }, + "provisioningState": "Accepted" + }, + "location": "westus", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_CreateWithKeyIdentity.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_CreateWithKeyIdentity.json new file mode 100644 index 000000000000..69f74871a671 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_CreateWithKeyIdentity.json @@ -0,0 +1,96 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "encryptionSetName": "EncryptionWestUsWithKeyIdentity", + "body": { + "location": "westus", + "properties": { + "devboxDisksEncryptionEnableStatus": "Enabled", + "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", + "keyEncryptionKeyIdentity": { + "type": "UserAssigned", + "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + } + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUsWithKeyIdentity", + "name": "EncryptionWestUsWithKeyIdentity", + "type": "Microsoft.DevCenter/devcenters/encryptionSets", + "properties": { + "devboxDisksEncryptionEnableStatus": "Enabled", + "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", + "keyEncryptionKeyIdentity": { + "type": "UserAssigned", + "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + }, + "provisioningState": "Accepted" + }, + "location": "westus", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUsWithKeyIdentity", + "name": "EncryptionWestUsWithKeyIdentity", + "type": "Microsoft.DevCenter/devcenters/encryptionSets", + "properties": { + "devboxDisksEncryptionEnableStatus": "Enabled", + "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", + "keyEncryptionKeyIdentity": { + "type": "UserAssigned", + "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + }, + "provisioningState": "Accepted" + }, + "location": "westus", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_CreateWithSystemAssignedKeyIdentity.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_CreateWithSystemAssignedKeyIdentity.json new file mode 100644 index 000000000000..670060dd4e6f --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_CreateWithSystemAssignedKeyIdentity.json @@ -0,0 +1,85 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "encryptionSetName": "EncryptionWestUsSystemAssigned", + "body": { + "location": "westus", + "properties": { + "devboxDisksEncryptionEnableStatus": "Enabled", + "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", + "keyEncryptionKeyIdentity": { + "type": "SystemAssigned", + "userAssignedIdentityResourceId": "SystemAssigned" + } + }, + "identity": { + "type": "SystemAssigned" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUsSystemAssigned", + "name": "EncryptionWestUsSystemAssigned", + "type": "Microsoft.DevCenter/devcenters/encryptionSets", + "properties": { + "devboxDisksEncryptionEnableStatus": "Enabled", + "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", + "keyEncryptionKeyIdentity": { + "type": "SystemAssigned", + "userAssignedIdentityResourceId": "SystemAssigned" + }, + "provisioningState": "Accepted" + }, + "location": "westus", + "identity": { + "type": "SystemAssigned", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUsSystemAssigned", + "name": "EncryptionWestUsSystemAssigned", + "type": "Microsoft.DevCenter/devcenters/encryptionSets", + "properties": { + "devboxDisksEncryptionEnableStatus": "Enabled", + "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", + "keyEncryptionKeyIdentity": { + "type": "SystemAssigned", + "userAssignedIdentityResourceId": "SystemAssigned" + }, + "provisioningState": "Accepted" + }, + "location": "westus", + "identity": { + "type": "SystemAssigned", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Delete.json new file mode 100644 index 000000000000..9eb16c46cfd3 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Delete.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "encryptionSetName": "EncryptionWestUs" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2024-10-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2024-10-01-preview" + } + }, + "204": {} + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Get.json new file mode 100644 index 000000000000..9c54036f01e4 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Get.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "encryptionSetName": "EncryptionWestUs" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUs", + "name": "EncryptionWestUs", + "type": "Microsoft.DevCenter/devcenters/encryptionSets", + "properties": { + "devboxDisksEncryptionEnableStatus": "Enabled", + "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", + "keyEncryptionKeyIdentity": { + "type": "UserAssigned", + "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + }, + "provisioningState": "Succeeded" + }, + "location": "westus", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_List.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_List.json new file mode 100644 index 000000000000..a27bd64a9582 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_List.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUs", + "name": "EncryptionWestUs", + "type": "Microsoft.DevCenter/devcenters/encryptionSets", + "properties": { + "devboxDisksEncryptionEnableStatus": "Enabled", + "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", + "keyEncryptionKeyIdentity": { + "type": "UserAssigned", + "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + }, + "provisioningState": "Succeeded" + }, + "location": "westus", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Patch.json new file mode 100644 index 000000000000..54a85e5fd86d --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Patch.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "encryptionSetName": "EncryptionWestUs", + "body": { + "properties": { + "devboxDisksEncryptionEnableStatus": "Enabled" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUs", + "name": "EncryptionWestUs", + "type": "Microsoft.DevCenter/devcenters/encryptionSets", + "properties": { + "devboxDisksEncryptionEnableStatus": "Enabled", + "keyEncryptionKeyUrl": "https://contosovault.vault.azure.net/keys/contosokekwestus", + "keyEncryptionKeyIdentity": { + "type": "UserAssigned", + "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + }, + "provisioningState": "Accepted" + }, + "location": "westus", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2024-10-01-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2024-10-01-preview" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_PatchKeyIdentity.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_PatchKeyIdentity.json new file mode 100644 index 000000000000..46e6c253b786 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_PatchKeyIdentity.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "encryptionSetName": "EncryptionWestUs", + "body": { + "properties": { + "keyEncryptionKeyIdentity": { + "type": "SystemAssigned", + "userAssignedIdentityResourceId": "SystemAssigned" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUs", + "name": "EncryptionWestUs", + "type": "Microsoft.DevCenter/devcenters/encryptionSets", + "properties": { + "devboxDisksEncryptionEnableStatus": "Enabled", + "keyEncryptionKeyUrl": "https://contosovault.vault.azure.net/keys/contosokekwestus", + "keyEncryptionKeyIdentity": { + "type": "SystemAssigned", + "userAssignedIdentityResourceId": "SystemAssigned" + }, + "provisioningState": "Accepted" + }, + "location": "westus", + "identity": { + "type": "SystemAssigned", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_BuildImage.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_BuildImage.json new file mode 100644 index 000000000000..8bcaf51157c3 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_BuildImage.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "DevDevCenter", + "catalogName": "CentralCatalog", + "imageDefinitionName": "DefaultDevImage" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_CancelImageBuild.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_CancelImageBuild.json new file mode 100644 index 000000000000..5d1f060509a7 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_CancelImageBuild.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "DevDevCenter", + "catalogName": "CentralCatalog", + "imageDefinitionName": "DefaultDevImage", + "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetErrorDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetErrorDetails.json new file mode 100644 index 000000000000..4e9726bc800d --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetErrorDetails.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "DevDevCenter", + "catalogName": "TeamCatalog", + "imageDefinitionName": "WebDevBox" + }, + "responses": { + "200": { + "body": { + "errors": [ + { + "code": "CatalogItemNotExist", + "message": "Task choco doesn't exist in the dev center." + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetImageBuild.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetImageBuild.json new file mode 100644 index 000000000000..65e0a3f9952f --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetImageBuild.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "DevDevCenter", + "catalogName": "CentralCatalog", + "imageDefinitionName": "DefaultDevImage", + "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/DevDevCenter/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "type": "Microsoft.DevCenter/centers/catalogs/imageDefinitions/builds", + "properties": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "status": "Succeeded" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetImageBuildDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetImageBuildDetails.json new file mode 100644 index 000000000000..55455b010389 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetImageBuildDetails.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "DevDevCenter", + "catalogName": "CentralCatalog", + "imageDefinitionName": "DefaultDevImage", + "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7" + }, + "responses": { + "200": { + "body": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "status": "Succeeded", + "taskGroups": [ + { + "name": "Provisioning", + "status": "Succeeded", + "startTime": "2020-11-18T18:25:02.224Z", + "endTime": "2020-11-18T18:25:12.952Z", + "tasks": [ + { + "name": "Provisioning", + "status": "Succeeded", + "displayName": "Provisioning", + "startTime": "2020-11-18T18:25:02.224Z", + "endTime": "2020-11-18T18:25:12.952Z", + "id": "e72eb35f-f406-42ec-8b93-7d18a9f7b059", + "logUri": "" + } + ] + }, + { + "name": "Customizations", + "status": "Succeeded", + "startTime": "2020-11-18T18:25:02.224Z", + "endTime": "2020-11-18T18:25:12.952Z", + "tasks": [ + { + "name": "vs2022", + "status": "Succeeded", + "displayName": "Install Visual Studio 2022", + "startTime": "2020-11-18T18:25:02.224Z", + "endTime": "2020-11-18T18:25:12.952Z", + "id": "e72eb35f-f406-42ec-8b93-7d18a9f7b059", + "logUri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/DevProject/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7/logs/e72eb35f-f406-42ec-8b93-7d18a9f7b059" + } + ] + }, + { + "name": "Generalization", + "status": "Succeeded", + "startTime": "2020-11-18T18:25:02.224Z", + "endTime": "2020-11-18T18:25:12.952Z", + "tasks": [ + { + "name": "Generalization", + "status": "Succeeded", + "displayName": "Generalization", + "startTime": "2020-11-18T18:25:02.224Z", + "endTime": "2020-11-18T18:25:12.952Z", + "logUri": "" + } + ] + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_ListImageBuildsByImageDefinition.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_ListImageBuildsByImageDefinition.json new file mode 100644 index 000000000000..5ba77ab196be --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_ListImageBuildsByImageDefinition.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "DevDevCenter", + "catalogName": "CentralCatalog", + "imageDefinitionName": "DefaultDevImage", + "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/DevDevCenter/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "type": "Microsoft.DevCenter/devcenters/catalogs/imageDefinitions/builds", + "properties": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "status": "Succeeded" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Create.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Create.json new file mode 100644 index 000000000000..cdf564193031 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Create.json @@ -0,0 +1,93 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "body": { + "tags": { + "CostCode": "12345" + }, + "location": "centralus", + "properties": { + "displayName": "ContosoDevCenter", + "devBoxProvisioningSettings": { + "installAzureMonitorAgentEnableStatus": "Enabled" + }, + "projectCatalogSettings": { + "catalogItemSyncEnableStatus": "Enabled" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "name": "Contoso", + "type": "Microsoft.DevCenter/devcenters", + "tags": { + "hidden-title": "ContosoDevCenter", + "CostCode": "12345" + }, + "location": "centralus", + "properties": { + "provisioningState": "Succeeded", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "ContosoDevCenter", + "projectCatalogSettings": { + "catalogItemSyncEnableStatus": "Enabled" + }, + "devBoxProvisioningSettings": { + "installAzureMonitorAgentEnableStatus": "Enabled" + }, + "networkSettings": { + "microsoftHostedNetworkEnableStatus": "Enabled" + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-11T22:00:08.896Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-11T22:00:10.896Z" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "name": "Contoso", + "type": "Microsoft.DevCenter/devcenters", + "tags": { + "hidden-title": "ContosoDevCenter", + "CostCode": "12345" + }, + "location": "centralus", + "properties": { + "provisioningState": "Accepted", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "ContosoDevCenter", + "devBoxProvisioningSettings": { + "installAzureMonitorAgentEnableStatus": "Enabled" + }, + "projectCatalogSettings": { + "catalogItemSyncEnableStatus": "Enabled" + }, + "networkSettings": { + "microsoftHostedNetworkEnableStatus": "Enabled" + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-11T22:00:08.896Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-11T22:00:10.896Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithDisabledManagedNetworks.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithDisabledManagedNetworks.json new file mode 100644 index 000000000000..29635a838ac2 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithDisabledManagedNetworks.json @@ -0,0 +1,100 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "body": { + "tags": { + "CostCode": "12345" + }, + "location": "centralus", + "properties": { + "displayName": "ContosoDevCenter", + "networkSettings": { + "microsoftHostedNetworkEnableStatus": "Disabled" + } + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "name": "Contoso", + "type": "Microsoft.DevCenter/devcenters", + "tags": { + "CostCode": "12345" + }, + "location": "centralus", + "properties": { + "provisioningState": "Succeeded", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "ContosoDevCenter", + "networkSettings": { + "microsoftHostedNetworkEnableStatus": "Disabled" + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-11T22:00:08.896Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-11T22:00:10.896Z" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "name": "Contoso", + "type": "Microsoft.DevCenter/devcenters", + "tags": { + "CostCode": "12345" + }, + "location": "centralus", + "properties": { + "provisioningState": "Accepted", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "ContosoDevCenter", + "networkSettings": { + "microsoftHostedNetworkEnableStatus": "Disabled" + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-11T22:00:08.896Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-11T22:00:10.896Z" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithEncryption.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithEncryption.json new file mode 100644 index 000000000000..16b1ffb491f9 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithEncryption.json @@ -0,0 +1,124 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "body": { + "tags": { + "CostCode": "12345" + }, + "location": "centralus", + "properties": { + "displayName": "ContosoDevCenter", + "encryption": { + "customerManagedKeyEncryption": { + "keyEncryptionKeyIdentity": { + "identityType": "userAssignedIdentity", + "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + }, + "keyEncryptionKeyUrl": "https://contosovault.vault.azure.net/keys/contosokek" + } + } + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "name": "Contoso", + "type": "Microsoft.DevCenter/devcenters", + "tags": { + "CostCode": "12345" + }, + "location": "centralus", + "properties": { + "provisioningState": "Succeeded", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "ContosoDevCenter", + "encryption": { + "customerManagedKeyEncryption": { + "keyEncryptionKeyIdentity": { + "identityType": "userAssignedIdentity", + "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + }, + "keyEncryptionKeyUrl": "https://contosovault.vault.azure.net/keys/contosokek" + } + }, + "networkSettings": { + "microsoftHostedNetworkEnableStatus": "Enabled" + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-11T22:00:08.896Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-11T22:00:10.896Z" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "name": "Contoso", + "type": "Microsoft.DevCenter/devcenters", + "tags": { + "CostCode": "12345" + }, + "location": "centralus", + "properties": { + "provisioningState": "Accepted", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "ContosoDevCenter", + "encryption": { + "customerManagedKeyEncryption": { + "keyEncryptionKeyIdentity": { + "identityType": "userAssignedIdentity", + "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + }, + "keyEncryptionKeyUrl": "https://contosovault.vault.azure.net/keys/contosokek" + } + }, + "networkSettings": { + "microsoftHostedNetworkEnableStatus": "Enabled" + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-11T22:00:08.896Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-11T22:00:10.896Z" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithUserIdentity.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithUserIdentity.json new file mode 100644 index 000000000000..690fbc7ba205 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithUserIdentity.json @@ -0,0 +1,97 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "body": { + "tags": { + "CostCode": "12345" + }, + "location": "centralus", + "properties": { + "displayName": "ContosoDevCenter" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "name": "Contoso", + "type": "Microsoft.DevCenter/devcenters", + "tags": { + "CostCode": "12345" + }, + "location": "centralus", + "properties": { + "provisioningState": "Succeeded", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "ContosoDevCenter", + "networkSettings": { + "microsoftHostedNetworkEnableStatus": "Enabled" + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-11T22:00:08.896Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-11T22:00:10.896Z" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "name": "Contoso", + "type": "Microsoft.DevCenter/devcenters", + "tags": { + "CostCode": "12345" + }, + "location": "centralus", + "properties": { + "provisioningState": "Accepted", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "ContosoDevCenter", + "networkSettings": { + "microsoftHostedNetworkEnableStatus": "Enabled" + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-11T22:00:08.896Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-11T22:00:10.896Z" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Delete.json new file mode 100644 index 000000000000..8841cba24be2 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Delete.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + }, + "204": {} + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Get.json new file mode 100644 index 000000000000..8e14f03907da --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Get.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "name": "Contoso", + "type": "Microsoft.DevCenter/devcenters", + "tags": { + "hidden-title": "ContosoDevCenter", + "CostCode": "12345" + }, + "location": "centralus", + "properties": { + "provisioningState": "Succeeded", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "ContosoDevCenter", + "projectCatalogSettings": { + "catalogItemSyncEnableStatus": "Enabled" + }, + "devBoxProvisioningSettings": { + "installAzureMonitorAgentEnableStatus": "Enabled" + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-11T22:00:08.896Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-11T22:00:10.896Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_ListByResourceGroup.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_ListByResourceGroup.json new file mode 100644 index 000000000000..3a3f47d64efe --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_ListByResourceGroup.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/contoso", + "name": "Contoso", + "type": "Microsoft.DevCenter/devcenters", + "tags": { + "CostCode": "12345" + }, + "location": "centralus", + "properties": { + "provisioningState": "Succeeded", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "ContosoDevCenter" + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-11-11T22:00:08.896Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-11T22:00:08.896Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_ListBySubscription.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_ListBySubscription.json new file mode 100644 index 000000000000..361e31d188d6 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_ListBySubscription.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/contoso", + "name": "Contoso", + "type": "Microsoft.DevCenter/devcenters", + "tags": { + "CostCode": "12345" + }, + "location": "centralus", + "properties": { + "provisioningState": "Succeeded", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "ContosoDevCenter" + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-11-11T22:00:08.896Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-11T22:00:08.896Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Patch.json new file mode 100644 index 000000000000..c652a8a8faeb --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Patch.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "body": { + "tags": { + "CostCode": "12345" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "name": "Contoso", + "type": "Microsoft.DevCenter/devcenters", + "tags": { + "CostCode": "12345" + }, + "location": "centralus", + "properties": { + "provisioningState": "Succeeded", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "ContosoDevCenter" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-11T22:00:08.896Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-11T22:00:10.896Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_Get.json new file mode 100644 index 000000000000..52ff5406524c --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_Get.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "catalogName": "myCatalog", + "environmentDefinitionName": "myEnvironmentDefinition" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/myCatalog/environmentDefinitions/myEnvironmentDefinition", + "name": "myEnvironmentDefinition", + "type": "Microsoft.DevCenter/devcenters/catalogs/environmentDefinitions", + "properties": { + "description": "My sample environment definition.", + "parameters": [ + { + "id": "functionAppRuntime", + "name": "Function App Runtime", + "type": "string", + "required": true + }, + { + "id": "storageAccountType", + "name": "Storage Account Type", + "type": "string", + "required": true + }, + { + "id": "httpsOnly", + "name": "HTTPS only", + "type": "boolean", + "readOnly": true, + "required": true + } + ], + "templatePath": "azuredeploy.json", + "validationStatus": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_GetByProjectCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_GetByProjectCatalog.json new file mode 100644 index 000000000000..996e87739005 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_GetByProjectCatalog.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "catalogName": "myCatalog", + "environmentDefinitionName": "myEnvironmentDefinition" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/myCatalog/environmentDefinitions/myEnvironmentDefinition", + "name": "myEnvironmentDefinition", + "type": "Microsoft.DevCenter/projects/catalogs/environmentDefinitions", + "properties": { + "description": "My sample environment definition.", + "parameters": [ + { + "id": "functionAppRuntime", + "name": "Function App Runtime", + "type": "string", + "required": true + }, + { + "id": "storageAccountType", + "name": "Storage Account Type", + "type": "string", + "required": true + }, + { + "id": "httpsOnly", + "name": "HTTPS only", + "type": "boolean", + "readOnly": true, + "required": true + } + ], + "templatePath": "azuredeploy.json", + "validationStatus": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_GetErrorDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_GetErrorDetails.json new file mode 100644 index 000000000000..398f87757417 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_GetErrorDetails.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "catalogName": "myCatalog", + "environmentDefinitionName": "myEnvironmentDefinition" + }, + "responses": { + "200": { + "body": { + "errors": [ + { + "code": "ParameterValueInvalid", + "message": "Expected parameter value for 'InstanceCount' to be integer but found the string 'test'." + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_ListByCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_ListByCatalog.json new file mode 100644 index 000000000000..e555af3716f3 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_ListByCatalog.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "catalogName": "myCatalog" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/myCatalog/environmentDefinitions/myEnvironmentDefinition", + "name": "myEnvironmentDefinition", + "type": "Microsoft.DevCenter/devcenters/catalogs/environmentDefinitions", + "properties": { + "description": "My sample environment definition.", + "parameters": [ + { + "id": "functionAppRuntime", + "name": "Function App Runtime", + "type": "string", + "required": true + }, + { + "id": "storageAccountType", + "name": "Storage Account Type", + "type": "string", + "required": true + }, + { + "id": "httpsOnly", + "name": "HTTPS only", + "type": "boolean", + "readOnly": true, + "required": true + } + ], + "templatePath": "azuredeploy.json", + "validationStatus": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_ListByProjectCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_ListByProjectCatalog.json new file mode 100644 index 000000000000..2f3620b2c575 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_ListByProjectCatalog.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "catalogName": "myCatalog" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/myCatalog/environmentDefinitions/myEnvironmentDefinition", + "name": "myEnvironmentDefinition", + "type": "Microsoft.DevCenter/projects/catalogs/environmentDefinitions", + "properties": { + "description": "My sample environment definition.", + "parameters": [ + { + "id": "functionAppRuntime", + "name": "Function App Runtime", + "type": "string", + "required": true + }, + { + "id": "storageAccountType", + "name": "Storage Account Type", + "type": "string", + "required": true + }, + { + "id": "httpsOnly", + "name": "HTTPS only", + "type": "boolean", + "readOnly": true, + "required": true + } + ], + "templatePath": "azuredeploy.json", + "validationStatus": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Delete.json new file mode 100644 index 000000000000..ea92d3e73c78 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "environmentTypeName": "DevTest" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Get.json new file mode 100644 index 000000000000..5479fc7a6964 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Get.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "environmentTypeName": "DevTest" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/environmentTypes/DevTest", + "name": "DevTest", + "type": "Microsoft.DevCenter/devcenters/environmenttypes", + "properties": { + "displayName": "Dev" + }, + "tags": { + "hidden-title": "Dev", + "CostCenter": "RnD" + }, + "systemData": { + "createdBy": "User1@contoso.com", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_List.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_List.json new file mode 100644 index 000000000000..492c17ace884 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_List.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/environmentTypes/DevTest", + "name": "DevTest", + "type": "Microsoft.DevCenter/devcenters/environmenttypes", + "tags": { + "CostCenter": "RnD" + }, + "systemData": { + "createdBy": "User1@contoso.com", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Patch.json new file mode 100644 index 000000000000..8d955b70832b --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Patch.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "environmentTypeName": "DevTest", + "body": { + "properties": { + "displayName": "Dev" + }, + "tags": { + "Owner": "superuser" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/environmentTypes/DevTest", + "name": "DevTest", + "type": "Microsoft.DevCenter/devcenters/environmenttypes", + "properties": { + "displayName": "Dev" + }, + "tags": { + "hidden-title": "Dev", + "Owner": "superuser" + }, + "systemData": { + "createdBy": "User1@contoso.com", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Put.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Put.json new file mode 100644 index 000000000000..75a0ea0ee3a2 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Put.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "environmentTypeName": "DevTest", + "body": { + "tags": { + "Owner": "superuser" + }, + "properties": { + "displayName": "Dev" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/environmentTypes/DevTest", + "name": "DevTest", + "type": "Microsoft.DevCenter/devcenters/environmenttypes", + "properties": { + "displayName": "Dev" + }, + "tags": { + "hidden-title": "Dev", + "Owner": "superuser" + }, + "systemData": { + "createdBy": "User1@contoso.com", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/environmentTypes/DevTest", + "name": "DevTest", + "type": "Microsoft.DevCenter/devcenters/environmenttypes", + "properties": { + "displayName": "Dev" + }, + "tags": { + "hidden-title": "Dev", + "Owner": "superuser" + }, + "systemData": { + "createdBy": "User1@contoso.com", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Create.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Create.json new file mode 100644 index 000000000000..8f5c79876b7d --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Create.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "galleryName": "StandardGallery", + "body": { + "properties": { + "galleryResourceId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.Compute/galleries/StandardGallery" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/StandardGallery", + "name": "StandardGallery", + "type": "Microsoft.DevCenter/devcenters/galleries", + "properties": { + "galleryResourceId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.Compute/galleries/StandardGallery", + "provisioningState": "Accepted" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/StandardGallery", + "name": "StandardGallery", + "type": "Microsoft.DevCenter/devcenters/galleries", + "properties": { + "galleryResourceId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.Compute/galleries/StandardGallery", + "provisioningState": "Accepted" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Delete.json new file mode 100644 index 000000000000..63b1593b3b07 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Delete.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "galleryName": "StandardGallery" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + }, + "204": {} + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Get.json new file mode 100644 index 000000000000..b365e47a4e48 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Get.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "galleryName": "StandardGallery" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/StandardGallery", + "name": "StandardGallery", + "type": "Microsoft.DevCenter/devcenters/galleries", + "properties": { + "galleryResourceId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.Compute/galleries/StandardGallery", + "provisioningState": "Accepted" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_List.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_List.json new file mode 100644 index 000000000000..003296e4743d --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_List.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/default", + "name": "StandardGallery", + "type": "Microsoft.DevCenter/devcenters/galleries", + "properties": { + "provisioningState": "Succeeded", + "galleryResourceId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.Compute/galleries/CentralGallery" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + }, + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/ImageGallery", + "name": "StandardGallery", + "type": "Microsoft.DevCenter/devcenters/galleries", + "properties": { + "galleryResourceId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.Compute/galleries/SharedGallery", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_BuildImage.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_BuildImage.json new file mode 100644 index 000000000000..4ff6fb98590a --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_BuildImage.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "catalogName": "CentralCatalog", + "imageDefinitionName": "DefaultDevImage" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_CancelImageBuild.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_CancelImageBuild.json new file mode 100644 index 000000000000..8bb90de0acd7 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_CancelImageBuild.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "catalogName": "CentralCatalog", + "imageDefinitionName": "DefaultDevImage", + "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetByDevCenterCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetByDevCenterCatalog.json new file mode 100644 index 000000000000..ee6af687fc03 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetByDevCenterCatalog.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "ContosoDevCenter", + "catalogName": "TeamCatalog", + "imageDefinitionName": "WebDevBox" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/ContosoDevCenter/catalogs/TeamCatalog/imagedefinitions/WebDevBox", + "name": "WebDevBox", + "type": "Microsoft.DevCenter/devcenters/catalogs/imagedefinitions", + "properties": { + "extends": { + "imageDefinition": "it-base", + "parameters": [ + { + "name": "vssku", + "value": "Community" + } + ] + }, + "tasks": [ + { + "name": "git-clone", + "parameters": [ + { + "name": "cloneUri", + "value": "https://github.com/microsoft/devcenter-catalog" + } + ] + } + ], + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "latestBuild": { + "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "status": "Running", + "startTime": "2020-11-18T18:25:02.224Z", + "endTime": "2020-11-18T18:25:12.952Z" + }, + "activeImageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "imageValidationStatus": "Failed", + "validationStatus": "Succeeded", + "imageValidationErrorDetails": { + "code": "400", + "message": "Validation failed" + }, + "autoImageBuild": "Enabled" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetByProjectCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetByProjectCatalog.json new file mode 100644 index 000000000000..d1ae0079ea15 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetByProjectCatalog.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "ContosoProject", + "catalogName": "TeamCatalog", + "imageDefinitionName": "WebDevBox" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProject/catalogs/TeamCatalog/imagedefinitions/WebDevBox", + "name": "WebDevBox", + "type": "Microsoft.DevCenter/projects/catalogs/imagedefinitions", + "properties": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "latestBuild": { + "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "status": "Running", + "startTime": "2020-11-18T18:25:02.224Z", + "endTime": "2020-11-18T18:25:12.952Z" + }, + "activeImageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "imageValidationStatus": "Failed", + "validationStatus": "Succeeded", + "imageValidationErrorDetails": { + "code": "400", + "message": "Validation failed" + }, + "autoImageBuild": "Enabled" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetImageBuild.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetImageBuild.json new file mode 100644 index 000000000000..5909a437b7e8 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetImageBuild.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "catalogName": "CentralCatalog", + "imageDefinitionName": "DefaultDevImage", + "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "type": "Microsoft.DevCenter/projects/catalogs/imageDefinitions/builds", + "properties": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "status": "Succeeded" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetImageBuildDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetImageBuildDetails.json new file mode 100644 index 000000000000..7225f529a1ef --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetImageBuildDetails.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "catalogName": "CentralCatalog", + "imageDefinitionName": "DefaultDevImage", + "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7" + }, + "responses": { + "200": { + "body": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "status": "Succeeded", + "taskGroups": [ + { + "name": "Provisioning", + "status": "Succeeded", + "startTime": "2020-11-18T18:25:02.224Z", + "endTime": "2020-11-18T18:25:12.952Z", + "tasks": [ + { + "name": "Provisioning", + "status": "Succeeded", + "displayName": "Provisioning", + "startTime": "2020-11-18T18:25:02.224Z", + "endTime": "2020-11-18T18:25:12.952Z", + "id": "e72eb35f-f406-42ec-8b93-7d18a9f7b059", + "logUri": "" + } + ] + }, + { + "name": "Customizations", + "status": "Succeeded", + "startTime": "2020-11-18T18:25:02.224Z", + "endTime": "2020-11-18T18:25:12.952Z", + "tasks": [ + { + "name": "vs2022", + "status": "Succeeded", + "displayName": "Install Visual Studio 2022", + "startTime": "2020-11-18T18:25:02.224Z", + "endTime": "2020-11-18T18:25:12.952Z", + "id": "e72eb35f-f406-42ec-8b93-7d18a9f7b059", + "logUri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/DevProject/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7/logs/e72eb35f-f406-42ec-8b93-7d18a9f7b059" + } + ] + }, + { + "name": "Generalization", + "status": "Succeeded", + "startTime": "2020-11-18T18:25:02.224Z", + "endTime": "2020-11-18T18:25:12.952Z", + "tasks": [ + { + "name": "Generalization", + "status": "Succeeded", + "displayName": "Generalization", + "startTime": "2020-11-18T18:25:02.224Z", + "endTime": "2020-11-18T18:25:12.952Z", + "logUri": "" + } + ] + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListByDevCenterCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListByDevCenterCatalog.json new file mode 100644 index 000000000000..5c2b42f70dbe --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListByDevCenterCatalog.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "ContosoDevCenter", + "catalogName": "TeamCatalog" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/ContosoDevCenter/catalogs/TeamCatalog/imagedefinitions/WebDevBox", + "name": "WebDevBox", + "type": "Microsoft.DevCenter/devcenters/catalogs/imagedefinitions", + "properties": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "latestBuild": { + "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "status": "Running", + "startTime": "2020-11-18T18:25:02.224Z", + "endTime": "2020-11-18T18:25:12.952Z" + }, + "activeImageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "imageValidationStatus": "Failed", + "validationStatus": "Succeeded", + "imageValidationErrorDetails": { + "code": "400", + "message": "Validation failed" + }, + "autoImageBuild": "Enabled" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListByProjectCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListByProjectCatalog.json new file mode 100644 index 000000000000..ae5e9de1898c --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListByProjectCatalog.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "ContosoProject", + "catalogName": "TeamCatalog" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProject/catalogs/TeamCatalog/imagedefinitions/WebDevBox", + "name": "WebDevBox", + "type": "Microsoft.DevCenter/projects/catalogs/imagedefinitions", + "properties": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "latestBuild": { + "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "status": "Running", + "startTime": "2020-11-18T18:25:02.224Z", + "endTime": "2020-11-18T18:25:12.952Z" + }, + "activeImageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "imageValidationStatus": "Failed", + "validationStatus": "Succeeded", + "imageValidationErrorDetails": { + "code": "400", + "message": "Validation failed" + }, + "autoImageBuild": "Enabled" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListImageBuildsByImageDefinition.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListImageBuildsByImageDefinition.json new file mode 100644 index 000000000000..1fb814a0b8f9 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListImageBuildsByImageDefinition.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "catalogName": "CentralCatalog", + "imageDefinitionName": "DefaultDevImage", + "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "type": "Microsoft.DevCenter/projects/catalogs/imageDefinitions/builds", + "properties": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "status": "Succeeded" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_Get.json new file mode 100644 index 000000000000..f672ed8069c5 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_Get.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "galleryName": "DefaultDevGallery", + "imageName": "Win11", + "versionName": "1.0.0" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DefaultDevGallery/images/Win11/versions/1.0.0", + "name": "1.0.0", + "type": "Microsoft.DevCenter/devcenters/galleries/images/versions", + "properties": { + "publishedDate": "2021-12-01T12:45:16.845Z", + "excludeFromLatest": false, + "osDiskImageSizeInGb": 64, + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_GetByProject.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_GetByProject.json new file mode 100644 index 000000000000..4939160d9027 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_GetByProject.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "myProject", + "imageName": "~gallery~DefaultDevGallery~ContosoImageDefinition", + "versionName": "1.0.0" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/project/myProject/images/~gallery~DefaultDevGallery~ContosoImageDefinition/versions/1.0.0", + "name": "1.0.0", + "type": "Microsoft.DevCenter/project/images/versions", + "properties": { + "publishedDate": "2021-12-01T12:45:16.845Z", + "excludeFromLatest": false, + "osDiskImageSizeInGb": 64, + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_List.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_List.json new file mode 100644 index 000000000000..02c0e90a6446 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_List.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "galleryName": "DefaultDevGallery", + "imageName": "Win11" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DefaultDevGallery/images/Win11/versions/1.0.0", + "name": "1.0.0", + "type": "Microsoft.DevCenter/devcenters/galleries/images/versions", + "properties": { + "publishedDate": "2021-12-01T12:45:16.845Z", + "excludeFromLatest": false, + "osDiskImageSizeInGb": 64, + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_ListByProject.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_ListByProject.json new file mode 100644 index 000000000000..4d739143eae2 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_ListByProject.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "myProject", + "imageName": "~gallery~DefaultDevGallery~ContosoImageDefinition" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/project/myProject/images/~gallery~DefaultDevGallery~ContosoImageDefinition/versions/1.0.0", + "name": "1.0.0", + "type": "Microsoft.DevCenter/project/images/versions", + "properties": { + "publishedDate": "2021-12-01T12:45:16.845Z", + "excludeFromLatest": false, + "osDiskImageSizeInGb": 64, + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_Get.json new file mode 100644 index 000000000000..2c5de20bd1ea --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_Get.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "galleryName": "DefaultDevGallery", + "imageName": "ContosoBaseImage" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DefaultDevGallery/images/ContosoBaseImage", + "name": "ContosoBaseImage", + "type": "Microsoft.DevCenter/devcenters/galleries/images", + "properties": { + "description": "Standard Windows Dev/Test image.", + "publisher": "Contoso", + "offer": "Finance", + "sku": "Backend", + "recommendedMachineConfiguration": { + "memory": { + "min": 256, + "max": 512 + }, + "vCPUs": { + "min": 4, + "max": 8 + } + }, + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_GetByProject.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_GetByProject.json new file mode 100644 index 000000000000..b4d5b5265fed --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_GetByProject.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "myProject", + "imageName": "~gallery~DefaultDevGallery~ContosoBaseImage" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/project/myProject/images/~gallery~DefaultDevGallery~ContosoBaseImage", + "name": "ContosoBaseImage", + "type": "Microsoft.DevCenter/project/images", + "properties": { + "description": "Standard Windows Dev/Test image.", + "publisher": "Contoso", + "offer": "Finance", + "sku": "Backend", + "recommendedMachineConfiguration": { + "memory": { + "min": 256, + "max": 512 + }, + "vCPUs": { + "min": 4, + "max": 8 + } + }, + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByDevCenter.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByDevCenter.json new file mode 100644 index 000000000000..90b7d1ad2d52 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByDevCenter.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DevGallery/images/ContosoBaseImage", + "name": "ContosoBaseImage", + "type": "Microsoft.DevCenter/devcenters/galleries/images", + "properties": { + "description": "Windows 10 Enterprise + OS Optimizations 1909", + "publisher": "MicrosoftWindowsDesktop", + "offer": "windows-ent-cpc", + "sku": "19h2-ent-cpc-os-g2", + "recommendedMachineConfiguration": { + "memory": { + "min": 128, + "max": 256 + }, + "vCPUs": { + "min": 2, + "max": 4 + } + }, + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + }, + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DevGallery/images/ContosoBaseImage2", + "name": "ContosoBaseImage2", + "type": "Microsoft.DevCenter/devcenters/galleries/images", + "properties": { + "description": "Standard Windows Dev/Test image.", + "publisher": "Contoso", + "offer": "Finance", + "sku": "Backend", + "recommendedMachineConfiguration": { + "memory": { + "min": 256, + "max": 512 + }, + "vCPUs": { + "min": 4, + "max": 8 + } + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByGallery.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByGallery.json new file mode 100644 index 000000000000..bafcef7263ab --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByGallery.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "galleryName": "DevGallery" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DevGallery/images/ContosoBaseImage", + "name": "ContosoBaseImage", + "type": "Microsoft.DevCenter/devcenters/galleries/images", + "properties": { + "description": "Windows 10 Enterprise + OS Optimizations 1909", + "publisher": "MicrosoftWindowsDesktop", + "offer": "windows-ent-cpc", + "sku": "19h2-ent-cpc-os-g2", + "recommendedMachineConfiguration": { + "memory": { + "min": 128, + "max": 256 + }, + "vCPUs": { + "min": 2, + "max": 4 + } + }, + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + }, + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DevGallery/images/ContosoBaseImage2", + "name": "ContosoBaseImage2", + "type": "Microsoft.DevCenter/devcenters/galleries/images", + "properties": { + "description": "Standard Windows Dev/Test image.", + "publisher": "Contoso", + "offer": "Finance", + "sku": "Backend", + "recommendedMachineConfiguration": { + "memory": { + "min": 256, + "max": 512 + }, + "vCPUs": { + "min": 4, + "max": 8 + } + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByProject.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByProject.json new file mode 100644 index 000000000000..82b6a9f1d076 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByProject.json @@ -0,0 +1,105 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "myProject" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/myProject/images/~gallery~DefaultDevGallery~ContosoBaseImage", + "name": "~gallery~DefaultDevGallery~ContosoBaseImage", + "type": "Microsoft.DevCenter/project/images", + "properties": { + "description": "Windows 10 Enterprise + OS Optimizations 1909", + "publisher": "MicrosoftWindowsDesktop", + "offer": "windows-ent-cpc", + "sku": "19h2-ent-cpc-os-g2", + "recommendedMachineConfiguration": { + "memory": { + "min": 128, + "max": 256 + }, + "vCPUs": { + "min": 2, + "max": 4 + } + }, + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + }, + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/myProject/images/~catalog~DefaultCatalog~DefaultImage", + "name": "~catalog~DefaultCatalog~DefaultImage", + "type": "Microsoft.DevCenter/project/images", + "properties": { + "description": "Windows 10 Enterprise + OS Optimizations 1909", + "publisher": "MicrosoftWindowsDesktop", + "offer": "windows-ent-cpc", + "sku": "19h2-ent-cpc-os-g2", + "recommendedMachineConfiguration": { + "memory": { + "min": 128, + "max": 256 + }, + "vCPUs": { + "min": 2, + "max": 4 + } + }, + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + }, + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/myProject/images/~gallery~DefaultDevGallery~ContosoImageDefinition", + "name": "~gallery~DefaultDevGallery~ContosoImageDefinition", + "type": "Microsoft.DevCenter/project/images", + "properties": { + "description": "Standard Windows Dev/Test image.", + "publisher": "Contoso", + "offer": "Finance", + "sku": "Backend", + "recommendedMachineConfiguration": { + "memory": { + "min": 256, + "max": 512 + }, + "vCPUs": { + "min": 4, + "max": 8 + } + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Delete.json new file mode 100644 index 000000000000..771cc52687b9 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Delete.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "networkConnectionName": "eastusnetwork" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + }, + "204": {} + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Get.json new file mode 100644 index 000000000000..466e95a01811 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Get.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "networkConnectionName": "uswest3network" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", + "name": "uswest3network", + "type": "Microsoft.DevCenter/networkconnections", + "properties": { + "domainJoinType": "HybridAzureADJoin", + "domainName": "mydomaincontroller.local", + "domainUsername": "testuser@mydomaincontroller.local", + "networkingResourceGroupName": "NetworkInterfaces", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default", + "provisioningState": "Succeeded", + "healthCheckStatus": "Passed" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + }, + "location": "centralus" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_GetHealthDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_GetHealthDetails.json new file mode 100644 index 000000000000..31dd1a8b20e3 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_GetHealthDetails.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "networkConnectionName": "eastusnetwork" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/eastusnetwork/healthchecks/latest", + "name": "latest", + "type": "Microsoft.DevCenter/networkconnections/healthchecks", + "properties": { + "startDateTime": "2021-07-03T12:43:14Z", + "endDateTime": "2021-07-03T12:43:15Z", + "healthChecks": [ + { + "displayName": "Azure AD device sync", + "endDateTime": "2021-07-03T12:43:14Z", + "startDateTime": "2021-07-03T12:43:15Z", + "status": "Passed" + } + ] + }, + "systemData": { + "createdBy": "System", + "createdByType": "Application", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "System", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListByResourceGroup.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListByResourceGroup.json new file mode 100644 index 000000000000..8b4602946753 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListByResourceGroup.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", + "name": "uswest3network", + "type": "Microsoft.DevCenter/networkconnections", + "properties": { + "domainJoinType": "HybridAzureADJoin", + "domainName": "mydomaincontroller.local", + "domainUsername": "testuser@mydomaincontroller.local", + "networkingResourceGroupName": "NetworkInterfaces", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + }, + "location": "centralus" + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListBySubscription.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListBySubscription.json new file mode 100644 index 000000000000..648a3d572648 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListBySubscription.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", + "name": "uswest3network", + "type": "Microsoft.DevCenter/networkconnection", + "properties": { + "domainJoinType": "HybridAzureADJoin", + "domainName": "mydomaincontroller.local", + "domainUsername": "testuser@mydomaincontroller.local", + "networkingResourceGroupName": "NetworkInterfaces", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + }, + "location": "centralus" + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListHealthDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListHealthDetails.json new file mode 100644 index 000000000000..5fa9222ac0d9 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListHealthDetails.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "networkConnectionName": "uswest3network" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network/healthchecks/latest", + "name": "latest", + "type": "Microsoft.DevCenter/networkconnections/healthchecks", + "properties": { + "startDateTime": "2021-07-03T12:43:14Z", + "endDateTime": "2021-07-03T12:43:15Z", + "healthChecks": [ + { + "displayName": "Azure AD device sync", + "endDateTime": "2021-07-03T12:43:14Z", + "startDateTime": "2021-07-03T12:43:15Z", + "status": "Passed" + } + ] + }, + "systemData": { + "createdBy": "System", + "createdByType": "Application", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "System", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListOutboundNetworkDependenciesEndpoints.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListOutboundNetworkDependenciesEndpoints.json new file mode 100644 index 000000000000..bad1591a7c66 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListOutboundNetworkDependenciesEndpoints.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "networkConnectionName": "uswest3network" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "category": "Dev Box Service", + "endpoints": [ + { + "domainName": "devbox.azure.com", + "endpointDetails": [ + { + "port": 443 + } + ] + } + ] + }, + { + "category": "Intune", + "endpoints": [ + { + "domainName": "login.microsoftonline.com", + "endpointDetails": [ + { + "port": 443 + } + ] + } + ] + }, + { + "category": "Cloud PC", + "endpoints": [ + { + "domainName": "rdweb.wvd.microsoft.com", + "endpointDetails": [ + { + "port": 443 + } + ] + } + ] + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Patch.json new file mode 100644 index 000000000000..b3c31b725138 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Patch.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "networkConnectionName": "uswest3network", + "body": { + "properties": { + "domainPassword": "New Password value for user" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", + "name": "uswest3network", + "type": "Microsoft.DevCenter/networkconnections", + "properties": { + "domainJoinType": "HybridAzureADJoin", + "domainName": "mydomaincontroller.local", + "domainUsername": "testuser@mydomaincontroller.local", + "networkingResourceGroupName": "NetworkInterfaces", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + }, + "location": "centralus" + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Put.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Put.json new file mode 100644 index 000000000000..15fb39edf40a --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Put.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "networkConnectionName": "uswest3network", + "body": { + "properties": { + "domainJoinType": "HybridAzureADJoin", + "domainName": "mydomaincontroller.local", + "domainUsername": "testuser@mydomaincontroller.local", + "domainPassword": "Password value for user", + "networkingResourceGroupName": "NetworkInterfaces", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default" + }, + "location": "centralus" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", + "name": "uswest3network", + "type": "Microsoft.DevCenter/networkconnections", + "properties": { + "domainJoinType": "HybridAzureADJoin", + "domainName": "mydomaincontroller.local", + "domainUsername": "testuser@mydomaincontroller.local", + "networkingResourceGroupName": "NetworkInterfaces", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + }, + "location": "centralus" + } + }, + "201": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", + "name": "uswest3network", + "type": "Microsoft.DevCenter/networkconnections", + "properties": { + "domainJoinType": "HybridAzureADJoin", + "domainName": "mydomaincontroller.local", + "domainUsername": "testuser@mydomaincontroller.local", + "networkingResourceGroupName": "NetworkInterfaces", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default", + "provisioningState": "Created" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + }, + "location": "centralus" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_RunHealthChecks.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_RunHealthChecks.json new file mode 100644 index 000000000000..15ec7599e854 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_RunHealthChecks.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "networkConnectionName": "uswest3network" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/OperationStatus_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/OperationStatus_Get.json new file mode 100644 index 000000000000..156fe1b63530 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/OperationStatus_Get.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "location": "westus3", + "operationId": "3fa1a29d-e807-488d-81d1-f1c5456a08cd" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4", + "status": "Succeeded", + "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "startTime": "2020-12-01T15:16:29.500Z", + "endTime": "2020-12-01T15:16:55.100Z", + "percentComplete": 100 + } + }, + "202": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4", + "status": "Succeeded", + "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "startTime": "2020-12-01T15:16:29.500Z", + "endTime": "2020-12-01T15:16:55.100Z", + "percentComplete": 99 + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + }, + "default": { + "body": { + "error": { + "code": "OperationNotFound", + "message": "The requested async operation was not found" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Operations_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Operations_Get.json new file mode 100644 index 000000000000..19ae2f36c3c5 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Operations_Get.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.DevCenter/devcenters/write", + "display": { + "provider": "Microsoft DevTest Center", + "resource": "Microsoft DevTest Center devcenter resource", + "operation": "write" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Delete.json new file mode 100644 index 000000000000..1dd9e32ea99e --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Delete.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "poolName": "poolName" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + }, + "204": {} + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Get.json new file mode 100644 index 000000000000..136e1bc7b094 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Get.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "poolName": "DevPool" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "name": "DevPool", + "type": "Microsoft.DevCenter/pools", + "properties": { + "displayName": "Developer Pool", + "devBoxDefinitionName": "WebDevBox", + "networkConnectionName": "Network1-westus2", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "stopOnDisconnect": { + "status": "Enabled", + "gracePeriodMinutes": 60 + }, + "stopOnNoConnect": { + "status": "Enabled", + "gracePeriodMinutes": 120 + }, + "healthStatus": "Healthy", + "devBoxCount": 1, + "provisioningState": "Succeeded", + "singleSignOnStatus": "Disabled", + "virtualNetworkType": "Managed", + "managedVirtualNetworkRegions": [ + "centralus" + ], + "activeHoursConfiguration": { + "keepAwakeEnableStatus": "Enabled", + "autoStartEnableStatus": "Enabled", + "defaultTimeZone": "America/Los_Angeles", + "defaultStartTimeHour": 9, + "defaultEndTimeHour": 17, + "defaultDaysOfWeek": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ], + "daysOfWeekLimit": 5 + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + }, + "location": "centralus" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_GetUnhealthyStatus.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_GetUnhealthyStatus.json new file mode 100644 index 000000000000..96a9b6cd8ffc --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_GetUnhealthyStatus.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "poolName": "DevPool" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "name": "DevPool", + "type": "Microsoft.DevCenter/pools", + "properties": { + "displayName": "Developer Pool", + "devBoxDefinitionName": "WebDevBox", + "networkConnectionName": "Network1-westus2", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "stopOnDisconnect": { + "status": "Enabled", + "gracePeriodMinutes": 60 + }, + "stopOnNoConnect": { + "status": "Enabled", + "gracePeriodMinutes": 120 + }, + "healthStatus": "Unhealthy", + "healthStatusDetails": [ + { + "code": "NetworkConnectionUnhealthy", + "message": "The Pool's Network Connection is in an unhealthy state. Check the Network Connection's health status for more details." + }, + { + "code": "ImageValidationFailed", + "message": "Image validation has failed. Check the Dev Box Definition's image validation status for more details." + }, + { + "code": "IntuneValidationFailed", + "message": "Intune license validation has failed. The tenant does not have a valid Intune license." + } + ], + "devBoxCount": 1, + "provisioningState": "Succeeded", + "singleSignOnStatus": "Disabled", + "virtualNetworkType": "Managed", + "managedVirtualNetworkRegions": [ + "centralus" + ] + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + }, + "location": "centralus" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_List.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_List.json new file mode 100644 index 000000000000..28326e717dbc --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_List.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "name": "DevPool", + "type": "Microsoft.DevCenter/pools", + "properties": { + "displayName": "Developer Pool", + "devBoxDefinitionName": "WebDevBox", + "networkConnectionName": "Network1-westus2", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "stopOnDisconnect": { + "status": "Enabled", + "gracePeriodMinutes": 60 + }, + "stopOnNoConnect": { + "status": "Enabled", + "gracePeriodMinutes": 120 + }, + "healthStatus": "Healthy", + "devBoxCount": 1, + "provisioningState": "Succeeded", + "singleSignOnStatus": "Disabled", + "virtualNetworkType": "Managed", + "managedVirtualNetworkRegions": [ + "centralus" + ], + "activeHoursConfiguration": { + "keepAwakeEnableStatus": "Enabled", + "autoStartEnableStatus": "Enabled", + "defaultTimeZone": "America/Los_Angeles", + "defaultStartTimeHour": 9, + "defaultEndTimeHour": 17, + "defaultDaysOfWeek": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ], + "daysOfWeekLimit": 5 + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + }, + "location": "centralus" + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Patch.json new file mode 100644 index 000000000000..d61e7a136dd0 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Patch.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "poolName": "DevPool", + "body": { + "properties": { + "devBoxDefinitionName": "WebDevBox2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "name": "DevPool", + "type": "Microsoft.DevCenter/pools", + "properties": { + "displayName": "Developer Pool", + "devBoxDefinitionName": "WebDevBox2", + "networkConnectionName": "Network1-westus2", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "stopOnDisconnect": { + "status": "Enabled", + "gracePeriodMinutes": 60 + }, + "stopOnNoConnect": { + "status": "Enabled", + "gracePeriodMinutes": 120 + }, + "healthStatus": "Healthy", + "devBoxCount": 1, + "provisioningState": "Succeeded", + "singleSignOnStatus": "Disabled", + "virtualNetworkType": "Managed", + "managedVirtualNetworkRegions": [ + "centralus" + ] + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + }, + "location": "centralus" + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Put.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Put.json new file mode 100644 index 000000000000..bda949a22cdc --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Put.json @@ -0,0 +1,149 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "poolName": "DevPool", + "body": { + "properties": { + "displayName": "Developer Pool", + "devBoxDefinitionName": "WebDevBox", + "networkConnectionName": "Network1-westus2", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "stopOnDisconnect": { + "status": "Enabled", + "gracePeriodMinutes": 60 + }, + "stopOnNoConnect": { + "status": "Enabled", + "gracePeriodMinutes": 120 + }, + "singleSignOnStatus": "Disabled", + "virtualNetworkType": "Unmanaged", + "activeHoursConfiguration": { + "keepAwakeEnableStatus": "Enabled", + "autoStartEnableStatus": "Enabled", + "defaultTimeZone": "America/Los_Angeles", + "defaultStartTimeHour": 9, + "defaultEndTimeHour": 17, + "defaultDaysOfWeek": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ], + "daysOfWeekLimit": 5 + } + }, + "location": "centralus" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "name": "DevPool", + "type": "Microsoft.DevCenter/pools", + "properties": { + "displayName": "Developer Pool", + "devBoxDefinitionName": "WebDevBox", + "networkConnectionName": "Network1-westus2", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "stopOnDisconnect": { + "status": "Enabled", + "gracePeriodMinutes": 60 + }, + "stopOnNoConnect": { + "status": "Enabled", + "gracePeriodMinutes": 120 + }, + "healthStatus": "Healthy", + "devBoxCount": 1, + "provisioningState": "Succeeded", + "singleSignOnStatus": "Disabled", + "virtualNetworkType": "Unmanaged", + "managedVirtualNetworkRegions": [], + "activeHoursConfiguration": { + "keepAwakeEnableStatus": "Enabled", + "autoStartEnableStatus": "Enabled", + "defaultTimeZone": "America/Los_Angeles", + "defaultStartTimeHour": 9, + "defaultEndTimeHour": 17, + "defaultDaysOfWeek": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ], + "daysOfWeekLimit": 5 + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + }, + "location": "centralus" + } + }, + "201": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "name": "DevPool", + "type": "Microsoft.DevCenter/pools", + "properties": { + "displayName": "Developer Pool", + "devBoxDefinitionName": "WebDevBox", + "networkConnectionName": "Network1-westus2", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "stopOnDisconnect": { + "status": "Enabled", + "gracePeriodMinutes": 60 + }, + "stopOnNoConnect": { + "status": "Enabled", + "gracePeriodMinutes": 120 + }, + "healthStatus": "Pending", + "provisioningState": "Created", + "singleSignOnStatus": "Disabled", + "virtualNetworkType": "Unmanaged", + "managedVirtualNetworkRegions": [], + "activeHoursConfiguration": { + "keepAwakeEnableStatus": "Enabled", + "autoStartEnableStatus": "Enabled", + "defaultTimeZone": "America/Los_Angeles", + "defaultStartTimeHour": 9, + "defaultEndTimeHour": 17, + "defaultDaysOfWeek": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ], + "daysOfWeekLimit": 5 + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + }, + "location": "centralus" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_PutWithManagedNetwork.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_PutWithManagedNetwork.json new file mode 100644 index 000000000000..4a9c0e2f5d17 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_PutWithManagedNetwork.json @@ -0,0 +1,111 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "poolName": "DevPool", + "body": { + "properties": { + "displayName": "Developer Pool", + "devBoxDefinitionName": "WebDevBox", + "networkConnectionName": "managedNetwork", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "stopOnDisconnect": { + "status": "Enabled", + "gracePeriodMinutes": 60 + }, + "stopOnNoConnect": { + "status": "Enabled", + "gracePeriodMinutes": 120 + }, + "singleSignOnStatus": "Disabled", + "virtualNetworkType": "Managed", + "managedVirtualNetworkRegions": [ + "centralus" + ] + }, + "location": "centralus" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "name": "DevPool", + "type": "Microsoft.DevCenter/pools", + "properties": { + "displayName": "Developer Pool", + "devBoxDefinitionName": "WebDevBox", + "networkConnectionName": "managedNetwork", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "stopOnDisconnect": { + "status": "Enabled", + "gracePeriodMinutes": 60 + }, + "stopOnNoConnect": { + "status": "Enabled", + "gracePeriodMinutes": 120 + }, + "healthStatus": "Healthy", + "devBoxCount": 1, + "provisioningState": "Succeeded", + "singleSignOnStatus": "Disabled", + "virtualNetworkType": "Managed", + "managedVirtualNetworkRegions": [ + "centralus" + ] + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + }, + "location": "centralus" + } + }, + "201": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "name": "DevPool", + "type": "Microsoft.DevCenter/pools", + "properties": { + "displayName": "Developer Pool", + "devBoxDefinitionName": "WebDevBox", + "networkConnectionName": "managedNetwork", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "stopOnDisconnect": { + "status": "Enabled", + "gracePeriodMinutes": 60 + }, + "stopOnNoConnect": { + "status": "Enabled", + "gracePeriodMinutes": 120 + }, + "healthStatus": "Pending", + "provisioningState": "Created", + "singleSignOnStatus": "Disabled", + "virtualNetworkType": "Managed", + "managedVirtualNetworkRegions": [ + "centralus" + ] + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + }, + "location": "centralus" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_PutWithValueDevBoxDefinition.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_PutWithValueDevBoxDefinition.json new file mode 100644 index 000000000000..2d62c5a8d955 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_PutWithValueDevBoxDefinition.json @@ -0,0 +1,131 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "poolName": "DevPool", + "body": { + "properties": { + "displayName": "Developer Pool", + "devBoxDefinitionType": "Value", + "devBoxDefinitionName": "", + "devBoxDefinition": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/projects/DevProject/images/exampleImage/version/1.0.0" + }, + "sku": { + "name": "Preview" + } + }, + "networkConnectionName": "Network1-westus2", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "stopOnDisconnect": { + "status": "Enabled", + "gracePeriodMinutes": 60 + }, + "stopOnNoConnect": { + "status": "Enabled", + "gracePeriodMinutes": 120 + }, + "singleSignOnStatus": "Disabled", + "virtualNetworkType": "Unmanaged" + }, + "location": "centralus" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "name": "DevPool", + "type": "Microsoft.DevCenter/pools", + "properties": { + "displayName": "Developer Pool", + "devBoxDefinitionType": "Value", + "devBoxDefinitionName": "", + "devBoxDefinition": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/projects/DevProject/images/exampleImage/version/1.0.0" + }, + "sku": { + "name": "Preview" + } + }, + "networkConnectionName": "Network1-westus2", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "stopOnDisconnect": { + "status": "Enabled", + "gracePeriodMinutes": 60 + }, + "stopOnNoConnect": { + "status": "Enabled", + "gracePeriodMinutes": 120 + }, + "healthStatus": "Healthy", + "devBoxCount": 1, + "provisioningState": "Succeeded", + "singleSignOnStatus": "Disabled", + "virtualNetworkType": "Unmanaged", + "managedVirtualNetworkRegions": [] + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + }, + "location": "centralus" + } + }, + "201": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "name": "DevPool", + "type": "Microsoft.DevCenter/pools", + "properties": { + "displayName": "Developer Pool", + "devBoxDefinitionType": "Value", + "devBoxDefinitionName": "", + "devBoxDefinition": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/projects/DevProject/images/exampleImage/version/1.0.0" + }, + "sku": { + "name": "Preview" + } + }, + "networkConnectionName": "Network1-westus2", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "stopOnDisconnect": { + "status": "Enabled", + "gracePeriodMinutes": 60 + }, + "stopOnNoConnect": { + "status": "Enabled", + "gracePeriodMinutes": 120 + }, + "healthStatus": "Pending", + "provisioningState": "Created", + "singleSignOnStatus": "Disabled", + "virtualNetworkType": "Unmanaged", + "managedVirtualNetworkRegions": [] + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + }, + "location": "centralus" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_RunHealthChecks.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_RunHealthChecks.json new file mode 100644 index 000000000000..f64058614e5e --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_RunHealthChecks.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "poolName": "DevPool" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectAllowedEnvironmentTypes_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectAllowedEnvironmentTypes_Get.json new file mode 100644 index 000000000000..cd55d4aea115 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectAllowedEnvironmentTypes_Get.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "Contoso", + "environmentTypeName": "DevTest" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/Contoso/allowedEnvironmentTypes/DevTest", + "name": "DevTest", + "type": "Microsoft.DevCenter/projects/allowedenvironmenttypes", + "systemData": { + "createdBy": "User1@contoso.com", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectAllowedEnvironmentTypes_List.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectAllowedEnvironmentTypes_List.json new file mode 100644 index 000000000000..19becc9c01da --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectAllowedEnvironmentTypes_List.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "Contoso" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/Contoso/allowedEnvironmentTypes/DevTest", + "name": "DevTest", + "type": "Microsoft.DevCenter/projects/allowedenvironmenttypes", + "systemData": { + "createdBy": "User1@contoso.com", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogEnvironmentDefinitions_GetErrorDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogEnvironmentDefinitions_GetErrorDetails.json new file mode 100644 index 000000000000..9cbd571bf7e2 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogEnvironmentDefinitions_GetErrorDetails.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "catalogName": "myCatalog", + "environmentDefinitionName": "myEnvironmentDefinition" + }, + "responses": { + "200": { + "body": { + "errors": [ + { + "code": "ParameterValueInvalid", + "message": "Expected parameter value for 'InstanceCount' to be integer but found the string 'test'." + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogImageDefinitions_GetErrorDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogImageDefinitions_GetErrorDetails.json new file mode 100644 index 000000000000..fcd5c38ceb03 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogImageDefinitions_GetErrorDetails.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "catalogName": "TeamCatalog", + "imageDefinitionName": "WebDevBox" + }, + "responses": { + "200": { + "body": { + "errors": [ + { + "code": "CatalogItemNotExist", + "message": "Task choco doesn't exist in the dev center." + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Connect.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Connect.json new file mode 100644 index 000000000000..afbc9c93eb4a --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Connect.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "catalogName": "CentralCatalog" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_CreateAdo.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_CreateAdo.json new file mode 100644 index 000000000000..ed75650e841a --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_CreateAdo.json @@ -0,0 +1,95 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "catalogName": "CentralCatalog", + "body": { + "properties": { + "adoGit": { + "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "path": "/templates" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", + "name": "CentralCatalog", + "type": "Microsoft.DevCenter/projects/catalogs", + "properties": { + "adoGit": { + "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "path": "/templates" + }, + "lastSyncStats": { + "added": 0, + "updated": 0, + "unchanged": 0, + "removed": 0, + "validationErrors": 0, + "synchronizationErrors": 0, + "syncedCatalogItemTypes": [ + "EnvironmentDefinition" + ] + }, + "provisioningState": "Accepted", + "connectionState": "Connected", + "syncState": "Succeeded" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", + "name": "CentralCatalog", + "type": "Microsoft.DevCenter/projects/catalogs", + "properties": { + "adoGit": { + "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "path": "/templates" + }, + "lastSyncStats": { + "added": 0, + "updated": 0, + "unchanged": 0, + "removed": 0, + "validationErrors": 0, + "synchronizationErrors": 0, + "syncedCatalogItemTypes": [ + "EnvironmentDefinition" + ] + }, + "provisioningState": "Accepted", + "connectionState": "Connected", + "syncState": "Succeeded" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_CreateGitHub.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_CreateGitHub.json new file mode 100644 index 000000000000..db145688fb9f --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_CreateGitHub.json @@ -0,0 +1,95 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "catalogName": "CentralCatalog", + "body": { + "properties": { + "gitHub": { + "uri": "https://github.com/Contoso/centralrepo-fake.git", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "path": "/templates" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", + "name": "CentralCatalog", + "type": "Microsoft.DevCenter/projects/catalogs", + "properties": { + "gitHub": { + "uri": "https://github.com/Contoso/centralrepo-fake.git", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "path": "/templates" + }, + "lastSyncStats": { + "added": 0, + "updated": 0, + "unchanged": 0, + "removed": 0, + "validationErrors": 0, + "synchronizationErrors": 0, + "syncedCatalogItemTypes": [ + "EnvironmentDefinition" + ] + }, + "provisioningState": "Accepted", + "connectionState": "Connected", + "syncState": "Succeeded" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", + "name": "CentralCatalog", + "type": "Microsoft.DevCenter/projects/catalogs", + "properties": { + "gitHub": { + "uri": "https://github.com/Contoso/centralrepo-fake.git", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "path": "/templates" + }, + "lastSyncStats": { + "added": 0, + "updated": 0, + "unchanged": 0, + "removed": 0, + "validationErrors": 0, + "synchronizationErrors": 0, + "syncedCatalogItemTypes": [ + "EnvironmentDefinition" + ] + }, + "provisioningState": "Accepted", + "connectionState": "Connected", + "syncState": "Succeeded" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Delete.json new file mode 100644 index 000000000000..d948cc87dffe --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Delete.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "catalogName": "CentralCatalog" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" + } + }, + "204": {} + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Get.json new file mode 100644 index 000000000000..bb68a9cc4bf5 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Get.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "catalogName": "CentralCatalog" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", + "name": "CentralCatalog", + "type": "Microsoft.DevCenter/projects/catalogs", + "properties": { + "gitHub": { + "uri": "https://github.com/Contoso/centralrepo-fake.git", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "path": "/templates" + }, + "lastSyncStats": { + "added": 1, + "updated": 1, + "unchanged": 1, + "removed": 1, + "validationErrors": 1, + "synchronizationErrors": 1, + "syncedCatalogItemTypes": [ + "EnvironmentDefinition" + ] + }, + "lastConnectionTime": "2020-11-18T18:28:00.314Z", + "lastSyncTime": "2020-11-18T18:28:00.314Z", + "provisioningState": "Succeeded", + "connectionState": "Connected", + "syncState": "Succeeded" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_GetSyncErrorDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_GetSyncErrorDetails.json new file mode 100644 index 000000000000..bd6dedc37655 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_GetSyncErrorDetails.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "catalogName": "CentralCatalog" + }, + "responses": { + "200": { + "body": { + "operationError": { + "code": "Conflict", + "message": "The source control credentials could not be validated successfully." + }, + "conflicts": [ + { + "path": "/Environments/Duplicate/manifest.yaml", + "name": "DuplicateEnvironmentName" + } + ], + "errors": [ + { + "path": "/Environments/Invalid/manifest.yaml", + "errorDetails": [ + { + "code": "ParseError", + "message": "Schema Error Within Catalog Item: Missing Name" + } + ] + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_List.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_List.json new file mode 100644 index 000000000000..8b7eeb4cf503 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_List.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/Contoso/catalogs", + "name": "CentralCatalog", + "type": "Microsoft.DevCenter/projects/catalogs", + "properties": { + "gitHub": { + "uri": "https://github.com/Contoso/centralrepo-fake.git", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "path": "/templates" + }, + "lastSyncStats": { + "added": 1, + "updated": 1, + "unchanged": 1, + "removed": 1, + "validationErrors": 1, + "synchronizationErrors": 1 + }, + "lastConnectionTime": "2020-11-18T18:28:00.314Z", + "lastSyncTime": "2020-11-18T18:28:00.314Z", + "provisioningState": "Succeeded", + "connectionState": "Connected", + "syncState": "Succeeded" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Patch.json new file mode 100644 index 000000000000..9f3cc04b9bda --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Patch.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "catalogName": "CentralCatalog", + "body": { + "properties": { + "gitHub": { + "path": "/environments" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", + "name": "CentralCatalog", + "type": "Microsoft.DevCenter/projects/catalogs", + "properties": { + "gitHub": { + "uri": "https://github.com/Contoso/centralrepo-fake.git", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "path": "/environments" + }, + "lastSyncStats": { + "added": 1, + "updated": 1, + "unchanged": 1, + "removed": 1, + "validationErrors": 1, + "synchronizationErrors": 1 + }, + "lastConnectionTime": "2020-11-18T18:28:00.314Z", + "lastSyncTime": "2020-11-18T18:28:00.314Z", + "provisioningState": "Succeeded", + "connectionState": "Connected", + "syncState": "Succeeded" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Sync.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Sync.json new file mode 100644 index 000000000000..afbc9c93eb4a --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Sync.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "catalogName": "CentralCatalog" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Delete.json new file mode 100644 index 000000000000..e41ab6e63d71 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "ContosoProj", + "environmentTypeName": "DevTest" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Get.json new file mode 100644 index 000000000000..b8672532f320 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Get.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "ContosoProj", + "environmentTypeName": "DevTest" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProj/environmentTypes/DevTest", + "name": "DevTest", + "type": "Microsoft.DevCenter/projects/environmentTypes", + "properties": { + "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Enabled", + "provisioningState": "Succeeded", + "environmentCount": 1, + "creatorRoleAssignment": { + "roles": { + "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { + "roleName": "Developer", + "description": "Allows Developer access to project virtual machine resources." + } + } + }, + "userRoleAssignments": { + "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { + "roles": { + "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { + "roleName": "Developer", + "description": "Allows Developer access to project virtual machine resources." + } + } + } + } + }, + "systemData": { + "createdBy": "User1@contoso.com", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + }, + "tags": { + "CostCenter": "RnD" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "location": "centralus" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_List.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_List.json new file mode 100644 index 000000000000..c76560116731 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_List.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "ContosoProj", + "environmentTypeName": "DevTest" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProj/environmentTypes/DevTest", + "name": "DevTest", + "type": "Microsoft.DevCenter/projects/environmentTypes", + "properties": { + "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Enabled", + "provisioningState": "Succeeded", + "creatorRoleAssignment": { + "roles": { + "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { + "roleName": "Developer", + "description": "Allows Developer access to project virtual machine resources." + } + } + }, + "userRoleAssignments": { + "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { + "roles": { + "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { + "roleName": "Developer", + "description": "Allows Developer access to project virtual machine resources." + } + } + } + } + }, + "systemData": { + "createdBy": "User1@contoso.com", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + }, + "tags": { + "CostCenter": "RnD" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "location": "centralus" + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Patch.json new file mode 100644 index 000000000000..c3fa3ed86e08 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Patch.json @@ -0,0 +1,85 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "ContosoProj", + "environmentTypeName": "DevTest", + "body": { + "properties": { + "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Enabled", + "userRoleAssignments": { + "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { + "roles": { + "4cbf0b6c-e750-441c-98a7-10da8387e4d6": {} + } + } + } + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} + } + }, + "tags": { + "CostCenter": "RnD" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProj/environmentTypes/DevTest", + "name": "DevTest", + "type": "Microsoft.DevCenter/projects/environmentTypes", + "properties": { + "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Enabled", + "provisioningState": "Succeeded", + "environmentCount": 1, + "creatorRoleAssignment": { + "roles": { + "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { + "roleName": "Developer", + "description": "Allows Developer access to project virtual machine resources." + } + } + }, + "userRoleAssignments": { + "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { + "roles": { + "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { + "roleName": "Developer", + "description": "Allows Developer access to project virtual machine resources." + } + } + } + } + }, + "systemData": { + "createdBy": "User1@contoso.com", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + }, + "tags": { + "CostCenter": "RnD" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "location": "centralus" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Put.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Put.json new file mode 100644 index 000000000000..c8c47b0b7054 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Put.json @@ -0,0 +1,146 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "ContosoProj", + "environmentTypeName": "DevTest", + "body": { + "properties": { + "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Enabled", + "creatorRoleAssignment": { + "roles": { + "4cbf0b6c-e750-441c-98a7-10da8387e4d6": {} + } + }, + "userRoleAssignments": { + "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { + "roles": { + "4cbf0b6c-e750-441c-98a7-10da8387e4d6": {} + } + } + } + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} + } + }, + "tags": { + "CostCenter": "RnD" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProj/environmentTypes/DevTest", + "name": "DevTest", + "type": "Microsoft.DevCenter/projects/environmentTypes", + "properties": { + "displayName": "DevTest", + "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Enabled", + "provisioningState": "Succeeded", + "environmentCount": 0, + "creatorRoleAssignment": { + "roles": { + "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { + "roleName": "Developer", + "description": "Allows Developer access to project virtual machine resources." + } + } + }, + "userRoleAssignments": { + "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { + "roles": { + "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { + "roleName": "Developer", + "description": "Allows Developer access to project virtual machine resources." + } + } + } + } + }, + "systemData": { + "createdBy": "User1@contoso.com", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + }, + "tags": { + "hidden-title": "Dev", + "CostCenter": "RnD" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "location": "centralus" + } + }, + "201": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProj/environmentTypes/DevTest", + "name": "DevTest", + "type": "Microsoft.DevCenter/projects/environmentTypes", + "properties": { + "displayName": "DevTest", + "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Enabled", + "provisioningState": "Succeeded", + "environmentCount": 0, + "creatorRoleAssignment": { + "roles": { + "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { + "roleName": "Developer", + "description": "Allows Developer access to project virtual machine resources." + } + } + }, + "userRoleAssignments": { + "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { + "roles": { + "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { + "roleName": "Developer", + "description": "Allows Developer access to project virtual machine resources." + } + } + } + } + }, + "systemData": { + "createdBy": "User1@contoso.com", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + }, + "tags": { + "hidden-title": "Dev", + "CostCenter": "RnD" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "location": "centralus" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Delete.json new file mode 100644 index 000000000000..bf138e82da62 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Delete.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff1", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "projectPolicyName": "DevOnlyResources" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2024-02-01", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2024-02-01" + } + }, + "204": {} + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Get.json new file mode 100644 index 000000000000..a9c0b3ce5883 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Get.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff1", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "projectPolicyName": "DevOnlyResources" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/projectPolicies/DevOnlyResources", + "name": "DevOnlyResources", + "type": "Microsoft.DevCenter/devcenters/projectpolicies", + "properties": { + "resourcePolicies": [ + { + "resources": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-westus3" + } + ], + "scopes": [ + "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject" + ], + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_ListByDevCenter.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_ListByDevCenter.json new file mode 100644 index 000000000000..01bc5b9a6c88 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_ListByDevCenter.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff1", + "resourceGroupName": "rg1", + "devCenterName": "Contoso" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/projectPolicies/DevOnlyResources", + "name": "DevOnlyResources", + "type": "Microsoft.DevCenter/devcenters/projectpolicies", + "properties": { + "resourcePolicies": [ + { + "resources": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-westus3" + } + ], + "scopes": [ + "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject" + ], + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Patch.json new file mode 100644 index 000000000000..6189ac3993ae --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Patch.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff1", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "projectPolicyName": "DevOnlyResources", + "body": { + "properties": { + "resourcePolicies": [ + { + "resources": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-westus3" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/projectPolicies/DevOnlyResources", + "name": "DevOnlyResources", + "type": "Microsoft.DevCenter/devcenters/projectpolicies", + "properties": { + "resourcePolicies": [ + { + "resources": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-westus3" + } + ], + "scopes": [ + "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject" + ], + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2024-02-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2024-02-01" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Put.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Put.json new file mode 100644 index 000000000000..42c6f2c45cbb --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Put.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff1", + "resourceGroupName": "rg1", + "devCenterName": "Contoso", + "projectPolicyName": "DevOnlyResources", + "body": { + "properties": { + "resourcePolicies": [ + { + "resources": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-westus3" + } + ], + "scopes": [ + "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/projectPolicies/DevOnlyResources", + "name": "DevOnlyResources", + "type": "Microsoft.DevCenter/devcenters/projectpolicies", + "properties": { + "resourcePolicies": [ + { + "resources": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-westus3" + } + ], + "scopes": [ + "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject" + ], + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/projectPolicies/DevOnlyResources", + "name": "DevOnlyResources", + "type": "Microsoft.DevCenter/devcenters/projectpolicies", + "properties": { + "resourcePolicies": [ + { + "resources": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-westus3" + } + ], + "scopes": [ + "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject" + ], + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "User1", + "createdByType": "User", + "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Delete.json new file mode 100644 index 000000000000..f619ee5592c1 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Delete.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + }, + "204": {} + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Get.json new file mode 100644 index 000000000000..c911b6483de9 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Get.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "name": "DevProject", + "type": "Microsoft.DevCenter/projects", + "properties": { + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "description": "This is my first project.", + "displayName": "Dev", + "catalogSettings": { + "catalogItemSyncTypes": [ + "EnvironmentDefinition" + ] + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + }, + "location": "centralus", + "tags": { + "hidden-title": "Dev", + "CostCenter": "R&D" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_GetInheritedSettings.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_GetInheritedSettings.json new file mode 100644 index 000000000000..bc7e7a4307ad --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_GetInheritedSettings.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "Contoso" + }, + "responses": { + "200": { + "body": { + "projectCatalogSettings": { + "catalogItemSyncEnableStatus": "Enabled" + }, + "networkSettings": { + "microsoftHostedNetworkEnableStatus": "Enabled" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_ListByResourceGroup.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_ListByResourceGroup.json new file mode 100644 index 000000000000..cb955f506b5f --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_ListByResourceGroup.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/myproject", + "name": "myproject", + "type": "Microsoft.DevCenter/projects", + "properties": { + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "description": "This is my first project.", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + }, + "location": "centralus", + "tags": { + "CostCenter": "R&D" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_ListBySubscription.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_ListBySubscription.json new file mode 100644 index 000000000000..a11287f17e49 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_ListBySubscription.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/myproject", + "name": "myproject", + "type": "Microsoft.DevCenter/projects", + "properties": { + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "description": "This is my first project.", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + }, + "location": "centralus", + "tags": { + "CostCenter": "R&D" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Patch.json new file mode 100644 index 000000000000..5244222ac42e --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Patch.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "body": { + "properties": { + "description": "This is my first project.", + "displayName": "Dev", + "catalogSettings": { + "catalogItemSyncTypes": [ + "EnvironmentDefinition" + ] + } + }, + "tags": { + "CostCenter": "R&D" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "name": "myproject", + "type": "Microsoft.DevCenter/projects", + "properties": { + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "description": "This is my first project. Very exciting.", + "displayName": "Dev", + "catalogSettings": { + "catalogItemSyncTypes": [ + "EnvironmentDefinition" + ] + }, + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + }, + "location": "centralus", + "tags": { + "displayName": "Dev", + "CostCenter": "R&D" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Put.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Put.json new file mode 100644 index 000000000000..f58085911224 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Put.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "body": { + "properties": { + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "description": "This is my first project.", + "displayName": "Dev" + }, + "location": "centralus", + "tags": { + "CostCenter": "R&D" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "name": "DevProject", + "type": "Microsoft.DevCenter/projects", + "properties": { + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "description": "This is my first project.", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + }, + "location": "centralus", + "tags": { + "hidden-title": "Dev", + "CostCenter": "R&D" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "name": "DevProject", + "type": "Microsoft.DevCenter/projects", + "properties": { + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "description": "This is my first project.", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + }, + "location": "centralus", + "tags": { + "hidden-title": "Dev", + "CostCenter": "R&D" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithCustomizationSettings.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithCustomizationSettings.json new file mode 100644 index 000000000000..75eb5a1088ad --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithCustomizationSettings.json @@ -0,0 +1,117 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "body": { + "properties": { + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "description": "This is my first project.", + "customizationSettings": { + "identities": [ + { + "identityType": "userAssignedIdentity", + "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + } + ] + } + }, + "location": "centralus", + "tags": { + "CostCenter": "R&D" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "name": "DevProject", + "type": "Microsoft.DevCenter/projects", + "properties": { + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "description": "This is my first project.", + "provisioningState": "Succeeded", + "customizationSettings": { + "identities": [ + { + "identityType": "userAssignedIdentity", + "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + } + ] + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + }, + "location": "centralus", + "tags": { + "CostCenter": "R&D" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "name": "DevProject", + "type": "Microsoft.DevCenter/projects", + "properties": { + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "description": "This is my first project.", + "maxDevBoxesPerUser": 3, + "customizationSettings": { + "identities": [ + { + "identityType": "userAssignedIdentity", + "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + } + ] + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + }, + "location": "centralus", + "tags": { + "CostCenter": "R&D" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithCustomizationSettings_SystemIdentity.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithCustomizationSettings_SystemIdentity.json new file mode 100644 index 000000000000..8b1236b4ac9c --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithCustomizationSettings_SystemIdentity.json @@ -0,0 +1,103 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "body": { + "properties": { + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "description": "This is my first project.", + "customizationSettings": { + "identities": [ + { + "identityType": "systemAssignedIdentity" + } + ] + } + }, + "location": "centralus", + "tags": { + "CostCenter": "R&D" + }, + "identity": { + "type": "SystemAssigned" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "name": "DevProject", + "type": "Microsoft.DevCenter/projects", + "properties": { + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "description": "This is my first project.", + "provisioningState": "Succeeded", + "customizationSettings": { + "identities": [ + { + "identityType": "systemAssignedIdentity" + } + ] + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + }, + "location": "centralus", + "tags": { + "CostCenter": "R&D" + }, + "identity": { + "type": "SystemAssigned", + "tenantId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "name": "DevProject", + "type": "Microsoft.DevCenter/projects", + "properties": { + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "description": "This is my first project.", + "maxDevBoxesPerUser": 3, + "customizationSettings": { + "identities": [ + { + "identityType": "systemAssignedIdentity" + } + ] + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + }, + "location": "centralus", + "tags": { + "CostCenter": "R&D" + }, + "identity": { + "type": "SystemAssigned", + "tenantId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithMaxDevBoxPerUser.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithMaxDevBoxPerUser.json new file mode 100644 index 000000000000..93d70f353585 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithMaxDevBoxPerUser.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "body": { + "properties": { + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "description": "This is my first project.", + "maxDevBoxesPerUser": 3 + }, + "location": "centralus", + "tags": { + "CostCenter": "R&D" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "name": "DevProject", + "type": "Microsoft.DevCenter/projects", + "properties": { + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "description": "This is my first project.", + "maxDevBoxesPerUser": 3, + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + }, + "location": "centralus", + "tags": { + "CostCenter": "R&D" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "name": "DevProject", + "type": "Microsoft.DevCenter/projects", + "properties": { + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "description": "This is my first project.", + "maxDevBoxesPerUser": 3, + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + }, + "location": "centralus", + "tags": { + "CostCenter": "R&D" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_CreateDailyShutdownPoolSchedule.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_CreateDailyShutdownPoolSchedule.json new file mode 100644 index 000000000000..f58ce6be118d --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_CreateDailyShutdownPoolSchedule.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "DevProject", + "poolName": "DevPool", + "scheduleName": "autoShutdown", + "body": { + "properties": { + "state": "Enabled", + "type": "StopDevBox", + "timeZone": "America/Los_Angeles", + "frequency": "Daily", + "time": "17:30" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/TestProject/pools/DevPool/schedules/autoShutdown", + "name": "autoShutdown", + "type": "Microsoft.DevCenter/pools/schedules", + "properties": { + "state": "Enabled", + "type": "StopDevBox", + "timeZone": "America/Los_Angeles", + "frequency": "Daily", + "time": "17:30", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/TestProject/pools/DevPool/schedules/autoShutdown", + "name": "autoShutdown", + "type": "Microsoft.DevCenter/pools/schedules", + "properties": { + "state": "Enabled", + "type": "StopDevBox", + "timeZone": "America/Los_Angeles", + "frequency": "Daily", + "time": "17:30", + "provisioningState": "Accepted" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Delete.json new file mode 100644 index 000000000000..e7f59ab85d21 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Delete.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "TestProject", + "poolName": "DevPool", + "scheduleName": "autoShutdown" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + }, + "204": {} + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Get.json new file mode 100644 index 000000000000..e484a703963b --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Get.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "TestProject", + "poolName": "DevPool", + "scheduleName": "autoShutdown" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/TestProject/pools/DevPool/schedules/autoShutdown", + "name": "autoShutdown", + "type": "Microsoft.DevCenter/pools/schedules", + "properties": { + "state": "Enabled", + "type": "StopDevBox", + "timeZone": "America/Los_Angeles", + "frequency": "Daily", + "time": "17:30", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_ListByPool.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_ListByPool.json new file mode 100644 index 000000000000..4cab442fd1eb --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_ListByPool.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "TestProject", + "poolName": "DevPool" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/TestProject/pools/DevPool/schedules/autoShutdown", + "name": "autoShutdown", + "type": "Microsoft.DevCenter/pools/schedules", + "properties": { + "state": "Enabled", + "type": "StopDevBox", + "timeZone": "America/Los_Angeles", + "frequency": "Daily", + "time": "17:30", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Patch.json new file mode 100644 index 000000000000..d0cbac447133 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Patch.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "TestProject", + "poolName": "DevPool", + "scheduleName": "autoShutdown", + "body": { + "properties": { + "time": "18:00" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/TestProject/pools/DevPool/schedules/autoShutdown", + "name": "autoShutdown", + "type": "Microsoft.DevCenter/pools/schedules", + "properties": { + "state": "Enabled", + "type": "StopDevBox", + "timeZone": "America/Los_Angeles", + "frequency": "Daily", + "time": "17:30", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Skus_ListByProject.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Skus_ListByProject.json new file mode 100644 index 000000000000..845cb7616113 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Skus_ListByProject.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "resourceGroupName": "rg1", + "projectName": "myProject" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "resourceType": "projects/pools", + "name": "Large", + "tier": "Premium", + "locations": [ + "CentralUS" + ] + }, + { + "resourceType": "projects/pools", + "name": "Medium", + "tier": "Standard", + "locations": [ + "CentralUS" + ] + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Skus_ListBySubscription.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Skus_ListBySubscription.json new file mode 100644 index 000000000000..d43bab2e0d02 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Skus_ListBySubscription.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "resourceType": "projects/pools", + "name": "Large", + "tier": "Premium", + "locations": [ + "CentralUS" + ] + }, + { + "resourceType": "projects/pools", + "name": "Medium", + "tier": "Standard", + "locations": [ + "CentralUS" + ] + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Usages_ListByLocation.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Usages_ListByLocation.json new file mode 100644 index 000000000000..fddfb1ed2043 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Usages_ListByLocation.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "location": "westus" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "currentValue": 2, + "limit": 8, + "unit": "Count", + "name": { + "value": "devcenters" + }, + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/Microsoft.DevCenter/locations/westus/quotas/devcenters" + }, + { + "currentValue": 5, + "limit": 30, + "unit": "Count", + "name": { + "value": "projects" + }, + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/Microsoft.DevCenter/locations/westus/quotas/projects" + } + ] + } + } + } +} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/vdi.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/vdi.json new file mode 100644 index 000000000000..f3ecc803e030 --- /dev/null +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/vdi.json @@ -0,0 +1,2091 @@ +{ + "swagger": "2.0", + "info": { + "version": "2025-07-01-preview", + "title": "DevCenter", + "description": "DevCenter Management API" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/skus": { + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "commonDefinitions.json#/parameters/TopParameter" + } + ], + "get": { + "tags": [ + "SKUs" + ], + "description": "Lists the Microsoft.DevCenter SKUs available in a subscription", + "operationId": "Skus_ListBySubscription", + "parameters": [], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/SkuListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Skus_ListBySubscription": { + "$ref": "./examples/Skus_ListBySubscription.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools": { + "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": "commonDefinitions.json#/parameters/ProjectNameParameter" + }, + { + "$ref": "commonDefinitions.json#/parameters/TopParameter" + } + ], + "get": { + "tags": [ + "Pools" + ], + "description": "Lists pools for a project", + "operationId": "Pools_ListByProject", + "parameters": [], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/PoolListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Pools_ListByProject": { + "$ref": "./examples/Pools_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}": { + "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": "commonDefinitions.json#/parameters/ProjectNameParameter" + }, + { + "$ref": "#/parameters/PoolNameParameter" + } + ], + "get": { + "tags": [ + "Pools" + ], + "description": "Gets a machine pool", + "operationId": "Pools_Get", + "parameters": [], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Pool" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Pools_Get": { + "$ref": "./examples/Pools_Get.json" + }, + "Pools_GetUnhealthyStatus": { + "$ref": "./examples/Pools_GetUnhealthyStatus.json" + } + } + }, + "put": { + "tags": [ + "Pools" + ], + "description": "Creates or updates a machine pool", + "operationId": "Pools_CreateOrUpdate", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "parameters": [ + { + "in": "body", + "name": "body", + "description": "Represents a machine pool", + "required": true, + "schema": { + "$ref": "#/definitions/Pool" + } + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Pool" + } + }, + "201": { + "description": "Created. Operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/Pool" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Pools_CreateOrUpdate": { + "$ref": "./examples/Pools_Put.json" + }, + "Pools_CreateOrUpdateWithManagedNetwork": { + "$ref": "./examples/Pools_PutWithManagedNetwork.json" + }, + "Pools_CreateOrUpdateWithValueDevBoxDefinition": { + "$ref": "./examples/Pools_PutWithValueDevBoxDefinition.json" + } + } + }, + "patch": { + "tags": [ + "Pools" + ], + "description": "Partially updates a machine pool", + "operationId": "Pools_Update", + "parameters": [ + { + "in": "body", + "name": "body", + "description": "Represents a machine pool", + "required": true, + "schema": { + "$ref": "#/definitions/PoolUpdate" + } + } + ], + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Pool" + } + }, + "202": { + "description": "Accepted. Operation will complete asynchronously", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Pools_Update": { + "$ref": "./examples/Pools_Patch.json" + } + } + }, + "delete": { + "tags": [ + "Pools" + ], + "description": "Deletes a machine pool", + "operationId": "Pools_Delete", + "parameters": [], + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "responses": { + "202": { + "description": "Accepted. Operation will complete asynchronously.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Pools_Delete": { + "$ref": "./examples/Pools_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/runHealthChecks": { + "post": { + "tags": [ + "Pools" + ], + "description": "Triggers a refresh of the pool status.", + "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": "commonDefinitions.json#/parameters/ProjectNameParameter" + }, + { + "$ref": "#/parameters/PoolNameParameter" + } + ], + "operationId": "Pools_RunHealthChecks", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "responses": { + "202": { + "description": "Accepted. Initiating pool status refresh.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Pools_RefreshStatus": { + "$ref": "./examples/Pools_RunHealthChecks.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules": { + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "commonDefinitions.json#/parameters/ProjectNameParameter" + }, + { + "$ref": "#/parameters/PoolNameParameter" + }, + { + "$ref": "commonDefinitions.json#/parameters/TopParameter" + } + ], + "get": { + "tags": [ + "Schedules" + ], + "description": "Lists schedules for a pool", + "operationId": "Schedules_ListByPool", + "parameters": [], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ScheduleListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Schedules_ListByPool": { + "$ref": "./examples/Schedules_ListByPool.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}": { + "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": "commonDefinitions.json#/parameters/ProjectNameParameter" + }, + { + "$ref": "#/parameters/PoolNameParameter" + }, + { + "$ref": "#/parameters/ScheduleNameParameter" + }, + { + "$ref": "commonDefinitions.json#/parameters/TopParameter" + } + ], + "get": { + "tags": [ + "Schedules" + ], + "description": "Gets a schedule resource.", + "operationId": "Schedules_Get", + "parameters": [], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Schedules_GetByPool": { + "$ref": "./examples/Schedules_Get.json" + } + } + }, + "put": { + "tags": [ + "Schedules" + ], + "description": "Creates or updates a Schedule.", + "operationId": "Schedules_CreateOrUpdate", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "parameters": [ + { + "in": "body", + "name": "body", + "description": "Represents a scheduled task", + "required": true, + "schema": { + "$ref": "#/definitions/Schedule" + } + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + "201": { + "description": "Created. Operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Schedules_CreateDailyShutdownPoolSchedule": { + "$ref": "./examples/Schedules_CreateDailyShutdownPoolSchedule.json" + } + } + }, + "patch": { + "tags": [ + "Schedules" + ], + "description": "Partially updates a Scheduled.", + "operationId": "Schedules_Update", + "parameters": [ + { + "in": "body", + "name": "body", + "description": "Represents a scheduled task.", + "required": true, + "schema": { + "$ref": "#/definitions/ScheduleUpdate" + } + } + ], + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + "202": { + "description": "Accepted. Operation will complete asynchronously", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Schedules_Update": { + "$ref": "./examples/Schedules_Patch.json" + } + } + }, + "delete": { + "tags": [ + "Schedules" + ], + "description": "Deletes a Scheduled.", + "operationId": "Schedules_Delete", + "parameters": [], + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "responses": { + "202": { + "description": "Accepted. Operation will complete asynchronously.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Schedules_Delete": { + "$ref": "./examples/Schedules_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/networkConnections": { + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "commonDefinitions.json#/parameters/TopParameter" + } + ], + "get": { + "tags": [ + "Network Connections" + ], + "description": "Lists network connections in a subscription", + "operationId": "NetworkConnections_ListBySubscription", + "parameters": [], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/NetworkConnectionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NetworkConnections_ListBySubscription": { + "$ref": "./examples/NetworkConnections_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections": { + "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": "commonDefinitions.json#/parameters/TopParameter" + } + ], + "get": { + "tags": [ + "Network Connections" + ], + "description": "Lists network connections in a resource group", + "operationId": "NetworkConnections_ListByResourceGroup", + "parameters": [], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/NetworkConnectionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NetworkConnections_ListByResourceGroup": { + "$ref": "./examples/NetworkConnections_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}": { + "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/NetworkConnectionName" + } + ], + "get": { + "tags": [ + "Network Connections" + ], + "description": "Gets a network connection resource", + "operationId": "NetworkConnections_Get", + "parameters": [], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/NetworkConnection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NetworkConnections_Get": { + "$ref": "./examples/NetworkConnections_Get.json" + } + } + }, + "put": { + "tags": [ + "Network Connections" + ], + "description": "Creates or updates a Network Connections resource", + "operationId": "NetworkConnections_CreateOrUpdate", + "parameters": [ + { + "in": "body", + "name": "body", + "description": "Represents network connection", + "required": true, + "schema": { + "$ref": "#/definitions/NetworkConnection" + } + } + ], + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "responses": { + "200": { + "description": "Accepted. Operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/NetworkConnection" + } + }, + "201": { + "description": "Created. Operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/NetworkConnection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NetworkConnections_CreateOrUpdate": { + "$ref": "./examples/NetworkConnections_Put.json" + } + } + }, + "patch": { + "tags": [ + "Network Connections" + ], + "description": "Partially updates a Network Connection", + "operationId": "NetworkConnections_Update", + "parameters": [ + { + "in": "body", + "name": "body", + "description": "Represents network connection", + "required": true, + "schema": { + "$ref": "#/definitions/NetworkConnectionUpdate" + } + } + ], + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/NetworkConnection" + } + }, + "202": { + "description": "Accepted. Operation will complete asynchronously.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NetworkConnections_Update": { + "$ref": "./examples/NetworkConnections_Patch.json" + } + } + }, + "delete": { + "tags": [ + "Network Connections" + ], + "description": "Deletes a Network Connections resource", + "operationId": "NetworkConnections_Delete", + "parameters": [], + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "responses": { + "202": { + "description": "Accepted. Operation will complete asynchronously.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NetworkConnections_Delete": { + "$ref": "./examples/NetworkConnections_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/healthChecks": { + "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": "commonDefinitions.json#/parameters/TopParameter" + }, + { + "$ref": "#/parameters/NetworkConnectionName" + } + ], + "get": { + "tags": [ + "Network Connections" + ], + "description": "Lists health check status details", + "operationId": "NetworkConnections_ListHealthDetails", + "parameters": [], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/HealthCheckStatusDetailsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NetworkConnections_ListHealthDetails": { + "$ref": "./examples/NetworkConnections_ListHealthDetails.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/healthChecks/latest": { + "get": { + "tags": [ + "Network Connections" + ], + "description": "Gets health check status details.", + "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/NetworkConnectionName" + } + ], + "operationId": "NetworkConnections_GetHealthDetails", + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/HealthCheckStatusDetails" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NetworkConnections_GetHealthDetails": { + "$ref": "./examples/NetworkConnections_GetHealthDetails.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/runHealthChecks": { + "post": { + "tags": [ + "Network Connection" + ], + "description": "Triggers a new health check run. The execution and health check result can be tracked via the network Connection health check details", + "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/NetworkConnectionName" + } + ], + "operationId": "NetworkConnections_RunHealthChecks", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "responses": { + "202": { + "description": "Accepted. Initiating health checks.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NetworkConnections_RunHealthChecks": { + "$ref": "./examples/NetworkConnections_RunHealthChecks.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/outboundNetworkDependenciesEndpoints": { + "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": "commonDefinitions.json#/parameters/TopParameter" + }, + { + "$ref": "#/parameters/NetworkConnectionName" + } + ], + "get": { + "tags": [ + "Network Connection" + ], + "operationId": "NetworkConnections_ListOutboundNetworkDependenciesEndpoints", + "description": "Lists the endpoints that agents may call as part of Dev Box service administration. These FQDNs should be allowed for outbound access in order for the Dev Box service to function.", + "parameters": [], + "x-ms-examples": { + "ListOutboundNetworkDependencies": { + "$ref": "./examples/NetworkConnections_ListOutboundNetworkDependenciesEndpoints.json" + } + }, + "responses": { + "200": { + "description": "The operation was successful. The response contains a list of outbound network dependencies.", + "schema": { + "$ref": "#/definitions/OutboundEnvironmentEndpointCollection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "SkuListResult": { + "description": "Results of the Microsoft.DevCenter SKU list operation.", + "type": "object", + "properties": { + "value": { + "description": "Current page of results.", + "type": "array", + "items": { + "$ref": "commonDefinitions.json#/definitions/DevCenterSku" + }, + "x-ms-identifiers": [], + "readOnly": true + }, + "nextLink": { + "description": "URL to get the next set of results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "Pool": { + "description": "A pool of Virtual Machines.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "description": "Pool properties", + "x-ms-client-flatten": true, + "$ref": "#/definitions/PoolProperties" + } + } + }, + "PoolUpdateProperties": { + "description": "Properties of a Pool. These properties can be updated after the resource has been created.", + "type": "object", + "properties": { + "devBoxDefinitionType": { + "description": "Indicates if the pool is created from an existing Dev Box Definition or if one is provided directly.", + "$ref": "#/definitions/PoolDevBoxDefinitionType" + }, + "devBoxDefinitionName": { + "description": "Name of a Dev Box definition in parent Project of this Pool. Will be ignored if devBoxDefinitionType is Value.", + "type": "string" + }, + "devBoxDefinition": { + "description": "A definition of the machines that are created from this Pool. Will be ignored if devBoxDefinitionType is Reference or not provided.", + "$ref": "#/definitions/PoolDevBoxDefinition" + }, + "networkConnectionName": { + "description": "Name of a Network Connection in parent Project of this Pool", + "type": "string" + }, + "licenseType": { + "description": "Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created.", + "$ref": "#/definitions/LicenseType" + }, + "localAdministrator": { + "description": "Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.", + "$ref": "#/definitions/LocalAdminStatus" + }, + "stopOnDisconnect": { + "description": "Stop on disconnect configuration settings for Dev Boxes created in this pool.", + "$ref": "#/definitions/StopOnDisconnectConfiguration" + }, + "stopOnNoConnect": { + "description": "Stop on no connect configuration settings for Dev Boxes created in this pool.", + "$ref": "#/definitions/StopOnNoConnectConfiguration" + }, + "singleSignOnStatus": { + "description": "Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on be enabled on the tenant.", + "$ref": "#/definitions/SingleSignOnStatus" + }, + "displayName": { + "type": "string", + "description": "The display name of the pool." + }, + "virtualNetworkType": { + "description": "Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network.", + "$ref": "#/definitions/VirtualNetworkType" + }, + "managedVirtualNetworkRegions": { + "type": "array", + "description": "The regions of the managed virtual network (required when managedNetworkType is Managed).", + "items": { + "type": "string" + } + }, + "activeHoursConfiguration": { + "description": "Active hours configuration settings for Dev Boxes created in this pool.", + "$ref": "#/definitions/ActiveHoursConfiguration" + }, + "devBoxTunnelEnableStatus": { + "description": "Indicates whether Dev Box Tunnel is enabled for a the pool.", + "$ref": "#/definitions/DevBoxTunnelEnableStatus" + } + } + }, + "PoolProperties": { + "type": "object", + "description": "Properties of a Pool", + "allOf": [ + { + "$ref": "#/definitions/PoolUpdateProperties" + } + ], + "properties": { + "healthStatus": { + "description": "Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes.", + "$ref": "#/definitions/HealthStatus", + "readOnly": true + }, + "healthStatusDetails": { + "description": "Details on the Pool health status to help diagnose issues. This is only populated when the pool status indicates the pool is in a non-healthy state", + "type": "array", + "items": { + "$ref": "#/definitions/HealthStatusDetail" + }, + "x-ms-identifiers": [ + "code" + ], + "readOnly": true + }, + "devBoxCount": { + "description": "Indicates the number of provisioned Dev Boxes in this pool.", + "type": "integer", + "format": "int32", + "readOnly": true + }, + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "commonDefinitions.json#/definitions/ProvisioningState", + "readOnly": true + } + }, + "required": [ + "devBoxDefinitionName", + "networkConnectionName", + "licenseType", + "localAdministrator" + ] + }, + "PoolDevBoxDefinition": { + "description": "Represents a definition for a Developer Machine.", + "type": "object", + "properties": { + "imageReference": { + "$ref": "#/definitions/ImageReference", + "description": "Image reference information." + }, + "sku": { + "description": "The SKU for Dev Boxes created from the Pool.", + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Sku" + }, + "activeImageReference": { + "$ref": "#/definitions/ImageReference", + "description": "Image reference information for the currently active image (only populated during updates).", + "readOnly": true + } + } + }, + "HealthStatus": { + "description": "Health status indicating whether a pool is available to create Dev Boxes.", + "enum": [ + "Unknown", + "Pending", + "Healthy", + "Warning", + "Unhealthy" + ], + "type": "string", + "x-ms-enum": { + "name": "HealthStatus", + "modelAsString": true + } + }, + "HealthStatusDetail": { + "type": "object", + "description": "Pool health status detail.", + "properties": { + "code": { + "type": "string", + "description": "An identifier for the issue.", + "readOnly": true + }, + "message": { + "type": "string", + "description": "A message describing the issue, intended to be suitable for display in a user interface", + "readOnly": true + } + } + }, + "LicenseType": { + "description": "License Types", + "enum": [ + "Windows_Client" + ], + "type": "string", + "x-ms-enum": { + "name": "LicenseType", + "modelAsString": true + } + }, + "LocalAdminStatus": { + "description": "Local Administrator enable or disable status. Indicates whether owners of Dev Boxes are added as local administrators on the Dev Box.", + "type": "string", + "enum": [ + "Disabled", + "Enabled" + ], + "x-ms-enum": { + "name": "LocalAdminStatus", + "modelAsString": true + } + }, + "SingleSignOnStatus": { + "description": "SingleSignOn (SSO) enable or disable status. Indicates whether Dev Boxes in the Pool will have SSO enabled or disabled.", + "type": "string", + "enum": [ + "Disabled", + "Enabled" + ], + "x-ms-enum": { + "name": "SingleSignOnStatus", + "modelAsString": true + } + }, + "VirtualNetworkType": { + "description": "Indicates a pool uses a Virtual Network managed by Microsoft (Managed), or a customer provided Network (Unmanaged).", + "type": "string", + "enum": [ + "Managed", + "Unmanaged" + ], + "x-ms-enum": { + "name": "VirtualNetworkType", + "modelAsString": true + } + }, + "PoolDevBoxDefinitionType": { + "description": "Indicates if the pool is created from an existing Dev Box Definition or if one is provided directly.", + "type": "string", + "enum": [ + "Reference", + "Value" + ], + "x-ms-enum": { + "name": "PoolDevBoxDefinitionType", + "modelAsString": true + } + }, + "StopOnDisconnectConfiguration": { + "type": "object", + "description": "Stop on disconnect configuration settings for Dev Boxes created in this pool.", + "properties": { + "status": { + "description": "Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled.", + "$ref": "#/definitions/StopOnDisconnectEnableStatus" + }, + "gracePeriodMinutes": { + "description": "The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.", + "type": "integer", + "format": "int32" + } + } + }, + "StopOnDisconnectEnableStatus": { + "description": "Stop on disconnect enable or disable status. Indicates whether stop on disconnect to is either enabled or disabled.", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "StopOnDisconnectEnableStatus", + "modelAsString": true + } + }, + "StopOnNoConnectConfiguration": { + "type": "object", + "description": "Stop on no connect configuration settings for Dev Boxes created in this pool.", + "properties": { + "status": { + "description": "Enables the feature to stop a started Dev Box when it has not been connected to, once the grace period has lapsed.", + "$ref": "#/definitions/StopOnNoConnectEnableStatus" + }, + "gracePeriodMinutes": { + "description": "The specified time in minutes to wait before stopping a Dev Box if no connection is made.", + "type": "integer", + "format": "int32" + } + } + }, + "StopOnNoConnectEnableStatus": { + "description": "Stop on no connect enable or disable status.", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "StopOnNoConnectEnableStatus", + "modelAsString": true + } + }, + "PoolListResult": { + "description": "Results of the machine pool list operation.", + "type": "object", + "properties": { + "value": { + "description": "Current page of results.", + "type": "array", + "items": { + "$ref": "#/definitions/Pool" + }, + "readOnly": true + }, + "nextLink": { + "description": "URL to get the next set of results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "PoolUpdate": { + "description": "The pool properties for partial update. Properties not provided in the update request will not be changed.", + "type": "object", + "allOf": [ + { + "$ref": "commonDefinitions.json#/definitions/TrackedResourceUpdate" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PoolUpdateProperties", + "description": "Properties of a pool to be updated." + } + } + }, + "ImageReference": { + "type": "object", + "description": "Image reference information", + "properties": { + "id": { + "description": "Image ID, or Image version ID. When Image ID is provided, its latest version will be used.", + "type": "string" + }, + "exactVersion": { + "type": "string", + "readOnly": true, + "description": "The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual version in use." + } + } + }, + "ImageValidationStatus": { + "description": "Image validation status", + "enum": [ + "Unknown", + "Pending", + "Succeeded", + "Failed", + "TimedOut" + ], + "type": "string", + "x-ms-enum": { + "name": "ImageValidationStatus", + "modelAsString": true + } + }, + "ImageValidationErrorDetails": { + "type": "object", + "description": "Image validation error details", + "properties": { + "code": { + "type": "string", + "description": "An identifier for the error." + }, + "message": { + "type": "string", + "description": "A message describing the error." + } + } + }, + "CatalogResourceValidationStatus": { + "description": "Catalog resource validation status", + "enum": [ + "Unknown", + "Pending", + "Succeeded", + "Failed" + ], + "type": "string", + "x-ms-enum": { + "name": "CatalogResourceValidationStatus", + "modelAsString": true + } + }, + "CatalogResourceValidationErrorDetails": { + "type": "object", + "description": "List of validator error details. Populated when changes are made to the resource or its dependent resources that impact the validity of the Catalog resource.", + "properties": { + "errors": { + "description": "Errors associated with resources synchronized from the catalog.", + "type": "array", + "items": { + "$ref": "#/definitions/CatalogErrorDetails" + }, + "x-ms-identifiers": [], + "readOnly": true + } + } + }, + "CatalogErrorDetails": { + "type": "object", + "description": "Catalog error details", + "properties": { + "code": { + "type": "string", + "description": "An identifier for the error." + }, + "message": { + "type": "string", + "description": "A message describing the error." + } + } + }, + "DevBoxTunnelEnableStatus": { + "description": "Indicates whether Dev Box Tunnel is enabled.", + "enum": [ + "Disabled", + "Enabled" + ], + "type": "string", + "x-ms-enum": { + "name": "DevBoxTunnelEnableStatus", + "modelAsString": true + } + }, + "NetworkConnection": { + "type": "object", + "description": "Network related settings", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "description": "Properties of a Network Connection", + "x-ms-client-flatten": true, + "$ref": "#/definitions/NetworkProperties" + } + } + }, + "NetworkConnectionUpdate": { + "description": "The network connection properties for partial update. Properties not provided in the update request will not be changed.", + "type": "object", + "allOf": [ + { + "$ref": "commonDefinitions.json#/definitions/TrackedResourceUpdate" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/NetworkConnectionUpdateProperties", + "description": "Properties of a network connection resource to be updated." + } + } + }, + "NetworkConnectionUpdateProperties": { + "description": "Properties of network connection. These properties can be updated after the resource has been created.", + "type": "object", + "properties": { + "subnetId": { + "description": "The subnet to attach Virtual Machines to", + "type": "string" + }, + "domainName": { + "description": "Active Directory domain name", + "type": "string" + }, + "organizationUnit": { + "description": "Active Directory domain Organization Unit (OU)", + "type": "string" + }, + "domainUsername": { + "description": "The username of an Active Directory account (user or service account) that has permissions to create computer objects in Active Directory. Required format: admin@contoso.com.", + "type": "string" + }, + "domainPassword": { + "description": "The password for the account used to join domain", + "type": "string", + "x-ms-secret": true + } + } + }, + "NetworkProperties": { + "description": "Network properties", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/NetworkConnectionUpdateProperties" + } + ], + "properties": { + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "commonDefinitions.json#/definitions/ProvisioningState", + "readOnly": true + }, + "healthCheckStatus": { + "description": "Overall health status of the network connection. Health checks are run on creation, update, and periodically to validate the network connection.", + "$ref": "#/definitions/HealthCheckStatus", + "readOnly": true + }, + "networkingResourceGroupName": { + "description": "The name for resource group where NICs will be placed.", + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "domainJoinType": { + "description": "AAD Join type.", + "$ref": "#/definitions/DomainJoinType", + "x-ms-mutability": [ + "read", + "create" + ] + } + }, + "required": [ + "subnetId", + "domainJoinType" + ] + }, + "NetworkConnectionListResult": { + "description": "Result of the network connection list operation.", + "type": "object", + "properties": { + "value": { + "description": "Current page of results.", + "type": "array", + "items": { + "$ref": "#/definitions/NetworkConnection" + }, + "readOnly": true + }, + "nextLink": { + "description": "URL to get the next set of results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "DomainJoinType": { + "description": "Active Directory join type", + "enum": [ + "HybridAzureADJoin", + "AzureADJoin", + "None" + ], + "type": "string", + "x-ms-enum": { + "name": "DomainJoinType", + "modelAsString": true + } + }, + "HealthCheckStatus": { + "description": "Health check status values", + "enum": [ + "Unknown", + "Pending", + "Running", + "Passed", + "Warning", + "Failed", + "Informational" + ], + "type": "string", + "x-ms-enum": { + "name": "HealthCheckStatus", + "modelAsString": true + } + }, + "HealthCheckStatusDetails": { + "description": "Health Check details.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Health check status details properties.", + "$ref": "#/definitions/HealthCheckStatusDetailsProperties" + } + } + }, + "HealthCheckStatusDetailsProperties": { + "description": "Health Check properties.", + "type": "object", + "properties": { + "startDateTime": { + "type": "string", + "description": "Start time of last execution of the health checks.", + "readOnly": true, + "format": "date-time" + }, + "endDateTime": { + "type": "string", + "description": "End time of last execution of the health checks.", + "readOnly": true, + "format": "date-time" + }, + "healthChecks": { + "description": "Details for each health check item.", + "type": "array", + "items": { + "$ref": "#/definitions/HealthCheck" + }, + "x-ms-identifiers": [], + "readOnly": true + } + } + }, + "HealthCheck": { + "description": "An individual health check item", + "type": "object", + "properties": { + "status": { + "description": "The status of the health check item.", + "$ref": "#/definitions/HealthCheckStatus", + "readOnly": true + }, + "displayName": { + "description": "The display name of this health check item.", + "type": "string", + "readOnly": true + }, + "startDateTime": { + "description": "Start time of health check item.", + "type": "string", + "readOnly": true, + "format": "date-time" + }, + "endDateTime": { + "description": "End time of the health check item.", + "type": "string", + "readOnly": true, + "format": "date-time" + }, + "errorType": { + "description": "The type of error that occurred during this health check.", + "type": "string", + "readOnly": true + }, + "recommendedAction": { + "description": "The recommended action to fix the corresponding error.", + "type": "string", + "readOnly": true + }, + "additionalDetails": { + "description": "Additional details about the health check or the recommended action.", + "type": "string", + "readOnly": true + } + } + }, + "HealthCheckStatusDetailsListResult": { + "description": "Result of the network health check list operation.", + "type": "object", + "properties": { + "value": { + "description": "Current page of results.", + "type": "array", + "items": { + "$ref": "#/definitions/HealthCheckStatusDetails" + }, + "readOnly": true + }, + "nextLink": { + "description": "URL to get the next set of results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "OutboundEnvironmentEndpointCollection": { + "type": "object", + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/OutboundEnvironmentEndpoint" + }, + "x-ms-identifiers": [ + "category" + ], + "description": "The collection of outbound network dependency endpoints returned by the listing operation." + }, + "nextLink": { + "type": "string", + "description": "The continuation token." + } + }, + "description": "Values returned by the List operation." + }, + "OutboundEnvironmentEndpoint": { + "type": "object", + "properties": { + "category": { + "type": "string", + "readOnly": true, + "description": "The type of service that the agent connects to." + }, + "endpoints": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/EndpointDependency" + }, + "x-ms-identifiers": [ + "domainName" + ], + "description": "The endpoints for this service for which the agent requires outbound access." + } + }, + "description": "A collection of related endpoints from the same service for which the agent requires outbound access." + }, + "EndpointDependency": { + "type": "object", + "properties": { + "domainName": { + "type": "string", + "readOnly": true, + "description": "The domain name of the dependency. Domain names may be fully qualified or may contain a * wildcard." + }, + "description": { + "type": "string", + "readOnly": true, + "description": "Human-readable supplemental information about the dependency and when it is applicable." + }, + "endpointDetails": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/EndpointDetail" + }, + "x-ms-identifiers": [], + "description": "The list of connection details for this endpoint." + } + }, + "description": "A domain name and connection details used to access a dependency." + }, + "EndpointDetail": { + "type": "object", + "properties": { + "port": { + "type": "integer", + "format": "int32", + "readOnly": true, + "description": "The port an endpoint is connected to." + } + }, + "description": "Details about the connection between the Batch service and the endpoint." + }, + "Schedule": { + "type": "object", + "description": "Represents a Schedule to execute a task.", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" + } + ], + "properties": { + "properties": { + "description": "Properties of a Schedule resource", + "x-ms-client-flatten": true, + "$ref": "#/definitions/ScheduleProperties" + } + } + }, + "ScheduleUpdate": { + "description": "The schedule properties for partial update. Properties not provided in the update request will not be changed.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ScheduleUpdateProperties", + "description": "Properties of a schedule resource to be updated." + } + } + }, + "ScheduleUpdateProperties": { + "description": "Updatable properties of a Schedule.", + "type": "object", + "allOf": [ + { + "$ref": "commonDefinitions.json#/definitions/TrackedResourceUpdate" + } + ], + "properties": { + "type": { + "description": "Supported type this scheduled task represents.", + "$ref": "#/definitions/ScheduledType" + }, + "frequency": { + "description": "The frequency of this scheduled task.", + "$ref": "#/definitions/ScheduledFrequency" + }, + "time": { + "description": "The target time to trigger the action. The format is HH:MM.", + "type": "string" + }, + "timeZone": { + "description": "The IANA timezone id at which the schedule should execute.", + "type": "string" + }, + "state": { + "description": "Indicates whether or not this scheduled task is enabled.", + "$ref": "#/definitions/ScheduleEnableStatus" + } + } + }, + "ScheduleProperties": { + "description": "The Schedule properties defining when and what to execute.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ScheduleUpdateProperties" + } + ], + "properties": { + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "commonDefinitions.json#/definitions/ProvisioningState", + "readOnly": true + } + }, + "required": [ + "type", + "frequency", + "timeZone", + "time" + ] + }, + "ScheduleListResult": { + "description": "Result of the schedule list operation.", + "type": "object", + "properties": { + "value": { + "description": "Current page of results.", + "type": "array", + "items": { + "$ref": "#/definitions/Schedule" + }, + "readOnly": true + }, + "nextLink": { + "description": "URL to get the next set of results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "ScheduledType": { + "description": "The supported types for a scheduled task.", + "enum": [ + "StopDevBox" + ], + "type": "string", + "x-ms-enum": { + "name": "ScheduledType", + "modelAsString": true + } + }, + "ScheduledFrequency": { + "description": "The frequency of task execution.", + "enum": [ + "Daily" + ], + "type": "string", + "x-ms-enum": { + "name": "ScheduledFrequency", + "modelAsString": true + } + }, + "ScheduleEnableStatus": { + "description": "Schedule enable or disable status. Indicates whether the schedule applied to is either enabled or disabled.", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "ScheduleEnableStatus", + "modelAsString": true + } + }, + "ActiveHoursConfiguration": { + "type": "object", + "description": "Active hours configuration.", + "properties": { + "keepAwakeEnableStatus": { + "$ref": "#/definitions/KeepAwakeEnableStatus", + "description": "Enables or disables whether the Dev Box should be kept awake during active hours." + }, + "autoStartEnableStatus": { + "$ref": "#/definitions/AutoStartEnableStatus", + "description": "Enables or disables whether the Dev Box should be automatically started at commencement of active hours." + }, + "defaultTimeZone": { + "type": "string", + "description": "The default IANA timezone id of the active hours." + }, + "defaultStartTimeHour": { + "type": "integer", + "format": "int32", + "description": "The default start time of the active hours." + }, + "defaultEndTimeHour": { + "type": "integer", + "format": "int32", + "description": "The default end time of the active hours" + }, + "defaultDaysOfWeek": { + "type": "array", + "items": { + "$ref": "#/definitions/DaysOfWeek" + }, + "description": "The days of the week that active hours features will be enabled. This serves as a default that can be updated by each individual user." + }, + "daysOfWeekLimit": { + "type": "integer", + "format": "int32", + "description": "The maximum amount of days per week that a user can enable active hours related features." + } + } + }, + "KeepAwakeEnableStatus": { + "type": "string", + "description": "Enables or disables whether Dev Boxes should be kept awake during active hours.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "KeepAwakeEnableStatus", + "modelAsString": true + } + }, + "AutoStartEnableStatus": { + "type": "string", + "description": "Enables or disables whether Dev Boxes should be automatically started at commencement of active hours.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "AutoStartEnableStatus", + "modelAsString": true + } + }, + "DaysOfWeek": { + "type": "string", + "description": "The days of the week.", + "enum": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ], + "x-ms-enum": { + "name": "DaysOfWeek", + "modelAsString": false + } + } + }, + "parameters": { + "PoolNameParameter": { + "name": "poolName", + "in": "path", + "required": true, + "type": "string", + "description": "Name of the pool.", + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", + "minLength": 3, + "maxLength": 63 + }, + "NetworkConnectionName": { + "name": "networkConnectionName", + "in": "path", + "required": true, + "type": "string", + "description": "Name of the Network Connection that can be applied to a Pool.", + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", + "minLength": 3, + "maxLength": 63 + }, + "ScheduleNameParameter": { + "name": "scheduleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the schedule that uniquely identifies it.", + "minLength": 1, + "maxLength": 100, + "pattern": "^[-\\w]+$", + "x-ms-parameter-location": "method" + }, + "FilterParameter": { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName').", + "type": "string", + "required": false, + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/devcenter/resource-manager/readme.md b/specification/devcenter/resource-manager/readme.md index 1fbe598d35ab..aa2a8be4cd7f 100644 --- a/specification/devcenter/resource-manager/readme.md +++ b/specification/devcenter/resource-manager/readme.md @@ -27,10 +27,25 @@ These are the global settings for devcenter. ``` yaml openapi-type: arm openapi-subtype: rpaas -tag: package-preview-2025-04-01-preview +tag: package-preview-2025-07-01-preview ``` +### Tag: package-preview-2025-07-01-preview + +These settings apply only when `--tag=package-preview-2025-07-01-preview` is specified on the command line. + +```yaml $(tag) == 'package-preview-2025-07-01-preview' +input-file: + - Microsoft.DevCenter/preview/2025-07-01-preview/commonDefinitions.json + - Microsoft.DevCenter/preview/2025-07-01-preview/devcenter.json + - Microsoft.DevCenter/preview/2025-07-01-preview/vdi.json +suppressions: + - code: PatchBodyParametersSchema + from: vdi.json + reason: Patch Body comes from common-types v5 Sku object. Keeping here for consistency with existing parts of API to avoid breaking customers. +``` + ### Tag: package-preview-2025-04-01-preview These settings apply only when `--tag=package-preview-2025-04-01-preview` is specified on the command line. From 12968c435c33462dea384244a42d7bc05bb812c7 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Tue, 8 Jul 2025 04:38:12 +0000 Subject: [PATCH 038/111] Test timeouts --- eng/pipelines/swagger-api-doc-preview.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index f571618cd3ec..1863e1b22dea 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -76,6 +76,8 @@ jobs: # Retry on failure to handle transient issues or builds that run longer # than the token used by az CLI is valid retryCountOnTaskFailure: 3 + # Test timeout + timeoutInMinutes: 3 inputs: azureSubscription: msdocs-apidrop-connection scriptType: bash From 0e8dd88882e9265b3930265331f50afffa227bd1 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Tue, 8 Jul 2025 04:54:20 +0000 Subject: [PATCH 039/111] Test timeout in script --- eng/pipelines/swagger-api-doc-preview.yml | 2 -- eng/scripts/api-doc-preview-wait.mjs | 8 ++++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 1863e1b22dea..f571618cd3ec 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -76,8 +76,6 @@ jobs: # Retry on failure to handle transient issues or builds that run longer # than the token used by az CLI is valid retryCountOnTaskFailure: 3 - # Test timeout - timeoutInMinutes: 3 inputs: azureSubscription: msdocs-apidrop-connection scriptType: bash diff --git a/eng/scripts/api-doc-preview-wait.mjs b/eng/scripts/api-doc-preview-wait.mjs index a54ab7d5bdda..b4078570a7c8 100755 --- a/eng/scripts/api-doc-preview-wait.mjs +++ b/eng/scripts/api-doc-preview-wait.mjs @@ -47,6 +47,8 @@ export async function main() { "--project", "Content CI", ]; + // Test timeout in 3 minutes + const start = (new Date()).getTime(); while (true) { try { // TODO: Query? @@ -67,6 +69,10 @@ export async function main() { break; } + if (Date.now() - start < 1_000 * 60 * 3) { + throw new Error("Test timeout"); + } + // Sleep 10 seconds to avoid calling the API too frequently await new Promise(resolve => setTimeout(resolve, 10_000)); @@ -78,6 +84,8 @@ export async function main() { if (error.stderr) { console.error(`Command error output:\n${error.stderr}`); } + + throw error; } } console.log(`Build ${buildId} completed.`); From 8f13d13359d88c686028e014c28c2f98a5cbd8d3 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Tue, 8 Jul 2025 04:59:04 +0000 Subject: [PATCH 040/111] > --- eng/scripts/api-doc-preview-wait.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/scripts/api-doc-preview-wait.mjs b/eng/scripts/api-doc-preview-wait.mjs index b4078570a7c8..85cb4bcbaec8 100755 --- a/eng/scripts/api-doc-preview-wait.mjs +++ b/eng/scripts/api-doc-preview-wait.mjs @@ -69,7 +69,7 @@ export async function main() { break; } - if (Date.now() - start < 1_000 * 60 * 3) { + if (Date.now() - start > 1_000 * 60 * 3) { throw new Error("Test timeout"); } From 8bf334eaed7569cb52de169d0093cb5964e22872 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Tue, 8 Jul 2025 05:09:05 +0000 Subject: [PATCH 041/111] Remove test exception --- eng/scripts/api-doc-preview-wait.mjs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/eng/scripts/api-doc-preview-wait.mjs b/eng/scripts/api-doc-preview-wait.mjs index 85cb4bcbaec8..78e58467f71e 100755 --- a/eng/scripts/api-doc-preview-wait.mjs +++ b/eng/scripts/api-doc-preview-wait.mjs @@ -47,8 +47,6 @@ export async function main() { "--project", "Content CI", ]; - // Test timeout in 3 minutes - const start = (new Date()).getTime(); while (true) { try { // TODO: Query? @@ -69,10 +67,6 @@ export async function main() { break; } - if (Date.now() - start > 1_000 * 60 * 3) { - throw new Error("Test timeout"); - } - // Sleep 10 seconds to avoid calling the API too frequently await new Promise(resolve => setTimeout(resolve, 10_000)); From 974c8c1f6cb28d9ea31101d812332ce002af1f7a Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Tue, 8 Jul 2025 20:38:18 +0000 Subject: [PATCH 042/111] Show token scope --- eng/pipelines/swagger-api-doc-preview.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index f571618cd3ec..6451fca5350a 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -19,6 +19,11 @@ jobs: value: preview/$(Build.Repository.Name)/pr/$(System.PullRequest.PullRequestNumber)/build/$(Build.BuildId)/attempt/$(System.JobAttempt) steps: + - pwsh: gh auth status --show-token + displayName: Show token scope + env: + GH_TOKEN: $(azuresdk-github-pat) + # TODO: Use sparse checkout instead - checkout: self # Fetch depth required to get list of changed files From 47da5815631f6a81823aa40212cd3759a628285b Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 9 Jul 2025 18:49:16 +0000 Subject: [PATCH 043/111] Set status on PR --- eng/pipelines/swagger-api-doc-preview.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 6451fca5350a..2802bd0cbacf 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -15,12 +15,21 @@ jobs: variables: - template: /eng/pipelines/templates/variables/globals.yml - template: /eng/pipelines/templates/variables/image.yml + - name: BranchName value: preview/$(Build.Repository.Name)/pr/$(System.PullRequest.PullRequestNumber)/build/$(Build.BuildId)/attempt/$(System.JobAttempt) + + - name: CurrentBuildUrl + value: $(System.CollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId) steps: - - pwsh: gh auth status --show-token - displayName: Show token scope + - bash: | + gh api repos/Azure/$(Build.Repository.Name)/statuses/$(Build.SourceVersion) \ + -f state='pending' \ + -f target_url='$(CurrentBuildUrl)' \ + -f description='Starting build' \ + -f context='Swagger ApiDocPreview' + displayName: 'Set PR status to pending' env: GH_TOKEN: $(azuresdk-github-pat) From 5d84748afd42c269ea7e329f1b4f4b5af684d89c Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 9 Jul 2025 18:55:09 +0000 Subject: [PATCH 044/111] git rev-parse HEAD --- eng/pipelines/swagger-api-doc-preview.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 2802bd0cbacf..706de610ef17 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -23,16 +23,6 @@ jobs: value: $(System.CollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId) steps: - - bash: | - gh api repos/Azure/$(Build.Repository.Name)/statuses/$(Build.SourceVersion) \ - -f state='pending' \ - -f target_url='$(CurrentBuildUrl)' \ - -f description='Starting build' \ - -f context='Swagger ApiDocPreview' - displayName: 'Set PR status to pending' - env: - GH_TOKEN: $(azuresdk-github-pat) - # TODO: Use sparse checkout instead - checkout: self # Fetch depth required to get list of changed files @@ -50,6 +40,16 @@ jobs: Commitish: refs/heads/doc-preview-migration-test WorkingDirectory: AzureRestPreview + - bash: | + gh api repos/Azure/$(Build.Repository.Name)/statuses/$(git rev-parse HEAD) \ + -f state='pending' \ + -f target_url='$(CurrentBuildUrl)' \ + -f description='Starting build' \ + -f context='Swagger ApiDocPreview' + displayName: 'Set PR status to pending' + env: + GH_TOKEN: $(azuresdk-github-pat) + - template: /eng/pipelines/templates/steps/npm-install.yml # TODO: Use variables for triggering repository instead of hardcoding From f1b510cfb3b677ebbb648aeaf5626a5dc72e481a Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 9 Jul 2025 19:01:54 +0000 Subject: [PATCH 045/111] SourceCommitId --- eng/pipelines/swagger-api-doc-preview.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 706de610ef17..acfc05aa5b20 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -23,6 +23,17 @@ jobs: value: $(System.CollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId) steps: + - bash: | + echo "PR: $(System.PullRequest.SourceCommitId)" + gh api repos/Azure/$(Build.Repository.Name)/statuses/$(System.PullRequest.SourceCommitId) \ + -f state='pending' \ + -f target_url='$(CurrentBuildUrl)' \ + -f description='Starting build' \ + -f context='Swagger ApiDocPreview' + displayName: 'Set PR status to pending' + env: + GH_TOKEN: $(azuresdk-github-pat) + # TODO: Use sparse checkout instead - checkout: self # Fetch depth required to get list of changed files @@ -40,16 +51,6 @@ jobs: Commitish: refs/heads/doc-preview-migration-test WorkingDirectory: AzureRestPreview - - bash: | - gh api repos/Azure/$(Build.Repository.Name)/statuses/$(git rev-parse HEAD) \ - -f state='pending' \ - -f target_url='$(CurrentBuildUrl)' \ - -f description='Starting build' \ - -f context='Swagger ApiDocPreview' - displayName: 'Set PR status to pending' - env: - GH_TOKEN: $(azuresdk-github-pat) - - template: /eng/pipelines/templates/steps/npm-install.yml # TODO: Use variables for triggering repository instead of hardcoding From 74d76c8ed4aaebfdd951d863fb6d75a721b9a44f Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 9 Jul 2025 19:04:29 +0000 Subject: [PATCH 046/111] -Azure/ --- eng/pipelines/swagger-api-doc-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index acfc05aa5b20..a5f654479f97 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -25,7 +25,7 @@ jobs: steps: - bash: | echo "PR: $(System.PullRequest.SourceCommitId)" - gh api repos/Azure/$(Build.Repository.Name)/statuses/$(System.PullRequest.SourceCommitId) \ + gh api repos/$(Build.Repository.Name)/statuses/$(System.PullRequest.SourceCommitId) \ -f state='pending' \ -f target_url='$(CurrentBuildUrl)' \ -f description='Starting build' \ From 485e748f427af824129cfa43e97be534a4b985c6 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 9 Jul 2025 20:59:58 +0000 Subject: [PATCH 047/111] Set check state in DevOps pipeline --- eng/pipelines/swagger-api-doc-preview.yml | 48 +++++++++++++++++------ 1 file changed, 35 insertions(+), 13 deletions(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index a5f654479f97..c33c782987f3 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -22,17 +22,16 @@ jobs: - name: CurrentBuildUrl value: $(System.CollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId) + - name: StatusName + value: '[TEST-IGNORE] Swagger ApiDocPreview' + steps: - - bash: | - echo "PR: $(System.PullRequest.SourceCommitId)" - gh api repos/$(Build.Repository.Name)/statuses/$(System.PullRequest.SourceCommitId) \ - -f state='pending' \ - -f target_url='$(CurrentBuildUrl)' \ - -f description='Starting build' \ - -f context='Swagger ApiDocPreview' - displayName: 'Set PR status to pending' - env: - GH_TOKEN: $(azuresdk-github-pat) + - template: /eng/pipelines/templates/steps/set-pr-check.yml + parameters: + State: pending + TargetUrl: $(CurrentBuildUrl) + Description: 'Starting docs build' + Context: $(StatusName) # TODO: Use sparse checkout instead - checkout: self @@ -95,7 +94,30 @@ jobs: azureSubscription: msdocs-apidrop-connection scriptType: bash scriptLocation: inlineScript - inlineScript: eng/scripts/api-doc-preview-wait.mjs + inlineScript: eng/scripts/api-doc-preview-wait.js + + - script: eng/scripts/api-doc-preview-interpret.js + displayName: Interpret build results and update PR status - - script: eng/scripts/api-doc-preview-interpret.mjs - displayName: Output results + # Sets check status from docs build using $(CheckUrl), $(CheckState), and + # $(CheckDescription) variables set by api-doc-preview-interpret.js. + - template: /eng/pipelines/templates/steps/set-pr-check.yml + parameters: + State: $(CheckState) + TargetUrl: $(CheckUrl) + Description: $(CheckDescription) + Context: $(StatusName) + + # In the event of a failure in this job, set the PR status to failed and + # link to the current build. + - bash: | + echo "PR: $(System.PullRequest.SourceCommitId)" + gh api repos/$(Build.Repository.Name)/statuses/$(System.PullRequest.SourceCommitId) \ + -f state='failure' \ + -f target_url='$(CurrentBuildUrl)' \ + -f description='Orchestration build failed' \ + -f context='$(StatusName)' + displayName: 'Set PR status to failed' + condition: failed() + env: + GH_TOKEN: $(azuresdk-github-pat) From 64636e7522dd55da564c49d7ece00bd18eae035d Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 9 Jul 2025 21:01:04 +0000 Subject: [PATCH 048/111] set-pr-check.yml --- .../templates/steps/set-pr-check.yml | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 eng/pipelines/templates/steps/set-pr-check.yml diff --git a/eng/pipelines/templates/steps/set-pr-check.yml b/eng/pipelines/templates/steps/set-pr-check.yml new file mode 100644 index 000000000000..4f0e515d9767 --- /dev/null +++ b/eng/pipelines/templates/steps/set-pr-check.yml @@ -0,0 +1,52 @@ +parameters: + - name: Sha + type: string + default: $(System.PullRequest.SourceCommitId) + + - name: RepositoryName + type: string + default: $(Build.Repository.Name) + description: The name of the repository where the PR is located (generally of the form 'owner/repo') + + - name: State + type: string + default: 'pending' + values: + - error + - failure + - pending + - success + + - name: TargetUrl + type: string + default: '' + + - name: Description + type: string + default: '' + + - name: Context + type: string + default: default context + + - name: GitHubToken + type: string + default: $(azuresdk-github-pat) + +steps: + - bash: | + echo "Repository Name: ${{ parameters.RepositoryName }}" + echo "Commit ID: ${{ parameters.Sha }}" + echo "State: ${{ parameters.State }}" + echo "Target URL: ${{ parameters.TargetUrl }}" + echo "Description: ${{ parameters.Description }}" + echo "Context: ${{ parameters.Context }}" + + gh api repos/${{ parameters.RepositoryName }}/statuses/${{ parameters.Sha }} \ + -f state='${{ parameters.State }}' \ + -f target_url='${{ parameters.TargetUrl }}' \ + -f description='${{ parameters.Description }}' \ + -f context='${{ parameters.Context }}' + displayName: 'Set PR status to ${{ parameters.State }} for ${{ parameters.Sha }}' + env: + GH_TOKEN: ${{ parameters.GitHubToken }} From e4ef6737bb201d49130cc7387765a10b499b97b3 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 9 Jul 2025 21:02:22 +0000 Subject: [PATCH 049/111] -description --- eng/pipelines/templates/steps/set-pr-check.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/eng/pipelines/templates/steps/set-pr-check.yml b/eng/pipelines/templates/steps/set-pr-check.yml index 4f0e515d9767..91190538633a 100644 --- a/eng/pipelines/templates/steps/set-pr-check.yml +++ b/eng/pipelines/templates/steps/set-pr-check.yml @@ -6,7 +6,6 @@ parameters: - name: RepositoryName type: string default: $(Build.Repository.Name) - description: The name of the repository where the PR is located (generally of the form 'owner/repo') - name: State type: string From 050bccfd19093ba7a41e6cef74c748c4c4e66555 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 9 Jul 2025 21:04:04 +0000 Subject: [PATCH 050/111] Can't enforce values for macro (defined at runtime) syntax at template expansion time --- eng/pipelines/templates/steps/set-pr-check.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/eng/pipelines/templates/steps/set-pr-check.yml b/eng/pipelines/templates/steps/set-pr-check.yml index 91190538633a..0ddcb031b839 100644 --- a/eng/pipelines/templates/steps/set-pr-check.yml +++ b/eng/pipelines/templates/steps/set-pr-check.yml @@ -10,11 +10,11 @@ parameters: - name: State type: string default: 'pending' - values: - - error - - failure - - pending - - success + # Valid values: + # - error + # - failure + # - pending + # - success - name: TargetUrl type: string From 11a717fb8f5a18ba7a7cbe0a2545ce4ba9790f00 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 9 Jul 2025 21:12:08 +0000 Subject: [PATCH 051/111] .mjs -> .js --- .gitignore | 1 + eng/scripts/api-doc-preview-interpret.js | 82 +++++++++++++++++ eng/scripts/api-doc-preview-interpret.mjs | 91 ------------------- ...eview-wait.mjs => api-doc-preview-wait.js} | 9 +- 4 files changed, 88 insertions(+), 95 deletions(-) create mode 100755 eng/scripts/api-doc-preview-interpret.js delete mode 100755 eng/scripts/api-doc-preview-interpret.mjs rename eng/scripts/{api-doc-preview-wait.mjs => api-doc-preview-wait.js} (94%) diff --git a/.gitignore b/.gitignore index 96c6b5add9fb..38d54af0e646 100644 --- a/.gitignore +++ b/.gitignore @@ -121,6 +121,7 @@ warnings.txt *.js !.github/**/*.js !eng/tools/**/*.js +!eng/scripts/**/*.js *.d.ts *.js.map *.d.ts.map diff --git a/eng/scripts/api-doc-preview-interpret.js b/eng/scripts/api-doc-preview-interpret.js new file mode 100755 index 000000000000..a776c129fb5b --- /dev/null +++ b/eng/scripts/api-doc-preview-interpret.js @@ -0,0 +1,82 @@ +#!/usr/bin/env node +// @ts-check +import { resolve, dirname } from "path"; +import { fileURLToPath } from "url"; +import { parseArgs } from "util"; +import { readFile } from "fs/promises"; + + +const __dirname = dirname(fileURLToPath(import.meta.url)); + +function usage() { + console.log(`Usage: +npx api-doc-preview-interpret --input --build-start + +parameters: + --report Path to the build start JSON file. Defaults to "report.json" at repo root. + --build-start Path to the build start JSON file. Defaults to "buildstart.json" at repo root. +`); +} + +export async function main() { + const { + values: { + "report": resultArtifactPath, + "build-start": buildStartPath, + }, + } = parseArgs({ + options: { + "report": { + type: "string", + default: resolve(__dirname, "../../report.json"), + }, + "build-start": { + type: "string", + default: resolve(__dirname, "../../buildstart.json"), + }, + }, + allowPositionals: false, + }); + + let resultArtifactData, resultArtifactRaw; + try { + // TODO: CLEANUP + resultArtifactRaw = await readFile(resultArtifactPath, { encoding: "utf8" }); + // Use .trim() to remove BOM which can be present in the JSON file + resultArtifactData = JSON.parse(resultArtifactRaw.trim()); + + } catch (error) { + console.error(`Failed to read input file "${resultArtifactPath}": ${error.message}`); + usage(); + process.exitCode = 1; + return; + } + + // Read build ID from build start file to provide a link to build details + const buildStartRaw = await readFile(buildStartPath, { encoding: "utf8" }); + const buildStartData = JSON.parse(buildStartRaw.trim()); + const buildId = buildStartData.id; + const buildLink = `https://dev.azure.com/apidrop/Content%20CI/_build/results?buildId=${buildId}`; + console.log(`Build Details: ${buildLink}`); + + if (resultArtifactData.status != "Succeeded") { + console.log(`Build failed: ${resultArtifactData.status}`); + + console.log(`##[task.setvariable variable=CheckUrl]${buildLink}`); + console.log("##[task.setvariable variable=CheckDescription]Docs build failed"); + console.log(`##[task.setvariable variable=CheckState]failure`); + console.log(`Raw output:\n${resultArtifactRaw}`); + console.log(`Build details: ${buildLink}`); + return; + } + + console.log(`Build completed successfully.`); + + const docsPreviewUrl = `https://review.learn.microsoft.com/en-us/rest/api/azure-rest-preview/?branch=${encodeURIComponent(resultArtifactData.branch)}&view=azure-rest-preview` + console.log(`##[task.setvariable variable=CheckUrl]${docsPreviewUrl}`); + console.log("##[task.setvariable variable=CheckDescription]Docs build succeeded"); + console.log(`##[task.setvariable variable=CheckState]success`); + console.log(`Docs preview URL: ${docsPreviewUrl}`); +} + +await main(); diff --git a/eng/scripts/api-doc-preview-interpret.mjs b/eng/scripts/api-doc-preview-interpret.mjs deleted file mode 100755 index 9853050fc3bc..000000000000 --- a/eng/scripts/api-doc-preview-interpret.mjs +++ /dev/null @@ -1,91 +0,0 @@ -#!/usr/bin/env node -import { resolve, dirname } from "path"; -import { fileURLToPath } from "url"; -import { parseArgs } from "util"; -import { readFile } from "fs/promises"; - - -const __dirname = dirname(fileURLToPath(import.meta.url)); - -function usage() { - console.log(`Usage: -npx api-doc-preview-interpret --input --build-start - -parameters: - --report Path to the build start JSON file. Defaults to "report.json" at repo root. - --build-start Path to the build start JSON file. Defaults to "buildstart.json" at repo root. -`); -} - -export async function main() { - const { - values: { - "report": resultArtifactPath, - "build-start": buildStartPath, - }, - } = parseArgs({ - options: { - "report": { - type: "string", - default: resolve(__dirname, "../../report.json"), - }, - "build-start": { - type: "string", - default: resolve(__dirname, "../../buildstart.json"), - }, - }, - allowPositionals: false, - }); - - let resultArtifactData, resultArtifactRaw; - try { - // TODO: CLEANUP - resultArtifactRaw = await readFile(resultArtifactPath, { encoding: "utf8" }); - // Strip BOM if present - if (resultArtifactRaw.charCodeAt(0) === 0xFEFF) { - resultArtifactRaw = resultArtifactRaw.slice(1); - } - if (!resultArtifactRaw.trim()) { - throw new Error(`File "${resultArtifactPath}" is empty or contains only whitespace.`); - } - try { - resultArtifactData = JSON.parse(resultArtifactRaw); - } catch (parseError) { - console.error(`Failed to parse JSON in file "${resultArtifactPath}": ${parseError.message}`); - console.error("Raw file content:"); - console.error(resultArtifactRaw); - console.error("Stack trace:"); - console.error(parseError.stack); - usage(); - process.exitCode = 1; - return; - } - } catch (error) { - console.error(`Failed to read input file "${resultArtifactPath}": ${error.message}`); - usage(); - process.exitCode = 1; - return; - } - - if (resultArtifactData.status != "Succeeded") { - console.error(`Build failed: ${resultArtifactData.status}`); - console.log(`Raw output:\n${resultArtifactRaw}`); - - // Read build ID from build start file to provide a link to build details - const buildStartData = JSON.parse(await readFile(buildStartPath, { encoding: "utf8" })); - const buildId = buildStartData.id; - const buildLink = `https://dev.azure.com/apidrop/Content%20CI/_build/results?buildId=${buildId}`; - console.error(`See build details at: ${buildLink}`); - console.log(`##[task.logissue type=error]Error in docs build. See build details at: ${buildLink}`); - - process.exitCode = 1; - return; - } - - console.log(`Build completed successfully.`); - const docsPreviewUrl = `https://review.learn.microsoft.com/en-us/rest/api/azure-rest-preview/?branch=${encodeURIComponent(resultArtifactData.branch)}&view=azure-rest-preview` - // Log a warning to generate some output in the PR check - console.log(`##[task.logissue type=warning]Docs build completed successfully. See preview docs at: ${docsPreviewUrl}`) -} - -await main(); diff --git a/eng/scripts/api-doc-preview-wait.mjs b/eng/scripts/api-doc-preview-wait.js similarity index 94% rename from eng/scripts/api-doc-preview-wait.mjs rename to eng/scripts/api-doc-preview-wait.js index 78e58467f71e..9ab5ec0182c3 100755 --- a/eng/scripts/api-doc-preview-wait.mjs +++ b/eng/scripts/api-doc-preview-wait.js @@ -1,9 +1,10 @@ -#!/usr/bin/env node +#!/usr/bin/env node +// @ts-check import { resolve, dirname } from "path"; import { fileURLToPath } from "url"; import { parseArgs } from "util"; -import { execFile } from "../../.github/shared/src/exec.js"; -import { readFile } from "fs/promises"; +import { execFile } from "../../.github/shared/src/exec"; +import { /* @type {string} */ readFile } from "fs/promises"; const __dirname = dirname(fileURLToPath(import.meta.url)); @@ -32,7 +33,7 @@ export async function main() { }); let buildStartData, buildId; - try { + try { buildStartData = JSON.parse(await readFile(buildStartPath, { encoding: "utf8" })); buildId = buildStartData.id; } catch (error) { From 2948b84fa18d8340bad63629fc5eeb123df2a037 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 9 Jul 2025 21:20:16 +0000 Subject: [PATCH 052/111] .js, other documentation --- eng/pipelines/templates/steps/set-pr-check.yml | 4 ++++ eng/scripts/api-doc-preview-wait.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/eng/pipelines/templates/steps/set-pr-check.yml b/eng/pipelines/templates/steps/set-pr-check.yml index 0ddcb031b839..adf89bd6b08a 100644 --- a/eng/pipelines/templates/steps/set-pr-check.yml +++ b/eng/pipelines/templates/steps/set-pr-check.yml @@ -1,3 +1,7 @@ +# Create a "status" check for a SHA (inferred from PR by default) in a GitHub +# repository. By default this uses the azure-sdk account. This might not work +# for required checks where a source must be configured. + parameters: - name: Sha type: string diff --git a/eng/scripts/api-doc-preview-wait.js b/eng/scripts/api-doc-preview-wait.js index 9ab5ec0182c3..a2a97e885f26 100755 --- a/eng/scripts/api-doc-preview-wait.js +++ b/eng/scripts/api-doc-preview-wait.js @@ -3,7 +3,7 @@ import { resolve, dirname } from "path"; import { fileURLToPath } from "url"; import { parseArgs } from "util"; -import { execFile } from "../../.github/shared/src/exec"; +import { execFile } from "../../.github/shared/src/exec.js"; import { /* @type {string} */ readFile } from "fs/promises"; const __dirname = dirname(fileURLToPath(import.meta.url)); From 0bfe5e5fd6918675484a906d70b6a623c8032443 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 9 Jul 2025 21:31:29 +0000 Subject: [PATCH 053/111] vso --- eng/scripts/api-doc-preview-interpret.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/eng/scripts/api-doc-preview-interpret.js b/eng/scripts/api-doc-preview-interpret.js index a776c129fb5b..545cf6823fdb 100755 --- a/eng/scripts/api-doc-preview-interpret.js +++ b/eng/scripts/api-doc-preview-interpret.js @@ -62,9 +62,9 @@ export async function main() { if (resultArtifactData.status != "Succeeded") { console.log(`Build failed: ${resultArtifactData.status}`); - console.log(`##[task.setvariable variable=CheckUrl]${buildLink}`); - console.log("##[task.setvariable variable=CheckDescription]Docs build failed"); - console.log(`##[task.setvariable variable=CheckState]failure`); + console.log(`##vso[task.setvariable variable=CheckUrl]${buildLink}`); + console.log("##vso[task.setvariable variable=CheckDescription]Docs build failed"); + console.log(`##vso[task.setvariable variable=CheckState]failure`); console.log(`Raw output:\n${resultArtifactRaw}`); console.log(`Build details: ${buildLink}`); return; @@ -73,9 +73,9 @@ export async function main() { console.log(`Build completed successfully.`); const docsPreviewUrl = `https://review.learn.microsoft.com/en-us/rest/api/azure-rest-preview/?branch=${encodeURIComponent(resultArtifactData.branch)}&view=azure-rest-preview` - console.log(`##[task.setvariable variable=CheckUrl]${docsPreviewUrl}`); - console.log("##[task.setvariable variable=CheckDescription]Docs build succeeded"); - console.log(`##[task.setvariable variable=CheckState]success`); + console.log(`##vso[task.setvariable variable=CheckUrl]${docsPreviewUrl}`); + console.log("##vso[task.setvariable variable=CheckDescription]Docs build succeeded"); + console.log(`##vso[task.setvariable variable=CheckState]success`); console.log(`Docs preview URL: ${docsPreviewUrl}`); } From 9a7f7dab6f167ca57b02318675b098edb802681c Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 9 Jul 2025 21:31:52 +0000 Subject: [PATCH 054/111] displayName --- eng/pipelines/templates/steps/set-pr-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/templates/steps/set-pr-check.yml b/eng/pipelines/templates/steps/set-pr-check.yml index adf89bd6b08a..c0d918838dd3 100644 --- a/eng/pipelines/templates/steps/set-pr-check.yml +++ b/eng/pipelines/templates/steps/set-pr-check.yml @@ -50,6 +50,6 @@ steps: -f target_url='${{ parameters.TargetUrl }}' \ -f description='${{ parameters.Description }}' \ -f context='${{ parameters.Context }}' - displayName: 'Set PR status to ${{ parameters.State }} for ${{ parameters.Sha }}' + displayName: 'Set PR status' env: GH_TOKEN: ${{ parameters.GitHubToken }} From ae4adbad35fbfea89375e7bbf8621aa186b50114 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 9 Jul 2025 22:25:18 +0000 Subject: [PATCH 055/111] Add package.json to eng/scripts, wire up to github-test.yaml (might need a rename) --- .github/workflows/github-test.yaml | 6 +- eng/pipelines/swagger-api-doc-preview.yml | 30 +++----- .../templates/steps/set-pr-check.yml | 5 ++ .../scripts/Tests}/doc-preview.test.js | 2 +- eng/scripts/api-doc-preview-interpret.js | 27 ++++---- eng/scripts/api-doc-preview-wait.js | 69 ++++++++++--------- .../cmd => eng/scripts}/api-doc-preview.js | 13 ++-- .../shared/src => eng/scripts}/doc-preview.js | 1 + eng/scripts/eslint.config.js | 8 +++ eng/scripts/package.json | 17 +++++ 10 files changed, 108 insertions(+), 70 deletions(-) rename {.github/shared/test => eng/scripts/Tests}/doc-preview.test.js (99%) rename {.github/shared/cmd => eng/scripts}/api-doc-preview.js (93%) rename {.github/shared/src => eng/scripts}/doc-preview.js (99%) create mode 100644 eng/scripts/eslint.config.js create mode 100644 eng/scripts/package.json diff --git a/.github/workflows/github-test.yaml b/.github/workflows/github-test.yaml index 846608423fc2..073843c68b57 100644 --- a/.github/workflows/github-test.yaml +++ b/.github/workflows/github-test.yaml @@ -1,4 +1,4 @@ -name: GitHub Actions - Test +name: Specs EngSys - Test on: push: @@ -6,9 +6,11 @@ on: - main paths: - .github/** + - eng/scripts/** pull_request: paths: - .github/** + - eng/scripts/** workflow_dispatch: permissions: @@ -18,7 +20,7 @@ jobs: test: strategy: matrix: - folder: [.github, .github/shared] + folder: [.github, .github/shared, eng/scripts] os: [ubuntu, windows] runs-on: ${{ fromJSON('{"ubuntu":"ubuntu-24.04", "windows":"windows-2022"}')[matrix.os] }} diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index c33c782987f3..5d38a8ebc96e 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -52,11 +52,8 @@ jobs: - template: /eng/pipelines/templates/steps/npm-install.yml - # TODO: Use variables for triggering repository instead of hardcoding - - script: | - npm exec --no -- api-doc-preview --output $(System.DefaultWorkingDirectory)/AzureRestPreview - displayName: 'Generate Swagger API documentation preview' - workingDirectory: .github/shared + - script: eng/scripts/api-doc-preview.js + displayName: Generate Swagger API documentation preview - template: /eng/common/pipelines/templates/steps/git-push-changes.yml parameters: @@ -64,7 +61,6 @@ jobs: BaseRepoOwner: MicrosoftDocs TargetRepoOwner: MicrosoftDocs TargetRepoName: AzureRestPreview - # TODO: Determine this value at runtime BaseRepoBranch: $(BranchName) CommitMsg: | Update API Doc Preview @@ -108,16 +104,12 @@ jobs: Description: $(CheckDescription) Context: $(StatusName) - # In the event of a failure in this job, set the PR status to failed and - # link to the current build. - - bash: | - echo "PR: $(System.PullRequest.SourceCommitId)" - gh api repos/$(Build.Repository.Name)/statuses/$(System.PullRequest.SourceCommitId) \ - -f state='failure' \ - -f target_url='$(CurrentBuildUrl)' \ - -f description='Orchestration build failed' \ - -f context='$(StatusName)' - displayName: 'Set PR status to failed' - condition: failed() - env: - GH_TOKEN: $(azuresdk-github-pat) + # In the event of a failure in this job (not the docs build job), set the + # PR status to failed and link to the current build. + - template: /eng/pipelines/templates/steps/set-pr-check.yml + parameters: + State: failure + TargetUrl: $(CurrentBuildUrl) + Description: 'Orchestration build failed click to see logs' + Context: $(StatusName) + Condition: failed() diff --git a/eng/pipelines/templates/steps/set-pr-check.yml b/eng/pipelines/templates/steps/set-pr-check.yml index c0d918838dd3..7761b0ea254f 100644 --- a/eng/pipelines/templates/steps/set-pr-check.yml +++ b/eng/pipelines/templates/steps/set-pr-check.yml @@ -32,6 +32,10 @@ parameters: type: string default: default context + - name: Condition + type: string + default: succeeded() + - name: GitHubToken type: string default: $(azuresdk-github-pat) @@ -51,5 +55,6 @@ steps: -f description='${{ parameters.Description }}' \ -f context='${{ parameters.Context }}' displayName: 'Set PR status' + condition: ${{ parameters.Condition }} env: GH_TOKEN: ${{ parameters.GitHubToken }} diff --git a/.github/shared/test/doc-preview.test.js b/eng/scripts/Tests/doc-preview.test.js similarity index 99% rename from .github/shared/test/doc-preview.test.js rename to eng/scripts/Tests/doc-preview.test.js index 9bace5eed012..558c6bf3439e 100644 --- a/.github/shared/test/doc-preview.test.js +++ b/eng/scripts/Tests/doc-preview.test.js @@ -5,7 +5,7 @@ import { indexMd, mappingJSONTemplate, repoJSONTemplate, -} from "../src/doc-preview.js"; +} from "../doc-preview.js"; describe("parseSwaggerFilePath", () => { test("returns null for invalid path", () => { diff --git a/eng/scripts/api-doc-preview-interpret.js b/eng/scripts/api-doc-preview-interpret.js index 545cf6823fdb..b6ce2933b3c3 100755 --- a/eng/scripts/api-doc-preview-interpret.js +++ b/eng/scripts/api-doc-preview-interpret.js @@ -5,7 +5,6 @@ import { fileURLToPath } from "url"; import { parseArgs } from "util"; import { readFile } from "fs/promises"; - const __dirname = dirname(fileURLToPath(import.meta.url)); function usage() { @@ -20,13 +19,10 @@ parameters: export async function main() { const { - values: { - "report": resultArtifactPath, - "build-start": buildStartPath, - }, + values: { report: resultArtifactPath, "build-start": buildStartPath }, } = parseArgs({ options: { - "report": { + report: { type: "string", default: resolve(__dirname, "../../report.json"), }, @@ -41,12 +37,15 @@ export async function main() { let resultArtifactData, resultArtifactRaw; try { // TODO: CLEANUP - resultArtifactRaw = await readFile(resultArtifactPath, { encoding: "utf8" }); + resultArtifactRaw = await readFile(resultArtifactPath, { + encoding: "utf8", + }); // Use .trim() to remove BOM which can be present in the JSON file resultArtifactData = JSON.parse(resultArtifactRaw.trim()); - } catch (error) { - console.error(`Failed to read input file "${resultArtifactPath}": ${error.message}`); + console.error( + `Failed to read input file "${resultArtifactPath}": ${error.message}`, + ); usage(); process.exitCode = 1; return; @@ -63,7 +62,9 @@ export async function main() { console.log(`Build failed: ${resultArtifactData.status}`); console.log(`##vso[task.setvariable variable=CheckUrl]${buildLink}`); - console.log("##vso[task.setvariable variable=CheckDescription]Docs build failed"); + console.log( + "##vso[task.setvariable variable=CheckDescription]Docs build failed (click to see pipeline)", + ); console.log(`##vso[task.setvariable variable=CheckState]failure`); console.log(`Raw output:\n${resultArtifactRaw}`); console.log(`Build details: ${buildLink}`); @@ -72,9 +73,11 @@ export async function main() { console.log(`Build completed successfully.`); - const docsPreviewUrl = `https://review.learn.microsoft.com/en-us/rest/api/azure-rest-preview/?branch=${encodeURIComponent(resultArtifactData.branch)}&view=azure-rest-preview` + const docsPreviewUrl = `https://review.learn.microsoft.com/en-us/rest/api/azure-rest-preview/?branch=${encodeURIComponent(resultArtifactData.branch)}&view=azure-rest-preview`; console.log(`##vso[task.setvariable variable=CheckUrl]${docsPreviewUrl}`); - console.log("##vso[task.setvariable variable=CheckDescription]Docs build succeeded"); + console.log( + "##vso[task.setvariable variable=CheckDescription]Docs build succeeded (click to see preview)", + ); console.log(`##vso[task.setvariable variable=CheckState]success`); console.log(`Docs preview URL: ${docsPreviewUrl}`); } diff --git a/eng/scripts/api-doc-preview-wait.js b/eng/scripts/api-doc-preview-wait.js index a2a97e885f26..f7eac780bc73 100755 --- a/eng/scripts/api-doc-preview-wait.js +++ b/eng/scripts/api-doc-preview-wait.js @@ -19,12 +19,10 @@ parameters: export async function main() { const { - values: { - "input": buildStartPath, - }, + values: { input: buildStartPath }, } = parseArgs({ options: { - "input": { + input: { type: "string", default: resolve(__dirname, "../../buildstart.json"), }, @@ -34,43 +32,47 @@ export async function main() { let buildStartData, buildId; try { - buildStartData = JSON.parse(await readFile(buildStartPath, { encoding: "utf8" })); + buildStartData = JSON.parse( + await readFile(buildStartPath, { encoding: "utf8" }), + ); buildId = buildStartData.id; - } catch (error) { - console.error(`Failed to read or parse input file "${buildStartPath}": ${error.message}`); + } catch (error) { + console.error( + `Failed to read or parse input file "${buildStartPath}": ${error.message}`, + ); usage(); process.exitCode = 1; return; } - const devOpsIdentifiers = [ - "--organization", "https://dev.azure.com/apidrop/", - "--project", "Content CI", + const devOpsIdentifiers = [ + "--organization", + "https://dev.azure.com/apidrop/", + "--project", + "Content CI", ]; while (true) { try { - // TODO: Query? - const { stdout, } = await execFile( - "az", - [ - "pipelines", "runs", "show", - ...devOpsIdentifiers, - "--id", buildId, - ], - ); + const { stdout } = await execFile("az", [ + "pipelines", + "runs", + "show", + ...devOpsIdentifiers, + "--id", + buildId, + ]); const run = JSON.parse(stdout); const status = run.status; console.log(`Build ${buildId} status: ${status}`); - if (status === "completed") { + if (status === "completed") { break; } // Sleep 10 seconds to avoid calling the API too frequently - await new Promise(resolve => setTimeout(resolve, 10_000)); - + await new Promise((resolve) => setTimeout(resolve, 10_000)); } catch (error) { console.error(`Failed to check build status: ${error.message}`); if (error.stdout) { @@ -87,16 +89,19 @@ export async function main() { console.log("Downloading artifact..."); try { - await execFile( - "az", - [ - "pipelines", "runs", "artifact", "download", - ...devOpsIdentifiers, - "--run-id", buildId, - "--artifact-name", "report", - "--path", resolve(__dirname, "../../"), - ], - ); + await execFile("az", [ + "pipelines", + "runs", + "artifact", + "download", + ...devOpsIdentifiers, + "--run-id", + buildId, + "--artifact-name", + "report", + "--path", + resolve(__dirname, "../../"), + ]); } catch (error) { console.error(`Failed to download artifact: ${error.message}`); if (error.stdout) { diff --git a/.github/shared/cmd/api-doc-preview.js b/eng/scripts/api-doc-preview.js similarity index 93% rename from .github/shared/cmd/api-doc-preview.js rename to eng/scripts/api-doc-preview.js index 1ec5af5dc902..29ecce25cf22 100755 --- a/.github/shared/cmd/api-doc-preview.js +++ b/eng/scripts/api-doc-preview.js @@ -1,18 +1,23 @@ #!/usr/bin/env node +// @ts-check import { join, resolve, dirname } from "path"; import { fileURLToPath } from "url"; import { parseArgs } from "util"; import { mkdir, writeFile } from "fs/promises"; -import { swagger, getChangedFiles, pathExists } from "../src/changed-files.js"; -import { filterAsync } from "../src/array.js"; +import { + swagger, + getChangedFiles, + pathExists, +} from "../../.github/shared/src/changed-files.js"; +import { filterAsync } from "../../.github/shared/src/array.js"; import { mappingJSONTemplate, repoJSONTemplate, indexMd, getSwaggersToProcess, -} from "../src/doc-preview.js"; +} from "./doc-preview.js"; const __dirname = dirname(fileURLToPath(import.meta.url)); @@ -54,7 +59,7 @@ export async function main() { }, "spec-repo-root": { type: "string", - default: resolve(__dirname, "../../../"), + default: resolve(__dirname, "../../"), }, }, allowPositionals: false, diff --git a/.github/shared/src/doc-preview.js b/eng/scripts/doc-preview.js similarity index 99% rename from .github/shared/src/doc-preview.js rename to eng/scripts/doc-preview.js index d01e456d814c..de636e78283e 100644 --- a/.github/shared/src/doc-preview.js +++ b/eng/scripts/doc-preview.js @@ -1,3 +1,4 @@ +// @ts-check const DOCS_NAMESPACE = "_swagger_specs"; const SPEC_FILE_REGEX = "(specification/)+(.*)/(resourcemanager|resource-manager|dataplane|data-plane|control-plane)/(.*)/(preview|stable|privatepreview)/(.*?)/(example)?(.*)"; diff --git a/eng/scripts/eslint.config.js b/eng/scripts/eslint.config.js new file mode 100644 index 000000000000..366b15cfe396 --- /dev/null +++ b/eng/scripts/eslint.config.js @@ -0,0 +1,8 @@ +import pluginJs from "@eslint/js"; +import globals from "globals"; + +/** @type {import('eslint').Linter.Config[]} */ +export default [ + { languageOptions: { globals: globals.node } }, + pluginJs.configs.recommended, +]; diff --git a/eng/scripts/package.json b/eng/scripts/package.json new file mode 100644 index 000000000000..9731caf92a9d --- /dev/null +++ b/eng/scripts/package.json @@ -0,0 +1,17 @@ +{ + "devDependencies": { + "eslint": "^9.30.1", + "prettier": "^3.6.2", + "typescript": "^5.8.3", + "vitest": "^3.2.4" + }, + "scripts": { + "lint": "eslint", + "prettier": "prettier \"**/*.js\" --check", + "prettier:debug": "prettier \"**/*.js\" --check ---log-level debug", + "prettier:write": "prettier \"**/*.js\" --write", + "test": "vitest", + "test:ci": "vitest run --coverage --reporter=verbose" + }, + "type": "module" +} From 682a510e62155d92e92a4b6d6506caed464b9b08 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 9 Jul 2025 22:26:47 +0000 Subject: [PATCH 056/111] sparse checkout eng/scripts --- .github/workflows/github-test.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/github-test.yaml b/.github/workflows/github-test.yaml index 073843c68b57..11d44c2517d5 100644 --- a/.github/workflows/github-test.yaml +++ b/.github/workflows/github-test.yaml @@ -35,6 +35,7 @@ jobs: with: sparse-checkout: | .github + eng/scripts - if: ${{ matrix.folder == '.github' }} name: Setup Node 20 and install runtime deps From 422b94eac823b3fd4904835814560cb842aeba9b Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 9 Jul 2025 22:30:02 +0000 Subject: [PATCH 057/111] eng/scripts/package-lock.json --- .gitignore | 1 + eng/scripts/package-lock.json | 3323 +++++++++++++++++++++++++++++++++ eng/scripts/package.json | 1 + 3 files changed, 3325 insertions(+) create mode 100644 eng/scripts/package-lock.json diff --git a/.gitignore b/.gitignore index 38d54af0e646..f20a805a610e 100644 --- a/.gitignore +++ b/.gitignore @@ -140,6 +140,7 @@ eng/tools/**/dist !/package-lock.json !/.github/package-lock.json !/.github/shared/package-lock.json +!/eng/scripts/package-lock.json # No Armstrong outputs should be commited except the tf files. **/terraform/**/*.json diff --git a/eng/scripts/package-lock.json b/eng/scripts/package-lock.json new file mode 100644 index 000000000000..12fd42d77409 --- /dev/null +++ b/eng/scripts/package-lock.json @@ -0,0 +1,3323 @@ +{ + "name": "scripts", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "devDependencies": { + "@vitest/coverage-v8": "^3.2.4", + "eslint": "^9.30.1", + "prettier": "^3.6.2", + "typescript": "^5.8.3", + "vitest": "^3.2.4" + } + }, + "../../.github/shared": { + "name": "@azure-tools/specs-shared", + "extraneous": true, + "dependencies": { + "@apidevtools/json-schema-ref-parser": "^13.0.4", + "debug": "^4.4.0", + "js-yaml": "^4.1.0", + "marked": "^15.0.7", + "simple-git": "^3.27.0" + }, + "bin": { + "api-doc-preview": "cmd/api-doc-preview.js", + "spec-model": "cmd/spec-model.js" + }, + "devDependencies": { + "@eslint/js": "^9.22.0", + "@tsconfig/node20": "^20.1.4", + "@types/debug": "^4.1.12", + "@types/js-yaml": "^4.0.9", + "@types/node": "^20.0.0", + "@vitest/coverage-v8": "^3.0.7", + "eslint": "^9.22.0", + "globals": "^16.0.0", + "prettier": "~3.5.3", + "semver": "^7.7.1", + "typescript": "~5.8.2", + "vitest": "^3.0.7" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", + "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.0.tgz", + "integrity": "sha512-jVZGvOxOuNSsuQuLRTh13nU0AogFlw32w/MT+LV6D3sP5WdbW61E77RnkbaO2dUvmPAYrBDJXGn5gGS6tH4j8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.0" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/types": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.0.tgz", + "integrity": "sha512-jYnje+JyZG5YThjHiF28oT4SIZLnYOcSBb6+SDaFIyzDVSkXQmQQYclJ2R+YxcdmK0AX6x1E5OQNtuh3jHDrUg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-1.0.2.tgz", + "integrity": "sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.6.tgz", + "integrity": "sha512-ShbM/3XxwuxjFiuVBHA+d3j5dyac0aEVVq1oluIDf71hUw0aRF59dV/efUsIwFnR6m8JNM2FjZOzmaZ8yG61kw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.6.tgz", + "integrity": "sha512-S8ToEOVfg++AU/bHwdksHNnyLyVM+eMVAOf6yRKFitnwnbwwPNqKr3srzFRe7nzV69RQKb5DgchIX5pt3L53xg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.6.tgz", + "integrity": "sha512-hd5zdUarsK6strW+3Wxi5qWws+rJhCCbMiC9QZyzoxfk5uHRIE8T287giQxzVpEvCwuJ9Qjg6bEjcRJcgfLqoA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.6.tgz", + "integrity": "sha512-0Z7KpHSr3VBIO9A/1wcT3NTy7EB4oNC4upJ5ye3R7taCc2GUdeynSLArnon5G8scPwaU866d3H4BCrE5xLW25A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.6.tgz", + "integrity": "sha512-FFCssz3XBavjxcFxKsGy2DYK5VSvJqa6y5HXljKzhRZ87LvEi13brPrf/wdyl/BbpbMKJNOr1Sd0jtW4Ge1pAA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.6.tgz", + "integrity": "sha512-GfXs5kry/TkGM2vKqK2oyiLFygJRqKVhawu3+DOCk7OxLy/6jYkWXhlHwOoTb0WqGnWGAS7sooxbZowy+pK9Yg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.6.tgz", + "integrity": "sha512-aoLF2c3OvDn2XDTRvn8hN6DRzVVpDlj2B/F66clWd/FHLiHaG3aVZjxQX2DYphA5y/evbdGvC6Us13tvyt4pWg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.6.tgz", + "integrity": "sha512-2SkqTjTSo2dYi/jzFbU9Plt1vk0+nNg8YC8rOXXea+iA3hfNJWebKYPs3xnOUf9+ZWhKAaxnQNUf2X9LOpeiMQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.6.tgz", + "integrity": "sha512-SZHQlzvqv4Du5PrKE2faN0qlbsaW/3QQfUUc6yO2EjFcA83xnwm91UbEEVx4ApZ9Z5oG8Bxz4qPE+HFwtVcfyw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.6.tgz", + "integrity": "sha512-b967hU0gqKd9Drsh/UuAm21Khpoh6mPBSgz8mKRq4P5mVK8bpA+hQzmm/ZwGVULSNBzKdZPQBRT3+WuVavcWsQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.6.tgz", + "integrity": "sha512-aHWdQ2AAltRkLPOsKdi3xv0mZ8fUGPdlKEjIEhxCPm5yKEThcUjHpWB1idN74lfXGnZ5SULQSgtr5Qos5B0bPw==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.6.tgz", + "integrity": "sha512-VgKCsHdXRSQ7E1+QXGdRPlQ/e08bN6WMQb27/TMfV+vPjjTImuT9PmLXupRlC90S1JeNNW5lzkAEO/McKeJ2yg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.6.tgz", + "integrity": "sha512-WViNlpivRKT9/py3kCmkHnn44GkGXVdXfdc4drNmRl15zVQ2+D2uFwdlGh6IuK5AAnGTo2qPB1Djppj+t78rzw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.6.tgz", + "integrity": "sha512-wyYKZ9NTdmAMb5730I38lBqVu6cKl4ZfYXIs31Baf8aoOtB4xSGi3THmDYt4BTFHk7/EcVixkOV2uZfwU3Q2Jw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.6.tgz", + "integrity": "sha512-KZh7bAGGcrinEj4qzilJ4hqTY3Dg2U82c8bv+e1xqNqZCrCyc+TL9AUEn5WGKDzm3CfC5RODE/qc96OcbIe33w==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.6.tgz", + "integrity": "sha512-9N1LsTwAuE9oj6lHMyyAM+ucxGiVnEqUdp4v7IaMmrwb06ZTEVCIs3oPPplVsnjPfyjmxwHxHMF8b6vzUVAUGw==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.6.tgz", + "integrity": "sha512-A6bJB41b4lKFWRKNrWoP2LHsjVzNiaurf7wyj/XtFNTsnPuxwEBWHLty+ZE0dWBKuSK1fvKgrKaNjBS7qbFKig==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.6.tgz", + "integrity": "sha512-IjA+DcwoVpjEvyxZddDqBY+uJ2Snc6duLpjmkXm/v4xuS3H+3FkLZlDm9ZsAbF9rsfP3zeA0/ArNDORZgrxR/Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.6.tgz", + "integrity": "sha512-dUXuZr5WenIDlMHdMkvDc1FAu4xdWixTCRgP7RQLBOkkGgwuuzaGSYcOpW4jFxzpzL1ejb8yF620UxAqnBrR9g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.6.tgz", + "integrity": "sha512-l8ZCvXP0tbTJ3iaqdNf3pjaOSd5ex/e6/omLIQCVBLmHTlfXW3zAxQ4fnDmPLOB1x9xrcSi/xtCWFwCZRIaEwg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.6.tgz", + "integrity": "sha512-hKrmDa0aOFOr71KQ/19JC7az1P0GWtCN1t2ahYAf4O007DHZt/dW8ym5+CUdJhQ/qkZmI1HAF8KkJbEFtCL7gw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.6.tgz", + "integrity": "sha512-+SqBcAWoB1fYKmpWoQP4pGtx+pUUC//RNYhFdbcSA16617cchuryuhOCRpPsjCblKukAckWsV+aQ3UKT/RMPcA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.6.tgz", + "integrity": "sha512-dyCGxv1/Br7MiSC42qinGL8KkG4kX0pEsdb0+TKhmJZgCUDBGmyo1/ArCjNGiOLiIAgdbWgmWgib4HoCi5t7kA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.6.tgz", + "integrity": "sha512-42QOgcZeZOvXfsCBJF5Afw73t4veOId//XD3i+/9gSkhSV6Gk3VPlWncctI+JcOyERv85FUo7RxuxGy+z8A43Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.6.tgz", + "integrity": "sha512-4AWhgXmDuYN7rJI6ORB+uU9DHLq/erBbuMoAuB4VWJTu5KtCgcKYPynF0YI1VkBNuEfjNlLrFr9KZPJzrtLkrQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.6.tgz", + "integrity": "sha512-NgJPHHbEpLQgDH2MjQu90pzW/5vvXIZ7KOnPyNBm92A6WgZ/7b6fJyUBjoumLqeOQQGqY2QjQxRo97ah4Sj0cA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.7.0.tgz", + "integrity": "sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", + "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/config-array": { + "version": "0.21.0", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.0.tgz", + "integrity": "sha512-ENIdc4iLu0d93HeYirvKmrzshzofPw6VkZRKQGe9Nv46ZnWUzcF1xV01dcvEg/1wXUR61OmmlSfyeyO7EvjLxQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^2.1.6", + "debug": "^4.3.1", + "minimatch": "^3.1.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/config-helpers": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.3.0.tgz", + "integrity": "sha512-ViuymvFmcJi04qdZeDc2whTHryouGcDlaxPqarTD0ZE10ISpxGUVZGZDx4w01upyIynL3iu6IXH2bS1NhclQMw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/core": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.14.0.tgz", + "integrity": "sha512-qIbV0/JZr7iSDjqAc60IqbLdsj9GDt16xQtWD+B78d/HAlvysGdZZ6rpJHGAc2T0FQx1X6thsSPdnoiGKdNtdg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz", + "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^10.0.1", + "globals": "^14.0.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/js": { + "version": "9.30.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.30.1.tgz", + "integrity": "sha512-zXhuECFlyep42KZUhWjfvsmXGX39W8K8LFb8AWXM9gSV9dQB+MrJGLKvW6Zw0Ggnbpw0VHTtrhFXYe3Gym18jg==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + } + }, + "node_modules/@eslint/object-schema": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", + "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.3.3.tgz", + "integrity": "sha512-1+WqvgNMhmlAambTvT3KPtCl/Ibr68VldY2XY40SL1CE0ZXiakFR/cbTspaF5HsnpDMvcYYoJHfl4980NBjGag==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.15.1", + "levn": "^0.4.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit/node_modules/@eslint/core": { + "version": "0.15.1", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.15.1.tgz", + "integrity": "sha512-bkOp+iumZCCbt1K1CmWf0R9pM5yKpDv+ZXtvSyQpudrI9kuFLp+bM2WOPXImuD/ceQuaa8f5pj93Y7zyECIGNA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", + "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.6", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", + "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/core": "^0.19.1", + "@humanwhocodes/retry": "^0.3.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", + "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", + "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.12", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.12.tgz", + "integrity": "sha512-OuLGC46TjB5BbN1dH8JULVVZY4WTdkF7tV9Ys6wLL1rubZnCMstOhNHueU5bLCrnRuDhKPDM4g6sw4Bel5Gzqg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.4.tgz", + "integrity": "sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.29", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.29.tgz", + "integrity": "sha512-uw6guiW/gcAGPDhLmd77/6lW8QLeiV5RUTsAX46Db6oLhGaVj4lhnPwb184s1bkc8kdVg/+h988dro8GRDpmYQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.44.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.44.2.tgz", + "integrity": "sha512-g0dF8P1e2QYPOj1gu7s/3LVP6kze9A7m6x0BZ9iTdXK8N5c2V7cpBKHV3/9A4Zd8xxavdhK0t4PnqjkqVmUc9Q==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.44.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.44.2.tgz", + "integrity": "sha512-Yt5MKrOosSbSaAK5Y4J+vSiID57sOvpBNBR6K7xAaQvk3MkcNVV0f9fE20T+41WYN8hDn6SGFlFrKudtx4EoxA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.44.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.44.2.tgz", + "integrity": "sha512-EsnFot9ZieM35YNA26nhbLTJBHD0jTwWpPwmRVDzjylQT6gkar+zenfb8mHxWpRrbn+WytRRjE0WKsfaxBkVUA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.44.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.44.2.tgz", + "integrity": "sha512-dv/t1t1RkCvJdWWxQ2lWOO+b7cMsVw5YFaS04oHpZRWehI1h0fV1gF4wgGCTyQHHjJDfbNpwOi6PXEafRBBezw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.44.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.44.2.tgz", + "integrity": "sha512-W4tt4BLorKND4qeHElxDoim0+BsprFTwb+vriVQnFFtT/P6v/xO5I99xvYnVzKWrK6j7Hb0yp3x7V5LUbaeOMg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.44.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.44.2.tgz", + "integrity": "sha512-tdT1PHopokkuBVyHjvYehnIe20fxibxFCEhQP/96MDSOcyjM/shlTkZZLOufV3qO6/FQOSiJTBebhVc12JyPTA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.44.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.44.2.tgz", + "integrity": "sha512-+xmiDGGaSfIIOXMzkhJ++Oa0Gwvl9oXUeIiwarsdRXSe27HUIvjbSIpPxvnNsRebsNdUo7uAiQVgBD1hVriwSQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.44.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.44.2.tgz", + "integrity": "sha512-bDHvhzOfORk3wt8yxIra8N4k/N0MnKInCW5OGZaeDYa/hMrdPaJzo7CSkjKZqX4JFUWjUGm88lI6QJLCM7lDrA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.44.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.44.2.tgz", + "integrity": "sha512-NMsDEsDiYghTbeZWEGnNi4F0hSbGnsuOG+VnNvxkKg0IGDvFh7UVpM/14mnMwxRxUf9AdAVJgHPvKXf6FpMB7A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.44.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.44.2.tgz", + "integrity": "sha512-lb5bxXnxXglVq+7imxykIp5xMq+idehfl+wOgiiix0191av84OqbjUED+PRC5OA8eFJYj5xAGcpAZ0pF2MnW+A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loongarch64-gnu": { + "version": "4.44.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.44.2.tgz", + "integrity": "sha512-Yl5Rdpf9pIc4GW1PmkUGHdMtbx0fBLE1//SxDmuf3X0dUC57+zMepow2LK0V21661cjXdTn8hO2tXDdAWAqE5g==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { + "version": "4.44.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.44.2.tgz", + "integrity": "sha512-03vUDH+w55s680YYryyr78jsO1RWU9ocRMaeV2vMniJJW/6HhoTBwyyiiTPVHNWLnhsnwcQ0oH3S9JSBEKuyqw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.44.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.44.2.tgz", + "integrity": "sha512-iYtAqBg5eEMG4dEfVlkqo05xMOk6y/JXIToRca2bAWuqjrJYJlx/I7+Z+4hSrsWU8GdJDFPL4ktV3dy4yBSrzg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.44.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.44.2.tgz", + "integrity": "sha512-e6vEbgaaqz2yEHqtkPXa28fFuBGmUJ0N2dOJK8YUfijejInt9gfCSA7YDdJ4nYlv67JfP3+PSWFX4IVw/xRIPg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.44.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.44.2.tgz", + "integrity": "sha512-evFOtkmVdY3udE+0QKrV5wBx7bKI0iHz5yEVx5WqDJkxp9YQefy4Mpx3RajIVcM6o7jxTvVd/qpC1IXUhGc1Mw==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.44.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.44.2.tgz", + "integrity": "sha512-/bXb0bEsWMyEkIsUL2Yt5nFB5naLAwyOWMEviQfQY1x3l5WsLKgvZf66TM7UTfED6erckUVUJQ/jJ1FSpm3pRQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.44.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.44.2.tgz", + "integrity": "sha512-3D3OB1vSSBXmkGEZR27uiMRNiwN08/RVAcBKwhUYPaiZ8bcvdeEwWPvbnXvvXHY+A/7xluzcN+kaiOFNiOZwWg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.44.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.44.2.tgz", + "integrity": "sha512-VfU0fsMK+rwdK8mwODqYeM2hDrF2WiHaSmCBrS7gColkQft95/8tphyzv2EupVxn3iE0FI78wzffoULH1G+dkw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.44.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.44.2.tgz", + "integrity": "sha512-+qMUrkbUurpE6DVRjiJCNGZBGo9xM4Y0FXU5cjgudWqIBWbcLkjE3XprJUsOFgC6xjBClwVa9k6O3A7K3vxb5Q==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.44.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.44.2.tgz", + "integrity": "sha512-3+QZROYfJ25PDcxFF66UEk8jGWigHJeecZILvkPkyQN7oc5BvFo4YEXFkOs154j3FTMp9mn9Ky8RCOwastduEA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@types/chai": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.2.tgz", + "integrity": "sha512-8kB30R7Hwqf40JPiKhVzodJs2Qc1ZJ5zuT3uzw5Hq/dhNCl3G3l83jfpdI1e20BP348+fV7VIL/+FxaXkqBmWg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/deep-eql": "*" + } + }, + "node_modules/@types/deep-eql": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz", + "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/estree": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@vitest/coverage-v8": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/coverage-v8/-/coverage-v8-3.2.4.tgz", + "integrity": "sha512-EyF9SXU6kS5Ku/U82E259WSnvg6c8KTjppUncuNdm5QHpe17mwREHnjDzozC8x9MZ0xfBUFSaLkRv4TMA75ALQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@ampproject/remapping": "^2.3.0", + "@bcoe/v8-coverage": "^1.0.2", + "ast-v8-to-istanbul": "^0.3.3", + "debug": "^4.4.1", + "istanbul-lib-coverage": "^3.2.2", + "istanbul-lib-report": "^3.0.1", + "istanbul-lib-source-maps": "^5.0.6", + "istanbul-reports": "^3.1.7", + "magic-string": "^0.30.17", + "magicast": "^0.3.5", + "std-env": "^3.9.0", + "test-exclude": "^7.0.1", + "tinyrainbow": "^2.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "@vitest/browser": "3.2.4", + "vitest": "3.2.4" + }, + "peerDependenciesMeta": { + "@vitest/browser": { + "optional": true + } + } + }, + "node_modules/@vitest/expect": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-3.2.4.tgz", + "integrity": "sha512-Io0yyORnB6sikFlt8QW5K7slY4OjqNX9jmJQ02QDda8lyM6B5oNgVWoSoKPac8/kgnCUzuHQKrSLtu/uOqqrig==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/chai": "^5.2.2", + "@vitest/spy": "3.2.4", + "@vitest/utils": "3.2.4", + "chai": "^5.2.0", + "tinyrainbow": "^2.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/mocker": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-3.2.4.tgz", + "integrity": "sha512-46ryTE9RZO/rfDd7pEqFl7etuyzekzEhUbTW3BvmeO/BcCMEgq59BKhek3dXDWgAj4oMK6OZi+vRr1wPW6qjEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/spy": "3.2.4", + "estree-walker": "^3.0.3", + "magic-string": "^0.30.17" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "msw": "^2.4.9", + "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0" + }, + "peerDependenciesMeta": { + "msw": { + "optional": true + }, + "vite": { + "optional": true + } + } + }, + "node_modules/@vitest/pretty-format": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-3.2.4.tgz", + "integrity": "sha512-IVNZik8IVRJRTr9fxlitMKeJeXFFFN0JaB9PHPGQ8NKQbGpfjlTx9zO4RefN8gp7eqjNy8nyK3NZmBzOPeIxtA==", + "dev": true, + "license": "MIT", + "dependencies": { + "tinyrainbow": "^2.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/runner": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-3.2.4.tgz", + "integrity": "sha512-oukfKT9Mk41LreEW09vt45f8wx7DordoWUZMYdY/cyAk7w5TWkTRCNZYF7sX7n2wB7jyGAl74OxgwhPgKaqDMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/utils": "3.2.4", + "pathe": "^2.0.3", + "strip-literal": "^3.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/snapshot": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-3.2.4.tgz", + "integrity": "sha512-dEYtS7qQP2CjU27QBC5oUOxLE/v5eLkGqPE0ZKEIDGMs4vKWe7IjgLOeauHsR0D5YuuycGRO5oSRXnwnmA78fQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/pretty-format": "3.2.4", + "magic-string": "^0.30.17", + "pathe": "^2.0.3" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/spy": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-3.2.4.tgz", + "integrity": "sha512-vAfasCOe6AIK70iP5UD11Ac4siNUNJ9i/9PZ3NKx07sG6sUxeag1LWdNrMWeKKYBLlzuK+Gn65Yd5nyL6ds+nw==", + "dev": true, + "license": "MIT", + "dependencies": { + "tinyspy": "^4.0.3" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/utils": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-3.2.4.tgz", + "integrity": "sha512-fB2V0JFrQSMsCo9HiSq3Ezpdv4iYaXRG1Sx8edX3MwxfyNn83mKiGzOcH+Fkxt4MHxr3y42fQi1oeAInqgX2QA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/pretty-format": "3.2.4", + "loupe": "^3.1.4", + "tinyrainbow": "^2.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/acorn": { + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-regex": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", + "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/assertion-error": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", + "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + } + }, + "node_modules/ast-v8-to-istanbul": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/ast-v8-to-istanbul/-/ast-v8-to-istanbul-0.3.3.tgz", + "integrity": "sha512-MuXMrSLVVoA6sYN/6Hke18vMzrT4TZNbZIj/hvh0fnYFpO+/kFXcLIaiPwXXWaQUPg4yJD8fj+lfJ7/1EBconw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.25", + "estree-walker": "^3.0.3", + "js-tokens": "^9.0.1" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/cac": { + "version": "6.7.14", + "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", + "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/chai": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/chai/-/chai-5.2.1.tgz", + "integrity": "sha512-5nFxhUrX0PqtyogoYOA8IPswy5sZFTOsBFl/9bNsmDLgsxYTzSZQJDPppDnZPTQbzSEm0hqGjWPzRemQCYbD6A==", + "dev": true, + "license": "MIT", + "dependencies": { + "assertion-error": "^2.0.1", + "check-error": "^2.1.1", + "deep-eql": "^5.0.1", + "loupe": "^3.1.0", + "pathval": "^2.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/check-error": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.1.tgz", + "integrity": "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 16" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "license": "MIT" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", + "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-eql": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz", + "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true, + "license": "MIT" + }, + "node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true, + "license": "MIT" + }, + "node_modules/es-module-lexer": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz", + "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==", + "dev": true, + "license": "MIT" + }, + "node_modules/esbuild": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.6.tgz", + "integrity": "sha512-GVuzuUwtdsghE3ocJ9Bs8PNoF13HNQ5TXbEi2AhvVb8xU1Iwt9Fos9FEamfoee+u/TOsn7GUWc04lz46n2bbTg==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.25.6", + "@esbuild/android-arm": "0.25.6", + "@esbuild/android-arm64": "0.25.6", + "@esbuild/android-x64": "0.25.6", + "@esbuild/darwin-arm64": "0.25.6", + "@esbuild/darwin-x64": "0.25.6", + "@esbuild/freebsd-arm64": "0.25.6", + "@esbuild/freebsd-x64": "0.25.6", + "@esbuild/linux-arm": "0.25.6", + "@esbuild/linux-arm64": "0.25.6", + "@esbuild/linux-ia32": "0.25.6", + "@esbuild/linux-loong64": "0.25.6", + "@esbuild/linux-mips64el": "0.25.6", + "@esbuild/linux-ppc64": "0.25.6", + "@esbuild/linux-riscv64": "0.25.6", + "@esbuild/linux-s390x": "0.25.6", + "@esbuild/linux-x64": "0.25.6", + "@esbuild/netbsd-arm64": "0.25.6", + "@esbuild/netbsd-x64": "0.25.6", + "@esbuild/openbsd-arm64": "0.25.6", + "@esbuild/openbsd-x64": "0.25.6", + "@esbuild/openharmony-arm64": "0.25.6", + "@esbuild/sunos-x64": "0.25.6", + "@esbuild/win32-arm64": "0.25.6", + "@esbuild/win32-ia32": "0.25.6", + "@esbuild/win32-x64": "0.25.6" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "9.30.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.30.1.tgz", + "integrity": "sha512-zmxXPNMOXmwm9E0yQLi5uqXHs7uq2UIiqEKo3Gq+3fwo1XrJ+hijAZImyF7hclW3E6oHz43Yk3RP8at6OTKflQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.21.0", + "@eslint/config-helpers": "^0.3.0", + "@eslint/core": "^0.14.0", + "@eslint/eslintrc": "^3.3.1", + "@eslint/js": "9.30.1", + "@eslint/plugin-kit": "^0.3.1", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "@types/json-schema": "^7.0.15", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^8.4.0", + "eslint-visitor-keys": "^4.2.1", + "espree": "^10.4.0", + "esquery": "^1.5.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-scope": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", + "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", + "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.15.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estree-walker": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", + "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expect-type": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.2.2.tgz", + "integrity": "sha512-JhFGDVJ7tmDJItKhYgJCGLOWjuK9vPxiXoUFLwLDc99NlmklilbiQJwoctZtt13+xMw91MCk/REan6MWHqDjyA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fdir": { + "version": "6.4.6", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.6.tgz", + "integrity": "sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^4.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.4" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/flatted": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", + "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", + "dev": true, + "license": "ISC" + }, + "node_modules/foreground-child": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", + "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", + "dev": true, + "license": "ISC", + "dependencies": { + "cross-spawn": "^7.0.6", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/glob": { + "version": "10.4.5", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", + "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", + "dev": true, + "license": "ISC", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/glob/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/glob/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true, + "license": "MIT" + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-5.0.6.tgz", + "integrity": "sha512-yg2d+Em4KizZC5niWhQaIomgf5WlL4vOOjZ5xGCmF8SnPE/mDWWXgvRExdcpCgh9lLRRa1/fSYp2ymmbJ1pI+A==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.23", + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-reports": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz", + "integrity": "sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jackspeak": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", + "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/js-tokens": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-9.0.1.tgz", + "integrity": "sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/loupe": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.1.4.tgz", + "integrity": "sha512-wJzkKwJrheKtknCOKNEtDK4iqg/MxmZheEMtSTYvnzRdEYaZzmgH976nenp8WdJRdx5Vc1X/9MO0Oszl6ezeXg==", + "dev": true, + "license": "MIT" + }, + "node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/magic-string": { + "version": "0.30.17", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz", + "integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0" + } + }, + "node_modules/magicast": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/magicast/-/magicast-0.3.5.tgz", + "integrity": "sha512-L0WhttDl+2BOsybvEOLK7fW3UA0OQ0IQ2d6Zl2x/a6vVRs3bAY0ECOSHHeL5jD+SbOpOCUEi0y1DgHEn9Qn1AQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.25.4", + "@babel/types": "^7.25.4", + "source-map-js": "^1.2.0" + } + }, + "node_modules/make-dir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.11", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", + "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/package-json-from-dist": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", + "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", + "dev": true, + "license": "BlueOak-1.0.0" + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-scurry": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", + "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^10.2.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.18" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true, + "license": "MIT" + }, + "node_modules/pathval": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.1.tgz", + "integrity": "sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 14.16" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", + "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.5.6", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz", + "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.11", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz", + "integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==", + "dev": true, + "license": "MIT", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/rollup": { + "version": "4.44.2", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.44.2.tgz", + "integrity": "sha512-PVoapzTwSEcelaWGth3uR66u7ZRo6qhPHc0f2uRO9fX6XDVNrIiGYS0Pj9+R8yIIYSD/mCx2b16Ws9itljKSPg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.8" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.44.2", + "@rollup/rollup-android-arm64": "4.44.2", + "@rollup/rollup-darwin-arm64": "4.44.2", + "@rollup/rollup-darwin-x64": "4.44.2", + "@rollup/rollup-freebsd-arm64": "4.44.2", + "@rollup/rollup-freebsd-x64": "4.44.2", + "@rollup/rollup-linux-arm-gnueabihf": "4.44.2", + "@rollup/rollup-linux-arm-musleabihf": "4.44.2", + "@rollup/rollup-linux-arm64-gnu": "4.44.2", + "@rollup/rollup-linux-arm64-musl": "4.44.2", + "@rollup/rollup-linux-loongarch64-gnu": "4.44.2", + "@rollup/rollup-linux-powerpc64le-gnu": "4.44.2", + "@rollup/rollup-linux-riscv64-gnu": "4.44.2", + "@rollup/rollup-linux-riscv64-musl": "4.44.2", + "@rollup/rollup-linux-s390x-gnu": "4.44.2", + "@rollup/rollup-linux-x64-gnu": "4.44.2", + "@rollup/rollup-linux-x64-musl": "4.44.2", + "@rollup/rollup-win32-arm64-msvc": "4.44.2", + "@rollup/rollup-win32-ia32-msvc": "4.44.2", + "@rollup/rollup-win32-x64-msvc": "4.44.2", + "fsevents": "~2.3.2" + } + }, + "node_modules/semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/siginfo": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", + "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", + "dev": true, + "license": "ISC" + }, + "node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/stackback": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", + "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", + "dev": true, + "license": "MIT" + }, + "node_modules/std-env": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.9.0.tgz", + "integrity": "sha512-UGvjygr6F6tpH7o2qyqR6QYpwraIjKSdtzyBdyytFOHmPZY917kwdwLG0RbOjWOnKmnm3PeHjaoLLMie7kPLQw==", + "dev": true, + "license": "MIT" + }, + "node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/string-width-cjs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/strip-literal": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-3.0.0.tgz", + "integrity": "sha512-TcccoMhJOM3OebGhSBEmp3UZ2SfDMZUEBdRA/9ynfLi8yYajyWX3JiXArcJt4Umh4vISpspkQIY8ZZoCqjbviA==", + "dev": true, + "license": "MIT", + "dependencies": { + "js-tokens": "^9.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/test-exclude": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-7.0.1.tgz", + "integrity": "sha512-pFYqmTw68LXVjeWJMST4+borgQP2AyMNbg1BpZh9LbyhUeNkeaPF9gzfPGUAnSMV3qPYdWUwDIjjCLiSDOl7vg==", + "dev": true, + "license": "ISC", + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^10.4.1", + "minimatch": "^9.0.4" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/test-exclude/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/test-exclude/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/tinybench": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz", + "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==", + "dev": true, + "license": "MIT" + }, + "node_modules/tinyexec": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz", + "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/tinyglobby": { + "version": "0.2.14", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.14.tgz", + "integrity": "sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.4.4", + "picomatch": "^4.0.2" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tinypool": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.1.1.tgz", + "integrity": "sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.0.0 || >=20.0.0" + } + }, + "node_modules/tinyrainbow": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-2.0.0.tgz", + "integrity": "sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/tinyspy": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-4.0.3.tgz", + "integrity": "sha512-t2T/WLB2WRgZ9EpE4jgPJ9w+i66UZfDc8wHh0xrwiRNN+UwH98GIJkTeZqX9rg0i0ptwzqW+uYeIF0T4F8LR7A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/typescript": { + "version": "5.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/vite": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.0.3.tgz", + "integrity": "sha512-y2L5oJZF7bj4c0jgGYgBNSdIu+5HF+m68rn2cQXFbGoShdhV1phX9rbnxy9YXj82aS8MMsCLAAFkRxZeWdldrQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.25.0", + "fdir": "^6.4.6", + "picomatch": "^4.0.2", + "postcss": "^8.5.6", + "rollup": "^4.40.0", + "tinyglobby": "^0.2.14" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "lightningcss": "^1.21.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/vite-node": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-3.2.4.tgz", + "integrity": "sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==", + "dev": true, + "license": "MIT", + "dependencies": { + "cac": "^6.7.14", + "debug": "^4.4.1", + "es-module-lexer": "^1.7.0", + "pathe": "^2.0.3", + "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0" + }, + "bin": { + "vite-node": "vite-node.mjs" + }, + "engines": { + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/vitest": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-3.2.4.tgz", + "integrity": "sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/chai": "^5.2.2", + "@vitest/expect": "3.2.4", + "@vitest/mocker": "3.2.4", + "@vitest/pretty-format": "^3.2.4", + "@vitest/runner": "3.2.4", + "@vitest/snapshot": "3.2.4", + "@vitest/spy": "3.2.4", + "@vitest/utils": "3.2.4", + "chai": "^5.2.0", + "debug": "^4.4.1", + "expect-type": "^1.2.1", + "magic-string": "^0.30.17", + "pathe": "^2.0.3", + "picomatch": "^4.0.2", + "std-env": "^3.9.0", + "tinybench": "^2.9.0", + "tinyexec": "^0.3.2", + "tinyglobby": "^0.2.14", + "tinypool": "^1.1.1", + "tinyrainbow": "^2.0.0", + "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0", + "vite-node": "3.2.4", + "why-is-node-running": "^2.3.0" + }, + "bin": { + "vitest": "vitest.mjs" + }, + "engines": { + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "@edge-runtime/vm": "*", + "@types/debug": "^4.1.12", + "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", + "@vitest/browser": "3.2.4", + "@vitest/ui": "3.2.4", + "happy-dom": "*", + "jsdom": "*" + }, + "peerDependenciesMeta": { + "@edge-runtime/vm": { + "optional": true + }, + "@types/debug": { + "optional": true + }, + "@types/node": { + "optional": true + }, + "@vitest/browser": { + "optional": true + }, + "@vitest/ui": { + "optional": true + }, + "happy-dom": { + "optional": true + }, + "jsdom": { + "optional": true + } + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/why-is-node-running": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz", + "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==", + "dev": true, + "license": "MIT", + "dependencies": { + "siginfo": "^2.0.0", + "stackback": "0.0.2" + }, + "bin": { + "why-is-node-running": "cli.js" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/wrap-ansi-cjs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/eng/scripts/package.json b/eng/scripts/package.json index 9731caf92a9d..8fecde363f73 100644 --- a/eng/scripts/package.json +++ b/eng/scripts/package.json @@ -1,5 +1,6 @@ { "devDependencies": { + "@vitest/coverage-v8": "^3.2.4", "eslint": "^9.30.1", "prettier": "^3.6.2", "typescript": "^5.8.3", From f5d640b6520dab0d9b2c5afaeaa08c76f250a74c Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Thu, 10 Jul 2025 03:10:55 +0000 Subject: [PATCH 058/111] package.json --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 95e24a1f485b..c37b0ebc5d67 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "@typespec/versioning": "0.71.0", "@typespec/xml": "0.71.0", "azure-rest-api-specs-eng-tools": "file:eng/tools", + "azure-rest-api-specs-eng-scripts": "file:eng/scripts", "oav": "^3.6.1", "prettier": "~3.5.3", "typescript": "~5.8.2" From a512962ea9ff2fa8d94cb60bed3326af61837307 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Thu, 10 Jul 2025 03:22:21 +0000 Subject: [PATCH 059/111] npm i --- package-lock.json | 62 +++++++++++++++++++++++++++++++++++------------ 1 file changed, 47 insertions(+), 15 deletions(-) diff --git a/package-lock.json b/package-lock.json index d88288dda972..34d8d1f6fd86 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,6 +30,7 @@ "@typespec/streams": "0.71.0", "@typespec/versioning": "0.71.0", "@typespec/xml": "0.71.0", + "azure-rest-api-specs-eng-scripts": "file:eng/scripts", "azure-rest-api-specs-eng-tools": "file:eng/tools", "oav": "^3.6.1", "prettier": "~3.5.3", @@ -51,6 +52,7 @@ "simple-git": "^3.27.0" }, "bin": { + "api-doc-preview": "cmd/api-doc-preview.js", "spec-model": "cmd/spec-model.js" }, "devDependencies": { @@ -99,6 +101,32 @@ "node": ">= 20" } }, + "eng/scripts": { + "dev": true, + "devDependencies": { + "@vitest/coverage-v8": "^3.2.4", + "eslint": "^9.30.1", + "prettier": "^3.6.2", + "typescript": "^5.8.3", + "vitest": "^3.2.4" + } + }, + "eng/scripts/node_modules/prettier": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz", + "integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==", + "dev": true, + "license": "MIT", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, "eng/tools": { "name": "azure-rest-api-specs-eng-tools", "dev": true, @@ -2477,9 +2505,9 @@ } }, "node_modules/@eslint/config-array": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.20.1.tgz", - "integrity": "sha512-OL0RJzC/CBzli0DrrR31qzj6d6i6Mm3HByuhflhl4LOBiWxN+3i6/t/ZQQNii4tjksXi8r2CRW1wMpWA2ULUEw==", + "version": "0.21.0", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.0.tgz", + "integrity": "sha512-ENIdc4iLu0d93HeYirvKmrzshzofPw6VkZRKQGe9Nv46ZnWUzcF1xV01dcvEg/1wXUR61OmmlSfyeyO7EvjLxQ==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -2492,9 +2520,9 @@ } }, "node_modules/@eslint/config-helpers": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.2.3.tgz", - "integrity": "sha512-u180qk2Um1le4yf0ruXH3PYFeEZeYC3p/4wCTKrr2U1CmGdzGi3KtY0nuPDH48UJxlKCC5RDzbcbh4X0XlqgHg==", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.3.0.tgz", + "integrity": "sha512-ViuymvFmcJi04qdZeDc2whTHryouGcDlaxPqarTD0ZE10ISpxGUVZGZDx4w01upyIynL3iu6IXH2bS1NhclQMw==", "dev": true, "license": "Apache-2.0", "engines": { @@ -2552,9 +2580,9 @@ } }, "node_modules/@eslint/js": { - "version": "9.29.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.29.0.tgz", - "integrity": "sha512-3PIF4cBw/y+1u2EazflInpV+lYsSG0aByVIQzAgb1m1MhHFSbqTyNqtBKHgWf/9Ykud+DhILS9EGkmekVhbKoQ==", + "version": "9.30.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.30.1.tgz", + "integrity": "sha512-zXhuECFlyep42KZUhWjfvsmXGX39W8K8LFb8AWXM9gSV9dQB+MrJGLKvW6Zw0Ggnbpw0VHTtrhFXYe3Gym18jg==", "dev": true, "license": "MIT", "engines": { @@ -5814,6 +5842,10 @@ "proxy-from-env": "^1.1.0" } }, + "node_modules/azure-rest-api-specs-eng-scripts": { + "resolved": "eng/scripts", + "link": true + }, "node_modules/azure-rest-api-specs-eng-tools": { "resolved": "eng/tools", "link": true @@ -7037,19 +7069,19 @@ } }, "node_modules/eslint": { - "version": "9.29.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.29.0.tgz", - "integrity": "sha512-GsGizj2Y1rCWDu6XoEekL3RLilp0voSePurjZIkxL3wlm5o5EC9VpgaP7lrCvjnkuLvzFBQWB3vWB3K5KQTveQ==", + "version": "9.30.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.30.1.tgz", + "integrity": "sha512-zmxXPNMOXmwm9E0yQLi5uqXHs7uq2UIiqEKo3Gq+3fwo1XrJ+hijAZImyF7hclW3E6oHz43Yk3RP8at6OTKflQ==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.20.1", - "@eslint/config-helpers": "^0.2.1", + "@eslint/config-array": "^0.21.0", + "@eslint/config-helpers": "^0.3.0", "@eslint/core": "^0.14.0", "@eslint/eslintrc": "^3.3.1", - "@eslint/js": "9.29.0", + "@eslint/js": "9.30.1", "@eslint/plugin-kit": "^0.3.1", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", From 656639bf700d45618ea6fe1ebcd3be63c186ecb2 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Thu, 10 Jul 2025 03:24:53 +0000 Subject: [PATCH 060/111] prettier -> format --- eng/scripts/package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eng/scripts/package.json b/eng/scripts/package.json index 8fecde363f73..81c88823310d 100644 --- a/eng/scripts/package.json +++ b/eng/scripts/package.json @@ -8,9 +8,9 @@ }, "scripts": { "lint": "eslint", - "prettier": "prettier \"**/*.js\" --check", - "prettier:debug": "prettier \"**/*.js\" --check ---log-level debug", - "prettier:write": "prettier \"**/*.js\" --write", + "format": "prettier . --write", + "format:check": "prettier . --check", + "format:check:ci": "prettier . --check --log-level debug", "test": "vitest", "test:ci": "vitest run --coverage --reporter=verbose" }, From 2b0930a365039897906eea4a5d48bbb326b01553 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Thu, 10 Jul 2025 03:28:21 +0000 Subject: [PATCH 061/111] package-lock.json --- eng/scripts/package-lock.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/eng/scripts/package-lock.json b/eng/scripts/package-lock.json index 12fd42d77409..b399843aa0e8 100644 --- a/eng/scripts/package-lock.json +++ b/eng/scripts/package-lock.json @@ -126,9 +126,7 @@ "dev": true, "license": "MIT", "optional": true, - "os": [ - "aix" - ], + "os": ["aix"], "engines": { "node": ">=18" } From bcaa4c4f31d926c2e3ba2ac67c1b4edea2596b93 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Thu, 10 Jul 2025 03:33:57 +0000 Subject: [PATCH 062/111] --output --- eng/pipelines/swagger-api-doc-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 5d38a8ebc96e..166385d28382 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -52,7 +52,7 @@ jobs: - template: /eng/pipelines/templates/steps/npm-install.yml - - script: eng/scripts/api-doc-preview.js + - script: eng/scripts/api-doc-preview.js --output ./ displayName: Generate Swagger API documentation preview - template: /eng/common/pipelines/templates/steps/git-push-changes.yml From 1c350d91ac7a7c36411cbdbbde9c1e25766aee45 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Thu, 10 Jul 2025 03:45:47 +0000 Subject: [PATCH 063/111] Path --- eng/pipelines/swagger-api-doc-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 166385d28382..08005cf14fc9 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -52,7 +52,7 @@ jobs: - template: /eng/pipelines/templates/steps/npm-install.yml - - script: eng/scripts/api-doc-preview.js --output ./ + - script: eng/scripts/api-doc-preview.js --output ./AzureRestPreview displayName: Generate Swagger API documentation preview - template: /eng/common/pipelines/templates/steps/git-push-changes.yml From 73b1ffae3d39a61ac80911b0c08d884cad8530f2 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Thu, 10 Jul 2025 18:07:37 +0000 Subject: [PATCH 064/111] Revert test changes in specification/ --- .../devcenter/resource-manager/readme.md | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/specification/devcenter/resource-manager/readme.md b/specification/devcenter/resource-manager/readme.md index aa2a8be4cd7f..1fbe598d35ab 100644 --- a/specification/devcenter/resource-manager/readme.md +++ b/specification/devcenter/resource-manager/readme.md @@ -27,25 +27,10 @@ These are the global settings for devcenter. ``` yaml openapi-type: arm openapi-subtype: rpaas -tag: package-preview-2025-07-01-preview +tag: package-preview-2025-04-01-preview ``` -### Tag: package-preview-2025-07-01-preview - -These settings apply only when `--tag=package-preview-2025-07-01-preview` is specified on the command line. - -```yaml $(tag) == 'package-preview-2025-07-01-preview' -input-file: - - Microsoft.DevCenter/preview/2025-07-01-preview/commonDefinitions.json - - Microsoft.DevCenter/preview/2025-07-01-preview/devcenter.json - - Microsoft.DevCenter/preview/2025-07-01-preview/vdi.json -suppressions: - - code: PatchBodyParametersSchema - from: vdi.json - reason: Patch Body comes from common-types v5 Sku object. Keeping here for consistency with existing parts of API to avoid breaking customers. -``` - ### Tag: package-preview-2025-04-01-preview These settings apply only when `--tag=package-preview-2025-04-01-preview` is specified on the command line. From 429dc7b006f231e18ef9dec553e990b15992820a Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Thu, 10 Jul 2025 18:18:00 +0000 Subject: [PATCH 065/111] Revert "Test from another PR" This reverts commit 04aeecce042d8de6df064596339aa8e57687d534. --- .../2025-07-01-preview/commonDefinitions.json | 170 - .../preview/2025-07-01-preview/devcenter.json | 8329 ----------------- .../examples/AttachedNetworks_Create.json | 54 - .../examples/AttachedNetworks_Delete.json | 18 - .../AttachedNetworks_GetByDevCenter.json | 32 - .../AttachedNetworks_GetByProject.json | 32 - .../AttachedNetworks_ListByDevCenter.json | 54 - .../AttachedNetworks_ListByProject.json | 54 - .../examples/Catalogs_Connect.json | 17 - .../examples/Catalogs_CreateAdo.json | 92 - .../examples/Catalogs_CreateGitHub.json | 92 - .../examples/Catalogs_Delete.json | 18 - .../examples/Catalogs_Get.json | 48 - .../Catalogs_GetSyncErrorDetails.json | 36 - .../examples/Catalogs_List.json | 50 - .../examples/Catalogs_Patch.json | 62 - .../examples/Catalogs_Sync.json | 17 - .../examples/CheckNameAvailability.json | 17 - ...opedNameAvailability_DevCenterCatalog.json | 18 - ...ScopedNameAvailability_ProjectCatalog.json | 18 - .../examples/CustomizationTasks_Get.json | 40 - .../CustomizationTasks_GetErrorDetails.json | 22 - .../CustomizationTasks_ListByCatalog.json | 42 - .../examples/DevBoxDefinitions_Create.json | 75 - .../examples/DevBoxDefinitions_Delete.json | 18 - .../examples/DevBoxDefinitions_Get.json | 37 - .../DevBoxDefinitions_GetByProject.json | 37 - .../DevBoxDefinitions_ListByDevCenter.json | 41 - .../DevBoxDefinitions_ListByProject.json | 41 - .../examples/DevBoxDefinitions_Patch.json | 50 - .../DevCenterEncryptionSets_Create.json | 96 - ...rEncryptionSets_CreateWithKeyIdentity.json | 96 - ...s_CreateWithSystemAssignedKeyIdentity.json | 85 - .../DevCenterEncryptionSets_Delete.json | 18 - .../examples/DevCenterEncryptionSets_Get.json | 45 - .../DevCenterEncryptionSets_List.json | 48 - .../DevCenterEncryptionSets_Patch.json | 56 - ...CenterEncryptionSets_PatchKeyIdentity.json | 55 - .../DevCenterImageDefinitions_BuildImage.json | 18 - ...nterImageDefinitions_CancelImageBuild.json | 19 - ...enterImageDefinitions_GetErrorDetails.json | 22 - ...vCenterImageDefinitions_GetImageBuild.json | 34 - ...ImageDefinitions_GetImageBuildDetails.json | 73 - ...ions_ListImageBuildsByImageDefinition.json | 38 - .../examples/DevCenters_Create.json | 93 - ...ers_CreateWithDisabledManagedNetworks.json | 100 - .../DevCenters_CreateWithEncryption.json | 124 - .../DevCenters_CreateWithUserIdentity.json | 97 - .../examples/DevCenters_Delete.json | 17 - .../examples/DevCenters_Get.json | 41 - .../DevCenters_ListByResourceGroup.json | 37 - .../DevCenters_ListBySubscription.json | 36 - .../examples/DevCenters_Patch.json | 45 - .../examples/EnvironmentDefinitions_Get.json | 53 - ...onmentDefinitions_GetByProjectCatalog.json | 53 - ...nvironmentDefinitions_GetErrorDetails.json | 22 - .../EnvironmentDefinitions_ListByCatalog.json | 56 - ...nmentDefinitions_ListByProjectCatalog.json | 56 - .../examples/EnvironmentTypes_Delete.json | 13 - .../examples/EnvironmentTypes_Get.json | 33 - .../examples/EnvironmentTypes_List.json | 32 - .../examples/EnvironmentTypes_Patch.json | 41 - .../examples/EnvironmentTypes_Put.json | 63 - .../examples/Galleries_Create.json | 54 - .../examples/Galleries_Delete.json | 18 - .../examples/Galleries_Get.json | 30 - .../examples/Galleries_List.json | 50 - .../examples/ImageDefinitions_BuildImage.json | 18 - .../ImageDefinitions_CancelImageBuild.json | 19 - ...mageDefinitions_GetByDevCenterCatalog.json | 68 - .../ImageDefinitions_GetByProjectCatalog.json | 48 - .../ImageDefinitions_GetImageBuild.json | 34 - ...ImageDefinitions_GetImageBuildDetails.json | 73 - ...ageDefinitions_ListByDevCenterCatalog.json | 51 - ...ImageDefinitions_ListByProjectCatalog.json | 51 - ...ions_ListImageBuildsByImageDefinition.json | 38 - .../examples/ImageVersions_Get.json | 34 - .../examples/ImageVersions_GetByProject.json | 33 - .../examples/ImageVersions_List.json | 37 - .../examples/ImageVersions_ListByProject.json | 36 - .../examples/Images_Get.json | 44 - .../examples/Images_GetByProject.json | 43 - .../examples/Images_ListByDevCenter.json | 75 - .../examples/Images_ListByGallery.json | 76 - .../examples/Images_ListByProject.json | 105 - .../examples/NetworkConnections_Delete.json | 17 - .../examples/NetworkConnections_Get.json | 35 - .../NetworkConnections_GetHealthDetails.json | 37 - ...etworkConnections_ListByResourceGroup.json | 37 - ...NetworkConnections_ListBySubscription.json | 36 - .../NetworkConnections_ListHealthDetails.json | 41 - ...tOutboundNetworkDependenciesEndpoints.json | 55 - .../examples/NetworkConnections_Patch.json | 45 - .../examples/NetworkConnections_Put.json | 69 - .../NetworkConnections_RunHealthChecks.json | 16 - .../examples/OperationStatus_Get.json | 42 - .../examples/Operations_Get.json | 21 - .../examples/Pools_Delete.json | 18 - .../examples/Pools_Get.json | 65 - .../examples/Pools_GetUnhealthyStatus.json | 64 - .../examples/Pools_List.json | 68 - .../examples/Pools_Patch.json | 61 - .../examples/Pools_Put.json | 149 - .../examples/Pools_PutWithManagedNetwork.json | 111 - .../Pools_PutWithValueDevBoxDefinition.json | 131 - .../examples/Pools_RunHealthChecks.json | 17 - .../ProjectAllowedEnvironmentTypes_Get.json | 26 - .../ProjectAllowedEnvironmentTypes_List.json | 29 - ...nvironmentDefinitions_GetErrorDetails.json | 22 - ...talogImageDefinitions_GetErrorDetails.json | 22 - .../examples/ProjectCatalogs_Connect.json | 17 - .../examples/ProjectCatalogs_CreateAdo.json | 95 - .../ProjectCatalogs_CreateGitHub.json | 95 - .../examples/ProjectCatalogs_Delete.json | 18 - .../examples/ProjectCatalogs_Get.json | 50 - .../ProjectCatalogs_GetSyncErrorDetails.json | 36 - .../examples/ProjectCatalogs_List.json | 50 - .../examples/ProjectCatalogs_Patch.json | 60 - .../examples/ProjectCatalogs_Sync.json | 17 - .../ProjectEnvironmentTypes_Delete.json | 13 - .../examples/ProjectEnvironmentTypes_Get.json | 63 - .../ProjectEnvironmentTypes_List.json | 66 - .../ProjectEnvironmentTypes_Patch.json | 85 - .../examples/ProjectEnvironmentTypes_Put.json | 146 - .../examples/ProjectPolicies_Delete.json | 18 - .../examples/ProjectPolicies_Get.json | 37 - .../ProjectPolicies_ListByDevCenter.json | 40 - .../examples/ProjectPolicies_Patch.json | 52 - .../examples/ProjectPolicies_Put.json | 75 - .../examples/Projects_Delete.json | 17 - .../examples/Projects_Get.json | 41 - .../Projects_GetInheritedSettings.json | 20 - .../Projects_ListByResourceGroup.json | 38 - .../examples/Projects_ListBySubscription.json | 37 - .../examples/Projects_Patch.json | 62 - .../examples/Projects_Put.json | 72 - ...Projects_PutWithCustomizationSettings.json | 117 - ...hCustomizationSettings_SystemIdentity.json | 103 - .../Projects_PutWithMaxDevBoxPerUser.json | 72 - ...dules_CreateDailyShutdownPoolSchedule.json | 67 - .../examples/Schedules_Delete.json | 19 - .../examples/Schedules_Get.json | 35 - .../examples/Schedules_ListByPool.json | 38 - .../examples/Schedules_Patch.json | 46 - .../examples/Skus_ListByProject.json | 32 - .../examples/Skus_ListBySubscription.json | 30 - .../examples/Usages_ListByLocation.json | 34 - .../preview/2025-07-01-preview/vdi.json | 2091 ----- 148 files changed, 17619 deletions(-) delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/commonDefinitions.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/devcenter.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_Create.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_Delete.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_GetByDevCenter.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_GetByProject.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_ListByDevCenter.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_ListByProject.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Connect.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_CreateAdo.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_CreateGitHub.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Delete.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Get.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_GetSyncErrorDetails.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_List.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Patch.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Sync.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckNameAvailability.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckScopedNameAvailability_DevCenterCatalog.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckScopedNameAvailability_ProjectCatalog.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_Get.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_GetErrorDetails.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_ListByCatalog.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Create.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Delete.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Get.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_GetByProject.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_ListByDevCenter.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_ListByProject.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Patch.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Create.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_CreateWithKeyIdentity.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_CreateWithSystemAssignedKeyIdentity.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Delete.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Get.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_List.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Patch.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_PatchKeyIdentity.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_BuildImage.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_CancelImageBuild.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetErrorDetails.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetImageBuild.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetImageBuildDetails.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_ListImageBuildsByImageDefinition.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Create.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithDisabledManagedNetworks.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithEncryption.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithUserIdentity.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Delete.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Get.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_ListByResourceGroup.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_ListBySubscription.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Patch.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_Get.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_GetByProjectCatalog.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_GetErrorDetails.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_ListByCatalog.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_ListByProjectCatalog.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Delete.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Get.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_List.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Patch.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Put.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Create.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Delete.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Get.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_List.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_BuildImage.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_CancelImageBuild.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetByDevCenterCatalog.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetByProjectCatalog.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetImageBuild.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetImageBuildDetails.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListByDevCenterCatalog.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListByProjectCatalog.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListImageBuildsByImageDefinition.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_Get.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_GetByProject.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_List.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_ListByProject.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_Get.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_GetByProject.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByDevCenter.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByGallery.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByProject.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Delete.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Get.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_GetHealthDetails.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListByResourceGroup.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListBySubscription.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListHealthDetails.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListOutboundNetworkDependenciesEndpoints.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Patch.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Put.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_RunHealthChecks.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/OperationStatus_Get.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Operations_Get.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Delete.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Get.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_GetUnhealthyStatus.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_List.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Patch.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Put.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_PutWithManagedNetwork.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_PutWithValueDevBoxDefinition.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_RunHealthChecks.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectAllowedEnvironmentTypes_Get.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectAllowedEnvironmentTypes_List.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogEnvironmentDefinitions_GetErrorDetails.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogImageDefinitions_GetErrorDetails.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Connect.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_CreateAdo.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_CreateGitHub.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Delete.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Get.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_GetSyncErrorDetails.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_List.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Patch.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Sync.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Delete.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Get.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_List.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Patch.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Put.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Delete.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Get.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_ListByDevCenter.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Patch.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Put.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Delete.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Get.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_GetInheritedSettings.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_ListByResourceGroup.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_ListBySubscription.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Patch.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Put.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithCustomizationSettings.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithCustomizationSettings_SystemIdentity.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithMaxDevBoxPerUser.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_CreateDailyShutdownPoolSchedule.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Delete.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Get.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_ListByPool.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Patch.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Skus_ListByProject.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Skus_ListBySubscription.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Usages_ListByLocation.json delete mode 100644 specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/vdi.json diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/commonDefinitions.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/commonDefinitions.json deleted file mode 100644 index d1782b91d467..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/commonDefinitions.json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2025-07-01-preview", - "title": "DevCenter", - "description": "DevCenter Management API" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": {}, - "definitions": { - "Capability": { - "description": "A name/value pair to describe a capability.", - "type": "object", - "properties": { - "name": { - "description": "Name of the capability.", - "type": "string", - "readOnly": true - }, - "value": { - "description": "Value of the capability.", - "type": "string", - "readOnly": true - } - } - }, - "TrackedResourceUpdate": { - "description": "Base tracked resource type for PATCH updates", - "type": "object", - "properties": { - "tags": { - "$ref": "#/definitions/Tags", - "description": "Resource tags." - }, - "location": { - "type": "string", - "x-ms-mutability": [ - "read", - "create" - ], - "description": "The geo-location where the resource lives" - } - } - }, - "Tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-ms-mutability": [ - "read", - "create", - "update" - ], - "description": "Resource tags." - }, - "DevCenterSku": { - "description": "The resource model definition representing SKU for DevCenter resources", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Sku" - } - ], - "properties": { - "resourceType": { - "type": "string", - "description": "The name of the resource type", - "readOnly": true - }, - "locations": { - "description": "SKU supported locations.", - "type": "array", - "readOnly": true, - "items": { - "type": "string" - } - }, - "capabilities": { - "description": "Collection of name/value pairs to describe the SKU capabilities.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/Capability" - }, - "x-ms-identifiers": [] - } - }, - "required": [ - "name" - ] - }, - "ProvisioningState": { - "type": "string", - "description": "Provisioning state of the resource.", - "enum": [ - "NotSpecified", - "Accepted", - "Running", - "Creating", - "Created", - "Updating", - "Updated", - "Deleting", - "Deleted", - "Succeeded", - "Failed", - "Canceled", - "MovingResources", - "TransientFailure", - "RolloutInProgress", - "StorageProvisioningFailed" - ], - "readOnly": true, - "x-ms-enum": { - "name": "ProvisioningState", - "modelAsString": true - } - } - }, - "parameters": { - "ProjectNameParameter": { - "name": "projectName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the project.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63 - }, - "TopParameter": { - "name": "$top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: '$top=10'.", - "type": "integer", - "format": "int32", - "required": false, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/devcenter.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/devcenter.json deleted file mode 100644 index 36abf0a43b56..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/devcenter.json +++ /dev/null @@ -1,8329 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2025-07-01-preview", - "title": "DevCenter", - "description": "DevCenter Management API" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/devcenters": { - "get": { - "tags": [ - "DevCenters" - ], - "description": "Lists all devcenters in a subscription.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "operationId": "DevCenters_ListBySubscription", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevCenterListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "DevCenters_ListBySubscription": { - "$ref": "./examples/DevCenters_ListBySubscription.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters": { - "get": { - "tags": [ - "DevCenters" - ], - "description": "Lists all devcenters in a resource group.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "operationId": "DevCenters_ListByResourceGroup", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevCenterListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "DevCenters_ListByResourceGroup": { - "$ref": "./examples/DevCenters_ListByResourceGroup.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}": { - "get": { - "tags": [ - "DevCenters" - ], - "description": "Gets a devcenter.", - "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/DevCenterNameParameter" - } - ], - "operationId": "DevCenters_Get", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevCenter" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "DevCenters_Get": { - "$ref": "./examples/DevCenters_Get.json" - } - } - }, - "put": { - "tags": [ - "DevCenters" - ], - "description": "Creates or updates a devcenter resource", - "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/DevCenterNameParameter" - }, - { - "name": "body", - "in": "body", - "description": "Represents a devcenter.", - "required": true, - "schema": { - "$ref": "#/definitions/DevCenter" - } - } - ], - "operationId": "DevCenters_CreateOrUpdate", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevCenter" - } - }, - "201": { - "description": "Created. The request will complete asynchronously.", - "schema": { - "$ref": "#/definitions/DevCenter" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "DevCenters_Create": { - "$ref": "./examples/DevCenters_Create.json" - }, - "DevCenters_CreateWithUserIdentity": { - "$ref": "./examples/DevCenters_CreateWithUserIdentity.json" - }, - "DevCenters_CreateWithEncryption": { - "$ref": "./examples/DevCenters_CreateWithEncryption.json" - }, - "DevCenters_CreateWithDisabledManagedNetworks": { - "$ref": "./examples/DevCenters_CreateWithDisabledManagedNetworks.json" - } - } - }, - "patch": { - "tags": [ - "DevCenters" - ], - "description": "Partially updates a devcenter.", - "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/DevCenterNameParameter" - }, - { - "name": "body", - "in": "body", - "description": "Updatable devcenter properties.", - "required": true, - "schema": { - "$ref": "#/definitions/DevCenterUpdate" - } - } - ], - "operationId": "DevCenters_Update", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevCenter" - } - }, - "202": { - "description": "Accepted. The request will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "DevCenters_Update": { - "$ref": "./examples/DevCenters_Patch.json" - } - } - }, - "delete": { - "tags": [ - "DevCenters" - ], - "description": "Deletes a devcenter", - "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/DevCenterNameParameter" - } - ], - "operationId": "DevCenters_Delete", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "204": { - "description": "Resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "DevCenters_Delete": { - "$ref": "./examples/DevCenters_Delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/encryptionSets": { - "get": { - "tags": [ - "EncryptionSets" - ], - "description": "Lists all encryption sets in the devcenter.", - "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/DevCenterNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "operationId": "EncryptionSets_List", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/EncryptionSetListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "EncryptionSets_List": { - "$ref": "./examples/DevCenterEncryptionSets_List.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/encryptionSets/{encryptionSetName}": { - "get": { - "tags": [ - "EncryptionSets" - ], - "description": "Gets a devcenter encryption set.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/DevCenterEncryptionSetNameParameter" - } - ], - "operationId": "EncryptionSets_Get", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevCenterEncryptionSet" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "EncryptionSets_Get": { - "$ref": "./examples/DevCenterEncryptionSets_Get.json" - } - } - }, - "put": { - "tags": [ - "EncryptionSets" - ], - "description": "Creates or updates a devcenter encryption set resource", - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/DevCenterEncryptionSetNameParameter" - }, - { - "name": "body", - "in": "body", - "description": "Represents a devcenter encryption set.", - "required": true, - "schema": { - "$ref": "#/definitions/DevCenterEncryptionSet" - } - } - ], - "operationId": "EncryptionSets_CreateOrUpdate", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevCenterEncryptionSet" - } - }, - "201": { - "description": "Created. The request will complete asynchronously.", - "schema": { - "$ref": "#/definitions/DevCenterEncryptionSet" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "EncryptionSets_Create": { - "$ref": "./examples/DevCenterEncryptionSets_Create.json" - } - } - }, - "patch": { - "tags": [ - "EncryptionSets" - ], - "description": "Partially updates a devcenter encryption set.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/DevCenterEncryptionSetNameParameter" - }, - { - "name": "body", - "in": "body", - "description": "Updatable devcenter encryption set properties.", - "required": true, - "schema": { - "$ref": "#/definitions/EncryptionSetUpdate" - } - } - ], - "operationId": "EncryptionSets_Update", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevCenterEncryptionSet" - } - }, - "202": { - "description": "Accepted. The request will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "EncryptionSets_Update": { - "$ref": "./examples/DevCenterEncryptionSets_Patch.json" - } - } - }, - "delete": { - "tags": [ - "EncryptionSets" - ], - "description": "Deletes a devcenter encryption set", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/DevCenterEncryptionSetNameParameter" - } - ], - "operationId": "EncryptionSets_Delete", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "204": { - "description": "Resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "EncryptionSets_Delete": { - "$ref": "./examples/DevCenterEncryptionSets_Delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/projectPolicies": { - "get": { - "tags": [ - "Project Policies" - ], - "description": "Lists all project policies in the dev center", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/DevCenterNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "operationId": "ProjectPolicies_ListByDevCenter", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ProjectPolicyListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ProjectPolicies_ListByDevCenter": { - "$ref": "./examples/ProjectPolicies_ListByDevCenter.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/projectPolicies/{projectPolicyName}": { - "get": { - "tags": [ - "Project Policies" - ], - "description": "Gets a specific project policy.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/ProjectPolicyNameParameter" - } - ], - "operationId": "ProjectPolicies_Get", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ProjectPolicy" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ProjectPolicies_Get": { - "$ref": "./examples/ProjectPolicies_Get.json" - } - } - }, - "put": { - "tags": [ - "Project Policies" - ], - "description": "Creates or updates an project policy.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/ProjectPolicyNameParameter" - }, - { - "name": "body", - "in": "body", - "description": "Represents an project policy.", - "required": true, - "schema": { - "$ref": "#/definitions/ProjectPolicy" - } - } - ], - "operationId": "ProjectPolicies_CreateOrUpdate", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "200": { - "description": "Succeeded", - "schema": { - "$ref": "#/definitions/ProjectPolicy" - } - }, - "201": { - "description": "Accepted. Operation will complete asynchronously.", - "schema": { - "$ref": "#/definitions/ProjectPolicy" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ProjectPolicies_CreateOrUpdate": { - "$ref": "./examples/ProjectPolicies_Put.json" - } - } - }, - "patch": { - "tags": [ - "Project Policies" - ], - "description": "Partially updates an project policy.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/ProjectPolicyNameParameter" - }, - { - "name": "body", - "in": "body", - "description": "Updatable project policy properties.", - "required": true, - "schema": { - "$ref": "#/definitions/ProjectPolicyUpdate" - } - } - ], - "operationId": "ProjectPolicies_Update", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "200": { - "description": "Succeeded", - "schema": { - "$ref": "#/definitions/ProjectPolicy" - } - }, - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ProjectPolicies_Update": { - "$ref": "./examples/ProjectPolicies_Patch.json" - } - } - }, - "delete": { - "tags": [ - "Project Policies" - ], - "description": "Deletes an project policy.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/ProjectPolicyNameParameter" - } - ], - "operationId": "ProjectPolicies_Delete", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "204": { - "description": "Resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ProjectPolicies_Delete": { - "$ref": "./examples/ProjectPolicies_Delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/projects": { - "get": { - "tags": [ - "Projects" - ], - "description": "Lists all projects in the subscription.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "operationId": "Projects_ListBySubscription", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ProjectListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Projects_ListBySubscription": { - "$ref": "./examples/Projects_ListBySubscription.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects": { - "get": { - "tags": [ - "Projects" - ], - "description": "Lists all projects in the resource group.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "operationId": "Projects_ListByResourceGroup", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ProjectListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Projects_ListByResourceGroup": { - "$ref": "./examples/Projects_ListByResourceGroup.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}": { - "get": { - "tags": [ - "Projects" - ], - "description": "Gets a specific project.", - "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/ProjectNameParameter" - } - ], - "operationId": "Projects_Get", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Project" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Projects_Get": { - "$ref": "./examples/Projects_Get.json" - } - } - }, - "put": { - "tags": [ - "Projects" - ], - "description": "Creates or updates a project.", - "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/ProjectNameParameter" - }, - { - "name": "body", - "in": "body", - "description": "Represents a project.", - "required": true, - "schema": { - "$ref": "#/definitions/Project" - } - } - ], - "operationId": "Projects_CreateOrUpdate", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "200": { - "description": "Succeeded", - "schema": { - "$ref": "#/definitions/Project" - } - }, - "201": { - "description": "Accepted. Operation will complete asynchronously.", - "schema": { - "$ref": "#/definitions/Project" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Projects_CreateOrUpdate": { - "$ref": "./examples/Projects_Put.json" - }, - "Projects_CreateOrUpdateWithLimitsPerDev": { - "$ref": "./examples/Projects_PutWithMaxDevBoxPerUser.json" - }, - "Projects_CreateOrUpdateWithCustomizationSettings": { - "$ref": "./examples/Projects_PutWithCustomizationSettings.json" - }, - "Projects_CreateOrUpdateWithCustomizationSettings_SystemIdentity": { - "$ref": "./examples/Projects_PutWithCustomizationSettings_SystemIdentity.json" - } - } - }, - "patch": { - "tags": [ - "Projects" - ], - "description": "Partially updates a project.", - "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/ProjectNameParameter" - }, - { - "name": "body", - "in": "body", - "description": "Updatable project properties.", - "required": true, - "schema": { - "$ref": "#/definitions/ProjectUpdate" - } - } - ], - "operationId": "Projects_Update", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "200": { - "description": "Succeeded", - "schema": { - "$ref": "#/definitions/Project" - } - }, - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Projects_Update": { - "$ref": "./examples/Projects_Patch.json" - } - } - }, - "delete": { - "tags": [ - "Projects" - ], - "description": "Deletes a project resource.", - "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/ProjectNameParameter" - } - ], - "operationId": "Projects_Delete", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "204": { - "description": "Resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Projects_Delete": { - "$ref": "./examples/Projects_Delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/getInheritedSettings": { - "post": { - "tags": [ - "Projects" - ], - "description": "Gets applicable inherited settings for this project.", - "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/ProjectNameParameter" - } - ], - "operationId": "Projects_GetInheritedSettings", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/InheritedSettingsForProject" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Projects_GetInheritedSettings": { - "$ref": "./examples/Projects_GetInheritedSettings.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/attachednetworks": { - "get": { - "tags": [ - "Attached NetworkConnections." - ], - "description": "Lists the attached NetworkConnections for a Project.", - "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/ProjectNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "operationId": "AttachedNetworks_ListByProject", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/AttachedNetworkListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "AttachedNetworks_ListByProject": { - "$ref": "./examples/AttachedNetworks_ListByProject.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/attachednetworks/{attachedNetworkConnectionName}": { - "get": { - "tags": [ - "Attached NetworkConnections" - ], - "description": "Gets an attached NetworkConnection.", - "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/ProjectNameParameter" - }, - { - "$ref": "#/parameters/AttachedNetworkConnectionNameParameter" - } - ], - "operationId": "AttachedNetworks_GetByProject", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/AttachedNetworkConnection" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "AttachedNetworks_GetByProject": { - "$ref": "./examples/AttachedNetworks_GetByProject.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs": { - "get": { - "tags": [ - "Project Catalogs" - ], - "description": "Lists the catalogs associated with a project.", - "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/ProjectNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "operationId": "ProjectCatalogs_List", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/CatalogListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ProjectCatalogs_List": { - "$ref": "./examples/ProjectCatalogs_List.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}": { - "get": { - "tags": [ - "Project Catalogs" - ], - "description": "Gets an associated project catalog.", - "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/ProjectNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - } - ], - "operationId": "ProjectCatalogs_Get", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Catalog" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ProjectCatalogs_Get": { - "$ref": "./examples/ProjectCatalogs_Get.json" - } - } - }, - "put": { - "tags": [ - "Project Catalogs" - ], - "description": "Creates or updates a project catalog.", - "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/ProjectNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "name": "body", - "in": "body", - "description": "Represents a catalog.", - "required": true, - "schema": { - "$ref": "#/definitions/Catalog" - } - } - ], - "operationId": "ProjectCatalogs_CreateOrUpdate", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Catalog" - } - }, - "201": { - "description": "Accepted. Operation will complete asynchronously.", - "schema": { - "$ref": "#/definitions/Catalog" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "x-ms-examples": { - "ProjectCatalogs_CreateOrUpdateGitHub": { - "$ref": "./examples/ProjectCatalogs_CreateGitHub.json" - }, - "ProjectCatalogs_CreateOrUpdateAdo": { - "$ref": "./examples/ProjectCatalogs_CreateAdo.json" - } - } - }, - "patch": { - "tags": [ - "Project Catalogs" - ], - "description": "Partially updates a project catalog.", - "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/ProjectNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "name": "body", - "in": "body", - "description": "Updatable project catalog properties.", - "required": true, - "schema": { - "$ref": "#/definitions/CatalogUpdate" - } - } - ], - "operationId": "ProjectCatalogs_Patch", - "responses": { - "200": { - "description": "The resource was updated.", - "schema": { - "$ref": "#/definitions/Catalog" - } - }, - "202": { - "description": "The request will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "x-ms-examples": { - "ProjectCatalogs_Patch": { - "$ref": "./examples/ProjectCatalogs_Patch.json" - } - } - }, - "delete": { - "tags": [ - "Project Catalogs" - ], - "description": "Deletes a project catalog resource.", - "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/ProjectNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - } - ], - "operationId": "ProjectCatalogs_Delete", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "204": { - "description": "Resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ProjectCatalogs_Delete": { - "$ref": "./examples/ProjectCatalogs_Delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions": { - "get": { - "tags": [ - "Environment Definitions" - ], - "description": "Lists the environment definitions in this project catalog.", - "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/ProjectNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - } - ], - "operationId": "EnvironmentDefinitions_ListByProjectCatalog", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/EnvironmentDefinitionListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "EnvironmentDefinitions_ListByProjectCatalog": { - "$ref": "./examples/EnvironmentDefinitions_ListByProjectCatalog.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}": { - "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/ProjectNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/EnvironmentDefinitionNameParameter" - } - ], - "get": { - "tags": [ - "Environment Definitions" - ], - "description": "Gets an environment definition from the catalog.", - "operationId": "EnvironmentDefinitions_GetByProjectCatalog", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/EnvironmentDefinition" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "EnvironmentDefinitions_GetByProjectCatalog": { - "$ref": "./examples/EnvironmentDefinitions_GetByProjectCatalog.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}/getErrorDetails": { - "post": { - "tags": [ - "Environment Definitions" - ], - "description": "Gets Environment Definition error details", - "operationId": "ProjectCatalogEnvironmentDefinitions_GetErrorDetails", - "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/ProjectNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/EnvironmentDefinitionNameParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "vdi.json#/definitions/CatalogResourceValidationErrorDetails" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ProjectCatalogEnvironmentDefinitions_GetErrorDetails": { - "$ref": "./examples/ProjectCatalogEnvironmentDefinitions_GetErrorDetails.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/getSyncErrorDetails": { - "post": { - "tags": [ - "Project Catalogs" - ], - "description": "Gets project catalog synchronization error details", - "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/ProjectNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - } - ], - "operationId": "ProjectCatalogs_GetSyncErrorDetails", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/SyncErrorDetails" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ProjectCatalogs_GetSyncErrorDetails": { - "$ref": "./examples/ProjectCatalogs_GetSyncErrorDetails.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/sync": { - "post": { - "tags": [ - "Project Catalogs" - ], - "description": "Syncs templates for a template source.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ProjectNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - } - ], - "operationId": "ProjectCatalogs_Sync", - "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "x-ms-examples": { - "ProjectCatalogs_Sync": { - "$ref": "./examples/ProjectCatalogs_Sync.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/connect": { - "post": { - "tags": [ - "Project Catalogs" - ], - "description": "Connects a project catalog to enable syncing.", - "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/ProjectNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - } - ], - "operationId": "ProjectCatalogs_Connect", - "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "x-ms-examples": { - "ProjectCatalogs_Connect": { - "$ref": "./examples/ProjectCatalogs_Connect.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries": { - "get": { - "tags": [ - "Galleries" - ], - "description": "Lists galleries for a devcenter.", - "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/DevCenterNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "operationId": "Galleries_ListByDevCenter", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/GalleryListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Galleries_ListByDevCenter": { - "$ref": "./examples/Galleries_List.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}": { - "get": { - "tags": [ - "Galleries" - ], - "description": "Gets a gallery", - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/GalleryNameParameter" - } - ], - "operationId": "Galleries_Get", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Gallery" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Galleries_Get": { - "$ref": "./examples/Galleries_Get.json" - } - } - }, - "put": { - "tags": [ - "Galleries" - ], - "description": "Creates or updates a gallery.", - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/GalleryNameParameter" - }, - { - "name": "body", - "in": "body", - "description": "Represents a gallery.", - "required": true, - "schema": { - "$ref": "#/definitions/Gallery" - } - } - ], - "operationId": "Galleries_CreateOrUpdate", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Gallery" - } - }, - "201": { - "description": "Accepted. Operation will complete asynchronously.", - "schema": { - "$ref": "#/definitions/Gallery" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "x-ms-examples": { - "Galleries_CreateOrUpdate": { - "$ref": "./examples/Galleries_Create.json" - } - } - }, - "delete": { - "tags": [ - "Galleries" - ], - "description": "Deletes a gallery resource.", - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/GalleryNameParameter" - } - ], - "operationId": "Galleries_Delete", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "204": { - "description": "Resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Galleries_Delete": { - "$ref": "./examples/Galleries_Delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/images": { - "get": { - "tags": [ - "Images" - ], - "description": "Lists images for a devcenter.", - "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/DevCenterNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "operationId": "Images_ListByDevCenter", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ImageListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Images_ListByDevCenter": { - "$ref": "./examples/Images_ListByDevCenter.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images": { - "get": { - "tags": [ - "Images" - ], - "description": "Lists images for a gallery.", - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/GalleryNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "operationId": "Images_ListByGallery", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ImageListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Images_ListByGallery": { - "$ref": "./examples/Images_ListByGallery.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images/{imageName}": { - "get": { - "tags": [ - "Images" - ], - "description": "Gets a gallery image.", - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/GalleryNameParameter" - }, - { - "$ref": "#/parameters/ImageNameParameter" - } - ], - "operationId": "Images_Get", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Image" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Images_Get": { - "$ref": "./examples/Images_Get.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images/{imageName}/versions": { - "get": { - "tags": [ - "Image Versions" - ], - "description": "Lists versions for an image.", - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/GalleryNameParameter" - }, - { - "$ref": "#/parameters/ImageNameParameter" - } - ], - "operationId": "ImageVersions_ListByImage", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ImageVersionListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ImageVersions_ListByImage": { - "$ref": "./examples/ImageVersions_List.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images/{imageName}/versions/{versionName}": { - "get": { - "tags": [ - "Image Versions" - ], - "description": "Gets an image version.", - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/GalleryNameParameter" - }, - { - "$ref": "#/parameters/ImageNameParameter" - }, - { - "$ref": "#/parameters/VersionNameParameter" - } - ], - "operationId": "ImageVersions_Get", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ImageVersion" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Versions_Get": { - "$ref": "./examples/ImageVersions_Get.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/images": { - "get": { - "tags": [ - "Images" - ], - "description": "Lists images for a project.", - "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": "commonDefinitions.json#/parameters/ProjectNameParameter" - } - ], - "operationId": "Images_ListByProject", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ImageListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Images_ListByProject": { - "$ref": "./examples/Images_ListByProject.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/images/{imageName}": { - "get": { - "tags": [ - "Images" - ], - "description": "Gets an image.", - "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": "commonDefinitions.json#/parameters/ProjectNameParameter" - }, - { - "$ref": "#/parameters/ProjectImageNameParameter" - } - ], - "operationId": "Images_GetByProject", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Image" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Images_GetByProject": { - "$ref": "./examples/Images_GetByProject.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/images/{imageName}/versions": { - "get": { - "tags": [ - "Image Versions" - ], - "description": "Lists versions for an image.", - "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": "commonDefinitions.json#/parameters/ProjectNameParameter" - }, - { - "$ref": "#/parameters/ProjectImageNameParameter" - } - ], - "operationId": "ImageVersions_ListByProject", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ImageVersionListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ImageVersions_ListByProject": { - "$ref": "./examples/ImageVersions_ListByProject.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/images/{imageName}/versions/{versionName}": { - "get": { - "tags": [ - "Image Versions" - ], - "description": "Gets an image version.", - "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": "commonDefinitions.json#/parameters/ProjectNameParameter" - }, - { - "$ref": "#/parameters/ProjectImageNameParameter" - }, - { - "$ref": "#/parameters/VersionNameParameter" - } - ], - "operationId": "ImageVersions_GetByProject", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ImageVersion" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ImageVersions_GetByProject": { - "$ref": "./examples/ImageVersions_GetByProject.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/listSkus": { - "post": { - "tags": [ - "Project SKUs" - ], - "description": "Lists SKUs available to the project", - "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/ProjectNameParameter" - } - ], - "operationId": "Skus_ListByProject", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "vdi.json#/definitions/SkuListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Skus_ListByProject": { - "$ref": "./examples/Skus_ListByProject.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/attachednetworks": { - "get": { - "tags": [ - "Attached NetworkConnections." - ], - "description": "Lists the attached NetworkConnections for a DevCenter.", - "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/DevCenterNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "operationId": "AttachedNetworks_ListByDevCenter", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/AttachedNetworkListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "AttachedNetworks_ListByDevCenter": { - "$ref": "./examples/AttachedNetworks_ListByDevCenter.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/attachednetworks/{attachedNetworkConnectionName}": { - "get": { - "tags": [ - "Attached NetworkConnections" - ], - "description": "Gets an attached NetworkConnection.", - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/AttachedNetworkConnectionNameParameter" - } - ], - "operationId": "AttachedNetworks_GetByDevCenter", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/AttachedNetworkConnection" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "AttachedNetworks_GetByDevCenter": { - "$ref": "./examples/AttachedNetworks_GetByDevCenter.json" - } - } - }, - "put": { - "tags": [ - "Attached NetworkConnections" - ], - "description": "Creates or updates an attached NetworkConnection.", - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/AttachedNetworkConnectionNameParameter" - }, - { - "name": "body", - "in": "body", - "description": "Represents an attached NetworkConnection.", - "required": true, - "schema": { - "$ref": "#/definitions/AttachedNetworkConnection" - } - } - ], - "operationId": "AttachedNetworks_CreateOrUpdate", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/AttachedNetworkConnection" - } - }, - "201": { - "description": "Accepted. Operation will complete asynchronously.", - "schema": { - "$ref": "#/definitions/AttachedNetworkConnection" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "x-ms-examples": { - "AttachedNetworks_Create": { - "$ref": "./examples/AttachedNetworks_Create.json" - } - } - }, - "delete": { - "tags": [ - "Attached NetworkConnections" - ], - "description": "Un-attach a NetworkConnection.", - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/AttachedNetworkConnectionNameParameter" - } - ], - "operationId": "AttachedNetworks_Delete", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "204": { - "description": "Resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "AttachedNetworks_Delete": { - "$ref": "./examples/AttachedNetworks_Delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs": { - "get": { - "tags": [ - "Catalogs" - ], - "description": "Lists catalogs for a devcenter.", - "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/DevCenterNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "operationId": "Catalogs_ListByDevCenter", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/CatalogListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Catalogs_ListByDevCenter": { - "$ref": "./examples/Catalogs_List.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}": { - "get": { - "tags": [ - "Catalogs" - ], - "description": "Gets a catalog", - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - } - ], - "operationId": "Catalogs_Get", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Catalog" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Catalogs_Get": { - "$ref": "./examples/Catalogs_Get.json" - } - } - }, - "put": { - "tags": [ - "Catalogs" - ], - "description": "Creates or updates a catalog.", - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "name": "body", - "in": "body", - "description": "Represents a catalog.", - "required": true, - "schema": { - "$ref": "#/definitions/Catalog" - } - } - ], - "operationId": "Catalogs_CreateOrUpdate", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Catalog" - } - }, - "201": { - "description": "Accepted. Operation will complete asynchronously.", - "schema": { - "$ref": "#/definitions/Catalog" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "x-ms-examples": { - "Catalogs_CreateOrUpdateGitHub": { - "$ref": "./examples/Catalogs_CreateGitHub.json" - }, - "Catalogs_CreateOrUpdateAdo": { - "$ref": "./examples/Catalogs_CreateAdo.json" - } - } - }, - "patch": { - "tags": [ - "Catalogs" - ], - "description": "Partially updates a catalog.", - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "name": "body", - "in": "body", - "description": "Updatable catalog properties.", - "required": true, - "schema": { - "$ref": "#/definitions/CatalogUpdate" - } - } - ], - "operationId": "Catalogs_Update", - "responses": { - "200": { - "description": "The resource was updated.", - "schema": { - "$ref": "#/definitions/Catalog" - } - }, - "202": { - "description": "The request will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "x-ms-examples": { - "Catalogs_Update": { - "$ref": "./examples/Catalogs_Patch.json" - } - } - }, - "delete": { - "tags": [ - "Catalogs" - ], - "description": "Deletes a catalog resource.", - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - } - ], - "operationId": "Catalogs_Delete", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "204": { - "description": "Resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Catalogs_Delete": { - "$ref": "./examples/Catalogs_Delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/getSyncErrorDetails": { - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - } - ], - "post": { - "tags": [ - "Catalogs" - ], - "description": "Gets catalog synchronization error details", - "operationId": "Catalogs_GetSyncErrorDetails", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/SyncErrorDetails" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Catalogs_GetSyncErrorDetails": { - "$ref": "./examples/Catalogs_GetSyncErrorDetails.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/sync": { - "post": { - "tags": [ - "Catalogs" - ], - "description": "Syncs templates for a template source.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - } - ], - "operationId": "Catalogs_Sync", - "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "x-ms-examples": { - "Catalogs_Sync": { - "$ref": "./examples/Catalogs_Sync.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/connect": { - "post": { - "tags": [ - "Catalogs" - ], - "description": "Connects a catalog to enable syncing.", - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - } - ], - "operationId": "Catalogs_Connect", - "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "x-ms-examples": { - "Catalogs_Connect": { - "$ref": "./examples/Catalogs_Connect.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes": { - "get": { - "tags": [ - "Environment Types" - ], - "description": "Lists environment types for the devcenter.", - "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/DevCenterNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "operationId": "EnvironmentTypes_ListByDevCenter", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/EnvironmentTypeListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "EnvironmentTypes_ListByDevCenter": { - "$ref": "./examples/EnvironmentTypes_List.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes/{environmentTypeName}": { - "get": { - "tags": [ - "Environment Types" - ], - "description": "Gets an environment type.", - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/EnvironmentTypeNameParameter" - } - ], - "operationId": "EnvironmentTypes_Get", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/EnvironmentType" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "EnvironmentTypes_Get": { - "$ref": "./examples/EnvironmentTypes_Get.json" - } - } - }, - "put": { - "tags": [ - "Environment Types" - ], - "description": "Creates or updates an environment type.", - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/EnvironmentTypeNameParameter" - }, - { - "name": "body", - "in": "body", - "description": "Represents an Environment Type.", - "required": true, - "schema": { - "$ref": "#/definitions/EnvironmentType" - } - } - ], - "operationId": "EnvironmentTypes_CreateOrUpdate", - "responses": { - "200": { - "description": "Succeeded", - "schema": { - "$ref": "#/definitions/EnvironmentType" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/EnvironmentType" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "EnvironmentTypes_CreateOrUpdate": { - "$ref": "./examples/EnvironmentTypes_Put.json" - } - } - }, - "patch": { - "tags": [ - "Environment Types" - ], - "description": "Partially updates an environment type.", - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/EnvironmentTypeNameParameter" - }, - { - "name": "body", - "in": "body", - "description": "Updatable environment type properties.", - "required": true, - "schema": { - "$ref": "#/definitions/EnvironmentTypeUpdate" - } - } - ], - "operationId": "EnvironmentTypes_Update", - "responses": { - "200": { - "description": "The resource was updated.", - "schema": { - "$ref": "#/definitions/EnvironmentType" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "EnvironmentTypes_Update": { - "$ref": "./examples/EnvironmentTypes_Patch.json" - } - } - }, - "delete": { - "tags": [ - "Environment Types" - ], - "description": "Deletes an environment type.", - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/EnvironmentTypeNameParameter" - } - ], - "operationId": "EnvironmentTypes_Delete", - "responses": { - "200": { - "description": "Resource was deleted." - }, - "204": { - "description": "Resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "EnvironmentTypes_Delete": { - "$ref": "./examples/EnvironmentTypes_Delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/allowedEnvironmentTypes": { - "get": { - "tags": [ - "Environment Types" - ], - "description": "Lists allowed environment types for a project.", - "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/ProjectNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "operationId": "ProjectAllowedEnvironmentTypes_List", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/AllowedEnvironmentTypeListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ProjectAllowedEnvironmentTypes_List": { - "$ref": "./examples/ProjectAllowedEnvironmentTypes_List.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/allowedEnvironmentTypes/{environmentTypeName}": { - "get": { - "tags": [ - "Environment Types" - ], - "description": "Gets an allowed environment type.", - "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/ProjectNameParameter" - }, - { - "$ref": "#/parameters/EnvironmentTypeNameParameter" - } - ], - "operationId": "ProjectAllowedEnvironmentTypes_Get", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/AllowedEnvironmentType" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ProjectAllowedEnvironmentTypes_Get": { - "$ref": "./examples/ProjectAllowedEnvironmentTypes_Get.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/environmentTypes": { - "get": { - "tags": [ - "Environment Types" - ], - "description": "Lists environment types for a project.", - "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/ProjectNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "operationId": "ProjectEnvironmentTypes_List", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ProjectEnvironmentTypeListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ProjectEnvironmentTypes_List": { - "$ref": "./examples/ProjectEnvironmentTypes_List.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/environmentTypes/{environmentTypeName}": { - "get": { - "tags": [ - "Environment Types" - ], - "description": "Gets a project environment type.", - "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/ProjectNameParameter" - }, - { - "$ref": "#/parameters/EnvironmentTypeNameParameter" - } - ], - "operationId": "ProjectEnvironmentTypes_Get", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ProjectEnvironmentType" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ProjectEnvironmentTypes_Get": { - "$ref": "./examples/ProjectEnvironmentTypes_Get.json" - } - } - }, - "put": { - "tags": [ - "Environment Types" - ], - "description": "Creates or updates a project environment type.", - "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/ProjectNameParameter" - }, - { - "$ref": "#/parameters/EnvironmentTypeNameParameter" - }, - { - "name": "body", - "in": "body", - "description": "Represents a Project Environment Type.", - "required": true, - "schema": { - "$ref": "#/definitions/ProjectEnvironmentType" - } - } - ], - "operationId": "ProjectEnvironmentTypes_CreateOrUpdate", - "responses": { - "200": { - "description": "Succeeded", - "schema": { - "$ref": "#/definitions/ProjectEnvironmentType" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/ProjectEnvironmentType" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ProjectEnvironmentTypes_CreateOrUpdate": { - "$ref": "./examples/ProjectEnvironmentTypes_Put.json" - } - } - }, - "patch": { - "tags": [ - "Environment Types" - ], - "description": "Partially updates a project environment type.", - "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/ProjectNameParameter" - }, - { - "$ref": "#/parameters/EnvironmentTypeNameParameter" - }, - { - "name": "body", - "in": "body", - "description": "Updatable project environment type properties.", - "required": true, - "schema": { - "$ref": "#/definitions/ProjectEnvironmentTypeUpdate" - } - } - ], - "operationId": "ProjectEnvironmentTypes_Update", - "responses": { - "200": { - "description": "The resource was updated.", - "schema": { - "$ref": "#/definitions/ProjectEnvironmentType" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ProjectEnvironmentTypes_Update": { - "$ref": "./examples/ProjectEnvironmentTypes_Patch.json" - } - } - }, - "delete": { - "tags": [ - "Environment Types" - ], - "description": "Deletes a project environment type.", - "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/ProjectNameParameter" - }, - { - "$ref": "#/parameters/EnvironmentTypeNameParameter" - } - ], - "operationId": "ProjectEnvironmentTypes_Delete", - "responses": { - "200": { - "description": "Resource was deleted." - }, - "204": { - "description": "Resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ProjectEnvironmentTypes_Delete": { - "$ref": "./examples/ProjectEnvironmentTypes_Delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions": { - "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/DevCenterNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "get": { - "tags": [ - "Dev Box Definitions" - ], - "description": "List Dev Box definitions for a devcenter.", - "operationId": "DevBoxDefinitions_ListByDevCenter", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevBoxDefinitionListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "DevBoxDefinitions_ListByDevCenter": { - "$ref": "./examples/DevBoxDefinitions_ListByDevCenter.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}": { - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/DevBoxDefinitionName" - } - ], - "get": { - "tags": [ - "Dev Box Definitions" - ], - "description": "Gets a Dev Box definition", - "operationId": "DevBoxDefinitions_Get", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevBoxDefinition" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "DevBoxDefinitions_Get": { - "$ref": "./examples/DevBoxDefinitions_Get.json" - } - } - }, - "put": { - "tags": [ - "Dev Box Definitions" - ], - "description": "Creates or updates a Dev Box definition.", - "operationId": "DevBoxDefinitions_CreateOrUpdate", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Represents a Dev Box definition.", - "required": true, - "schema": { - "$ref": "#/definitions/DevBoxDefinition" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevBoxDefinition" - } - }, - "201": { - "description": "Created. The operation will complete asynchronously.", - "schema": { - "$ref": "#/definitions/DevBoxDefinition" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "DevBoxDefinitions_Create": { - "$ref": "./examples/DevBoxDefinitions_Create.json" - } - } - }, - "patch": { - "tags": [ - "Dev Box Definitions" - ], - "description": "Partially updates a Dev Box definition.", - "operationId": "DevBoxDefinitions_Update", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Represents a Dev Box definition.", - "required": true, - "schema": { - "$ref": "#/definitions/DevBoxDefinitionUpdate" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevBoxDefinition" - } - }, - "202": { - "description": "Accepted. The operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "DevBoxDefinitions_Patch": { - "$ref": "./examples/DevBoxDefinitions_Patch.json" - } - } - }, - "delete": { - "tags": [ - "Dev Box Definitions" - ], - "description": "Deletes a Dev Box definition", - "operationId": "DevBoxDefinitions_Delete", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "parameters": [], - "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "204": { - "description": "Resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "DevBoxDefinitions_Delete": { - "$ref": "./examples/DevBoxDefinitions_Delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/devboxdefinitions": { - "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/ProjectNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "get": { - "tags": [ - "Dev Box Definitions" - ], - "description": "List Dev Box definitions configured for a project.", - "operationId": "DevBoxDefinitions_ListByProject", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevBoxDefinitionListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "DevBoxDefinitions_ListByProject": { - "$ref": "./examples/DevBoxDefinitions_ListByProject.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/devboxdefinitions/{devBoxDefinitionName}": { - "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/ProjectNameParameter" - }, - { - "$ref": "#/parameters/DevBoxDefinitionName" - } - ], - "get": { - "tags": [ - "Dev Box Definitions" - ], - "description": "Gets a Dev Box definition configured for a project", - "operationId": "DevBoxDefinitions_GetByProject", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevBoxDefinition" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "DevBoxDefinitions_GetByProject": { - "$ref": "./examples/DevBoxDefinitions_GetByProject.json" - } - } - } - }, - "/providers/Microsoft.DevCenter/operations": { - "get": { - "tags": [ - "Operations" - ], - "description": "Lists all of the available resource provider operations.", - "operationId": "Operations_List", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" - } - }, - "default": { - "description": "Resource Provider error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Operations_Get": { - "$ref": "./examples/Operations_Get.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/locations/{location}/operationStatuses/{operationId}": { - "get": { - "description": "Gets the current status of an async operation.", - "operationId": "OperationStatuses_Get", - "summary": "Get Operation Status", - "tags": [ - "OperationStatus" - ], - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - }, - { - "$ref": "#/parameters/OperationIdParameter" - } - ], - "responses": { - "200": { - "description": "The requested operation status", - "schema": { - "$ref": "#/definitions/OperationStatus" - } - }, - "202": { - "description": "The requested operation status", - "headers": { - "Location": { - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/OperationStatus" - } - }, - "default": { - "description": "Resource Provider error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get OperationStatus": { - "$ref": "./examples/OperationStatus_Get.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/locations/{location}/usages": { - "get": { - "operationId": "Usages_ListByLocation", - "description": "Lists the current usages and limits in this location for the provided subscription.", - "tags": [ - "Usages" - ], - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - } - ], - "responses": { - "200": { - "description": "The request was successful; a list of usages is returned", - "schema": { - "$ref": "#/definitions/ListUsagesResult" - } - }, - "default": { - "description": "The default error response.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "listUsages": { - "$ref": "./examples/Usages_ListByLocation.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/checkNameAvailability": { - "post": { - "tags": [ - "CheckNameAvailability" - ], - "operationId": "CheckNameAvailability_Execute", - "x-ms-examples": { - "NameAvailability": { - "$ref": "./examples/CheckNameAvailability.json" - } - }, - "description": "Check the availability of name for resource", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "nameAvailabilityRequest", - "in": "body", - "required": true, - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityRequest" - }, - "description": "The required parameters for checking if resource name is available." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityResponse" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/checkScopedNameAvailability": { - "post": { - "tags": [ - "CheckScopedNameAvailability" - ], - "operationId": "CheckScopedNameAvailability_Execute", - "x-ms-examples": { - "DevcenterCatalogNameAvailability": { - "$ref": "./examples/CheckScopedNameAvailability_DevCenterCatalog.json" - }, - "ProjectCatalogNameAvailability": { - "$ref": "./examples/CheckScopedNameAvailability_ProjectCatalog.json" - } - }, - "description": "Check the availability of name for resource", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "nameAvailabilityRequest", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CheckScopedNameAvailabilityRequest" - }, - "description": "The required parameters for checking if resource name is available." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityResponse" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks": { - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "get": { - "tags": [ - "Customization Tasks" - ], - "description": "List Tasks in the catalog.", - "operationId": "CustomizationTasks_ListByCatalog", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/CustomizationTaskListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "CustomizationTasks_ListByCatalog": { - "$ref": "./examples/CustomizationTasks_ListByCatalog.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks/{taskName}": { - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/CustomizationTaskNameParameter" - } - ], - "get": { - "tags": [ - "Customization Tasks" - ], - "description": "Gets a Task from the catalog", - "operationId": "CustomizationTasks_Get", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/CustomizationTask" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "CustomizationTasks_Get": { - "$ref": "./examples/CustomizationTasks_Get.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks/{taskName}/getErrorDetails": { - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/CustomizationTaskNameParameter" - } - ], - "post": { - "tags": [ - "Customization Tasks" - ], - "description": "Gets Customization Task error details", - "operationId": "CustomizationTasks_GetErrorDetails", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "vdi.json#/definitions/CatalogResourceValidationErrorDetails" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "CustomizationTasks_GetErrorDetails": { - "$ref": "./examples/CustomizationTasks_GetErrorDetails.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions": { - "get": { - "tags": [ - "Environment Definitions" - ], - "description": "List environment definitions in the catalog.", - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "operationId": "EnvironmentDefinitions_ListByCatalog", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/EnvironmentDefinitionListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "EnvironmentDefinitions_ListByCatalog": { - "$ref": "./examples/EnvironmentDefinitions_ListByCatalog.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}": { - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/EnvironmentDefinitionNameParameter" - } - ], - "get": { - "tags": [ - "Environment Definitions" - ], - "description": "Gets an environment definition from the catalog.", - "operationId": "EnvironmentDefinitions_Get", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/EnvironmentDefinition" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "EnvironmentDefinitions_Get": { - "$ref": "./examples/EnvironmentDefinitions_Get.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}/getErrorDetails": { - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/EnvironmentDefinitionNameParameter" - } - ], - "post": { - "tags": [ - "Environment Definitions" - ], - "description": "Gets Environment Definition error details", - "operationId": "EnvironmentDefinitions_GetErrorDetails", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "vdi.json#/definitions/CatalogResourceValidationErrorDetails" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "EnvironmentDefinitions_GetErrorDetails": { - "$ref": "./examples/EnvironmentDefinitions_GetErrorDetails.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions": { - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "get": { - "tags": [ - "Image Definitions" - ], - "description": "List Image Definitions in the catalog.", - "operationId": "DevCenterCatalogImageDefinitions_ListByDevCenterCatalog", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ImageDefinitionListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "ImageDefinitions_ListByDevCenterCatalog": { - "$ref": "./examples/ImageDefinitions_ListByDevCenterCatalog.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}": { - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionNameParameter" - } - ], - "get": { - "tags": [ - "Image Definitions" - ], - "description": "Gets an Image Definition from the catalog", - "operationId": "DevCenterCatalogImageDefinitions_GetByDevCenterCatalog", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ImageDefinition" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ImageDefinitions_GetByDevCenterCatalog": { - "$ref": "./examples/ImageDefinitions_GetByDevCenterCatalog.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/getErrorDetails": { - "post": { - "tags": [ - "Image Definitions" - ], - "description": "Gets Image Definition error details", - "operationId": "DevCenterCatalogImageDefinitions_GetErrorDetails", - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionNameParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "vdi.json#/definitions/CatalogResourceValidationErrorDetails" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "DevCenterImageDefinitions_GetErrorDetails": { - "$ref": "./examples/DevCenterImageDefinitions_GetErrorDetails.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/buildImage": { - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionNameParameter" - } - ], - "post": { - "tags": [ - "Image Definitions" - ], - "description": "Builds an image for the specified Image Definition.", - "operationId": "DevCenterCatalogImageDefinitions_BuildImage", - "parameters": [], - "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Azure-AsyncOperation": { - "type": "string" - }, - "Location": { - "type": "string" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "x-ms-examples": { - "DevCenterCatalogImageDefinitions_BuildImage": { - "$ref": "./examples/DevCenterImageDefinitions_BuildImage.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds": { - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionNameParameter" - } - ], - "get": { - "tags": [ - "Image Definitions" - ], - "description": "Lists builds for a specified image definition.", - "operationId": "DevCenterCatalogImageDefinitionBuilds_ListByImageDefinition", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ImageDefinitionBuildListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "DevCenterImageDefinitionBuilds_ListByImageDefinition": { - "$ref": "./examples/DevCenterImageDefinitions_ListImageBuildsByImageDefinition.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds/{buildName}": { - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionBuildNameParameter" - } - ], - "get": { - "tags": [ - "Image Definitions" - ], - "description": "Gets a build for a specified image definition.", - "operationId": "DevCenterCatalogImageDefinitionBuild_Get", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ImageDefinitionBuild" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "DevCenterImageDefinitionBuilds_GetByImageDefinition": { - "$ref": "./examples/DevCenterImageDefinitions_GetImageBuild.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds/{buildName}/cancel": { - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionBuildNameParameter" - } - ], - "post": { - "tags": [ - "Image Definitions" - ], - "description": "Cancels the specified build for an image definition.", - "operationId": "DevCenterCatalogImageDefinitionBuild_Cancel", - "parameters": [], - "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Azure-AsyncOperation": { - "type": "string" - }, - "Location": { - "type": "string" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "x-ms-examples": { - "DevCenterImageDefinitionBuilds_CancelByImageDefinition": { - "$ref": "./examples/DevCenterImageDefinitions_CancelImageBuild.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds/{buildName}/getBuildDetails": { - "post": { - "tags": [ - "Image Definitions" - ], - "description": "Gets Build details", - "operationId": "DevCenterCatalogImageDefinitionBuild_GetBuildDetails", - "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/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionBuildNameParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ImageDefinitionBuildDetails" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "DevCenterCatalogImageDefinitionBuild_GetErrorDetails": { - "$ref": "./examples/DevCenterImageDefinitions_GetImageBuildDetails.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions": { - "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/ProjectNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "get": { - "tags": [ - "Image Definitions" - ], - "description": "List Image Definitions in the catalog.", - "operationId": "ProjectCatalogImageDefinitions_ListByProjectCatalog", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ImageDefinitionListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "ImageDefinitions_ListByProjectCatalog": { - "$ref": "./examples/ImageDefinitions_ListByProjectCatalog.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}": { - "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/ProjectNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionNameParameter" - } - ], - "get": { - "tags": [ - "Image Definitions" - ], - "description": "Gets an Image Definition from the catalog", - "operationId": "ProjectCatalogImageDefinitions_GetByProjectCatalog", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ImageDefinition" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ImageDefinitions_GetByProjectCatalog": { - "$ref": "./examples/ImageDefinitions_GetByProjectCatalog.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/getErrorDetails": { - "post": { - "tags": [ - "Image Definitions" - ], - "description": "Gets Image Definition error details", - "operationId": "ProjectCatalogImageDefinitions_GetErrorDetails", - "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/ProjectNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionNameParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "vdi.json#/definitions/CatalogResourceValidationErrorDetails" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ProjectCatalogImageDefinitions_GetErrorDetails": { - "$ref": "./examples/ProjectCatalogImageDefinitions_GetErrorDetails.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/buildImage": { - "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/ProjectNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionNameParameter" - } - ], - "post": { - "tags": [ - "Image Definitions" - ], - "description": "Builds an image for the specified Image Definition.", - "operationId": "ProjectCatalogImageDefinitions_BuildImage", - "parameters": [], - "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Azure-AsyncOperation": { - "type": "string" - }, - "Location": { - "type": "string" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "x-ms-examples": { - "ProjectCatalogImageDefinitions_BuildImage": { - "$ref": "./examples/ImageDefinitions_BuildImage.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds": { - "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/ProjectNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionNameParameter" - } - ], - "get": { - "tags": [ - "Image Definitions" - ], - "description": "Lists builds for a specified image definition.", - "operationId": "ProjectCatalogImageDefinitionBuilds_ListByImageDefinition", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ImageDefinitionBuildListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ImageDefinitionBuilds_ListByImageDefinition": { - "$ref": "./examples/ImageDefinitions_ListImageBuildsByImageDefinition.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds/{buildName}": { - "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/ProjectNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionBuildNameParameter" - } - ], - "get": { - "tags": [ - "Image Definitions" - ], - "description": "Gets a build for a specified image definition.", - "operationId": "ProjectCatalogImageDefinitionBuild_Get", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ImageDefinitionBuild" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ImageDefinitionBuilds_GetByImageDefinition": { - "$ref": "./examples/ImageDefinitions_GetImageBuild.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds/{buildName}/cancel": { - "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/ProjectNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionBuildNameParameter" - } - ], - "post": { - "tags": [ - "Image Definitions" - ], - "description": "Cancels the specified build for an image definition.", - "operationId": "ProjectCatalogImageDefinitionBuild_Cancel", - "parameters": [], - "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Azure-AsyncOperation": { - "type": "string" - }, - "Location": { - "type": "string" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "x-ms-examples": { - "ImageDefinitionBuilds_CancelByImageDefinition": { - "$ref": "./examples/ImageDefinitions_CancelImageBuild.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds/{buildName}/getBuildDetails": { - "post": { - "tags": [ - "Image Definitions" - ], - "description": "Gets Build details", - "operationId": "ProjectCatalogImageDefinitionBuild_GetBuildDetails", - "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/ProjectNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionBuildNameParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ImageDefinitionBuildDetails" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ProjectCatalogImageDefinitionBuild_GetErrorDetails": { - "$ref": "./examples/ImageDefinitions_GetImageBuildDetails.json" - } - } - } - } - }, - "definitions": { - "DevCenter": { - "type": "object", - "description": "Represents a devcenter resource.", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "description": "DevCenter properties", - "x-ms-client-flatten": true, - "$ref": "#/definitions/DevCenterProperties" - }, - "identity": { - "description": "Managed identity properties", - "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity" - } - } - }, - "DevCenterProperties": { - "description": "Properties of the devcenter.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/DevCenterUpdateProperties" - } - ], - "properties": { - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", - "readOnly": true - }, - "devCenterUri": { - "description": "The URI of the Dev Center.", - "$ref": "#/definitions/DevCenterUri", - "readOnly": true - } - } - }, - "DevCenterUpdateProperties": { - "description": "Properties of the devcenter. These properties can be updated after the resource has been created.", - "type": "object", - "properties": { - "encryption": { - "$ref": "#/definitions/Encryption", - "description": "Encryption settings to be used for server-side encryption for proprietary content (such as catalogs, logs, customizations)." - }, - "displayName": { - "type": "string", - "description": "The display name of the devcenter." - }, - "projectCatalogSettings": { - "$ref": "#/definitions/DevCenterProjectCatalogSettings", - "description": "Dev Center settings to be used when associating a project with a catalog." - }, - "networkSettings": { - "$ref": "#/definitions/DevCenterNetworkSettings", - "description": "Network settings that will be enforced on network resources associated with the Dev Center." - }, - "devBoxProvisioningSettings": { - "$ref": "#/definitions/DevBoxProvisioningSettings", - "description": "Settings to be used in the provisioning of all Dev Boxes that belong to this dev center." - } - } - }, - "DevCenterEncryptionSet": { - "description": "Represents a devcenter encryption set resource.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/DevCenterEncryptionSetProperties", - "description": "Properties of a devcenter encryption set." - }, - "identity": { - "description": "Managed identity properties", - "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity" - } - } - }, - "DevCenterEncryptionSetProperties": { - "description": "Properties of the devcenter encryption set.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/DevCenterEncryptionSetUpdateProperties" - } - ], - "properties": { - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", - "readOnly": true - } - } - }, - "DevCenterEncryptionSetUpdateProperties": { - "description": "Properties of the devcenter encryption set. These properties can be updated after the resource has been created.", - "type": "object", - "properties": { - "devboxDisksEncryptionEnableStatus": { - "description": "Devbox disk encryption enable or disable status. Indicates if Devbox disks encryption using DevCenter CMK is enabled or not.", - "$ref": "#/definitions/DevboxDisksEncryptionEnableStatus" - }, - "keyEncryptionKeyUrl": { - "type": "string", - "format": "uri", - "description": "Key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek." - }, - "keyEncryptionKeyIdentity": { - "type": "object", - "description": "The managed identity configuration used for key vault access.", - "properties": { - "type": { - "$ref": "#/definitions/CmkIdentityType", - "description": "The type of managed identity to use for key vault access." - }, - "userAssignedIdentityResourceId": { - "type": "string", - "description": "For system assigned identity, this will be null. For user assigned identity, this should be the resource ID of the identity." - } - } - } - } - }, - "CmkIdentityType": { - "description": "The type of identity used to access the key vault key.", - "enum": [ - "SystemAssigned", - "UserAssigned" - ], - "type": "string", - "x-ms-enum": { - "name": "CmkIdentityType", - "modelAsString": true - } - }, - "DevboxDisksEncryptionEnableStatus": { - "description": "Devbox disk encryption enable or disable status. Indicates if Devbox disks encryption is enabled or not.", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "DevboxDisksEncryptionEnableStatus", - "modelAsString": true - } - }, - "DevCenterProjectCatalogSettings": { - "type": "object", - "description": "Project catalog settings for project catalogs under a project associated to this dev center.", - "properties": { - "catalogItemSyncEnableStatus": { - "description": "Whether project catalogs associated with projects in this dev center can be configured to sync catalog items.", - "$ref": "#/definitions/CatalogItemSyncEnableStatus" - } - } - }, - "DevCenterResourceType": { - "description": "Indicates dev center resource types.", - "enum": [ - "Images", - "AttachedNetworks", - "Skus" - ], - "type": "string", - "x-ms-enum": { - "name": "DevCenterResourceType", - "modelAsString": true - } - }, - "DevBoxProvisioningSettings": { - "type": "object", - "description": "Provisioning settings that apply to all Dev Boxes created in this dev center", - "properties": { - "installAzureMonitorAgentEnableStatus": { - "description": "Whether project catalogs associated with projects in this dev center can be configured to sync catalog items.", - "$ref": "#/definitions/InstallAzureMonitorAgentEnableStatus" - } - } - }, - "CatalogItemSyncEnableStatus": { - "description": "Catalog item sync types enable or disable status. Indicates whether project catalogs are allowed to sync catalog items under projects associated to this dev center.", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "CatalogItemSyncEnableStatus", - "modelAsString": true - } - }, - "DevCenterNetworkSettings": { - "type": "object", - "description": "Network settings for the Dev Center.", - "properties": { - "microsoftHostedNetworkEnableStatus": { - "$ref": "#/definitions/MicrosoftHostedNetworkEnableStatus" - } - } - }, - "ProjectNetworkSettings": { - "type": "object", - "description": "Network settings for the project.", - "properties": { - "microsoftHostedNetworkEnableStatus": { - "$ref": "#/definitions/MicrosoftHostedNetworkEnableStatus", - "readOnly": true - } - } - }, - "MicrosoftHostedNetworkEnableStatus": { - "description": "Indicates whether pools in this Dev Center can use Microsoft Hosted Networks. Defaults to Enabled if not set.", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "MicrosoftHostedNetworkEnableStatus", - "modelAsString": true - } - }, - "UserCustomizationsEnableStatus": { - "description": "Indicates whether user customizations are enabled.", - "enum": [ - "Disabled", - "Enabled" - ], - "type": "string", - "x-ms-enum": { - "name": "UserCustomizationsEnableStatus", - "modelAsString": true - } - }, - "DevBoxDeleteMode": { - "description": "Indicates possible values for Dev Box delete mode.", - "enum": [ - "Manual", - "Auto" - ], - "type": "string", - "x-ms-enum": { - "name": "DevBoxDeleteMode", - "modelAsString": true, - "values": [ - { - "value": "Manual", - "description": "Dev Boxes will not be deleted automatically, and user must manually delete. This is the default." - }, - { - "value": "Auto", - "description": "Dev Boxes will be deleted automatically according to configured settings." - } - ] - } - }, - "AzureAiServicesMode": { - "description": "Indicates whether Azure AI services are enabled for a project.", - "enum": [ - "Disabled", - "AutoDeploy" - ], - "type": "string", - "x-ms-enum": { - "name": "AzureAiServicesMode", - "modelAsString": true, - "values": [ - { - "value": "Disabled", - "description": "Azure AI services are disabled for this project." - }, - { - "value": "AutoDeploy", - "description": "Azure AI services are enabled for this project and necessary resources will be automatically setup." - } - ] - } - }, - "Encryption": { - "type": "object", - "properties": { - "customerManagedKeyEncryption": { - "$ref": "../../../../../common-types/resource-management/v4/customermanagedkeys.json#/definitions/customerManagedKeyEncryption" - } - } - }, - "InstallAzureMonitorAgentEnableStatus": { - "description": "Setting to be used when determining whether to install the Azure Monitor Agent service on Dev Boxes that belong to this dev center.", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "InstallAzureMonitorAgentEnableStatus", - "modelAsString": true - } - }, - "DevCenterUpdate": { - "description": "The devcenter resource for partial updates. Properties not provided in the update request will not be changed.", - "type": "object", - "allOf": [ - { - "$ref": "commonDefinitions.json#/definitions/TrackedResourceUpdate" - } - ], - "properties": { - "identity": { - "description": "Managed identity properties", - "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity" - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/DevCenterUpdateProperties", - "description": "Properties of a Dev Center to be updated." - } - } - }, - "EncryptionSetUpdate": { - "description": "The devcenter encryption set resource for partial updates. Properties not provided in the update request will not be changed.", - "type": "object", - "allOf": [ - { - "$ref": "commonDefinitions.json#/definitions/TrackedResourceUpdate" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/DevCenterEncryptionSetUpdateProperties", - "description": "Properties of a Dev Center encryption set to be updated." - }, - "identity": { - "description": "Managed identity properties", - "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity" - } - } - }, - "DevCenterListResult": { - "description": "Result of the list devcenters operation", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/DevCenter" - } - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "EncryptionSetListResult": { - "description": "Result of the list devcenter encryption set operation", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/DevCenterEncryptionSet" - } - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "DevCenterUri": { - "description": "The URI of the resource.", - "readOnly": true, - "type": "string" - }, - "Project": { - "description": "Represents a project resource.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ProjectProperties", - "description": "Properties of a project." - }, - "identity": { - "description": "Managed identity properties", - "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity" - } - } - }, - "ProjectUpdateProperties": { - "description": "Properties of a project. These properties can be updated after the resource has been created.", - "type": "object", - "properties": { - "devCenterId": { - "type": "string", - "description": "Resource Id of an associated DevCenter" - }, - "description": { - "type": "string", - "description": "Description of the project." - }, - "maxDevBoxesPerUser": { - "type": "integer", - "format": "int32", - "minimum": 0, - "description": "When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. This will have no effect on existing Dev Boxes when reduced." - }, - "displayName": { - "type": "string", - "description": "The display name of the project." - }, - "catalogSettings": { - "$ref": "#/definitions/ProjectCatalogSettings", - "description": "Settings to be used when associating a project with a catalog." - }, - "customizationSettings": { - "$ref": "#/definitions/ProjectCustomizationSettings", - "description": "Settings to be used for customizations." - }, - "devBoxAutoDeleteSettings": { - "description": "Dev Box Auto Delete settings.", - "$ref": "#/definitions/DevBoxAutoDeleteSettings" - }, - "azureAiServicesSettings": { - "description": "Indicates whether Azure AI services are enabled for a project.", - "$ref": "#/definitions/AzureAiServicesSettings" - }, - "serverlessGpuSessionsSettings": { - "$ref": "#/definitions/ServerlessGpuSessionsSettings", - "description": "Settings to be used for serverless GPU." - }, - "workspaceStorageSettings": { - "description": "Settings to be used for workspace storage.", - "$ref": "#/definitions/WorkspaceStorageSettings" - } - } - }, - "ProjectCatalogSettings": { - "description": "Settings to be used when associating a project with a catalog.", - "type": "object", - "properties": { - "catalogItemSyncTypes": { - "description": "Indicates catalog item types that can be synced.", - "type": "array", - "items": { - "$ref": "#/definitions/CatalogItemType" - } - } - } - }, - "ProjectCustomizationManagedIdentity": { - "description": "A reference to a Managed Identity that is attached to the Project.", - "type": "object", - "properties": { - "identityType": { - "type": "string", - "enum": [ - "systemAssignedIdentity", - "userAssignedIdentity" - ], - "x-ms-enum": { - "name": "ProjectCustomizationIdentityType", - "modelAsString": true - }, - "description": "Values can be systemAssignedIdentity or userAssignedIdentity" - }, - "identityResourceId": { - "type": "string", - "format": "arm-id", - "description": "Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity." - } - } - }, - "ProjectCustomizationSettings": { - "description": "Settings to be used for customizations.", - "type": "object", - "properties": { - "identities": { - "description": "The identities that can to be used in customization scenarios; e.g., to clone a repository.", - "type": "array", - "items": { - "$ref": "#/definitions/ProjectCustomizationManagedIdentity" - } - }, - "userCustomizationsEnableStatus": { - "description": "Indicates whether user customizations are enabled.", - "$ref": "#/definitions/UserCustomizationsEnableStatus" - } - } - }, - "ServerlessGpuSessionsSettings": { - "description": "Represents settings for serverless GPU access.", - "type": "object", - "properties": { - "serverlessGpuSessionsMode": { - "description": "The property indicates whether serverless GPU access is enabled on the project.", - "$ref": "#/definitions/ServerlessGpuSessionsMode" - }, - "maxConcurrentSessionsPerProject": { - "type": "integer", - "format": "int32", - "minimum": 1, - "description": "When specified, limits the maximum number of concurrent sessions across all pools in the project." - } - } - }, - "WorkspaceStorageSettings": { - "description": "Settings to be used for workspace storage.", - "type": "object", - "properties": { - "workspaceStorageMode": { - "description": "Indicates whether workspace storage is enabled.", - "$ref": "#/definitions/WorkspaceStorageMode" - } - } - }, - "ServerlessGpuSessionsMode": { - "description": "Indicates whether serverless GPU session access is enabled.", - "enum": [ - "Disabled", - "AutoDeploy" - ], - "type": "string", - "x-ms-enum": { - "name": "ServerlessGpuSessionsMode", - "modelAsString": true, - "values": [ - { - "value": "Disabled", - "description": "Serverless GPU session access is disabled." - }, - { - "value": "AutoDeploy", - "description": "Serverless GPU session access is enabled and necessary resources will be automatically setup." - } - ] - } - }, - "WorkspaceStorageMode": { - "description": "Indicates whether workspace storage is enabled.", - "enum": [ - "Disabled", - "AutoDeploy" - ], - "type": "string", - "x-ms-enum": { - "name": "WorkspaceStorageMode", - "modelAsString": true, - "values": [ - { - "value": "Disabled", - "description": "Workspace storage is disabled." - }, - { - "value": "AutoDeploy", - "description": "Workspace storage is enabled and necessary resources will be automatically setup." - } - ] - } - }, - "ProjectProperties": { - "description": "Properties of a project.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/ProjectUpdateProperties" - } - ], - "properties": { - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", - "readOnly": true - }, - "devCenterUri": { - "description": "The URI of the Dev Center resource this project is associated with.", - "$ref": "#/definitions/DevCenterUri", - "readOnly": true - } - } - }, - "ProjectUpdate": { - "description": "The project properties for partial update. Properties not provided in the update request will not be changed.", - "type": "object", - "allOf": [ - { - "$ref": "commonDefinitions.json#/definitions/TrackedResourceUpdate" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ProjectUpdateProperties", - "description": "Properties of a project to be updated." - }, - "identity": { - "description": "Managed identity properties", - "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity" - } - } - }, - "ProjectListResult": { - "description": "Results of the project list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/Project" - } - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "InheritedSettingsForProject": { - "description": "Applicable inherited settings for a project.", - "type": "object", - "properties": { - "projectCatalogSettings": { - "$ref": "#/definitions/DevCenterProjectCatalogSettings", - "description": "Dev Center settings to be used when associating a project with a catalog.", - "readOnly": true - }, - "networkSettings": { - "$ref": "#/definitions/ProjectNetworkSettings", - "description": "Network settings that will be enforced on this project.", - "readOnly": true - } - } - }, - "ResourcePolicy": { - "description": "A resource policy.", - "type": "object", - "properties": { - "resources": { - "description": "Resources that are included and shared as a part of a project policy.", - "type": "string" - }, - "filter": { - "description": "Optional. When specified, this expression is used to filter the resources.", - "type": "string" - }, - "action": { - "description": "Policy action to be taken on the resources. This is optional, and defaults to allow", - "$ref": "#/definitions/PolicyAction" - }, - "resourceType": { - "description": "Optional. The resource type being restricted or allowed by a project policy. Used with a given action to restrict or allow access to a resource type.", - "$ref": "#/definitions/DevCenterResourceType" - } - } - }, - "PolicyAction": { - "description": "Indicates what action to perform for the policy.", - "enum": [ - "Allow", - "Deny" - ], - "type": "string", - "x-ms-enum": { - "name": "PolicyAction", - "modelAsString": true - } - }, - "ProjectPolicyListResult": { - "description": "Results of the project policy list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/ProjectPolicy" - } - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "ProjectPolicy": { - "description": "Represents an project policy resource.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ProjectPolicyProperties", - "description": "Properties of an project policy." - } - } - }, - "ProjectPolicyProperties": { - "description": "Properties of an project policy.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/ProjectPolicyUpdateProperties" - } - ], - "properties": { - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", - "readOnly": true - } - } - }, - "ProjectPolicyUpdateProperties": { - "description": "Properties of an project policy. These properties can be updated after the resource has been created.", - "type": "object", - "properties": { - "resourcePolicies": { - "description": "Resource policies that are a part of this project policy.", - "type": "array", - "items": { - "$ref": "#/definitions/ResourcePolicy" - } - }, - "scopes": { - "description": "Resources that have access to the shared resources that are a part of this project policy.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "ProjectPolicyUpdate": { - "description": "The project policy properties for partial update. Properties not provided in the update request will not be changed.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ProjectPolicyUpdateProperties", - "description": "Properties of an project policy to be updated." - } - } - }, - "DevBoxAutoDeleteSettings": { - "description": "Settings controlling the auto deletion of inactive dev boxes.", - "type": "object", - "properties": { - "deleteMode": { - "description": "Indicates the delete mode for Dev Boxes within this project.", - "$ref": "#/definitions/DevBoxDeleteMode" - }, - "inactiveThreshold": { - "description": "ISO8601 duration required for the dev box to not be inactive prior to it being scheduled for deletion. ISO8601 format PT[n]H[n]M[n]S.", - "type": "string" - }, - "gracePeriod": { - "description": "ISO8601 duration required for the dev box to be marked for deletion prior to it being deleted. ISO8601 format PT[n]H[n]M[n]S.", - "type": "string" - } - } - }, - "AzureAiServicesSettings": { - "description": "Configures Azure AI related services for the project.", - "type": "object", - "properties": { - "azureAiServicesMode": { - "description": "The property indicates whether Azure AI services is enabled.", - "$ref": "#/definitions/AzureAiServicesMode" - } - } - }, - "Catalog": { - "description": "Represents a catalog.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/CatalogProperties", - "description": "Catalog properties." - } - } - }, - "CatalogUpdateProperties": { - "description": "Properties of a catalog. These properties can be updated after the resource has been created.", - "type": "object", - "properties": { - "gitHub": { - "description": "Properties for a GitHub catalog type.", - "$ref": "#/definitions/GitCatalog" - }, - "adoGit": { - "description": "Properties for an Azure DevOps catalog type.", - "$ref": "#/definitions/GitCatalog" - }, - "syncType": { - "enum": [ - "Manual", - "Scheduled" - ], - "description": "Indicates the type of sync that is configured for the catalog.", - "type": "string", - "x-ms-enum": { - "name": "CatalogSyncType", - "modelAsString": true - } - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-ms-mutability": [ - "read", - "create", - "update" - ], - "description": "Resource tags." - } - } - }, - "CatalogProperties": { - "description": "Properties of a catalog.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/CatalogUpdateProperties" - } - ], - "properties": { - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", - "readOnly": true - }, - "syncState": { - "enum": [ - "Succeeded", - "InProgress", - "Failed", - "Canceled" - ], - "description": "The synchronization state of the catalog.", - "readOnly": true, - "type": "string", - "x-ms-enum": { - "name": "CatalogSyncState", - "modelAsString": true - } - }, - "lastSyncStats": { - "description": "Stats of the latest synchronization.", - "$ref": "#/definitions/SyncStats", - "readOnly": true - }, - "connectionState": { - "enum": [ - "Connected", - "Disconnected" - ], - "description": "The connection state of the catalog.", - "readOnly": true, - "type": "string", - "x-ms-enum": { - "name": "CatalogConnectionState", - "modelAsString": true - } - }, - "lastConnectionTime": { - "description": "When the catalog was last connected.", - "type": "string", - "readOnly": true, - "format": "date-time" - }, - "lastSyncTime": { - "description": "When the catalog was last synced.", - "type": "string", - "readOnly": true, - "format": "date-time" - } - } - }, - "SyncStats": { - "description": "Stats of the synchronization.", - "type": "object", - "properties": { - "added": { - "description": "Count of catalog items added during synchronization.", - "type": "integer", - "format": "int32", - "readOnly": true, - "minimum": 0 - }, - "updated": { - "description": "Count of catalog items updated during synchronization.", - "type": "integer", - "format": "int32", - "readOnly": true, - "minimum": 0 - }, - "unchanged": { - "description": "Count of catalog items that were unchanged during synchronization.", - "type": "integer", - "format": "int32", - "readOnly": true, - "minimum": 0 - }, - "removed": { - "description": "Count of catalog items removed during synchronization.", - "type": "integer", - "format": "int32", - "readOnly": true, - "minimum": 0 - }, - "validationErrors": { - "description": "Count of catalog items that had validation errors during synchronization.", - "type": "integer", - "format": "int32", - "readOnly": true, - "minimum": 0 - }, - "synchronizationErrors": { - "description": "Count of synchronization errors that occured during synchronization.", - "type": "integer", - "format": "int32", - "readOnly": true, - "minimum": 0 - }, - "syncedCatalogItemTypes": { - "description": "Indicates catalog item types that were synced.", - "type": "array", - "items": { - "$ref": "#/definitions/CatalogItemType" - } - } - } - }, - "GitCatalog": { - "description": "Properties for a Git repository catalog.", - "type": "object", - "properties": { - "uri": { - "description": "Git URI.", - "type": "string" - }, - "branch": { - "description": "Git branch.", - "type": "string" - }, - "secretIdentifier": { - "description": "A reference to the Key Vault secret containing a security token to authenticate to a Git repository.", - "type": "string" - }, - "path": { - "description": "The folder where the catalog items can be found inside the repository.", - "type": "string" - } - } - }, - "CatalogUpdate": { - "description": "The catalog's properties for partial update. Properties not provided in the update request will not be changed.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/CatalogUpdateProperties", - "description": "Catalog properties for update." - } - } - }, - "CatalogListResult": { - "description": "Results of the catalog list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/Catalog" - } - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "SyncErrorDetails": { - "description": "Synchronization error details.", - "type": "object", - "properties": { - "operationError": { - "description": "Error information for the overall synchronization operation.", - "readOnly": true, - "$ref": "vdi.json#/definitions/CatalogErrorDetails" - }, - "conflicts": { - "description": "Catalog items that have conflicting names.", - "type": "array", - "items": { - "$ref": "#/definitions/CatalogConflictError" - }, - "x-ms-identifiers": [], - "readOnly": true - }, - "errors": { - "description": "Errors that occured during synchronization.", - "type": "array", - "items": { - "$ref": "#/definitions/CatalogSyncError" - }, - "x-ms-identifiers": [], - "readOnly": true - } - } - }, - "CatalogSyncError": { - "description": "An individual synchronization error.", - "type": "object", - "properties": { - "path": { - "description": "The path of the file the error is associated with.", - "type": "string", - "readOnly": true - }, - "errorDetails": { - "description": "Errors associated with the file.", - "type": "array", - "items": { - "$ref": "vdi.json#/definitions/CatalogErrorDetails" - }, - "x-ms-identifiers": [], - "readOnly": true - } - } - }, - "CatalogConflictError": { - "description": "An individual conflict error.", - "type": "object", - "properties": { - "path": { - "description": "The path of the file that has a conflicting name.", - "type": "string", - "readOnly": true - }, - "name": { - "description": "Name of the conflicting catalog item.", - "type": "string", - "readOnly": true - } - } - }, - "Gallery": { - "description": "Represents a gallery.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/GalleryProperties", - "description": "Gallery properties." - } - } - }, - "GalleryProperties": { - "description": "Properties of a gallery.", - "type": "object", - "properties": { - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", - "readOnly": true - }, - "galleryResourceId": { - "description": "The resource ID of the backing Azure Compute Gallery.", - "type": "string", - "x-ms-mutability": [ - "read", - "create" - ] - } - }, - "required": [ - "galleryResourceId" - ] - }, - "Image": { - "description": "Represents an image.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ImageProperties", - "description": "Image properties." - } - } - }, - "ImageProperties": { - "description": "Properties of an image.", - "type": "object", - "properties": { - "description": { - "description": "The description of the image.", - "type": "string", - "readOnly": true - }, - "publisher": { - "description": "The publisher of the image.", - "type": "string", - "readOnly": true - }, - "offer": { - "description": "The name of the image offer.", - "type": "string", - "readOnly": true - }, - "sku": { - "description": "The SKU name for the image.", - "type": "string", - "readOnly": true - }, - "recommendedMachineConfiguration": { - "description": "The recommended machine configuration to use with the image.", - "$ref": "#/definitions/RecommendedMachineConfiguration", - "readOnly": true - }, - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", - "readOnly": true - }, - "hibernateSupport": { - "description": "Indicates whether this image has hibernate enabled. Not all images are capable of supporting hibernation. To find out more see https://aka.ms/devbox/hibernate", - "readOnly": true, - "$ref": "#/definitions/HibernateSupport" - } - } - }, - "RecommendedMachineConfiguration": { - "description": "Properties for a recommended machine configuration.", - "type": "object", - "properties": { - "memory": { - "description": "Recommended memory range.", - "$ref": "#/definitions/ResourceRange", - "readOnly": true - }, - "vCPUs": { - "description": "Recommended vCPU range.", - "$ref": "#/definitions/ResourceRange", - "readOnly": true - } - } - }, - "ResourceRange": { - "description": "Properties for a range of values.", - "type": "object", - "properties": { - "min": { - "description": "Minimum value.", - "type": "integer", - "format": "int32", - "readOnly": true - }, - "max": { - "description": "Maximum value.", - "type": "integer", - "format": "int32", - "readOnly": true - } - } - }, - "ImageVersion": { - "description": "Represents an image version.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ImageVersionProperties", - "description": "Image version properties." - } - } - }, - "ImageVersionProperties": { - "description": "Properties of an image version.", - "type": "object", - "properties": { - "name": { - "description": "The semantic version string.", - "type": "string", - "readOnly": true - }, - "publishedDate": { - "description": "The datetime that the backing image version was published.", - "type": "string", - "readOnly": true, - "format": "date-time" - }, - "excludeFromLatest": { - "description": "If the version should be excluded from being treated as the latest version.", - "type": "boolean", - "readOnly": true - }, - "osDiskImageSizeInGb": { - "description": "The size of the OS disk image, in GB.", - "type": "integer", - "format": "int32", - "readOnly": true - }, - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", - "readOnly": true - } - } - }, - "GalleryListResult": { - "description": "Results of the gallery list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/Gallery" - } - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "ImageListResult": { - "description": "Results of the image list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/Image" - } - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "ImageVersionListResult": { - "description": "Results of the image version list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/ImageVersion" - } - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "AllowedEnvironmentType": { - "description": "Represents an allowed environment type.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/AllowedEnvironmentTypeProperties", - "description": "Properties of an allowed environment type." - } - } - }, - "AllowedEnvironmentTypeProperties": { - "description": "Properties of an allowed environment type.", - "type": "object", - "properties": { - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", - "readOnly": true - }, - "displayName": { - "description": "The display name of the allowed environment type.", - "type": "string", - "readOnly": true - } - } - }, - "AllowedEnvironmentTypeListResult": { - "description": "Result of the allowed environment type list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/AllowedEnvironmentType" - } - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "EnvironmentType": { - "description": "Represents an environment type.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/EnvironmentTypeProperties", - "description": "Properties of an environment type." - }, - "tags": { - "$ref": "commonDefinitions.json#/definitions/Tags", - "description": "Resource tags." - } - } - }, - "EnvironmentTypeProperties": { - "description": "Properties of an environment type.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/EnvironmentTypeUpdateProperties" - } - ], - "properties": { - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", - "readOnly": true - } - } - }, - "EnvironmentTypeUpdate": { - "description": "The environment type for partial update. Properties not provided in the update request will not be changed.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/EnvironmentTypeUpdateProperties", - "description": "Properties of an environment type to be updated." - }, - "tags": { - "$ref": "commonDefinitions.json#/definitions/Tags", - "description": "Resource tags." - } - } - }, - "EnvironmentTypeUpdateProperties": { - "description": "Properties of an environment type. These properties can be updated after the resource has been created.", - "type": "object", - "properties": { - "displayName": { - "type": "string", - "description": "The display name of the environment type." - } - } - }, - "EnvironmentTypeListResult": { - "description": "Result of the environment type list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/EnvironmentType" - } - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "ProjectEnvironmentType": { - "description": "Represents an environment type.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ProjectEnvironmentTypeProperties", - "description": "Properties of an environment type." - }, - "tags": { - "$ref": "commonDefinitions.json#/definitions/Tags", - "description": "Resource tags." - }, - "identity": { - "description": "Managed identity properties", - "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity" - }, - "location": { - "type": "string", - "description": "The geo-location for the environment type" - } - } - }, - "ProjectEnvironmentTypeUpdateProperties": { - "description": "Properties of a project environment type. These properties can be updated after the resource has been created.", - "type": "object", - "properties": { - "deploymentTargetId": { - "description": "Id of a subscription that the environment type will be mapped to. The environment's resources will be deployed into this subscription.", - "type": "string" - }, - "displayName": { - "description": "The display name of the project environment type.", - "type": "string" - }, - "status": { - "description": "Defines whether this Environment Type can be used in this Project.", - "$ref": "#/definitions/EnvironmentTypeEnableStatus" - }, - "creatorRoleAssignment": { - "description": "The role definition assigned to the environment creator on backing resources.", - "type": "object", - "properties": { - "roles": { - "type": "object", - "description": "A map of roles to assign to the environment creator.", - "additionalProperties": { - "$ref": "#/definitions/EnvironmentRole" - } - } - } - }, - "userRoleAssignments": { - "description": "Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role definition IDs.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/UserRoleAssignment" - } - } - } - }, - "ProjectEnvironmentTypeProperties": { - "description": "Properties of a project environment type.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/ProjectEnvironmentTypeUpdateProperties" - } - ], - "properties": { - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", - "readOnly": true - }, - "environmentCount": { - "description": "The number of environments of this type.", - "type": "integer", - "format": "int32", - "minimum": 0, - "readOnly": true - } - } - }, - "ProjectEnvironmentTypeUpdate": { - "description": "The project environment type for partial update. Properties not provided in the update request will not be changed.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ProjectEnvironmentTypeUpdateProperties", - "description": "Properties to configure an environment type." - }, - "tags": { - "$ref": "commonDefinitions.json#/definitions/Tags", - "description": "Resource tags." - }, - "identity": { - "description": "Managed identity properties", - "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity" - } - } - }, - "ProjectEnvironmentTypeListResult": { - "description": "Result of the project environment type list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/ProjectEnvironmentType" - } - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "DevBoxDefinitionListResult": { - "description": "Results of the Dev Box definition list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "type": "array", - "items": { - "$ref": "#/definitions/DevBoxDefinition" - }, - "readOnly": true - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "DevBoxDefinitionUpdate": { - "description": "Partial update of a Dev Box definition resource.", - "type": "object", - "allOf": [ - { - "$ref": "commonDefinitions.json#/definitions/TrackedResourceUpdate" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/DevBoxDefinitionUpdateProperties", - "description": "Properties of a Dev Box definition to be updated." - } - } - }, - "DevBoxDefinition": { - "description": "Represents a definition for a Developer Machine.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "description": "Dev Box definition properties", - "x-ms-client-flatten": true, - "$ref": "#/definitions/DevBoxDefinitionProperties" - } - } - }, - "DevBoxDefinitionUpdateProperties": { - "description": "Properties of a Dev Box definition. These properties can be updated after the resource has been created.", - "type": "object", - "properties": { - "imageReference": { - "$ref": "vdi.json#/definitions/ImageReference", - "description": "Image reference information." - }, - "sku": { - "description": "The SKU for Dev Boxes created using this definition.", - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Sku" - }, - "osStorageType": { - "description": "The storage type used for the Operating System disk of Dev Boxes created using this definition.", - "type": "string" - }, - "hibernateSupport": { - "description": "Indicates whether Dev Boxes created with this definition are capable of hibernation. Not all images are capable of supporting hibernation. To find out more see https://aka.ms/devbox/hibernate", - "$ref": "#/definitions/HibernateSupport" - } - } - }, - "DevBoxDefinitionProperties": { - "description": "Properties of a Dev Box definition.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/DevBoxDefinitionUpdateProperties" - } - ], - "properties": { - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", - "readOnly": true - }, - "imageValidationStatus": { - "description": "Validation status of the configured image.", - "$ref": "vdi.json#/definitions/ImageValidationStatus", - "readOnly": true - }, - "imageValidationErrorDetails": { - "description": "Details for image validator error. Populated when the image validation is not successful.", - "$ref": "vdi.json#/definitions/ImageValidationErrorDetails", - "readOnly": true - }, - "validationStatus": { - "description": "Validation status for the Dev Box Definition.", - "$ref": "vdi.json#/definitions/CatalogResourceValidationStatus", - "readOnly": true - }, - "activeImageReference": { - "$ref": "vdi.json#/definitions/ImageReference", - "description": "Image reference information for the currently active image (only populated during updates).", - "readOnly": true - } - }, - "required": [ - "imageReference", - "sku" - ] - }, - "AttachedNetworkConnection": { - "description": "Represents an attached NetworkConnection.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/AttachedNetworkConnectionProperties", - "description": "Attached NetworkConnection properties." - } - } - }, - "AttachedNetworkConnectionProperties": { - "description": "Properties of an attached NetworkConnection.", - "type": "object", - "properties": { - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", - "readOnly": true - }, - "networkConnectionId": { - "description": "The resource ID of the NetworkConnection you want to attach.", - "type": "string", - "x-ms-mutability": [ - "read", - "create" - ] - }, - "networkConnectionLocation": { - "description": "The geo-location where the NetworkConnection resource specified in 'networkConnectionResourceId' property lives.", - "type": "string", - "readOnly": true - }, - "healthCheckStatus": { - "$ref": "vdi.json#/definitions/HealthCheckStatus", - "readOnly": true - }, - "domainJoinType": { - "description": "AAD Join type of the network. This is populated based on the referenced Network Connection.", - "$ref": "vdi.json#/definitions/DomainJoinType", - "readOnly": true - } - }, - "required": [ - "networkConnectionId" - ] - }, - "AttachedNetworkListResult": { - "description": "Results of the Attached Networks list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "type": "array", - "items": { - "$ref": "#/definitions/AttachedNetworkConnection" - }, - "readOnly": true - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "EnvironmentRole": { - "type": "object", - "description": "A role that can be assigned to a user.", - "properties": { - "roleName": { - "description": "The common name of the Role Assignment. This is a descriptive name such as 'AcrPush'.", - "type": "string", - "readOnly": true - }, - "description": { - "description": "This is a description of the Role Assignment.", - "type": "string", - "readOnly": true - } - } - }, - "UserRoleAssignment": { - "type": "object", - "description": "Mapping of user object ID to role assignments.", - "x-ms-client-name": "userRoleAssignmentValue", - "properties": { - "roles": { - "type": "object", - "description": "A map of roles to assign to the parent user.", - "additionalProperties": { - "$ref": "#/definitions/EnvironmentRole" - } - } - } - }, - "OperationStatus": { - "description": "The current status of an async operation", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationStatusResult" - } - ], - "properties": { - "properties": { - "description": "Custom operation properties, populated only for a successful operation.", - "type": "object", - "readOnly": true - } - } - }, - "CatalogItemType": { - "description": "Indicates catalog item types.", - "enum": [ - "EnvironmentDefinition", - "ImageDefinition" - ], - "type": "string", - "x-ms-enum": { - "name": "CatalogItemType", - "modelAsString": true - } - }, - "EnvironmentTypeEnableStatus": { - "description": "Indicates whether the environment type is either enabled or disabled.", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "EnvironmentTypeEnableStatus", - "modelAsString": true - } - }, - "HibernateSupport": { - "description": "Indicates whether hibernate is enabled/disabled.", - "enum": [ - "Disabled", - "Enabled" - ], - "type": "string", - "x-ms-enum": { - "name": "HibernateSupport", - "modelAsString": true - } - }, - "AutoImageBuildStatus": { - "description": "Indicates whether auto image build is enabled/disabled.", - "enum": [ - "Disabled", - "Enabled" - ], - "type": "string", - "x-ms-enum": { - "name": "AutoImageBuildStatus", - "modelAsString": true - } - }, - "ListUsagesResult": { - "description": "List of Core Usages.", - "type": "object", - "properties": { - "value": { - "description": "The array page of Usages.", - "type": "array", - "items": { - "$ref": "#/definitions/Usage" - }, - "x-ms-identifiers": [], - "readOnly": true - }, - "nextLink": { - "description": "The link to get the next page of Usage result.", - "type": "string", - "readOnly": true - } - } - }, - "Usage": { - "description": "The core usage details.", - "type": "object", - "properties": { - "currentValue": { - "description": "The current usage.", - "type": "integer", - "format": "int64" - }, - "limit": { - "description": "The limit integer.", - "type": "integer", - "format": "int64" - }, - "unit": { - "description": "The unit details.", - "type": "string", - "enum": [ - "Count" - ], - "x-ms-enum": { - "name": "UsageUnit", - "modelAsString": true - } - }, - "name": { - "description": "The name.", - "$ref": "#/definitions/UsageName" - }, - "id": { - "description": "The fully qualified arm resource id.", - "type": "string" - } - } - }, - "UsageName": { - "description": "The Usage Names.", - "type": "object", - "properties": { - "localizedValue": { - "description": "The localized name of the resource.", - "type": "string" - }, - "value": { - "description": "The name of the resource.", - "type": "string" - } - } - }, - "CustomizationTaskListResult": { - "description": "Results of the Task list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "type": "array", - "items": { - "$ref": "#/definitions/CustomizationTask" - }, - "readOnly": true - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "CustomizationTask": { - "description": "Represents a Task to be used in customizing a Dev Box.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "description": "Task properties", - "x-ms-client-flatten": true, - "$ref": "#/definitions/CustomizationTaskProperties" - } - } - }, - "CustomizationTaskProperties": { - "description": "Properties of a Task.", - "type": "object", - "properties": { - "inputs": { - "description": "Inputs to the task.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/CustomizationTaskInput" - }, - "readOnly": true - }, - "timeout": { - "description": "The default timeout for the task.", - "type": "integer", - "format": "int32", - "readOnly": true - }, - "validationStatus": { - "description": "Validation status for the Task.", - "$ref": "vdi.json#/definitions/CatalogResourceValidationStatus", - "readOnly": true - } - } - }, - "CustomizationTaskInput": { - "description": "Input for a Task.", - "type": "object", - "properties": { - "description": { - "description": "Description of the input.", - "type": "string", - "readOnly": true - }, - "type": { - "description": "Type of the input.", - "type": "string", - "enum": [ - "string", - "number", - "boolean" - ], - "x-ms-enum": { - "name": "CustomizationTaskInputType", - "modelAsString": true - }, - "readOnly": true - }, - "required": { - "description": "Whether or not the input is required.", - "type": "boolean", - "readOnly": true - } - } - }, - "EnvironmentDefinitionListResult": { - "description": "Results of the environment definition list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "type": "array", - "items": { - "$ref": "#/definitions/EnvironmentDefinition" - }, - "readOnly": true - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "EnvironmentDefinition": { - "description": "Represents an environment definition catalog item.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "description": "Environment definition properties.", - "x-ms-client-flatten": true, - "$ref": "#/definitions/EnvironmentDefinitionProperties" - } - } - }, - "EnvironmentDefinitionProperties": { - "description": "Properties of an environment definition.", - "type": "object", - "properties": { - "description": { - "description": "A short description of the environment definition.", - "type": "string", - "readOnly": true - }, - "parameters": { - "type": "array", - "items": { - "$ref": "#/definitions/EnvironmentDefinitionParameter" - }, - "description": "Input parameters passed to an environment.", - "readOnly": true - }, - "templatePath": { - "description": "Path to the Environment Definition entrypoint file.", - "type": "string", - "readOnly": true - }, - "validationStatus": { - "description": "Validation status for the environment definition.", - "$ref": "vdi.json#/definitions/CatalogResourceValidationStatus", - "readOnly": true - } - } - }, - "EnvironmentDefinitionParameter": { - "type": "object", - "description": "Properties of an Environment Definition parameter", - "properties": { - "id": { - "type": "string", - "description": "Unique ID of the parameter", - "readOnly": true - }, - "name": { - "type": "string", - "description": "Display name of the parameter", - "readOnly": true - }, - "description": { - "type": "string", - "description": "Description of the parameter", - "readOnly": true - }, - "type": { - "description": "A string of one of the basic JSON types (number, integer, array, object, boolean, string)", - "$ref": "#/definitions/ParameterType", - "readOnly": true - }, - "readOnly": { - "type": "boolean", - "description": "Whether or not this parameter is read-only. If true, default should have a value.", - "readOnly": true - }, - "required": { - "type": "boolean", - "description": "Whether or not this parameter is required", - "readOnly": true - } - } - }, - "ParameterType": { - "type": "string", - "enum": [ - "array", - "boolean", - "integer", - "number", - "object", - "string" - ], - "description": "The type of data a parameter accepts.", - "readOnly": true, - "x-ms-enum": { - "name": "ParameterType", - "modelAsString": true, - "values": [ - { - "value": "array", - "description": "The parameter accepts an array of values." - }, - { - "value": "boolean", - "description": "The parameter accepts a boolean value." - }, - { - "value": "integer", - "description": "The parameter accepts an integer value." - }, - { - "value": "number", - "description": "The parameter accepts a number value." - }, - { - "value": "object", - "description": "The parameter accepts an object value." - }, - { - "value": "string", - "description": "The parameter accepts a string value." - } - ] - } - }, - "CheckScopedNameAvailabilityRequest": { - "description": "The scoped name check availability request body.", - "type": "object", - "properties": { - "name": { - "description": "The name of the resource for which availability needs to be checked.", - "type": "string" - }, - "type": { - "description": "The resource type.", - "type": "string" - }, - "scope": { - "description": "The resource id to scope the name check.", - "type": "string" - } - } - }, - "ImageDefinitionListResult": { - "description": "Results of the Image Definition list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "type": "array", - "items": { - "$ref": "#/definitions/ImageDefinition" - }, - "readOnly": true - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "ImageDefinition": { - "description": "Represents a definition for an Image.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "description": "Image Definition properties", - "x-ms-client-flatten": true, - "$ref": "#/definitions/ImageDefinitionProperties" - } - } - }, - "ImageDefinitionProperties": { - "description": "Properties of an Image Definition.", - "type": "object", - "properties": { - "imageReference": { - "$ref": "vdi.json#/definitions/ImageReference", - "description": "Image reference information." - }, - "fileUrl": { - "description": "The URL to the repository file containing the image definition.", - "type": "string", - "readOnly": true - }, - "latestBuild": { - "$ref": "#/definitions/LatestImageBuild", - "description": "Details about the latest build." - }, - "imageValidationStatus": { - "description": "Validation status of the configured image.", - "$ref": "vdi.json#/definitions/ImageValidationStatus", - "readOnly": true - }, - "imageValidationErrorDetails": { - "description": "Details for image validator error. Populated when the image validation is not successful.", - "$ref": "vdi.json#/definitions/ImageValidationErrorDetails", - "readOnly": true - }, - "validationStatus": { - "description": "Validation status for the Image Definition.", - "$ref": "vdi.json#/definitions/CatalogResourceValidationStatus", - "readOnly": true - }, - "activeImageReference": { - "$ref": "vdi.json#/definitions/ImageReference", - "description": "Image reference information for the currently active image (only populated during updates).", - "readOnly": true - }, - "autoImageBuild": { - "description": "Indicates if automatic image builds will be triggered for image definition updates", - "$ref": "#/definitions/AutoImageBuildStatus", - "readOnly": true - }, - "tasks": { - "description": "Tasks to run at Dev Box provisioning time.", - "type": "array", - "items": { - "$ref": "#/definitions/CustomizationTaskInstance" - } - }, - "userTasks": { - "description": "Tasks to run when a user first logs into a Dev Box.", - "type": "array", - "items": { - "$ref": "#/definitions/CustomizationTaskInstance" - } - }, - "extends": { - "description": "Another Image Definition that this one extends.", - "$ref": "#/definitions/ImageDefinitionReference" - } - } - }, - "ImageDefinitionReference": { - "type": "object", - "description": "A reference to an Image Definition.", - "required": [ - "imageDefinition" - ], - "properties": { - "imageDefinition": { - "type": "string", - "description": "Name of the referenced Image Definition." - }, - "parameters": { - "description": "Parameters for the referenced Image Definition.", - "$ref": "#/definitions/DefinitionParameters" - } - } - }, - "CustomizationTaskInstance": { - "type": "object", - "description": "A customization task to run.", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string", - "description": "Name of the task." - }, - "parameters": { - "description": "Parameters for the task.", - "$ref": "#/definitions/DefinitionParameters" - }, - "displayName": { - "type": "string", - "description": "Display name to help differentiate multiple instances of the same task." - }, - "timeoutInSeconds": { - "type": "integer", - "format": "int32", - "description": "Timeout, in seconds. Overrides any timeout provided on the task definition." - }, - "condition": { - "type": "string", - "description": "An expression that must evaluate to true in order for the task to run." - } - } - }, - "DefinitionParameters": { - "description": "Parameters for the definition task.", - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "required": [ - "name", - "value" - ] - } - }, - "LatestImageBuild": { - "type": "object", - "description": "Details about the latest build.", - "properties": { - "name": { - "description": "Identifier of a build.", - "type": "string", - "readOnly": true - }, - "startTime": { - "description": "Start time of the task group.", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "endTime": { - "description": "End time of the task group.", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "status": { - "description": "The state of an Image Definition Build.", - "$ref": "#/definitions/ImageDefinitionBuildStatus", - "readOnly": true - } - } - }, - "ImageDefinitionBuildStatus": { - "type": "string", - "enum": [ - "Succeeded", - "Running", - "ValidationFailed", - "Failed", - "Cancelled", - "TimedOut" - ], - "description": "The state of an Image Definition Build.", - "readOnly": true, - "x-ms-enum": { - "name": "ImageDefinitionBuildStatus", - "modelAsString": true, - "values": [ - { - "value": "Succeeded", - "description": "The image build has succeeded." - }, - { - "value": "Running", - "description": "The image build is running." - }, - { - "value": "ValidationFailed", - "description": "The built image has failed validation." - }, - { - "value": "Failed", - "description": "The image build has failed." - }, - { - "value": "Cancelled", - "description": "The image build has been cancelled." - }, - { - "value": "TimedOut", - "description": "The image build has timed out." - } - ] - } - }, - "ImageDefinitionBuildListResult": { - "description": "Results of the Image Definition Build list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "type": "array", - "items": { - "$ref": "#/definitions/ImageDefinitionBuild" - }, - "readOnly": true - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "ImageDefinitionBuild": { - "description": "Represents a specific build of an Image Definition.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "description": "Image Definition Build properties", - "x-ms-client-flatten": true, - "$ref": "#/definitions/ImageDefinitionBuildProperties" - } - } - }, - "ImageDefinitionBuildProperties": { - "description": "Properties of an Image Definition Build.", - "type": "object", - "properties": { - "imageReference": { - "$ref": "vdi.json#/definitions/ImageReference", - "description": "The specific image version used by the build.", - "readOnly": true - }, - "status": { - "description": "The status of the build.", - "$ref": "#/definitions/ImageDefinitionBuildStatus", - "readOnly": true - }, - "startTime": { - "description": "Start time of the task group.", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "endTime": { - "description": "End time of the task group.", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "errorDetails": { - "description": "Details for image creation error. Populated when the image creation is not successful.", - "$ref": "#/definitions/ImageCreationErrorDetails", - "readOnly": true - } - } - }, - "ImageDefinitionBuildDetails": { - "description": "Represents a specific build of an Image Definition.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "imageReference": { - "$ref": "vdi.json#/definitions/ImageReference", - "description": "The specific image version used by the build.", - "readOnly": true - }, - "status": { - "description": "The status of the build.", - "$ref": "#/definitions/ImageDefinitionBuildStatus", - "readOnly": true - }, - "startTime": { - "description": "Start time of the task group.", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "endTime": { - "description": "End time of the task group.", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "errorDetails": { - "description": "Details for image creation error. Populated when the image creation is not successful.", - "$ref": "#/definitions/ImageCreationErrorDetails", - "readOnly": true - }, - "taskGroups": { - "description": "The list of task groups executed during the image definition build.", - "type": "array", - "items": { - "$ref": "#/definitions/ImageDefinitionBuildTaskGroup" - }, - "readOnly": true - } - } - }, - "ImageCreationErrorDetails": { - "type": "object", - "description": "Image creation error details", - "properties": { - "code": { - "type": "string", - "description": "An identifier for the error." - }, - "message": { - "type": "string", - "description": "A message describing the error." - } - } - }, - "ImageDefinitionBuildTaskGroup": { - "description": "A task group executed during the image definition build.", - "type": "object", - "properties": { - "name": { - "description": "The name of the task group.", - "type": "string", - "readOnly": true - }, - "status": { - "description": "The status of the task group.", - "$ref": "#/definitions/ImageDefinitionBuildStatus", - "readOnly": true - }, - "startTime": { - "description": "Start time of the task group.", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "endTime": { - "description": "End time of the task group.", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "tasks": { - "description": "The list of tasks executed during the task group.", - "type": "array", - "items": { - "$ref": "#/definitions/ImageDefinitionBuildTask" - }, - "readOnly": true - } - } - }, - "ImageDefinitionBuildTask": { - "description": "A task executed during the image definition build.", - "type": "object", - "properties": { - "name": { - "description": "The name of the task.", - "type": "string" - }, - "parameters": { - "description": "Parameters for the task.", - "type": "array", - "items": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "required": [ - "key", - "value" - ] - } - }, - "displayName": { - "description": "Display name to help differentiate multiple instances of the same task.", - "type": "string" - }, - "id": { - "description": "ID of the task instance.", - "type": "string", - "readOnly": true - }, - "startTime": { - "description": "Start time of the task.", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "endTime": { - "description": "End time of the task.", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "status": { - "description": "The status of the task.", - "$ref": "#/definitions/ImageDefinitionBuildStatus", - "readOnly": true - }, - "logUri": { - "description": "The URI for retrieving logs for the task execution.", - "type": "string", - "readOnly": true - } - } - } - }, - "parameters": { - "DevCenterNameParameter": { - "name": "devCenterName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the devcenter.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$", - "minLength": 3, - "maxLength": 26 - }, - "DevCenterEncryptionSetNameParameter": { - "name": "encryptionSetName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the devcenter encryption set.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$", - "minLength": 3, - "maxLength": 63 - }, - "ProjectPolicyNameParameter": { - "name": "projectPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the project policy.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63 - }, - "ProjectNameParameter": { - "name": "projectName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the project.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63 - }, - "CatalogNameParameter": { - "name": "catalogName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Catalog.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63 - }, - "GalleryNameParameter": { - "name": "galleryName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the gallery.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63 - }, - "ImageNameParameter": { - "name": "imageName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the image.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-.]{0,78}[a-zA-Z0-9]$", - "minLength": 3, - "maxLength": 80 - }, - "ProjectImageNameParameter": { - "name": "imageName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the image.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9~][a-zA-Z0-9-.~]{0,151}[a-zA-Z0-9]$", - "minLength": 3, - "maxLength": 153 - }, - "VersionNameParameter": { - "name": "versionName", - "in": "path", - "required": true, - "type": "string", - "description": "The version of the image.", - "x-ms-parameter-location": "method", - "pattern": "^[0-9]{1,10}[.][0-9]{1,10}[.][0-9]{1,10}$", - "minLength": 5, - "maxLength": 32 - }, - "EnvironmentTypeNameParameter": { - "name": "environmentTypeName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the environment type.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63 - }, - "AttachedNetworkConnectionNameParameter": { - "name": "attachedNetworkConnectionName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the attached NetworkConnection.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63 - }, - "DevBoxDefinitionName": { - "name": "devBoxDefinitionName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Dev Box definition.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63 - }, - "FilterParameter": { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName').", - "type": "string", - "required": false, - "x-ms-parameter-location": "method" - }, - "LocationParameter": { - "name": "location", - "in": "path", - "description": "The Azure region", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "OperationIdParameter": { - "name": "operationId", - "in": "path", - "description": "The ID of an ongoing async operation", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "CustomizationTaskNameParameter": { - "name": "taskName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Task.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63 - }, - "EnvironmentDefinitionNameParameter": { - "name": "environmentDefinitionName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Environment Definition.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63 - }, - "ImageDefinitionNameParameter": { - "name": "imageDefinitionName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Image Definition.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63 - }, - "ImageDefinitionBuildNameParameter": { - "name": "buildName", - "in": "path", - "required": true, - "type": "string", - "description": "The ID of the Image Definition Build.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63 - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_Create.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_Create.json deleted file mode 100644 index f7e1bd3c365f..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_Create.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "attachedNetworkConnectionName": "network-uswest3", - "body": { - "properties": { - "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-uswest3", - "name": "network-uswest3", - "type": "Microsoft.DevCenter/devcenters/attachednetworks", - "properties": { - "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3", - "provisioningState": "Accepted" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-uswest3", - "name": "network-uswest3", - "type": "Microsoft.DevCenter/devcenters/attachednetworks", - "properties": { - "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3", - "provisioningState": "Accepted" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_Delete.json deleted file mode 100644 index 4825cae6d7ad..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_Delete.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "attachedNetworkConnectionName": "network-uswest3" - }, - "responses": { - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", - "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" - } - }, - "204": {} - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_GetByDevCenter.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_GetByDevCenter.json deleted file mode 100644 index 952eec70bed3..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_GetByDevCenter.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "attachedNetworkConnectionName": "network-uswest3" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-uswest3", - "name": "network-uswest3", - "type": "Microsoft.DevCenter/devcenters/attachednetworks", - "properties": { - "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3", - "networkConnectionLocation": "centralus", - "healthCheckStatus": "Healthy", - "provisioningState": "Created" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_GetByProject.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_GetByProject.json deleted file mode 100644 index 1b004c4afa6d..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_GetByProject.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "attachedNetworkConnectionName": "network-uswest3" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/attachednetworks/network-uswest3", - "name": "network-uswest3", - "type": "Microsoft.DevCenter/projects/attachednetworks", - "properties": { - "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3", - "networkConnectionLocation": "centralus", - "healthCheckStatus": "Healthy", - "provisioningState": "Created" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_ListByDevCenter.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_ListByDevCenter.json deleted file mode 100644 index a691fcf0e57d..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_ListByDevCenter.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/netmap1", - "name": "netmap1", - "type": "Microsoft.DevCenter/devcenters/attachedNetworks", - "properties": { - "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3", - "networkConnectionLocation": "centralus", - "healthCheckStatus": "Healthy", - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "Application", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "Application", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - }, - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/netmap2", - "name": "netmap2", - "type": "Microsoft.DevCenter/devcenters/attachedNetworks", - "properties": { - "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/network-uswest3", - "networkConnectionLocation": "centralus", - "healthCheckStatus": "Healthy", - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_ListByProject.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_ListByProject.json deleted file mode 100644 index 06ab2a09066f..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_ListByProject.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/attachednetworks/netmap1", - "name": "netmap1", - "type": "Microsoft.DevCenter/projects/attachedNetworks", - "properties": { - "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3", - "networkConnectionLocation": "centralus", - "healthCheckStatus": "Healthy", - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "Application", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "Application", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - }, - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/attachednetworks/netmap2", - "name": "netmap2", - "type": "Microsoft.DevCenter/projects/attachedNetworks", - "properties": { - "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3", - "networkConnectionLocation": "centralus", - "healthCheckStatus": "Healthy", - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Connect.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Connect.json deleted file mode 100644 index 66fd2c4c7605..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Connect.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "catalogName": "CentralCatalog" - }, - "responses": { - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", - "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_CreateAdo.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_CreateAdo.json deleted file mode 100644 index 6bff100712b1..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_CreateAdo.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "catalogName": "CentralCatalog", - "body": { - "properties": { - "adoGit": { - "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso", - "branch": "main", - "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" - }, - "syncType": "Scheduled" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", - "name": "CentralCatalog", - "type": "Microsoft.DevCenter/devcenters/catalogs", - "properties": { - "adoGit": { - "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso", - "branch": "main", - "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" - }, - "lastSyncStats": { - "added": 0, - "updated": 0, - "unchanged": 0, - "removed": 0, - "validationErrors": 0, - "synchronizationErrors": 0 - }, - "provisioningState": "Accepted", - "connectionState": "Connected", - "syncState": "Succeeded", - "syncType": "Scheduled" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", - "name": "CentralCatalog", - "type": "Microsoft.DevCenter/devcenters/catalogs", - "properties": { - "adoGit": { - "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso", - "branch": "main", - "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" - }, - "lastSyncStats": { - "added": 0, - "updated": 0, - "unchanged": 0, - "removed": 0, - "validationErrors": 0, - "synchronizationErrors": 0 - }, - "provisioningState": "Accepted", - "connectionState": "Connected", - "syncState": "Succeeded", - "syncType": "Scheduled" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_CreateGitHub.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_CreateGitHub.json deleted file mode 100644 index 959a819546d0..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_CreateGitHub.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "catalogName": "CentralCatalog", - "body": { - "properties": { - "gitHub": { - "uri": "https://github.com/Contoso/centralrepo-fake.git", - "branch": "main", - "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" - }, - "syncType": "Manual" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", - "name": "CentralCatalog", - "type": "Microsoft.DevCenter/devcenters/catalogs", - "properties": { - "gitHub": { - "uri": "https://github.com/Contoso/centralrepo-fake.git", - "branch": "main", - "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" - }, - "lastSyncStats": { - "added": 0, - "updated": 0, - "unchanged": 0, - "removed": 0, - "validationErrors": 0, - "synchronizationErrors": 0 - }, - "provisioningState": "Accepted", - "connectionState": "Connected", - "syncState": "Succeeded", - "syncType": "Manual" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", - "name": "CentralCatalog", - "type": "Microsoft.DevCenter/devcenters/catalogs", - "properties": { - "gitHub": { - "uri": "https://github.com/Contoso/centralrepo-fake.git", - "branch": "main", - "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" - }, - "lastSyncStats": { - "added": 0, - "updated": 0, - "unchanged": 0, - "removed": 0, - "validationErrors": 0, - "synchronizationErrors": 0 - }, - "provisioningState": "Accepted", - "connectionState": "Connected", - "syncState": "Succeeded", - "syncType": "Manual" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Delete.json deleted file mode 100644 index ab062fc7770d..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Delete.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "catalogName": "CentralCatalog" - }, - "responses": { - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", - "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" - } - }, - "204": {} - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Get.json deleted file mode 100644 index 96174ad16194..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Get.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "catalogName": "CentralCatalog" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", - "name": "CentralCatalog", - "type": "Microsoft.DevCenter/devcenters/catalogs", - "properties": { - "gitHub": { - "uri": "https://github.com/Contoso/centralrepo-fake.git", - "branch": "main", - "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" - }, - "lastSyncStats": { - "added": 1, - "updated": 1, - "unchanged": 1, - "removed": 1, - "validationErrors": 1, - "synchronizationErrors": 1 - }, - "lastConnectionTime": "2020-11-18T18:28:00.314Z", - "lastSyncTime": "2020-11-18T18:28:00.314Z", - "provisioningState": "Succeeded", - "connectionState": "Connected", - "syncState": "Succeeded", - "syncType": "Scheduled" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_GetSyncErrorDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_GetSyncErrorDetails.json deleted file mode 100644 index 27995254fe1b..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_GetSyncErrorDetails.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "catalogName": "CentralCatalog" - }, - "responses": { - "200": { - "body": { - "operationError": { - "code": "Conflict", - "message": "The source control credentials could not be validated successfully." - }, - "conflicts": [ - { - "path": "/Environments/Duplicate/manifest.yaml", - "name": "DuplicateEnvironmentName" - } - ], - "errors": [ - { - "path": "/Environments/Invalid/manifest.yaml", - "errorDetails": [ - { - "code": "ParseError", - "message": "Schema Error Within Catalog Item: Missing Name" - } - ] - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_List.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_List.json deleted file mode 100644 index 224b20a6aafb..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_List.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", - "name": "CentralCatalog", - "type": "Microsoft.DevCenter/devcenters/catalogs", - "properties": { - "gitHub": { - "uri": "https://github.com/Contoso/centralrepo-fake.git", - "branch": "main", - "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" - }, - "lastSyncStats": { - "added": 1, - "updated": 1, - "unchanged": 1, - "removed": 1, - "validationErrors": 1, - "synchronizationErrors": 1 - }, - "lastConnectionTime": "2020-11-18T18:28:00.314Z", - "lastSyncTime": "2020-11-18T18:28:00.314Z", - "provisioningState": "Succeeded", - "connectionState": "Connected", - "syncState": "Succeeded" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Patch.json deleted file mode 100644 index 35f1832e027c..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Patch.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "catalogName": "CentralCatalog", - "body": { - "properties": { - "gitHub": { - "path": "/environments" - }, - "syncType": "Scheduled" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", - "name": "CentralCatalog", - "type": "Microsoft.DevCenter/devcenters/catalogs", - "properties": { - "gitHub": { - "uri": "https://github.com/Contoso/centralrepo-fake.git", - "branch": "main", - "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/environments" - }, - "lastSyncStats": { - "added": 1, - "updated": 1, - "unchanged": 1, - "removed": 1, - "validationErrors": 1, - "synchronizationErrors": 1 - }, - "lastConnectionTime": "2020-11-18T18:28:00.314Z", - "lastSyncTime": "2020-11-18T18:28:00.314Z", - "provisioningState": "Succeeded", - "connectionState": "Connected", - "syncState": "Succeeded", - "syncType": "Scheduled" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - }, - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Sync.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Sync.json deleted file mode 100644 index 66fd2c4c7605..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Sync.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "catalogName": "CentralCatalog" - }, - "responses": { - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", - "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckNameAvailability.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckNameAvailability.json deleted file mode 100644 index cdd1ee388f95..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckNameAvailability.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "nameAvailabilityRequest": { - "name": "name1", - "type": "Microsoft.DevCenter/devcenters" - } - }, - "responses": { - "200": { - "body": { - "nameAvailable": true - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckScopedNameAvailability_DevCenterCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckScopedNameAvailability_DevCenterCatalog.json deleted file mode 100644 index f1d99091cfdd..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckScopedNameAvailability_DevCenterCatalog.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "nameAvailabilityRequest": { - "name": "name1", - "type": "Microsoft.DevCenter/devcenters/catalogs", - "scope": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso" - } - }, - "responses": { - "200": { - "body": { - "nameAvailable": true - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckScopedNameAvailability_ProjectCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckScopedNameAvailability_ProjectCatalog.json deleted file mode 100644 index 0364ed7480d0..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckScopedNameAvailability_ProjectCatalog.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "nameAvailabilityRequest": { - "name": "name1", - "type": "Microsoft.DevCenter/projects/catalogs", - "scope": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject" - } - }, - "responses": { - "200": { - "body": { - "nameAvailable": true - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_Get.json deleted file mode 100644 index 06d73f198ff2..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_Get.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "catalogName": "CentralCatalog", - "taskName": "SampleTask" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog/tasks/SampleTask", - "name": "SampleTask", - "type": "Microsoft.DevCenter/devcenters/catalogs/tasks", - "properties": { - "inputs": { - "package": { - "type": "string", - "required": true - }, - "feed": { - "type": "string" - } - }, - "timeout": 30, - "validationStatus": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_GetErrorDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_GetErrorDetails.json deleted file mode 100644 index 69a4976c0e01..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_GetErrorDetails.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "catalogName": "CentralCatalog", - "taskName": "SampleTask" - }, - "responses": { - "200": { - "body": { - "errors": [ - { - "code": "ParameterValueInvalid", - "message": "Expected parameter value for 'InstanceCount' to be integer but found the string 'test'." - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_ListByCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_ListByCatalog.json deleted file mode 100644 index a6972810bd5d..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_ListByCatalog.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "catalogName": "CentralCatalog" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog/tasks/SampleTask", - "name": "SampleTask", - "type": "Microsoft.DevCenter/devcenters/catalogs/tasks", - "properties": { - "inputs": { - "package": { - "type": "string", - "required": true - }, - "feed": { - "type": "string" - } - }, - "timeout": 30 - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Create.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Create.json deleted file mode 100644 index 23a84596c49b..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Create.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "devBoxDefinitionName": "WebDevBox", - "body": { - "properties": { - "imageReference": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" - }, - "sku": { - "name": "Preview" - }, - "hibernateSupport": "Enabled" - }, - "location": "centralus" - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/devboxdefinitions/devBoxDefinitionName", - "name": "WebDevBox", - "type": "Microsoft.DevCenter/devcenters/devboxdefinitions", - "properties": { - "imageReference": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" - }, - "sku": { - "name": "Preview" - }, - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded" - }, - "location": "centralus", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/devboxdefinitions/devBoxDefinitionName", - "name": "WebDevBox", - "type": "Microsoft.DevCenter/devcenters/devboxdefinitions", - "properties": { - "imageReference": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" - }, - "sku": { - "name": "Preview" - }, - "hibernateSupport": "Enabled", - "provisioningState": "Created" - }, - "location": "centralus", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Delete.json deleted file mode 100644 index f217b4155801..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Delete.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "devBoxDefinitionName": "WebDevBox" - }, - "responses": { - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", - "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" - } - }, - "204": {} - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Get.json deleted file mode 100644 index e85a289701d1..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Get.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "devBoxDefinitionName": "WebDevBox" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/devboxdefinitions/WebDevBox", - "name": "WebDevBox", - "type": "Microsoft.DevCenter/devcenters/devboxdefinitions", - "properties": { - "imageReference": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" - }, - "sku": { - "name": "Preview" - }, - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded" - }, - "location": "centralus", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_GetByProject.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_GetByProject.json deleted file mode 100644 index f25a535e2e72..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_GetByProject.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "ContosoProject", - "devBoxDefinitionName": "WebDevBox" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProject/devboxdefinitions/WebDevBox", - "name": "WebDevBox", - "type": "Microsoft.DevCenter/projects/devboxdefinitions", - "properties": { - "imageReference": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" - }, - "sku": { - "name": "Preview" - }, - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded" - }, - "location": "centralus", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_ListByDevCenter.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_ListByDevCenter.json deleted file mode 100644 index 9686d747401a..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_ListByDevCenter.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "devBoxDefinitionName": "WebDevBox" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/devboxdefinitions/WebDevBox", - "name": "WebDevBox", - "type": "Microsoft.DevCenter/devcenters/devboxdefinitions", - "properties": { - "imageReference": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" - }, - "sku": { - "name": "Preview" - }, - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded" - }, - "location": "centralus", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_ListByProject.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_ListByProject.json deleted file mode 100644 index 053a9b28ac69..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_ListByProject.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "ContosoProject", - "devBoxDefinitionName": "WebDevBox" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProject/devboxdefinitions/WebDevBox", - "name": "WebDevBox", - "type": "Microsoft.DevCenter/projects/devboxdefinitions", - "properties": { - "imageReference": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" - }, - "sku": { - "name": "Preview" - }, - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded" - }, - "location": "centralus", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Patch.json deleted file mode 100644 index 62bf2371b494..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Patch.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "devBoxDefinitionName": "WebDevBox", - "body": { - "properties": { - "imageReference": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/version/2.0.0" - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/devboxdefinitions/WebDevBox", - "name": "WebDevBox", - "type": "Microsoft.DevCenter/devcenters/devboxdefinitions", - "properties": { - "imageReference": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/version/2.0.0" - }, - "sku": { - "name": "Preview" - }, - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded" - }, - "location": "centralus", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - }, - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Create.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Create.json deleted file mode 100644 index 401525cae405..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Create.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "encryptionSetName": "EncryptionWestUs", - "body": { - "location": "westus", - "properties": { - "devboxDisksEncryptionEnableStatus": "Enabled", - "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", - "keyEncryptionKeyIdentity": { - "type": "UserAssigned", - "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" - } - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUs", - "name": "EncryptionWestUs", - "type": "Microsoft.DevCenter/devcenters/encryptionSets", - "properties": { - "devboxDisksEncryptionEnableStatus": "Enabled", - "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", - "keyEncryptionKeyIdentity": { - "type": "UserAssigned", - "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" - }, - "provisioningState": "Accepted" - }, - "location": "westus", - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUs", - "name": "EncryptionWestUs", - "type": "Microsoft.DevCenter/devcenters/encryptionSets", - "properties": { - "devboxDisksEncryptionEnableStatus": "Enabled", - "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", - "keyEncryptionKeyIdentity": { - "type": "UserAssigned", - "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" - }, - "provisioningState": "Accepted" - }, - "location": "westus", - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_CreateWithKeyIdentity.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_CreateWithKeyIdentity.json deleted file mode 100644 index 69f74871a671..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_CreateWithKeyIdentity.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "encryptionSetName": "EncryptionWestUsWithKeyIdentity", - "body": { - "location": "westus", - "properties": { - "devboxDisksEncryptionEnableStatus": "Enabled", - "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", - "keyEncryptionKeyIdentity": { - "type": "UserAssigned", - "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" - } - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUsWithKeyIdentity", - "name": "EncryptionWestUsWithKeyIdentity", - "type": "Microsoft.DevCenter/devcenters/encryptionSets", - "properties": { - "devboxDisksEncryptionEnableStatus": "Enabled", - "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", - "keyEncryptionKeyIdentity": { - "type": "UserAssigned", - "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" - }, - "provisioningState": "Accepted" - }, - "location": "westus", - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUsWithKeyIdentity", - "name": "EncryptionWestUsWithKeyIdentity", - "type": "Microsoft.DevCenter/devcenters/encryptionSets", - "properties": { - "devboxDisksEncryptionEnableStatus": "Enabled", - "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", - "keyEncryptionKeyIdentity": { - "type": "UserAssigned", - "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" - }, - "provisioningState": "Accepted" - }, - "location": "westus", - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_CreateWithSystemAssignedKeyIdentity.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_CreateWithSystemAssignedKeyIdentity.json deleted file mode 100644 index 670060dd4e6f..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_CreateWithSystemAssignedKeyIdentity.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "encryptionSetName": "EncryptionWestUsSystemAssigned", - "body": { - "location": "westus", - "properties": { - "devboxDisksEncryptionEnableStatus": "Enabled", - "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", - "keyEncryptionKeyIdentity": { - "type": "SystemAssigned", - "userAssignedIdentityResourceId": "SystemAssigned" - } - }, - "identity": { - "type": "SystemAssigned" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUsSystemAssigned", - "name": "EncryptionWestUsSystemAssigned", - "type": "Microsoft.DevCenter/devcenters/encryptionSets", - "properties": { - "devboxDisksEncryptionEnableStatus": "Enabled", - "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", - "keyEncryptionKeyIdentity": { - "type": "SystemAssigned", - "userAssignedIdentityResourceId": "SystemAssigned" - }, - "provisioningState": "Accepted" - }, - "location": "westus", - "identity": { - "type": "SystemAssigned", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494", - "tenantId": "00000000-0000-0000-0000-000000000000" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUsSystemAssigned", - "name": "EncryptionWestUsSystemAssigned", - "type": "Microsoft.DevCenter/devcenters/encryptionSets", - "properties": { - "devboxDisksEncryptionEnableStatus": "Enabled", - "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", - "keyEncryptionKeyIdentity": { - "type": "SystemAssigned", - "userAssignedIdentityResourceId": "SystemAssigned" - }, - "provisioningState": "Accepted" - }, - "location": "westus", - "identity": { - "type": "SystemAssigned", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494", - "tenantId": "00000000-0000-0000-0000-000000000000" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Delete.json deleted file mode 100644 index 9eb16c46cfd3..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Delete.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "encryptionSetName": "EncryptionWestUs" - }, - "responses": { - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2024-10-01-preview", - "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2024-10-01-preview" - } - }, - "204": {} - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Get.json deleted file mode 100644 index 9c54036f01e4..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Get.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "encryptionSetName": "EncryptionWestUs" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUs", - "name": "EncryptionWestUs", - "type": "Microsoft.DevCenter/devcenters/encryptionSets", - "properties": { - "devboxDisksEncryptionEnableStatus": "Enabled", - "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", - "keyEncryptionKeyIdentity": { - "type": "UserAssigned", - "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" - }, - "provisioningState": "Succeeded" - }, - "location": "westus", - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_List.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_List.json deleted file mode 100644 index a27bd64a9582..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_List.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUs", - "name": "EncryptionWestUs", - "type": "Microsoft.DevCenter/devcenters/encryptionSets", - "properties": { - "devboxDisksEncryptionEnableStatus": "Enabled", - "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", - "keyEncryptionKeyIdentity": { - "type": "UserAssigned", - "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" - }, - "provisioningState": "Succeeded" - }, - "location": "westus", - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Patch.json deleted file mode 100644 index 54a85e5fd86d..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Patch.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "encryptionSetName": "EncryptionWestUs", - "body": { - "properties": { - "devboxDisksEncryptionEnableStatus": "Enabled" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUs", - "name": "EncryptionWestUs", - "type": "Microsoft.DevCenter/devcenters/encryptionSets", - "properties": { - "devboxDisksEncryptionEnableStatus": "Enabled", - "keyEncryptionKeyUrl": "https://contosovault.vault.azure.net/keys/contosokekwestus", - "keyEncryptionKeyIdentity": { - "type": "UserAssigned", - "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" - }, - "provisioningState": "Accepted" - }, - "location": "westus", - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - }, - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2024-10-01-preview", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2024-10-01-preview" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_PatchKeyIdentity.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_PatchKeyIdentity.json deleted file mode 100644 index 46e6c253b786..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_PatchKeyIdentity.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "encryptionSetName": "EncryptionWestUs", - "body": { - "properties": { - "keyEncryptionKeyIdentity": { - "type": "SystemAssigned", - "userAssignedIdentityResourceId": "SystemAssigned" - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUs", - "name": "EncryptionWestUs", - "type": "Microsoft.DevCenter/devcenters/encryptionSets", - "properties": { - "devboxDisksEncryptionEnableStatus": "Enabled", - "keyEncryptionKeyUrl": "https://contosovault.vault.azure.net/keys/contosokekwestus", - "keyEncryptionKeyIdentity": { - "type": "SystemAssigned", - "userAssignedIdentityResourceId": "SystemAssigned" - }, - "provisioningState": "Accepted" - }, - "location": "westus", - "identity": { - "type": "SystemAssigned", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494", - "tenantId": "00000000-0000-0000-0000-000000000000" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - }, - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_BuildImage.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_BuildImage.json deleted file mode 100644 index 8bcaf51157c3..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_BuildImage.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "DevDevCenter", - "catalogName": "CentralCatalog", - "imageDefinitionName": "DefaultDevImage" - }, - "responses": { - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview", - "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_CancelImageBuild.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_CancelImageBuild.json deleted file mode 100644 index 5d1f060509a7..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_CancelImageBuild.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "DevDevCenter", - "catalogName": "CentralCatalog", - "imageDefinitionName": "DefaultDevImage", - "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7" - }, - "responses": { - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview", - "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetErrorDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetErrorDetails.json deleted file mode 100644 index 4e9726bc800d..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetErrorDetails.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "DevDevCenter", - "catalogName": "TeamCatalog", - "imageDefinitionName": "WebDevBox" - }, - "responses": { - "200": { - "body": { - "errors": [ - { - "code": "CatalogItemNotExist", - "message": "Task choco doesn't exist in the dev center." - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetImageBuild.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetImageBuild.json deleted file mode 100644 index 65e0a3f9952f..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetImageBuild.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "DevDevCenter", - "catalogName": "CentralCatalog", - "imageDefinitionName": "DefaultDevImage", - "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/DevDevCenter/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7", - "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", - "type": "Microsoft.DevCenter/centers/catalogs/imageDefinitions/builds", - "properties": { - "imageReference": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" - }, - "status": "Succeeded" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetImageBuildDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetImageBuildDetails.json deleted file mode 100644 index 55455b010389..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetImageBuildDetails.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "DevDevCenter", - "catalogName": "CentralCatalog", - "imageDefinitionName": "DefaultDevImage", - "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7" - }, - "responses": { - "200": { - "body": { - "imageReference": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" - }, - "status": "Succeeded", - "taskGroups": [ - { - "name": "Provisioning", - "status": "Succeeded", - "startTime": "2020-11-18T18:25:02.224Z", - "endTime": "2020-11-18T18:25:12.952Z", - "tasks": [ - { - "name": "Provisioning", - "status": "Succeeded", - "displayName": "Provisioning", - "startTime": "2020-11-18T18:25:02.224Z", - "endTime": "2020-11-18T18:25:12.952Z", - "id": "e72eb35f-f406-42ec-8b93-7d18a9f7b059", - "logUri": "" - } - ] - }, - { - "name": "Customizations", - "status": "Succeeded", - "startTime": "2020-11-18T18:25:02.224Z", - "endTime": "2020-11-18T18:25:12.952Z", - "tasks": [ - { - "name": "vs2022", - "status": "Succeeded", - "displayName": "Install Visual Studio 2022", - "startTime": "2020-11-18T18:25:02.224Z", - "endTime": "2020-11-18T18:25:12.952Z", - "id": "e72eb35f-f406-42ec-8b93-7d18a9f7b059", - "logUri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/DevProject/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7/logs/e72eb35f-f406-42ec-8b93-7d18a9f7b059" - } - ] - }, - { - "name": "Generalization", - "status": "Succeeded", - "startTime": "2020-11-18T18:25:02.224Z", - "endTime": "2020-11-18T18:25:12.952Z", - "tasks": [ - { - "name": "Generalization", - "status": "Succeeded", - "displayName": "Generalization", - "startTime": "2020-11-18T18:25:02.224Z", - "endTime": "2020-11-18T18:25:12.952Z", - "logUri": "" - } - ] - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_ListImageBuildsByImageDefinition.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_ListImageBuildsByImageDefinition.json deleted file mode 100644 index 5ba77ab196be..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_ListImageBuildsByImageDefinition.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "DevDevCenter", - "catalogName": "CentralCatalog", - "imageDefinitionName": "DefaultDevImage", - "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/DevDevCenter/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7", - "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", - "type": "Microsoft.DevCenter/devcenters/catalogs/imageDefinitions/builds", - "properties": { - "imageReference": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" - }, - "status": "Succeeded" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Create.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Create.json deleted file mode 100644 index cdf564193031..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Create.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "body": { - "tags": { - "CostCode": "12345" - }, - "location": "centralus", - "properties": { - "displayName": "ContosoDevCenter", - "devBoxProvisioningSettings": { - "installAzureMonitorAgentEnableStatus": "Enabled" - }, - "projectCatalogSettings": { - "catalogItemSyncEnableStatus": "Enabled" - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "name": "Contoso", - "type": "Microsoft.DevCenter/devcenters", - "tags": { - "hidden-title": "ContosoDevCenter", - "CostCode": "12345" - }, - "location": "centralus", - "properties": { - "provisioningState": "Succeeded", - "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "displayName": "ContosoDevCenter", - "projectCatalogSettings": { - "catalogItemSyncEnableStatus": "Enabled" - }, - "devBoxProvisioningSettings": { - "installAzureMonitorAgentEnableStatus": "Enabled" - }, - "networkSettings": { - "microsoftHostedNetworkEnableStatus": "Enabled" - } - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-11T22:00:08.896Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-11T22:00:10.896Z" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "name": "Contoso", - "type": "Microsoft.DevCenter/devcenters", - "tags": { - "hidden-title": "ContosoDevCenter", - "CostCode": "12345" - }, - "location": "centralus", - "properties": { - "provisioningState": "Accepted", - "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "displayName": "ContosoDevCenter", - "devBoxProvisioningSettings": { - "installAzureMonitorAgentEnableStatus": "Enabled" - }, - "projectCatalogSettings": { - "catalogItemSyncEnableStatus": "Enabled" - }, - "networkSettings": { - "microsoftHostedNetworkEnableStatus": "Enabled" - } - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-11T22:00:08.896Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-11T22:00:10.896Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithDisabledManagedNetworks.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithDisabledManagedNetworks.json deleted file mode 100644 index 29635a838ac2..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithDisabledManagedNetworks.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "body": { - "tags": { - "CostCode": "12345" - }, - "location": "centralus", - "properties": { - "displayName": "ContosoDevCenter", - "networkSettings": { - "microsoftHostedNetworkEnableStatus": "Disabled" - } - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "name": "Contoso", - "type": "Microsoft.DevCenter/devcenters", - "tags": { - "CostCode": "12345" - }, - "location": "centralus", - "properties": { - "provisioningState": "Succeeded", - "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "displayName": "ContosoDevCenter", - "networkSettings": { - "microsoftHostedNetworkEnableStatus": "Disabled" - } - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-11T22:00:08.896Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-11T22:00:10.896Z" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } - } - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "name": "Contoso", - "type": "Microsoft.DevCenter/devcenters", - "tags": { - "CostCode": "12345" - }, - "location": "centralus", - "properties": { - "provisioningState": "Accepted", - "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "displayName": "ContosoDevCenter", - "networkSettings": { - "microsoftHostedNetworkEnableStatus": "Disabled" - } - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-11T22:00:08.896Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-11T22:00:10.896Z" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithEncryption.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithEncryption.json deleted file mode 100644 index 16b1ffb491f9..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithEncryption.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "body": { - "tags": { - "CostCode": "12345" - }, - "location": "centralus", - "properties": { - "displayName": "ContosoDevCenter", - "encryption": { - "customerManagedKeyEncryption": { - "keyEncryptionKeyIdentity": { - "identityType": "userAssignedIdentity", - "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" - }, - "keyEncryptionKeyUrl": "https://contosovault.vault.azure.net/keys/contosokek" - } - } - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "name": "Contoso", - "type": "Microsoft.DevCenter/devcenters", - "tags": { - "CostCode": "12345" - }, - "location": "centralus", - "properties": { - "provisioningState": "Succeeded", - "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "displayName": "ContosoDevCenter", - "encryption": { - "customerManagedKeyEncryption": { - "keyEncryptionKeyIdentity": { - "identityType": "userAssignedIdentity", - "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" - }, - "keyEncryptionKeyUrl": "https://contosovault.vault.azure.net/keys/contosokek" - } - }, - "networkSettings": { - "microsoftHostedNetworkEnableStatus": "Enabled" - } - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-11T22:00:08.896Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-11T22:00:10.896Z" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } - } - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "name": "Contoso", - "type": "Microsoft.DevCenter/devcenters", - "tags": { - "CostCode": "12345" - }, - "location": "centralus", - "properties": { - "provisioningState": "Accepted", - "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "displayName": "ContosoDevCenter", - "encryption": { - "customerManagedKeyEncryption": { - "keyEncryptionKeyIdentity": { - "identityType": "userAssignedIdentity", - "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" - }, - "keyEncryptionKeyUrl": "https://contosovault.vault.azure.net/keys/contosokek" - } - }, - "networkSettings": { - "microsoftHostedNetworkEnableStatus": "Enabled" - } - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-11T22:00:08.896Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-11T22:00:10.896Z" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithUserIdentity.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithUserIdentity.json deleted file mode 100644 index 690fbc7ba205..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithUserIdentity.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "body": { - "tags": { - "CostCode": "12345" - }, - "location": "centralus", - "properties": { - "displayName": "ContosoDevCenter" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "name": "Contoso", - "type": "Microsoft.DevCenter/devcenters", - "tags": { - "CostCode": "12345" - }, - "location": "centralus", - "properties": { - "provisioningState": "Succeeded", - "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "displayName": "ContosoDevCenter", - "networkSettings": { - "microsoftHostedNetworkEnableStatus": "Enabled" - } - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-11T22:00:08.896Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-11T22:00:10.896Z" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } - } - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "name": "Contoso", - "type": "Microsoft.DevCenter/devcenters", - "tags": { - "CostCode": "12345" - }, - "location": "centralus", - "properties": { - "provisioningState": "Accepted", - "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "displayName": "ContosoDevCenter", - "networkSettings": { - "microsoftHostedNetworkEnableStatus": "Enabled" - } - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-11T22:00:08.896Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-11T22:00:10.896Z" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Delete.json deleted file mode 100644 index 8841cba24be2..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Delete.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso" - }, - "responses": { - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", - "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" - } - }, - "204": {} - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Get.json deleted file mode 100644 index 8e14f03907da..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Get.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "name": "Contoso", - "type": "Microsoft.DevCenter/devcenters", - "tags": { - "hidden-title": "ContosoDevCenter", - "CostCode": "12345" - }, - "location": "centralus", - "properties": { - "provisioningState": "Succeeded", - "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "displayName": "ContosoDevCenter", - "projectCatalogSettings": { - "catalogItemSyncEnableStatus": "Enabled" - }, - "devBoxProvisioningSettings": { - "installAzureMonitorAgentEnableStatus": "Enabled" - } - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-11T22:00:08.896Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-11T22:00:10.896Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_ListByResourceGroup.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_ListByResourceGroup.json deleted file mode 100644 index 3a3f47d64efe..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_ListByResourceGroup.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/contoso", - "name": "Contoso", - "type": "Microsoft.DevCenter/devcenters", - "tags": { - "CostCode": "12345" - }, - "location": "centralus", - "properties": { - "provisioningState": "Succeeded", - "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "displayName": "ContosoDevCenter" - }, - "systemData": { - "createdBy": "string", - "createdByType": "User", - "createdAt": "2020-11-11T22:00:08.896Z", - "lastModifiedBy": "string", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-11T22:00:08.896Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_ListBySubscription.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_ListBySubscription.json deleted file mode 100644 index 361e31d188d6..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_ListBySubscription.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/contoso", - "name": "Contoso", - "type": "Microsoft.DevCenter/devcenters", - "tags": { - "CostCode": "12345" - }, - "location": "centralus", - "properties": { - "provisioningState": "Succeeded", - "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "displayName": "ContosoDevCenter" - }, - "systemData": { - "createdBy": "string", - "createdByType": "User", - "createdAt": "2020-11-11T22:00:08.896Z", - "lastModifiedBy": "string", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-11T22:00:08.896Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Patch.json deleted file mode 100644 index c652a8a8faeb..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Patch.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "body": { - "tags": { - "CostCode": "12345" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "name": "Contoso", - "type": "Microsoft.DevCenter/devcenters", - "tags": { - "CostCode": "12345" - }, - "location": "centralus", - "properties": { - "provisioningState": "Succeeded", - "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "displayName": "ContosoDevCenter" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-11T22:00:08.896Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-11T22:00:10.896Z" - } - } - }, - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_Get.json deleted file mode 100644 index 52ff5406524c..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_Get.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "catalogName": "myCatalog", - "environmentDefinitionName": "myEnvironmentDefinition" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/myCatalog/environmentDefinitions/myEnvironmentDefinition", - "name": "myEnvironmentDefinition", - "type": "Microsoft.DevCenter/devcenters/catalogs/environmentDefinitions", - "properties": { - "description": "My sample environment definition.", - "parameters": [ - { - "id": "functionAppRuntime", - "name": "Function App Runtime", - "type": "string", - "required": true - }, - { - "id": "storageAccountType", - "name": "Storage Account Type", - "type": "string", - "required": true - }, - { - "id": "httpsOnly", - "name": "HTTPS only", - "type": "boolean", - "readOnly": true, - "required": true - } - ], - "templatePath": "azuredeploy.json", - "validationStatus": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_GetByProjectCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_GetByProjectCatalog.json deleted file mode 100644 index 996e87739005..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_GetByProjectCatalog.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "catalogName": "myCatalog", - "environmentDefinitionName": "myEnvironmentDefinition" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/myCatalog/environmentDefinitions/myEnvironmentDefinition", - "name": "myEnvironmentDefinition", - "type": "Microsoft.DevCenter/projects/catalogs/environmentDefinitions", - "properties": { - "description": "My sample environment definition.", - "parameters": [ - { - "id": "functionAppRuntime", - "name": "Function App Runtime", - "type": "string", - "required": true - }, - { - "id": "storageAccountType", - "name": "Storage Account Type", - "type": "string", - "required": true - }, - { - "id": "httpsOnly", - "name": "HTTPS only", - "type": "boolean", - "readOnly": true, - "required": true - } - ], - "templatePath": "azuredeploy.json", - "validationStatus": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_GetErrorDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_GetErrorDetails.json deleted file mode 100644 index 398f87757417..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_GetErrorDetails.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "catalogName": "myCatalog", - "environmentDefinitionName": "myEnvironmentDefinition" - }, - "responses": { - "200": { - "body": { - "errors": [ - { - "code": "ParameterValueInvalid", - "message": "Expected parameter value for 'InstanceCount' to be integer but found the string 'test'." - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_ListByCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_ListByCatalog.json deleted file mode 100644 index e555af3716f3..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_ListByCatalog.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "catalogName": "myCatalog" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/myCatalog/environmentDefinitions/myEnvironmentDefinition", - "name": "myEnvironmentDefinition", - "type": "Microsoft.DevCenter/devcenters/catalogs/environmentDefinitions", - "properties": { - "description": "My sample environment definition.", - "parameters": [ - { - "id": "functionAppRuntime", - "name": "Function App Runtime", - "type": "string", - "required": true - }, - { - "id": "storageAccountType", - "name": "Storage Account Type", - "type": "string", - "required": true - }, - { - "id": "httpsOnly", - "name": "HTTPS only", - "type": "boolean", - "readOnly": true, - "required": true - } - ], - "templatePath": "azuredeploy.json", - "validationStatus": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_ListByProjectCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_ListByProjectCatalog.json deleted file mode 100644 index 2f3620b2c575..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_ListByProjectCatalog.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "catalogName": "myCatalog" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/myCatalog/environmentDefinitions/myEnvironmentDefinition", - "name": "myEnvironmentDefinition", - "type": "Microsoft.DevCenter/projects/catalogs/environmentDefinitions", - "properties": { - "description": "My sample environment definition.", - "parameters": [ - { - "id": "functionAppRuntime", - "name": "Function App Runtime", - "type": "string", - "required": true - }, - { - "id": "storageAccountType", - "name": "Storage Account Type", - "type": "string", - "required": true - }, - { - "id": "httpsOnly", - "name": "HTTPS only", - "type": "boolean", - "readOnly": true, - "required": true - } - ], - "templatePath": "azuredeploy.json", - "validationStatus": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Delete.json deleted file mode 100644 index ea92d3e73c78..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "environmentTypeName": "DevTest" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Get.json deleted file mode 100644 index 5479fc7a6964..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Get.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "environmentTypeName": "DevTest" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/environmentTypes/DevTest", - "name": "DevTest", - "type": "Microsoft.DevCenter/devcenters/environmenttypes", - "properties": { - "displayName": "Dev" - }, - "tags": { - "hidden-title": "Dev", - "CostCenter": "RnD" - }, - "systemData": { - "createdBy": "User1@contoso.com", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_List.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_List.json deleted file mode 100644 index 492c17ace884..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_List.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/environmentTypes/DevTest", - "name": "DevTest", - "type": "Microsoft.DevCenter/devcenters/environmenttypes", - "tags": { - "CostCenter": "RnD" - }, - "systemData": { - "createdBy": "User1@contoso.com", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Patch.json deleted file mode 100644 index 8d955b70832b..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Patch.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "environmentTypeName": "DevTest", - "body": { - "properties": { - "displayName": "Dev" - }, - "tags": { - "Owner": "superuser" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/environmentTypes/DevTest", - "name": "DevTest", - "type": "Microsoft.DevCenter/devcenters/environmenttypes", - "properties": { - "displayName": "Dev" - }, - "tags": { - "hidden-title": "Dev", - "Owner": "superuser" - }, - "systemData": { - "createdBy": "User1@contoso.com", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Put.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Put.json deleted file mode 100644 index 75a0ea0ee3a2..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Put.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "environmentTypeName": "DevTest", - "body": { - "tags": { - "Owner": "superuser" - }, - "properties": { - "displayName": "Dev" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/environmentTypes/DevTest", - "name": "DevTest", - "type": "Microsoft.DevCenter/devcenters/environmenttypes", - "properties": { - "displayName": "Dev" - }, - "tags": { - "hidden-title": "Dev", - "Owner": "superuser" - }, - "systemData": { - "createdBy": "User1@contoso.com", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/environmentTypes/DevTest", - "name": "DevTest", - "type": "Microsoft.DevCenter/devcenters/environmenttypes", - "properties": { - "displayName": "Dev" - }, - "tags": { - "hidden-title": "Dev", - "Owner": "superuser" - }, - "systemData": { - "createdBy": "User1@contoso.com", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Create.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Create.json deleted file mode 100644 index 8f5c79876b7d..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Create.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "galleryName": "StandardGallery", - "body": { - "properties": { - "galleryResourceId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.Compute/galleries/StandardGallery" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/StandardGallery", - "name": "StandardGallery", - "type": "Microsoft.DevCenter/devcenters/galleries", - "properties": { - "galleryResourceId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.Compute/galleries/StandardGallery", - "provisioningState": "Accepted" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/StandardGallery", - "name": "StandardGallery", - "type": "Microsoft.DevCenter/devcenters/galleries", - "properties": { - "galleryResourceId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.Compute/galleries/StandardGallery", - "provisioningState": "Accepted" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Delete.json deleted file mode 100644 index 63b1593b3b07..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Delete.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "galleryName": "StandardGallery" - }, - "responses": { - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", - "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" - } - }, - "204": {} - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Get.json deleted file mode 100644 index b365e47a4e48..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Get.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "galleryName": "StandardGallery" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/StandardGallery", - "name": "StandardGallery", - "type": "Microsoft.DevCenter/devcenters/galleries", - "properties": { - "galleryResourceId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.Compute/galleries/StandardGallery", - "provisioningState": "Accepted" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_List.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_List.json deleted file mode 100644 index 003296e4743d..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_List.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/default", - "name": "StandardGallery", - "type": "Microsoft.DevCenter/devcenters/galleries", - "properties": { - "provisioningState": "Succeeded", - "galleryResourceId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.Compute/galleries/CentralGallery" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - }, - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/ImageGallery", - "name": "StandardGallery", - "type": "Microsoft.DevCenter/devcenters/galleries", - "properties": { - "galleryResourceId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.Compute/galleries/SharedGallery", - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_BuildImage.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_BuildImage.json deleted file mode 100644 index 4ff6fb98590a..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_BuildImage.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "catalogName": "CentralCatalog", - "imageDefinitionName": "DefaultDevImage" - }, - "responses": { - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview", - "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_CancelImageBuild.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_CancelImageBuild.json deleted file mode 100644 index 8bb90de0acd7..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_CancelImageBuild.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "catalogName": "CentralCatalog", - "imageDefinitionName": "DefaultDevImage", - "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7" - }, - "responses": { - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview", - "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetByDevCenterCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetByDevCenterCatalog.json deleted file mode 100644 index ee6af687fc03..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetByDevCenterCatalog.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "ContosoDevCenter", - "catalogName": "TeamCatalog", - "imageDefinitionName": "WebDevBox" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/ContosoDevCenter/catalogs/TeamCatalog/imagedefinitions/WebDevBox", - "name": "WebDevBox", - "type": "Microsoft.DevCenter/devcenters/catalogs/imagedefinitions", - "properties": { - "extends": { - "imageDefinition": "it-base", - "parameters": [ - { - "name": "vssku", - "value": "Community" - } - ] - }, - "tasks": [ - { - "name": "git-clone", - "parameters": [ - { - "name": "cloneUri", - "value": "https://github.com/microsoft/devcenter-catalog" - } - ] - } - ], - "imageReference": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" - }, - "latestBuild": { - "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", - "status": "Running", - "startTime": "2020-11-18T18:25:02.224Z", - "endTime": "2020-11-18T18:25:12.952Z" - }, - "activeImageReference": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" - }, - "imageValidationStatus": "Failed", - "validationStatus": "Succeeded", - "imageValidationErrorDetails": { - "code": "400", - "message": "Validation failed" - }, - "autoImageBuild": "Enabled" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetByProjectCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetByProjectCatalog.json deleted file mode 100644 index d1ae0079ea15..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetByProjectCatalog.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "ContosoProject", - "catalogName": "TeamCatalog", - "imageDefinitionName": "WebDevBox" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProject/catalogs/TeamCatalog/imagedefinitions/WebDevBox", - "name": "WebDevBox", - "type": "Microsoft.DevCenter/projects/catalogs/imagedefinitions", - "properties": { - "imageReference": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" - }, - "latestBuild": { - "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", - "status": "Running", - "startTime": "2020-11-18T18:25:02.224Z", - "endTime": "2020-11-18T18:25:12.952Z" - }, - "activeImageReference": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" - }, - "imageValidationStatus": "Failed", - "validationStatus": "Succeeded", - "imageValidationErrorDetails": { - "code": "400", - "message": "Validation failed" - }, - "autoImageBuild": "Enabled" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetImageBuild.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetImageBuild.json deleted file mode 100644 index 5909a437b7e8..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetImageBuild.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "catalogName": "CentralCatalog", - "imageDefinitionName": "DefaultDevImage", - "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7", - "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", - "type": "Microsoft.DevCenter/projects/catalogs/imageDefinitions/builds", - "properties": { - "imageReference": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" - }, - "status": "Succeeded" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetImageBuildDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetImageBuildDetails.json deleted file mode 100644 index 7225f529a1ef..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetImageBuildDetails.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "catalogName": "CentralCatalog", - "imageDefinitionName": "DefaultDevImage", - "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7" - }, - "responses": { - "200": { - "body": { - "imageReference": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" - }, - "status": "Succeeded", - "taskGroups": [ - { - "name": "Provisioning", - "status": "Succeeded", - "startTime": "2020-11-18T18:25:02.224Z", - "endTime": "2020-11-18T18:25:12.952Z", - "tasks": [ - { - "name": "Provisioning", - "status": "Succeeded", - "displayName": "Provisioning", - "startTime": "2020-11-18T18:25:02.224Z", - "endTime": "2020-11-18T18:25:12.952Z", - "id": "e72eb35f-f406-42ec-8b93-7d18a9f7b059", - "logUri": "" - } - ] - }, - { - "name": "Customizations", - "status": "Succeeded", - "startTime": "2020-11-18T18:25:02.224Z", - "endTime": "2020-11-18T18:25:12.952Z", - "tasks": [ - { - "name": "vs2022", - "status": "Succeeded", - "displayName": "Install Visual Studio 2022", - "startTime": "2020-11-18T18:25:02.224Z", - "endTime": "2020-11-18T18:25:12.952Z", - "id": "e72eb35f-f406-42ec-8b93-7d18a9f7b059", - "logUri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/DevProject/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7/logs/e72eb35f-f406-42ec-8b93-7d18a9f7b059" - } - ] - }, - { - "name": "Generalization", - "status": "Succeeded", - "startTime": "2020-11-18T18:25:02.224Z", - "endTime": "2020-11-18T18:25:12.952Z", - "tasks": [ - { - "name": "Generalization", - "status": "Succeeded", - "displayName": "Generalization", - "startTime": "2020-11-18T18:25:02.224Z", - "endTime": "2020-11-18T18:25:12.952Z", - "logUri": "" - } - ] - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListByDevCenterCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListByDevCenterCatalog.json deleted file mode 100644 index 5c2b42f70dbe..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListByDevCenterCatalog.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "ContosoDevCenter", - "catalogName": "TeamCatalog" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/ContosoDevCenter/catalogs/TeamCatalog/imagedefinitions/WebDevBox", - "name": "WebDevBox", - "type": "Microsoft.DevCenter/devcenters/catalogs/imagedefinitions", - "properties": { - "imageReference": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" - }, - "latestBuild": { - "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", - "status": "Running", - "startTime": "2020-11-18T18:25:02.224Z", - "endTime": "2020-11-18T18:25:12.952Z" - }, - "activeImageReference": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" - }, - "imageValidationStatus": "Failed", - "validationStatus": "Succeeded", - "imageValidationErrorDetails": { - "code": "400", - "message": "Validation failed" - }, - "autoImageBuild": "Enabled" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListByProjectCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListByProjectCatalog.json deleted file mode 100644 index ae5e9de1898c..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListByProjectCatalog.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "ContosoProject", - "catalogName": "TeamCatalog" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProject/catalogs/TeamCatalog/imagedefinitions/WebDevBox", - "name": "WebDevBox", - "type": "Microsoft.DevCenter/projects/catalogs/imagedefinitions", - "properties": { - "imageReference": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" - }, - "latestBuild": { - "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", - "status": "Running", - "startTime": "2020-11-18T18:25:02.224Z", - "endTime": "2020-11-18T18:25:12.952Z" - }, - "activeImageReference": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" - }, - "imageValidationStatus": "Failed", - "validationStatus": "Succeeded", - "imageValidationErrorDetails": { - "code": "400", - "message": "Validation failed" - }, - "autoImageBuild": "Enabled" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListImageBuildsByImageDefinition.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListImageBuildsByImageDefinition.json deleted file mode 100644 index 1fb814a0b8f9..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListImageBuildsByImageDefinition.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "catalogName": "CentralCatalog", - "imageDefinitionName": "DefaultDevImage", - "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7", - "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", - "type": "Microsoft.DevCenter/projects/catalogs/imageDefinitions/builds", - "properties": { - "imageReference": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" - }, - "status": "Succeeded" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_Get.json deleted file mode 100644 index f672ed8069c5..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_Get.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "galleryName": "DefaultDevGallery", - "imageName": "Win11", - "versionName": "1.0.0" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DefaultDevGallery/images/Win11/versions/1.0.0", - "name": "1.0.0", - "type": "Microsoft.DevCenter/devcenters/galleries/images/versions", - "properties": { - "publishedDate": "2021-12-01T12:45:16.845Z", - "excludeFromLatest": false, - "osDiskImageSizeInGb": 64, - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_GetByProject.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_GetByProject.json deleted file mode 100644 index 4939160d9027..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_GetByProject.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "myProject", - "imageName": "~gallery~DefaultDevGallery~ContosoImageDefinition", - "versionName": "1.0.0" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/project/myProject/images/~gallery~DefaultDevGallery~ContosoImageDefinition/versions/1.0.0", - "name": "1.0.0", - "type": "Microsoft.DevCenter/project/images/versions", - "properties": { - "publishedDate": "2021-12-01T12:45:16.845Z", - "excludeFromLatest": false, - "osDiskImageSizeInGb": 64, - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_List.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_List.json deleted file mode 100644 index 02c0e90a6446..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_List.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "galleryName": "DefaultDevGallery", - "imageName": "Win11" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DefaultDevGallery/images/Win11/versions/1.0.0", - "name": "1.0.0", - "type": "Microsoft.DevCenter/devcenters/galleries/images/versions", - "properties": { - "publishedDate": "2021-12-01T12:45:16.845Z", - "excludeFromLatest": false, - "osDiskImageSizeInGb": 64, - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_ListByProject.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_ListByProject.json deleted file mode 100644 index 4d739143eae2..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_ListByProject.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "myProject", - "imageName": "~gallery~DefaultDevGallery~ContosoImageDefinition" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/project/myProject/images/~gallery~DefaultDevGallery~ContosoImageDefinition/versions/1.0.0", - "name": "1.0.0", - "type": "Microsoft.DevCenter/project/images/versions", - "properties": { - "publishedDate": "2021-12-01T12:45:16.845Z", - "excludeFromLatest": false, - "osDiskImageSizeInGb": 64, - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_Get.json deleted file mode 100644 index 2c5de20bd1ea..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_Get.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "galleryName": "DefaultDevGallery", - "imageName": "ContosoBaseImage" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DefaultDevGallery/images/ContosoBaseImage", - "name": "ContosoBaseImage", - "type": "Microsoft.DevCenter/devcenters/galleries/images", - "properties": { - "description": "Standard Windows Dev/Test image.", - "publisher": "Contoso", - "offer": "Finance", - "sku": "Backend", - "recommendedMachineConfiguration": { - "memory": { - "min": 256, - "max": 512 - }, - "vCPUs": { - "min": 4, - "max": 8 - } - }, - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_GetByProject.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_GetByProject.json deleted file mode 100644 index b4d5b5265fed..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_GetByProject.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "myProject", - "imageName": "~gallery~DefaultDevGallery~ContosoBaseImage" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/project/myProject/images/~gallery~DefaultDevGallery~ContosoBaseImage", - "name": "ContosoBaseImage", - "type": "Microsoft.DevCenter/project/images", - "properties": { - "description": "Standard Windows Dev/Test image.", - "publisher": "Contoso", - "offer": "Finance", - "sku": "Backend", - "recommendedMachineConfiguration": { - "memory": { - "min": 256, - "max": 512 - }, - "vCPUs": { - "min": 4, - "max": 8 - } - }, - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByDevCenter.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByDevCenter.json deleted file mode 100644 index 90b7d1ad2d52..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByDevCenter.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DevGallery/images/ContosoBaseImage", - "name": "ContosoBaseImage", - "type": "Microsoft.DevCenter/devcenters/galleries/images", - "properties": { - "description": "Windows 10 Enterprise + OS Optimizations 1909", - "publisher": "MicrosoftWindowsDesktop", - "offer": "windows-ent-cpc", - "sku": "19h2-ent-cpc-os-g2", - "recommendedMachineConfiguration": { - "memory": { - "min": 128, - "max": 256 - }, - "vCPUs": { - "min": 2, - "max": 4 - } - }, - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - }, - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DevGallery/images/ContosoBaseImage2", - "name": "ContosoBaseImage2", - "type": "Microsoft.DevCenter/devcenters/galleries/images", - "properties": { - "description": "Standard Windows Dev/Test image.", - "publisher": "Contoso", - "offer": "Finance", - "sku": "Backend", - "recommendedMachineConfiguration": { - "memory": { - "min": 256, - "max": 512 - }, - "vCPUs": { - "min": 4, - "max": 8 - } - } - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByGallery.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByGallery.json deleted file mode 100644 index bafcef7263ab..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByGallery.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "galleryName": "DevGallery" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DevGallery/images/ContosoBaseImage", - "name": "ContosoBaseImage", - "type": "Microsoft.DevCenter/devcenters/galleries/images", - "properties": { - "description": "Windows 10 Enterprise + OS Optimizations 1909", - "publisher": "MicrosoftWindowsDesktop", - "offer": "windows-ent-cpc", - "sku": "19h2-ent-cpc-os-g2", - "recommendedMachineConfiguration": { - "memory": { - "min": 128, - "max": 256 - }, - "vCPUs": { - "min": 2, - "max": 4 - } - }, - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - }, - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DevGallery/images/ContosoBaseImage2", - "name": "ContosoBaseImage2", - "type": "Microsoft.DevCenter/devcenters/galleries/images", - "properties": { - "description": "Standard Windows Dev/Test image.", - "publisher": "Contoso", - "offer": "Finance", - "sku": "Backend", - "recommendedMachineConfiguration": { - "memory": { - "min": 256, - "max": 512 - }, - "vCPUs": { - "min": 4, - "max": 8 - } - } - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByProject.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByProject.json deleted file mode 100644 index 82b6a9f1d076..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByProject.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "myProject" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/myProject/images/~gallery~DefaultDevGallery~ContosoBaseImage", - "name": "~gallery~DefaultDevGallery~ContosoBaseImage", - "type": "Microsoft.DevCenter/project/images", - "properties": { - "description": "Windows 10 Enterprise + OS Optimizations 1909", - "publisher": "MicrosoftWindowsDesktop", - "offer": "windows-ent-cpc", - "sku": "19h2-ent-cpc-os-g2", - "recommendedMachineConfiguration": { - "memory": { - "min": 128, - "max": 256 - }, - "vCPUs": { - "min": 2, - "max": 4 - } - }, - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - }, - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/myProject/images/~catalog~DefaultCatalog~DefaultImage", - "name": "~catalog~DefaultCatalog~DefaultImage", - "type": "Microsoft.DevCenter/project/images", - "properties": { - "description": "Windows 10 Enterprise + OS Optimizations 1909", - "publisher": "MicrosoftWindowsDesktop", - "offer": "windows-ent-cpc", - "sku": "19h2-ent-cpc-os-g2", - "recommendedMachineConfiguration": { - "memory": { - "min": 128, - "max": 256 - }, - "vCPUs": { - "min": 2, - "max": 4 - } - }, - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - }, - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/myProject/images/~gallery~DefaultDevGallery~ContosoImageDefinition", - "name": "~gallery~DefaultDevGallery~ContosoImageDefinition", - "type": "Microsoft.DevCenter/project/images", - "properties": { - "description": "Standard Windows Dev/Test image.", - "publisher": "Contoso", - "offer": "Finance", - "sku": "Backend", - "recommendedMachineConfiguration": { - "memory": { - "min": 256, - "max": 512 - }, - "vCPUs": { - "min": 4, - "max": 8 - } - } - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Delete.json deleted file mode 100644 index 771cc52687b9..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Delete.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "networkConnectionName": "eastusnetwork" - }, - "responses": { - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", - "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" - } - }, - "204": {} - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Get.json deleted file mode 100644 index 466e95a01811..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Get.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "networkConnectionName": "uswest3network" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", - "name": "uswest3network", - "type": "Microsoft.DevCenter/networkconnections", - "properties": { - "domainJoinType": "HybridAzureADJoin", - "domainName": "mydomaincontroller.local", - "domainUsername": "testuser@mydomaincontroller.local", - "networkingResourceGroupName": "NetworkInterfaces", - "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default", - "provisioningState": "Succeeded", - "healthCheckStatus": "Passed" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_GetHealthDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_GetHealthDetails.json deleted file mode 100644 index 31dd1a8b20e3..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_GetHealthDetails.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "networkConnectionName": "eastusnetwork" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/eastusnetwork/healthchecks/latest", - "name": "latest", - "type": "Microsoft.DevCenter/networkconnections/healthchecks", - "properties": { - "startDateTime": "2021-07-03T12:43:14Z", - "endDateTime": "2021-07-03T12:43:15Z", - "healthChecks": [ - { - "displayName": "Azure AD device sync", - "endDateTime": "2021-07-03T12:43:14Z", - "startDateTime": "2021-07-03T12:43:15Z", - "status": "Passed" - } - ] - }, - "systemData": { - "createdBy": "System", - "createdByType": "Application", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "System", - "lastModifiedByType": "Application", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListByResourceGroup.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListByResourceGroup.json deleted file mode 100644 index 8b4602946753..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListByResourceGroup.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", - "name": "uswest3network", - "type": "Microsoft.DevCenter/networkconnections", - "properties": { - "domainJoinType": "HybridAzureADJoin", - "domainName": "mydomaincontroller.local", - "domainUsername": "testuser@mydomaincontroller.local", - "networkingResourceGroupName": "NetworkInterfaces", - "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default", - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListBySubscription.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListBySubscription.json deleted file mode 100644 index 648a3d572648..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListBySubscription.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", - "name": "uswest3network", - "type": "Microsoft.DevCenter/networkconnection", - "properties": { - "domainJoinType": "HybridAzureADJoin", - "domainName": "mydomaincontroller.local", - "domainUsername": "testuser@mydomaincontroller.local", - "networkingResourceGroupName": "NetworkInterfaces", - "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default", - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListHealthDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListHealthDetails.json deleted file mode 100644 index 5fa9222ac0d9..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListHealthDetails.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "networkConnectionName": "uswest3network" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network/healthchecks/latest", - "name": "latest", - "type": "Microsoft.DevCenter/networkconnections/healthchecks", - "properties": { - "startDateTime": "2021-07-03T12:43:14Z", - "endDateTime": "2021-07-03T12:43:15Z", - "healthChecks": [ - { - "displayName": "Azure AD device sync", - "endDateTime": "2021-07-03T12:43:14Z", - "startDateTime": "2021-07-03T12:43:15Z", - "status": "Passed" - } - ] - }, - "systemData": { - "createdBy": "System", - "createdByType": "Application", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "System", - "lastModifiedByType": "Application", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListOutboundNetworkDependenciesEndpoints.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListOutboundNetworkDependenciesEndpoints.json deleted file mode 100644 index bad1591a7c66..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListOutboundNetworkDependenciesEndpoints.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "networkConnectionName": "uswest3network" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "category": "Dev Box Service", - "endpoints": [ - { - "domainName": "devbox.azure.com", - "endpointDetails": [ - { - "port": 443 - } - ] - } - ] - }, - { - "category": "Intune", - "endpoints": [ - { - "domainName": "login.microsoftonline.com", - "endpointDetails": [ - { - "port": 443 - } - ] - } - ] - }, - { - "category": "Cloud PC", - "endpoints": [ - { - "domainName": "rdweb.wvd.microsoft.com", - "endpointDetails": [ - { - "port": 443 - } - ] - } - ] - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Patch.json deleted file mode 100644 index b3c31b725138..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Patch.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "networkConnectionName": "uswest3network", - "body": { - "properties": { - "domainPassword": "New Password value for user" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", - "name": "uswest3network", - "type": "Microsoft.DevCenter/networkconnections", - "properties": { - "domainJoinType": "HybridAzureADJoin", - "domainName": "mydomaincontroller.local", - "domainUsername": "testuser@mydomaincontroller.local", - "networkingResourceGroupName": "NetworkInterfaces", - "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default", - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" - } - }, - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", - "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Put.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Put.json deleted file mode 100644 index 15fb39edf40a..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Put.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "networkConnectionName": "uswest3network", - "body": { - "properties": { - "domainJoinType": "HybridAzureADJoin", - "domainName": "mydomaincontroller.local", - "domainUsername": "testuser@mydomaincontroller.local", - "domainPassword": "Password value for user", - "networkingResourceGroupName": "NetworkInterfaces", - "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default" - }, - "location": "centralus" - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", - "name": "uswest3network", - "type": "Microsoft.DevCenter/networkconnections", - "properties": { - "domainJoinType": "HybridAzureADJoin", - "domainName": "mydomaincontroller.local", - "domainUsername": "testuser@mydomaincontroller.local", - "networkingResourceGroupName": "NetworkInterfaces", - "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default", - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", - "name": "uswest3network", - "type": "Microsoft.DevCenter/networkconnections", - "properties": { - "domainJoinType": "HybridAzureADJoin", - "domainName": "mydomaincontroller.local", - "domainUsername": "testuser@mydomaincontroller.local", - "networkingResourceGroupName": "NetworkInterfaces", - "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default", - "provisioningState": "Created" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_RunHealthChecks.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_RunHealthChecks.json deleted file mode 100644 index 15ec7599e854..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_RunHealthChecks.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "networkConnectionName": "uswest3network" - }, - "responses": { - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", - "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/OperationStatus_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/OperationStatus_Get.json deleted file mode 100644 index 156fe1b63530..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/OperationStatus_Get.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "location": "westus3", - "operationId": "3fa1a29d-e807-488d-81d1-f1c5456a08cd" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4", - "status": "Succeeded", - "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "startTime": "2020-12-01T15:16:29.500Z", - "endTime": "2020-12-01T15:16:55.100Z", - "percentComplete": 100 - } - }, - "202": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4", - "status": "Succeeded", - "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "startTime": "2020-12-01T15:16:29.500Z", - "endTime": "2020-12-01T15:16:55.100Z", - "percentComplete": 99 - }, - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", - "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" - } - }, - "default": { - "body": { - "error": { - "code": "OperationNotFound", - "message": "The requested async operation was not found" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Operations_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Operations_Get.json deleted file mode 100644 index 19ae2f36c3c5..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Operations_Get.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "Microsoft.DevCenter/devcenters/write", - "display": { - "provider": "Microsoft DevTest Center", - "resource": "Microsoft DevTest Center devcenter resource", - "operation": "write" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Delete.json deleted file mode 100644 index 1dd9e32ea99e..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Delete.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "poolName": "poolName" - }, - "responses": { - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", - "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" - } - }, - "204": {} - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Get.json deleted file mode 100644 index 136e1bc7b094..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Get.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "poolName": "DevPool" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", - "name": "DevPool", - "type": "Microsoft.DevCenter/pools", - "properties": { - "displayName": "Developer Pool", - "devBoxDefinitionName": "WebDevBox", - "networkConnectionName": "Network1-westus2", - "licenseType": "Windows_Client", - "localAdministrator": "Enabled", - "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 60 - }, - "stopOnNoConnect": { - "status": "Enabled", - "gracePeriodMinutes": 120 - }, - "healthStatus": "Healthy", - "devBoxCount": 1, - "provisioningState": "Succeeded", - "singleSignOnStatus": "Disabled", - "virtualNetworkType": "Managed", - "managedVirtualNetworkRegions": [ - "centralus" - ], - "activeHoursConfiguration": { - "keepAwakeEnableStatus": "Enabled", - "autoStartEnableStatus": "Enabled", - "defaultTimeZone": "America/Los_Angeles", - "defaultStartTimeHour": 9, - "defaultEndTimeHour": 17, - "defaultDaysOfWeek": [ - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday" - ], - "daysOfWeekLimit": 5 - } - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_GetUnhealthyStatus.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_GetUnhealthyStatus.json deleted file mode 100644 index 96a9b6cd8ffc..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_GetUnhealthyStatus.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "poolName": "DevPool" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", - "name": "DevPool", - "type": "Microsoft.DevCenter/pools", - "properties": { - "displayName": "Developer Pool", - "devBoxDefinitionName": "WebDevBox", - "networkConnectionName": "Network1-westus2", - "licenseType": "Windows_Client", - "localAdministrator": "Enabled", - "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 60 - }, - "stopOnNoConnect": { - "status": "Enabled", - "gracePeriodMinutes": 120 - }, - "healthStatus": "Unhealthy", - "healthStatusDetails": [ - { - "code": "NetworkConnectionUnhealthy", - "message": "The Pool's Network Connection is in an unhealthy state. Check the Network Connection's health status for more details." - }, - { - "code": "ImageValidationFailed", - "message": "Image validation has failed. Check the Dev Box Definition's image validation status for more details." - }, - { - "code": "IntuneValidationFailed", - "message": "Intune license validation has failed. The tenant does not have a valid Intune license." - } - ], - "devBoxCount": 1, - "provisioningState": "Succeeded", - "singleSignOnStatus": "Disabled", - "virtualNetworkType": "Managed", - "managedVirtualNetworkRegions": [ - "centralus" - ] - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_List.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_List.json deleted file mode 100644 index 28326e717dbc..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_List.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", - "name": "DevPool", - "type": "Microsoft.DevCenter/pools", - "properties": { - "displayName": "Developer Pool", - "devBoxDefinitionName": "WebDevBox", - "networkConnectionName": "Network1-westus2", - "licenseType": "Windows_Client", - "localAdministrator": "Enabled", - "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 60 - }, - "stopOnNoConnect": { - "status": "Enabled", - "gracePeriodMinutes": 120 - }, - "healthStatus": "Healthy", - "devBoxCount": 1, - "provisioningState": "Succeeded", - "singleSignOnStatus": "Disabled", - "virtualNetworkType": "Managed", - "managedVirtualNetworkRegions": [ - "centralus" - ], - "activeHoursConfiguration": { - "keepAwakeEnableStatus": "Enabled", - "autoStartEnableStatus": "Enabled", - "defaultTimeZone": "America/Los_Angeles", - "defaultStartTimeHour": 9, - "defaultEndTimeHour": 17, - "defaultDaysOfWeek": [ - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday" - ], - "daysOfWeekLimit": 5 - } - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Patch.json deleted file mode 100644 index d61e7a136dd0..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Patch.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "poolName": "DevPool", - "body": { - "properties": { - "devBoxDefinitionName": "WebDevBox2" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", - "name": "DevPool", - "type": "Microsoft.DevCenter/pools", - "properties": { - "displayName": "Developer Pool", - "devBoxDefinitionName": "WebDevBox2", - "networkConnectionName": "Network1-westus2", - "licenseType": "Windows_Client", - "localAdministrator": "Enabled", - "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 60 - }, - "stopOnNoConnect": { - "status": "Enabled", - "gracePeriodMinutes": 120 - }, - "healthStatus": "Healthy", - "devBoxCount": 1, - "provisioningState": "Succeeded", - "singleSignOnStatus": "Disabled", - "virtualNetworkType": "Managed", - "managedVirtualNetworkRegions": [ - "centralus" - ] - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" - } - }, - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Put.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Put.json deleted file mode 100644 index bda949a22cdc..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Put.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "poolName": "DevPool", - "body": { - "properties": { - "displayName": "Developer Pool", - "devBoxDefinitionName": "WebDevBox", - "networkConnectionName": "Network1-westus2", - "licenseType": "Windows_Client", - "localAdministrator": "Enabled", - "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 60 - }, - "stopOnNoConnect": { - "status": "Enabled", - "gracePeriodMinutes": 120 - }, - "singleSignOnStatus": "Disabled", - "virtualNetworkType": "Unmanaged", - "activeHoursConfiguration": { - "keepAwakeEnableStatus": "Enabled", - "autoStartEnableStatus": "Enabled", - "defaultTimeZone": "America/Los_Angeles", - "defaultStartTimeHour": 9, - "defaultEndTimeHour": 17, - "defaultDaysOfWeek": [ - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday" - ], - "daysOfWeekLimit": 5 - } - }, - "location": "centralus" - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", - "name": "DevPool", - "type": "Microsoft.DevCenter/pools", - "properties": { - "displayName": "Developer Pool", - "devBoxDefinitionName": "WebDevBox", - "networkConnectionName": "Network1-westus2", - "licenseType": "Windows_Client", - "localAdministrator": "Enabled", - "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 60 - }, - "stopOnNoConnect": { - "status": "Enabled", - "gracePeriodMinutes": 120 - }, - "healthStatus": "Healthy", - "devBoxCount": 1, - "provisioningState": "Succeeded", - "singleSignOnStatus": "Disabled", - "virtualNetworkType": "Unmanaged", - "managedVirtualNetworkRegions": [], - "activeHoursConfiguration": { - "keepAwakeEnableStatus": "Enabled", - "autoStartEnableStatus": "Enabled", - "defaultTimeZone": "America/Los_Angeles", - "defaultStartTimeHour": 9, - "defaultEndTimeHour": 17, - "defaultDaysOfWeek": [ - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday" - ], - "daysOfWeekLimit": 5 - } - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", - "name": "DevPool", - "type": "Microsoft.DevCenter/pools", - "properties": { - "displayName": "Developer Pool", - "devBoxDefinitionName": "WebDevBox", - "networkConnectionName": "Network1-westus2", - "licenseType": "Windows_Client", - "localAdministrator": "Enabled", - "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 60 - }, - "stopOnNoConnect": { - "status": "Enabled", - "gracePeriodMinutes": 120 - }, - "healthStatus": "Pending", - "provisioningState": "Created", - "singleSignOnStatus": "Disabled", - "virtualNetworkType": "Unmanaged", - "managedVirtualNetworkRegions": [], - "activeHoursConfiguration": { - "keepAwakeEnableStatus": "Enabled", - "autoStartEnableStatus": "Enabled", - "defaultTimeZone": "America/Los_Angeles", - "defaultStartTimeHour": 9, - "defaultEndTimeHour": 17, - "defaultDaysOfWeek": [ - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday" - ], - "daysOfWeekLimit": 5 - } - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_PutWithManagedNetwork.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_PutWithManagedNetwork.json deleted file mode 100644 index 4a9c0e2f5d17..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_PutWithManagedNetwork.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "poolName": "DevPool", - "body": { - "properties": { - "displayName": "Developer Pool", - "devBoxDefinitionName": "WebDevBox", - "networkConnectionName": "managedNetwork", - "licenseType": "Windows_Client", - "localAdministrator": "Enabled", - "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 60 - }, - "stopOnNoConnect": { - "status": "Enabled", - "gracePeriodMinutes": 120 - }, - "singleSignOnStatus": "Disabled", - "virtualNetworkType": "Managed", - "managedVirtualNetworkRegions": [ - "centralus" - ] - }, - "location": "centralus" - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", - "name": "DevPool", - "type": "Microsoft.DevCenter/pools", - "properties": { - "displayName": "Developer Pool", - "devBoxDefinitionName": "WebDevBox", - "networkConnectionName": "managedNetwork", - "licenseType": "Windows_Client", - "localAdministrator": "Enabled", - "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 60 - }, - "stopOnNoConnect": { - "status": "Enabled", - "gracePeriodMinutes": 120 - }, - "healthStatus": "Healthy", - "devBoxCount": 1, - "provisioningState": "Succeeded", - "singleSignOnStatus": "Disabled", - "virtualNetworkType": "Managed", - "managedVirtualNetworkRegions": [ - "centralus" - ] - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", - "name": "DevPool", - "type": "Microsoft.DevCenter/pools", - "properties": { - "displayName": "Developer Pool", - "devBoxDefinitionName": "WebDevBox", - "networkConnectionName": "managedNetwork", - "licenseType": "Windows_Client", - "localAdministrator": "Enabled", - "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 60 - }, - "stopOnNoConnect": { - "status": "Enabled", - "gracePeriodMinutes": 120 - }, - "healthStatus": "Pending", - "provisioningState": "Created", - "singleSignOnStatus": "Disabled", - "virtualNetworkType": "Managed", - "managedVirtualNetworkRegions": [ - "centralus" - ] - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_PutWithValueDevBoxDefinition.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_PutWithValueDevBoxDefinition.json deleted file mode 100644 index 2d62c5a8d955..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_PutWithValueDevBoxDefinition.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "poolName": "DevPool", - "body": { - "properties": { - "displayName": "Developer Pool", - "devBoxDefinitionType": "Value", - "devBoxDefinitionName": "", - "devBoxDefinition": { - "imageReference": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/projects/DevProject/images/exampleImage/version/1.0.0" - }, - "sku": { - "name": "Preview" - } - }, - "networkConnectionName": "Network1-westus2", - "licenseType": "Windows_Client", - "localAdministrator": "Enabled", - "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 60 - }, - "stopOnNoConnect": { - "status": "Enabled", - "gracePeriodMinutes": 120 - }, - "singleSignOnStatus": "Disabled", - "virtualNetworkType": "Unmanaged" - }, - "location": "centralus" - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", - "name": "DevPool", - "type": "Microsoft.DevCenter/pools", - "properties": { - "displayName": "Developer Pool", - "devBoxDefinitionType": "Value", - "devBoxDefinitionName": "", - "devBoxDefinition": { - "imageReference": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/projects/DevProject/images/exampleImage/version/1.0.0" - }, - "sku": { - "name": "Preview" - } - }, - "networkConnectionName": "Network1-westus2", - "licenseType": "Windows_Client", - "localAdministrator": "Enabled", - "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 60 - }, - "stopOnNoConnect": { - "status": "Enabled", - "gracePeriodMinutes": 120 - }, - "healthStatus": "Healthy", - "devBoxCount": 1, - "provisioningState": "Succeeded", - "singleSignOnStatus": "Disabled", - "virtualNetworkType": "Unmanaged", - "managedVirtualNetworkRegions": [] - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", - "name": "DevPool", - "type": "Microsoft.DevCenter/pools", - "properties": { - "displayName": "Developer Pool", - "devBoxDefinitionType": "Value", - "devBoxDefinitionName": "", - "devBoxDefinition": { - "imageReference": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/projects/DevProject/images/exampleImage/version/1.0.0" - }, - "sku": { - "name": "Preview" - } - }, - "networkConnectionName": "Network1-westus2", - "licenseType": "Windows_Client", - "localAdministrator": "Enabled", - "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 60 - }, - "stopOnNoConnect": { - "status": "Enabled", - "gracePeriodMinutes": 120 - }, - "healthStatus": "Pending", - "provisioningState": "Created", - "singleSignOnStatus": "Disabled", - "virtualNetworkType": "Unmanaged", - "managedVirtualNetworkRegions": [] - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_RunHealthChecks.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_RunHealthChecks.json deleted file mode 100644 index f64058614e5e..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_RunHealthChecks.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "poolName": "DevPool" - }, - "responses": { - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectAllowedEnvironmentTypes_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectAllowedEnvironmentTypes_Get.json deleted file mode 100644 index cd55d4aea115..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectAllowedEnvironmentTypes_Get.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "Contoso", - "environmentTypeName": "DevTest" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/Contoso/allowedEnvironmentTypes/DevTest", - "name": "DevTest", - "type": "Microsoft.DevCenter/projects/allowedenvironmenttypes", - "systemData": { - "createdBy": "User1@contoso.com", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectAllowedEnvironmentTypes_List.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectAllowedEnvironmentTypes_List.json deleted file mode 100644 index 19becc9c01da..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectAllowedEnvironmentTypes_List.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "Contoso" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/Contoso/allowedEnvironmentTypes/DevTest", - "name": "DevTest", - "type": "Microsoft.DevCenter/projects/allowedenvironmenttypes", - "systemData": { - "createdBy": "User1@contoso.com", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogEnvironmentDefinitions_GetErrorDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogEnvironmentDefinitions_GetErrorDetails.json deleted file mode 100644 index 9cbd571bf7e2..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogEnvironmentDefinitions_GetErrorDetails.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "catalogName": "myCatalog", - "environmentDefinitionName": "myEnvironmentDefinition" - }, - "responses": { - "200": { - "body": { - "errors": [ - { - "code": "ParameterValueInvalid", - "message": "Expected parameter value for 'InstanceCount' to be integer but found the string 'test'." - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogImageDefinitions_GetErrorDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogImageDefinitions_GetErrorDetails.json deleted file mode 100644 index fcd5c38ceb03..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogImageDefinitions_GetErrorDetails.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "catalogName": "TeamCatalog", - "imageDefinitionName": "WebDevBox" - }, - "responses": { - "200": { - "body": { - "errors": [ - { - "code": "CatalogItemNotExist", - "message": "Task choco doesn't exist in the dev center." - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Connect.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Connect.json deleted file mode 100644 index afbc9c93eb4a..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Connect.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "catalogName": "CentralCatalog" - }, - "responses": { - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview", - "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_CreateAdo.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_CreateAdo.json deleted file mode 100644 index ed75650e841a..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_CreateAdo.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "catalogName": "CentralCatalog", - "body": { - "properties": { - "adoGit": { - "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso", - "branch": "main", - "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", - "name": "CentralCatalog", - "type": "Microsoft.DevCenter/projects/catalogs", - "properties": { - "adoGit": { - "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso", - "branch": "main", - "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" - }, - "lastSyncStats": { - "added": 0, - "updated": 0, - "unchanged": 0, - "removed": 0, - "validationErrors": 0, - "synchronizationErrors": 0, - "syncedCatalogItemTypes": [ - "EnvironmentDefinition" - ] - }, - "provisioningState": "Accepted", - "connectionState": "Connected", - "syncState": "Succeeded" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", - "name": "CentralCatalog", - "type": "Microsoft.DevCenter/projects/catalogs", - "properties": { - "adoGit": { - "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso", - "branch": "main", - "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" - }, - "lastSyncStats": { - "added": 0, - "updated": 0, - "unchanged": 0, - "removed": 0, - "validationErrors": 0, - "synchronizationErrors": 0, - "syncedCatalogItemTypes": [ - "EnvironmentDefinition" - ] - }, - "provisioningState": "Accepted", - "connectionState": "Connected", - "syncState": "Succeeded" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_CreateGitHub.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_CreateGitHub.json deleted file mode 100644 index db145688fb9f..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_CreateGitHub.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "catalogName": "CentralCatalog", - "body": { - "properties": { - "gitHub": { - "uri": "https://github.com/Contoso/centralrepo-fake.git", - "branch": "main", - "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", - "name": "CentralCatalog", - "type": "Microsoft.DevCenter/projects/catalogs", - "properties": { - "gitHub": { - "uri": "https://github.com/Contoso/centralrepo-fake.git", - "branch": "main", - "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" - }, - "lastSyncStats": { - "added": 0, - "updated": 0, - "unchanged": 0, - "removed": 0, - "validationErrors": 0, - "synchronizationErrors": 0, - "syncedCatalogItemTypes": [ - "EnvironmentDefinition" - ] - }, - "provisioningState": "Accepted", - "connectionState": "Connected", - "syncState": "Succeeded" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", - "name": "CentralCatalog", - "type": "Microsoft.DevCenter/projects/catalogs", - "properties": { - "gitHub": { - "uri": "https://github.com/Contoso/centralrepo-fake.git", - "branch": "main", - "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" - }, - "lastSyncStats": { - "added": 0, - "updated": 0, - "unchanged": 0, - "removed": 0, - "validationErrors": 0, - "synchronizationErrors": 0, - "syncedCatalogItemTypes": [ - "EnvironmentDefinition" - ] - }, - "provisioningState": "Accepted", - "connectionState": "Connected", - "syncState": "Succeeded" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Delete.json deleted file mode 100644 index d948cc87dffe..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Delete.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "catalogName": "CentralCatalog" - }, - "responses": { - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview", - "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" - } - }, - "204": {} - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Get.json deleted file mode 100644 index bb68a9cc4bf5..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Get.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "catalogName": "CentralCatalog" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", - "name": "CentralCatalog", - "type": "Microsoft.DevCenter/projects/catalogs", - "properties": { - "gitHub": { - "uri": "https://github.com/Contoso/centralrepo-fake.git", - "branch": "main", - "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" - }, - "lastSyncStats": { - "added": 1, - "updated": 1, - "unchanged": 1, - "removed": 1, - "validationErrors": 1, - "synchronizationErrors": 1, - "syncedCatalogItemTypes": [ - "EnvironmentDefinition" - ] - }, - "lastConnectionTime": "2020-11-18T18:28:00.314Z", - "lastSyncTime": "2020-11-18T18:28:00.314Z", - "provisioningState": "Succeeded", - "connectionState": "Connected", - "syncState": "Succeeded" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_GetSyncErrorDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_GetSyncErrorDetails.json deleted file mode 100644 index bd6dedc37655..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_GetSyncErrorDetails.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "catalogName": "CentralCatalog" - }, - "responses": { - "200": { - "body": { - "operationError": { - "code": "Conflict", - "message": "The source control credentials could not be validated successfully." - }, - "conflicts": [ - { - "path": "/Environments/Duplicate/manifest.yaml", - "name": "DuplicateEnvironmentName" - } - ], - "errors": [ - { - "path": "/Environments/Invalid/manifest.yaml", - "errorDetails": [ - { - "code": "ParseError", - "message": "Schema Error Within Catalog Item: Missing Name" - } - ] - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_List.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_List.json deleted file mode 100644 index 8b7eeb4cf503..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_List.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/Contoso/catalogs", - "name": "CentralCatalog", - "type": "Microsoft.DevCenter/projects/catalogs", - "properties": { - "gitHub": { - "uri": "https://github.com/Contoso/centralrepo-fake.git", - "branch": "main", - "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" - }, - "lastSyncStats": { - "added": 1, - "updated": 1, - "unchanged": 1, - "removed": 1, - "validationErrors": 1, - "synchronizationErrors": 1 - }, - "lastConnectionTime": "2020-11-18T18:28:00.314Z", - "lastSyncTime": "2020-11-18T18:28:00.314Z", - "provisioningState": "Succeeded", - "connectionState": "Connected", - "syncState": "Succeeded" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Patch.json deleted file mode 100644 index 9f3cc04b9bda..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Patch.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "catalogName": "CentralCatalog", - "body": { - "properties": { - "gitHub": { - "path": "/environments" - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", - "name": "CentralCatalog", - "type": "Microsoft.DevCenter/projects/catalogs", - "properties": { - "gitHub": { - "uri": "https://github.com/Contoso/centralrepo-fake.git", - "branch": "main", - "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/environments" - }, - "lastSyncStats": { - "added": 1, - "updated": 1, - "unchanged": 1, - "removed": 1, - "validationErrors": 1, - "synchronizationErrors": 1 - }, - "lastConnectionTime": "2020-11-18T18:28:00.314Z", - "lastSyncTime": "2020-11-18T18:28:00.314Z", - "provisioningState": "Succeeded", - "connectionState": "Connected", - "syncState": "Succeeded" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - }, - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Sync.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Sync.json deleted file mode 100644 index afbc9c93eb4a..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Sync.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "catalogName": "CentralCatalog" - }, - "responses": { - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview", - "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Delete.json deleted file mode 100644 index e41ab6e63d71..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "ContosoProj", - "environmentTypeName": "DevTest" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Get.json deleted file mode 100644 index b8672532f320..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Get.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "ContosoProj", - "environmentTypeName": "DevTest" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProj/environmentTypes/DevTest", - "name": "DevTest", - "type": "Microsoft.DevCenter/projects/environmentTypes", - "properties": { - "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", - "status": "Enabled", - "provisioningState": "Succeeded", - "environmentCount": 1, - "creatorRoleAssignment": { - "roles": { - "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { - "roleName": "Developer", - "description": "Allows Developer access to project virtual machine resources." - } - } - }, - "userRoleAssignments": { - "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { - "roles": { - "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { - "roleName": "Developer", - "description": "Allows Developer access to project virtual machine resources." - } - } - } - } - }, - "systemData": { - "createdBy": "User1@contoso.com", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - }, - "tags": { - "CostCenter": "RnD" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } - }, - "location": "centralus" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_List.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_List.json deleted file mode 100644 index c76560116731..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_List.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "ContosoProj", - "environmentTypeName": "DevTest" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProj/environmentTypes/DevTest", - "name": "DevTest", - "type": "Microsoft.DevCenter/projects/environmentTypes", - "properties": { - "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", - "status": "Enabled", - "provisioningState": "Succeeded", - "creatorRoleAssignment": { - "roles": { - "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { - "roleName": "Developer", - "description": "Allows Developer access to project virtual machine resources." - } - } - }, - "userRoleAssignments": { - "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { - "roles": { - "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { - "roleName": "Developer", - "description": "Allows Developer access to project virtual machine resources." - } - } - } - } - }, - "systemData": { - "createdBy": "User1@contoso.com", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - }, - "tags": { - "CostCenter": "RnD" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } - }, - "location": "centralus" - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Patch.json deleted file mode 100644 index c3fa3ed86e08..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Patch.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "ContosoProj", - "environmentTypeName": "DevTest", - "body": { - "properties": { - "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", - "status": "Enabled", - "userRoleAssignments": { - "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { - "roles": { - "4cbf0b6c-e750-441c-98a7-10da8387e4d6": {} - } - } - } - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} - } - }, - "tags": { - "CostCenter": "RnD" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProj/environmentTypes/DevTest", - "name": "DevTest", - "type": "Microsoft.DevCenter/projects/environmentTypes", - "properties": { - "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", - "status": "Enabled", - "provisioningState": "Succeeded", - "environmentCount": 1, - "creatorRoleAssignment": { - "roles": { - "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { - "roleName": "Developer", - "description": "Allows Developer access to project virtual machine resources." - } - } - }, - "userRoleAssignments": { - "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { - "roles": { - "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { - "roleName": "Developer", - "description": "Allows Developer access to project virtual machine resources." - } - } - } - } - }, - "systemData": { - "createdBy": "User1@contoso.com", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - }, - "tags": { - "CostCenter": "RnD" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } - }, - "location": "centralus" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Put.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Put.json deleted file mode 100644 index c8c47b0b7054..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Put.json +++ /dev/null @@ -1,146 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "ContosoProj", - "environmentTypeName": "DevTest", - "body": { - "properties": { - "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", - "status": "Enabled", - "creatorRoleAssignment": { - "roles": { - "4cbf0b6c-e750-441c-98a7-10da8387e4d6": {} - } - }, - "userRoleAssignments": { - "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { - "roles": { - "4cbf0b6c-e750-441c-98a7-10da8387e4d6": {} - } - } - } - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} - } - }, - "tags": { - "CostCenter": "RnD" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProj/environmentTypes/DevTest", - "name": "DevTest", - "type": "Microsoft.DevCenter/projects/environmentTypes", - "properties": { - "displayName": "DevTest", - "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", - "status": "Enabled", - "provisioningState": "Succeeded", - "environmentCount": 0, - "creatorRoleAssignment": { - "roles": { - "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { - "roleName": "Developer", - "description": "Allows Developer access to project virtual machine resources." - } - } - }, - "userRoleAssignments": { - "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { - "roles": { - "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { - "roleName": "Developer", - "description": "Allows Developer access to project virtual machine resources." - } - } - } - } - }, - "systemData": { - "createdBy": "User1@contoso.com", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - }, - "tags": { - "hidden-title": "Dev", - "CostCenter": "RnD" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } - }, - "location": "centralus" - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProj/environmentTypes/DevTest", - "name": "DevTest", - "type": "Microsoft.DevCenter/projects/environmentTypes", - "properties": { - "displayName": "DevTest", - "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", - "status": "Enabled", - "provisioningState": "Succeeded", - "environmentCount": 0, - "creatorRoleAssignment": { - "roles": { - "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { - "roleName": "Developer", - "description": "Allows Developer access to project virtual machine resources." - } - } - }, - "userRoleAssignments": { - "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { - "roles": { - "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { - "roleName": "Developer", - "description": "Allows Developer access to project virtual machine resources." - } - } - } - } - }, - "systemData": { - "createdBy": "User1@contoso.com", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - }, - "tags": { - "hidden-title": "Dev", - "CostCenter": "RnD" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } - }, - "location": "centralus" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Delete.json deleted file mode 100644 index bf138e82da62..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Delete.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff1", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "projectPolicyName": "DevOnlyResources" - }, - "responses": { - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2024-02-01", - "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2024-02-01" - } - }, - "204": {} - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Get.json deleted file mode 100644 index a9c0b3ce5883..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Get.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff1", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "projectPolicyName": "DevOnlyResources" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/projectPolicies/DevOnlyResources", - "name": "DevOnlyResources", - "type": "Microsoft.DevCenter/devcenters/projectpolicies", - "properties": { - "resourcePolicies": [ - { - "resources": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-westus3" - } - ], - "scopes": [ - "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject" - ], - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_ListByDevCenter.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_ListByDevCenter.json deleted file mode 100644 index 01bc5b9a6c88..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_ListByDevCenter.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff1", - "resourceGroupName": "rg1", - "devCenterName": "Contoso" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/projectPolicies/DevOnlyResources", - "name": "DevOnlyResources", - "type": "Microsoft.DevCenter/devcenters/projectpolicies", - "properties": { - "resourcePolicies": [ - { - "resources": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-westus3" - } - ], - "scopes": [ - "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject" - ], - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Patch.json deleted file mode 100644 index 6189ac3993ae..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Patch.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff1", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "projectPolicyName": "DevOnlyResources", - "body": { - "properties": { - "resourcePolicies": [ - { - "resources": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-westus3" - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/projectPolicies/DevOnlyResources", - "name": "DevOnlyResources", - "type": "Microsoft.DevCenter/devcenters/projectpolicies", - "properties": { - "resourcePolicies": [ - { - "resources": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-westus3" - } - ], - "scopes": [ - "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject" - ], - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - }, - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2024-02-01", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2024-02-01" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Put.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Put.json deleted file mode 100644 index 42c6f2c45cbb..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Put.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff1", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "projectPolicyName": "DevOnlyResources", - "body": { - "properties": { - "resourcePolicies": [ - { - "resources": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-westus3" - } - ], - "scopes": [ - "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject" - ] - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/projectPolicies/DevOnlyResources", - "name": "DevOnlyResources", - "type": "Microsoft.DevCenter/devcenters/projectpolicies", - "properties": { - "resourcePolicies": [ - { - "resources": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-westus3" - } - ], - "scopes": [ - "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject" - ], - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/projectPolicies/DevOnlyResources", - "name": "DevOnlyResources", - "type": "Microsoft.DevCenter/devcenters/projectpolicies", - "properties": { - "resourcePolicies": [ - { - "resources": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-westus3" - } - ], - "scopes": [ - "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject" - ], - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "User1", - "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", - "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Delete.json deleted file mode 100644 index f619ee5592c1..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Delete.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject" - }, - "responses": { - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", - "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" - } - }, - "204": {} - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Get.json deleted file mode 100644 index c911b6483de9..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Get.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", - "name": "DevProject", - "type": "Microsoft.DevCenter/projects", - "properties": { - "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "description": "This is my first project.", - "displayName": "Dev", - "catalogSettings": { - "catalogItemSyncTypes": [ - "EnvironmentDefinition" - ] - } - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus", - "tags": { - "hidden-title": "Dev", - "CostCenter": "R&D" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_GetInheritedSettings.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_GetInheritedSettings.json deleted file mode 100644 index bc7e7a4307ad..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_GetInheritedSettings.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "Contoso" - }, - "responses": { - "200": { - "body": { - "projectCatalogSettings": { - "catalogItemSyncEnableStatus": "Enabled" - }, - "networkSettings": { - "microsoftHostedNetworkEnableStatus": "Enabled" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_ListByResourceGroup.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_ListByResourceGroup.json deleted file mode 100644 index cb955f506b5f..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_ListByResourceGroup.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/myproject", - "name": "myproject", - "type": "Microsoft.DevCenter/projects", - "properties": { - "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "description": "This is my first project.", - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus", - "tags": { - "CostCenter": "R&D" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_ListBySubscription.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_ListBySubscription.json deleted file mode 100644 index a11287f17e49..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_ListBySubscription.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/myproject", - "name": "myproject", - "type": "Microsoft.DevCenter/projects", - "properties": { - "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "description": "This is my first project.", - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus", - "tags": { - "CostCenter": "R&D" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Patch.json deleted file mode 100644 index 5244222ac42e..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Patch.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "body": { - "properties": { - "description": "This is my first project.", - "displayName": "Dev", - "catalogSettings": { - "catalogItemSyncTypes": [ - "EnvironmentDefinition" - ] - } - }, - "tags": { - "CostCenter": "R&D" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", - "name": "myproject", - "type": "Microsoft.DevCenter/projects", - "properties": { - "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "description": "This is my first project. Very exciting.", - "displayName": "Dev", - "catalogSettings": { - "catalogItemSyncTypes": [ - "EnvironmentDefinition" - ] - }, - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus", - "tags": { - "displayName": "Dev", - "CostCenter": "R&D" - } - } - }, - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Put.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Put.json deleted file mode 100644 index f58085911224..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Put.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "body": { - "properties": { - "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "description": "This is my first project.", - "displayName": "Dev" - }, - "location": "centralus", - "tags": { - "CostCenter": "R&D" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", - "name": "DevProject", - "type": "Microsoft.DevCenter/projects", - "properties": { - "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "description": "This is my first project.", - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus", - "tags": { - "hidden-title": "Dev", - "CostCenter": "R&D" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", - "name": "DevProject", - "type": "Microsoft.DevCenter/projects", - "properties": { - "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "description": "This is my first project.", - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus", - "tags": { - "hidden-title": "Dev", - "CostCenter": "R&D" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithCustomizationSettings.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithCustomizationSettings.json deleted file mode 100644 index 75eb5a1088ad..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithCustomizationSettings.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "body": { - "properties": { - "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "description": "This is my first project.", - "customizationSettings": { - "identities": [ - { - "identityType": "userAssignedIdentity", - "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" - } - ] - } - }, - "location": "centralus", - "tags": { - "CostCenter": "R&D" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", - "name": "DevProject", - "type": "Microsoft.DevCenter/projects", - "properties": { - "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "description": "This is my first project.", - "provisioningState": "Succeeded", - "customizationSettings": { - "identities": [ - { - "identityType": "userAssignedIdentity", - "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" - } - ] - } - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus", - "tags": { - "CostCenter": "R&D" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } - } - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", - "name": "DevProject", - "type": "Microsoft.DevCenter/projects", - "properties": { - "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "description": "This is my first project.", - "maxDevBoxesPerUser": 3, - "customizationSettings": { - "identities": [ - { - "identityType": "userAssignedIdentity", - "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" - } - ] - } - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus", - "tags": { - "CostCenter": "R&D" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithCustomizationSettings_SystemIdentity.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithCustomizationSettings_SystemIdentity.json deleted file mode 100644 index 8b1236b4ac9c..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithCustomizationSettings_SystemIdentity.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "body": { - "properties": { - "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "description": "This is my first project.", - "customizationSettings": { - "identities": [ - { - "identityType": "systemAssignedIdentity" - } - ] - } - }, - "location": "centralus", - "tags": { - "CostCenter": "R&D" - }, - "identity": { - "type": "SystemAssigned" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", - "name": "DevProject", - "type": "Microsoft.DevCenter/projects", - "properties": { - "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "description": "This is my first project.", - "provisioningState": "Succeeded", - "customizationSettings": { - "identities": [ - { - "identityType": "systemAssignedIdentity" - } - ] - } - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus", - "tags": { - "CostCenter": "R&D" - }, - "identity": { - "type": "SystemAssigned", - "tenantId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", - "name": "DevProject", - "type": "Microsoft.DevCenter/projects", - "properties": { - "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "description": "This is my first project.", - "maxDevBoxesPerUser": 3, - "customizationSettings": { - "identities": [ - { - "identityType": "systemAssignedIdentity" - } - ] - } - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus", - "tags": { - "CostCenter": "R&D" - }, - "identity": { - "type": "SystemAssigned", - "tenantId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithMaxDevBoxPerUser.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithMaxDevBoxPerUser.json deleted file mode 100644 index 93d70f353585..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithMaxDevBoxPerUser.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "body": { - "properties": { - "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "description": "This is my first project.", - "maxDevBoxesPerUser": 3 - }, - "location": "centralus", - "tags": { - "CostCenter": "R&D" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", - "name": "DevProject", - "type": "Microsoft.DevCenter/projects", - "properties": { - "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "description": "This is my first project.", - "maxDevBoxesPerUser": 3, - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus", - "tags": { - "CostCenter": "R&D" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", - "name": "DevProject", - "type": "Microsoft.DevCenter/projects", - "properties": { - "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "description": "This is my first project.", - "maxDevBoxesPerUser": 3, - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus", - "tags": { - "CostCenter": "R&D" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_CreateDailyShutdownPoolSchedule.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_CreateDailyShutdownPoolSchedule.json deleted file mode 100644 index f58ce6be118d..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_CreateDailyShutdownPoolSchedule.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "poolName": "DevPool", - "scheduleName": "autoShutdown", - "body": { - "properties": { - "state": "Enabled", - "type": "StopDevBox", - "timeZone": "America/Los_Angeles", - "frequency": "Daily", - "time": "17:30" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/TestProject/pools/DevPool/schedules/autoShutdown", - "name": "autoShutdown", - "type": "Microsoft.DevCenter/pools/schedules", - "properties": { - "state": "Enabled", - "type": "StopDevBox", - "timeZone": "America/Los_Angeles", - "frequency": "Daily", - "time": "17:30", - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/TestProject/pools/DevPool/schedules/autoShutdown", - "name": "autoShutdown", - "type": "Microsoft.DevCenter/pools/schedules", - "properties": { - "state": "Enabled", - "type": "StopDevBox", - "timeZone": "America/Los_Angeles", - "frequency": "Daily", - "time": "17:30", - "provisioningState": "Accepted" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Delete.json deleted file mode 100644 index e7f59ab85d21..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Delete.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "TestProject", - "poolName": "DevPool", - "scheduleName": "autoShutdown" - }, - "responses": { - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", - "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" - } - }, - "204": {} - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Get.json deleted file mode 100644 index e484a703963b..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Get.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "TestProject", - "poolName": "DevPool", - "scheduleName": "autoShutdown" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/TestProject/pools/DevPool/schedules/autoShutdown", - "name": "autoShutdown", - "type": "Microsoft.DevCenter/pools/schedules", - "properties": { - "state": "Enabled", - "type": "StopDevBox", - "timeZone": "America/Los_Angeles", - "frequency": "Daily", - "time": "17:30", - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_ListByPool.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_ListByPool.json deleted file mode 100644 index 4cab442fd1eb..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_ListByPool.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "TestProject", - "poolName": "DevPool" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/TestProject/pools/DevPool/schedules/autoShutdown", - "name": "autoShutdown", - "type": "Microsoft.DevCenter/pools/schedules", - "properties": { - "state": "Enabled", - "type": "StopDevBox", - "timeZone": "America/Los_Angeles", - "frequency": "Daily", - "time": "17:30", - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Patch.json deleted file mode 100644 index d0cbac447133..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Patch.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "TestProject", - "poolName": "DevPool", - "scheduleName": "autoShutdown", - "body": { - "properties": { - "time": "18:00" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/TestProject/pools/DevPool/schedules/autoShutdown", - "name": "autoShutdown", - "type": "Microsoft.DevCenter/pools/schedules", - "properties": { - "state": "Enabled", - "type": "StopDevBox", - "timeZone": "America/Los_Angeles", - "frequency": "Daily", - "time": "17:30", - "provisioningState": "Succeeded" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", - "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - } - } - }, - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Skus_ListByProject.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Skus_ListByProject.json deleted file mode 100644 index 845cb7616113..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Skus_ListByProject.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "myProject" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "resourceType": "projects/pools", - "name": "Large", - "tier": "Premium", - "locations": [ - "CentralUS" - ] - }, - { - "resourceType": "projects/pools", - "name": "Medium", - "tier": "Standard", - "locations": [ - "CentralUS" - ] - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Skus_ListBySubscription.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Skus_ListBySubscription.json deleted file mode 100644 index d43bab2e0d02..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Skus_ListBySubscription.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "resourceType": "projects/pools", - "name": "Large", - "tier": "Premium", - "locations": [ - "CentralUS" - ] - }, - { - "resourceType": "projects/pools", - "name": "Medium", - "tier": "Standard", - "locations": [ - "CentralUS" - ] - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Usages_ListByLocation.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Usages_ListByLocation.json deleted file mode 100644 index fddfb1ed2043..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Usages_ListByLocation.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "location": "westus" - }, - "responses": { - "200": { - "body": { - "nextLink": null, - "value": [ - { - "currentValue": 2, - "limit": 8, - "unit": "Count", - "name": { - "value": "devcenters" - }, - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/Microsoft.DevCenter/locations/westus/quotas/devcenters" - }, - { - "currentValue": 5, - "limit": 30, - "unit": "Count", - "name": { - "value": "projects" - }, - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/Microsoft.DevCenter/locations/westus/quotas/projects" - } - ] - } - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/vdi.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/vdi.json deleted file mode 100644 index f3ecc803e030..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/vdi.json +++ /dev/null @@ -1,2091 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2025-07-01-preview", - "title": "DevCenter", - "description": "DevCenter Management API" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/skus": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "get": { - "tags": [ - "SKUs" - ], - "description": "Lists the Microsoft.DevCenter SKUs available in a subscription", - "operationId": "Skus_ListBySubscription", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/SkuListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "Skus_ListBySubscription": { - "$ref": "./examples/Skus_ListBySubscription.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools": { - "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": "commonDefinitions.json#/parameters/ProjectNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "get": { - "tags": [ - "Pools" - ], - "description": "Lists pools for a project", - "operationId": "Pools_ListByProject", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/PoolListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "Pools_ListByProject": { - "$ref": "./examples/Pools_List.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}": { - "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": "commonDefinitions.json#/parameters/ProjectNameParameter" - }, - { - "$ref": "#/parameters/PoolNameParameter" - } - ], - "get": { - "tags": [ - "Pools" - ], - "description": "Gets a machine pool", - "operationId": "Pools_Get", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Pool" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Pools_Get": { - "$ref": "./examples/Pools_Get.json" - }, - "Pools_GetUnhealthyStatus": { - "$ref": "./examples/Pools_GetUnhealthyStatus.json" - } - } - }, - "put": { - "tags": [ - "Pools" - ], - "description": "Creates or updates a machine pool", - "operationId": "Pools_CreateOrUpdate", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Represents a machine pool", - "required": true, - "schema": { - "$ref": "#/definitions/Pool" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Pool" - } - }, - "201": { - "description": "Created. Operation will complete asynchronously.", - "schema": { - "$ref": "#/definitions/Pool" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Pools_CreateOrUpdate": { - "$ref": "./examples/Pools_Put.json" - }, - "Pools_CreateOrUpdateWithManagedNetwork": { - "$ref": "./examples/Pools_PutWithManagedNetwork.json" - }, - "Pools_CreateOrUpdateWithValueDevBoxDefinition": { - "$ref": "./examples/Pools_PutWithValueDevBoxDefinition.json" - } - } - }, - "patch": { - "tags": [ - "Pools" - ], - "description": "Partially updates a machine pool", - "operationId": "Pools_Update", - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Represents a machine pool", - "required": true, - "schema": { - "$ref": "#/definitions/PoolUpdate" - } - } - ], - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Pool" - } - }, - "202": { - "description": "Accepted. Operation will complete asynchronously", - "headers": { - "Location": { - "type": "string" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Pools_Update": { - "$ref": "./examples/Pools_Patch.json" - } - } - }, - "delete": { - "tags": [ - "Pools" - ], - "description": "Deletes a machine pool", - "operationId": "Pools_Delete", - "parameters": [], - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "204": { - "description": "Resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Pools_Delete": { - "$ref": "./examples/Pools_Delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/runHealthChecks": { - "post": { - "tags": [ - "Pools" - ], - "description": "Triggers a refresh of the pool status.", - "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": "commonDefinitions.json#/parameters/ProjectNameParameter" - }, - { - "$ref": "#/parameters/PoolNameParameter" - } - ], - "operationId": "Pools_RunHealthChecks", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "202": { - "description": "Accepted. Initiating pool status refresh.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Pools_RefreshStatus": { - "$ref": "./examples/Pools_RunHealthChecks.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/ProjectNameParameter" - }, - { - "$ref": "#/parameters/PoolNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "get": { - "tags": [ - "Schedules" - ], - "description": "Lists schedules for a pool", - "operationId": "Schedules_ListByPool", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ScheduleListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "Schedules_ListByPool": { - "$ref": "./examples/Schedules_ListByPool.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}": { - "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": "commonDefinitions.json#/parameters/ProjectNameParameter" - }, - { - "$ref": "#/parameters/PoolNameParameter" - }, - { - "$ref": "#/parameters/ScheduleNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "get": { - "tags": [ - "Schedules" - ], - "description": "Gets a schedule resource.", - "operationId": "Schedules_Get", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Schedule" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Schedules_GetByPool": { - "$ref": "./examples/Schedules_Get.json" - } - } - }, - "put": { - "tags": [ - "Schedules" - ], - "description": "Creates or updates a Schedule.", - "operationId": "Schedules_CreateOrUpdate", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Represents a scheduled task", - "required": true, - "schema": { - "$ref": "#/definitions/Schedule" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Schedule" - } - }, - "201": { - "description": "Created. Operation will complete asynchronously.", - "schema": { - "$ref": "#/definitions/Schedule" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Schedules_CreateDailyShutdownPoolSchedule": { - "$ref": "./examples/Schedules_CreateDailyShutdownPoolSchedule.json" - } - } - }, - "patch": { - "tags": [ - "Schedules" - ], - "description": "Partially updates a Scheduled.", - "operationId": "Schedules_Update", - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Represents a scheduled task.", - "required": true, - "schema": { - "$ref": "#/definitions/ScheduleUpdate" - } - } - ], - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Schedule" - } - }, - "202": { - "description": "Accepted. Operation will complete asynchronously", - "headers": { - "Location": { - "type": "string" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Schedules_Update": { - "$ref": "./examples/Schedules_Patch.json" - } - } - }, - "delete": { - "tags": [ - "Schedules" - ], - "description": "Deletes a Scheduled.", - "operationId": "Schedules_Delete", - "parameters": [], - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "204": { - "description": "Resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Schedules_Delete": { - "$ref": "./examples/Schedules_Delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/networkConnections": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "get": { - "tags": [ - "Network Connections" - ], - "description": "Lists network connections in a subscription", - "operationId": "NetworkConnections_ListBySubscription", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/NetworkConnectionListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NetworkConnections_ListBySubscription": { - "$ref": "./examples/NetworkConnections_ListBySubscription.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections": { - "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": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "get": { - "tags": [ - "Network Connections" - ], - "description": "Lists network connections in a resource group", - "operationId": "NetworkConnections_ListByResourceGroup", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/NetworkConnectionListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NetworkConnections_ListByResourceGroup": { - "$ref": "./examples/NetworkConnections_ListByResourceGroup.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}": { - "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/NetworkConnectionName" - } - ], - "get": { - "tags": [ - "Network Connections" - ], - "description": "Gets a network connection resource", - "operationId": "NetworkConnections_Get", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/NetworkConnection" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NetworkConnections_Get": { - "$ref": "./examples/NetworkConnections_Get.json" - } - } - }, - "put": { - "tags": [ - "Network Connections" - ], - "description": "Creates or updates a Network Connections resource", - "operationId": "NetworkConnections_CreateOrUpdate", - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Represents network connection", - "required": true, - "schema": { - "$ref": "#/definitions/NetworkConnection" - } - } - ], - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "200": { - "description": "Accepted. Operation will complete asynchronously.", - "schema": { - "$ref": "#/definitions/NetworkConnection" - } - }, - "201": { - "description": "Created. Operation will complete asynchronously.", - "schema": { - "$ref": "#/definitions/NetworkConnection" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NetworkConnections_CreateOrUpdate": { - "$ref": "./examples/NetworkConnections_Put.json" - } - } - }, - "patch": { - "tags": [ - "Network Connections" - ], - "description": "Partially updates a Network Connection", - "operationId": "NetworkConnections_Update", - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Represents network connection", - "required": true, - "schema": { - "$ref": "#/definitions/NetworkConnectionUpdate" - } - } - ], - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/NetworkConnection" - } - }, - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NetworkConnections_Update": { - "$ref": "./examples/NetworkConnections_Patch.json" - } - } - }, - "delete": { - "tags": [ - "Network Connections" - ], - "description": "Deletes a Network Connections resource", - "operationId": "NetworkConnections_Delete", - "parameters": [], - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "204": { - "description": "Resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NetworkConnections_Delete": { - "$ref": "./examples/NetworkConnections_Delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/healthChecks": { - "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": "commonDefinitions.json#/parameters/TopParameter" - }, - { - "$ref": "#/parameters/NetworkConnectionName" - } - ], - "get": { - "tags": [ - "Network Connections" - ], - "description": "Lists health check status details", - "operationId": "NetworkConnections_ListHealthDetails", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/HealthCheckStatusDetailsListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NetworkConnections_ListHealthDetails": { - "$ref": "./examples/NetworkConnections_ListHealthDetails.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/healthChecks/latest": { - "get": { - "tags": [ - "Network Connections" - ], - "description": "Gets health check status details.", - "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/NetworkConnectionName" - } - ], - "operationId": "NetworkConnections_GetHealthDetails", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/HealthCheckStatusDetails" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NetworkConnections_GetHealthDetails": { - "$ref": "./examples/NetworkConnections_GetHealthDetails.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/runHealthChecks": { - "post": { - "tags": [ - "Network Connection" - ], - "description": "Triggers a new health check run. The execution and health check result can be tracked via the network Connection health check details", - "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/NetworkConnectionName" - } - ], - "operationId": "NetworkConnections_RunHealthChecks", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "202": { - "description": "Accepted. Initiating health checks.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NetworkConnections_RunHealthChecks": { - "$ref": "./examples/NetworkConnections_RunHealthChecks.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/outboundNetworkDependenciesEndpoints": { - "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": "commonDefinitions.json#/parameters/TopParameter" - }, - { - "$ref": "#/parameters/NetworkConnectionName" - } - ], - "get": { - "tags": [ - "Network Connection" - ], - "operationId": "NetworkConnections_ListOutboundNetworkDependenciesEndpoints", - "description": "Lists the endpoints that agents may call as part of Dev Box service administration. These FQDNs should be allowed for outbound access in order for the Dev Box service to function.", - "parameters": [], - "x-ms-examples": { - "ListOutboundNetworkDependencies": { - "$ref": "./examples/NetworkConnections_ListOutboundNetworkDependenciesEndpoints.json" - } - }, - "responses": { - "200": { - "description": "The operation was successful. The response contains a list of outbound network dependencies.", - "schema": { - "$ref": "#/definitions/OutboundEnvironmentEndpointCollection" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - } - }, - "definitions": { - "SkuListResult": { - "description": "Results of the Microsoft.DevCenter SKU list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "type": "array", - "items": { - "$ref": "commonDefinitions.json#/definitions/DevCenterSku" - }, - "x-ms-identifiers": [], - "readOnly": true - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "Pool": { - "description": "A pool of Virtual Machines.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "description": "Pool properties", - "x-ms-client-flatten": true, - "$ref": "#/definitions/PoolProperties" - } - } - }, - "PoolUpdateProperties": { - "description": "Properties of a Pool. These properties can be updated after the resource has been created.", - "type": "object", - "properties": { - "devBoxDefinitionType": { - "description": "Indicates if the pool is created from an existing Dev Box Definition or if one is provided directly.", - "$ref": "#/definitions/PoolDevBoxDefinitionType" - }, - "devBoxDefinitionName": { - "description": "Name of a Dev Box definition in parent Project of this Pool. Will be ignored if devBoxDefinitionType is Value.", - "type": "string" - }, - "devBoxDefinition": { - "description": "A definition of the machines that are created from this Pool. Will be ignored if devBoxDefinitionType is Reference or not provided.", - "$ref": "#/definitions/PoolDevBoxDefinition" - }, - "networkConnectionName": { - "description": "Name of a Network Connection in parent Project of this Pool", - "type": "string" - }, - "licenseType": { - "description": "Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created.", - "$ref": "#/definitions/LicenseType" - }, - "localAdministrator": { - "description": "Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.", - "$ref": "#/definitions/LocalAdminStatus" - }, - "stopOnDisconnect": { - "description": "Stop on disconnect configuration settings for Dev Boxes created in this pool.", - "$ref": "#/definitions/StopOnDisconnectConfiguration" - }, - "stopOnNoConnect": { - "description": "Stop on no connect configuration settings for Dev Boxes created in this pool.", - "$ref": "#/definitions/StopOnNoConnectConfiguration" - }, - "singleSignOnStatus": { - "description": "Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on be enabled on the tenant.", - "$ref": "#/definitions/SingleSignOnStatus" - }, - "displayName": { - "type": "string", - "description": "The display name of the pool." - }, - "virtualNetworkType": { - "description": "Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network.", - "$ref": "#/definitions/VirtualNetworkType" - }, - "managedVirtualNetworkRegions": { - "type": "array", - "description": "The regions of the managed virtual network (required when managedNetworkType is Managed).", - "items": { - "type": "string" - } - }, - "activeHoursConfiguration": { - "description": "Active hours configuration settings for Dev Boxes created in this pool.", - "$ref": "#/definitions/ActiveHoursConfiguration" - }, - "devBoxTunnelEnableStatus": { - "description": "Indicates whether Dev Box Tunnel is enabled for a the pool.", - "$ref": "#/definitions/DevBoxTunnelEnableStatus" - } - } - }, - "PoolProperties": { - "type": "object", - "description": "Properties of a Pool", - "allOf": [ - { - "$ref": "#/definitions/PoolUpdateProperties" - } - ], - "properties": { - "healthStatus": { - "description": "Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes.", - "$ref": "#/definitions/HealthStatus", - "readOnly": true - }, - "healthStatusDetails": { - "description": "Details on the Pool health status to help diagnose issues. This is only populated when the pool status indicates the pool is in a non-healthy state", - "type": "array", - "items": { - "$ref": "#/definitions/HealthStatusDetail" - }, - "x-ms-identifiers": [ - "code" - ], - "readOnly": true - }, - "devBoxCount": { - "description": "Indicates the number of provisioned Dev Boxes in this pool.", - "type": "integer", - "format": "int32", - "readOnly": true - }, - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", - "readOnly": true - } - }, - "required": [ - "devBoxDefinitionName", - "networkConnectionName", - "licenseType", - "localAdministrator" - ] - }, - "PoolDevBoxDefinition": { - "description": "Represents a definition for a Developer Machine.", - "type": "object", - "properties": { - "imageReference": { - "$ref": "#/definitions/ImageReference", - "description": "Image reference information." - }, - "sku": { - "description": "The SKU for Dev Boxes created from the Pool.", - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Sku" - }, - "activeImageReference": { - "$ref": "#/definitions/ImageReference", - "description": "Image reference information for the currently active image (only populated during updates).", - "readOnly": true - } - } - }, - "HealthStatus": { - "description": "Health status indicating whether a pool is available to create Dev Boxes.", - "enum": [ - "Unknown", - "Pending", - "Healthy", - "Warning", - "Unhealthy" - ], - "type": "string", - "x-ms-enum": { - "name": "HealthStatus", - "modelAsString": true - } - }, - "HealthStatusDetail": { - "type": "object", - "description": "Pool health status detail.", - "properties": { - "code": { - "type": "string", - "description": "An identifier for the issue.", - "readOnly": true - }, - "message": { - "type": "string", - "description": "A message describing the issue, intended to be suitable for display in a user interface", - "readOnly": true - } - } - }, - "LicenseType": { - "description": "License Types", - "enum": [ - "Windows_Client" - ], - "type": "string", - "x-ms-enum": { - "name": "LicenseType", - "modelAsString": true - } - }, - "LocalAdminStatus": { - "description": "Local Administrator enable or disable status. Indicates whether owners of Dev Boxes are added as local administrators on the Dev Box.", - "type": "string", - "enum": [ - "Disabled", - "Enabled" - ], - "x-ms-enum": { - "name": "LocalAdminStatus", - "modelAsString": true - } - }, - "SingleSignOnStatus": { - "description": "SingleSignOn (SSO) enable or disable status. Indicates whether Dev Boxes in the Pool will have SSO enabled or disabled.", - "type": "string", - "enum": [ - "Disabled", - "Enabled" - ], - "x-ms-enum": { - "name": "SingleSignOnStatus", - "modelAsString": true - } - }, - "VirtualNetworkType": { - "description": "Indicates a pool uses a Virtual Network managed by Microsoft (Managed), or a customer provided Network (Unmanaged).", - "type": "string", - "enum": [ - "Managed", - "Unmanaged" - ], - "x-ms-enum": { - "name": "VirtualNetworkType", - "modelAsString": true - } - }, - "PoolDevBoxDefinitionType": { - "description": "Indicates if the pool is created from an existing Dev Box Definition or if one is provided directly.", - "type": "string", - "enum": [ - "Reference", - "Value" - ], - "x-ms-enum": { - "name": "PoolDevBoxDefinitionType", - "modelAsString": true - } - }, - "StopOnDisconnectConfiguration": { - "type": "object", - "description": "Stop on disconnect configuration settings for Dev Boxes created in this pool.", - "properties": { - "status": { - "description": "Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled.", - "$ref": "#/definitions/StopOnDisconnectEnableStatus" - }, - "gracePeriodMinutes": { - "description": "The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.", - "type": "integer", - "format": "int32" - } - } - }, - "StopOnDisconnectEnableStatus": { - "description": "Stop on disconnect enable or disable status. Indicates whether stop on disconnect to is either enabled or disabled.", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "StopOnDisconnectEnableStatus", - "modelAsString": true - } - }, - "StopOnNoConnectConfiguration": { - "type": "object", - "description": "Stop on no connect configuration settings for Dev Boxes created in this pool.", - "properties": { - "status": { - "description": "Enables the feature to stop a started Dev Box when it has not been connected to, once the grace period has lapsed.", - "$ref": "#/definitions/StopOnNoConnectEnableStatus" - }, - "gracePeriodMinutes": { - "description": "The specified time in minutes to wait before stopping a Dev Box if no connection is made.", - "type": "integer", - "format": "int32" - } - } - }, - "StopOnNoConnectEnableStatus": { - "description": "Stop on no connect enable or disable status.", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "StopOnNoConnectEnableStatus", - "modelAsString": true - } - }, - "PoolListResult": { - "description": "Results of the machine pool list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "type": "array", - "items": { - "$ref": "#/definitions/Pool" - }, - "readOnly": true - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "PoolUpdate": { - "description": "The pool properties for partial update. Properties not provided in the update request will not be changed.", - "type": "object", - "allOf": [ - { - "$ref": "commonDefinitions.json#/definitions/TrackedResourceUpdate" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/PoolUpdateProperties", - "description": "Properties of a pool to be updated." - } - } - }, - "ImageReference": { - "type": "object", - "description": "Image reference information", - "properties": { - "id": { - "description": "Image ID, or Image version ID. When Image ID is provided, its latest version will be used.", - "type": "string" - }, - "exactVersion": { - "type": "string", - "readOnly": true, - "description": "The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual version in use." - } - } - }, - "ImageValidationStatus": { - "description": "Image validation status", - "enum": [ - "Unknown", - "Pending", - "Succeeded", - "Failed", - "TimedOut" - ], - "type": "string", - "x-ms-enum": { - "name": "ImageValidationStatus", - "modelAsString": true - } - }, - "ImageValidationErrorDetails": { - "type": "object", - "description": "Image validation error details", - "properties": { - "code": { - "type": "string", - "description": "An identifier for the error." - }, - "message": { - "type": "string", - "description": "A message describing the error." - } - } - }, - "CatalogResourceValidationStatus": { - "description": "Catalog resource validation status", - "enum": [ - "Unknown", - "Pending", - "Succeeded", - "Failed" - ], - "type": "string", - "x-ms-enum": { - "name": "CatalogResourceValidationStatus", - "modelAsString": true - } - }, - "CatalogResourceValidationErrorDetails": { - "type": "object", - "description": "List of validator error details. Populated when changes are made to the resource or its dependent resources that impact the validity of the Catalog resource.", - "properties": { - "errors": { - "description": "Errors associated with resources synchronized from the catalog.", - "type": "array", - "items": { - "$ref": "#/definitions/CatalogErrorDetails" - }, - "x-ms-identifiers": [], - "readOnly": true - } - } - }, - "CatalogErrorDetails": { - "type": "object", - "description": "Catalog error details", - "properties": { - "code": { - "type": "string", - "description": "An identifier for the error." - }, - "message": { - "type": "string", - "description": "A message describing the error." - } - } - }, - "DevBoxTunnelEnableStatus": { - "description": "Indicates whether Dev Box Tunnel is enabled.", - "enum": [ - "Disabled", - "Enabled" - ], - "type": "string", - "x-ms-enum": { - "name": "DevBoxTunnelEnableStatus", - "modelAsString": true - } - }, - "NetworkConnection": { - "type": "object", - "description": "Network related settings", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "description": "Properties of a Network Connection", - "x-ms-client-flatten": true, - "$ref": "#/definitions/NetworkProperties" - } - } - }, - "NetworkConnectionUpdate": { - "description": "The network connection properties for partial update. Properties not provided in the update request will not be changed.", - "type": "object", - "allOf": [ - { - "$ref": "commonDefinitions.json#/definitions/TrackedResourceUpdate" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/NetworkConnectionUpdateProperties", - "description": "Properties of a network connection resource to be updated." - } - } - }, - "NetworkConnectionUpdateProperties": { - "description": "Properties of network connection. These properties can be updated after the resource has been created.", - "type": "object", - "properties": { - "subnetId": { - "description": "The subnet to attach Virtual Machines to", - "type": "string" - }, - "domainName": { - "description": "Active Directory domain name", - "type": "string" - }, - "organizationUnit": { - "description": "Active Directory domain Organization Unit (OU)", - "type": "string" - }, - "domainUsername": { - "description": "The username of an Active Directory account (user or service account) that has permissions to create computer objects in Active Directory. Required format: admin@contoso.com.", - "type": "string" - }, - "domainPassword": { - "description": "The password for the account used to join domain", - "type": "string", - "x-ms-secret": true - } - } - }, - "NetworkProperties": { - "description": "Network properties", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/NetworkConnectionUpdateProperties" - } - ], - "properties": { - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", - "readOnly": true - }, - "healthCheckStatus": { - "description": "Overall health status of the network connection. Health checks are run on creation, update, and periodically to validate the network connection.", - "$ref": "#/definitions/HealthCheckStatus", - "readOnly": true - }, - "networkingResourceGroupName": { - "description": "The name for resource group where NICs will be placed.", - "type": "string", - "x-ms-mutability": [ - "read", - "create" - ] - }, - "domainJoinType": { - "description": "AAD Join type.", - "$ref": "#/definitions/DomainJoinType", - "x-ms-mutability": [ - "read", - "create" - ] - } - }, - "required": [ - "subnetId", - "domainJoinType" - ] - }, - "NetworkConnectionListResult": { - "description": "Result of the network connection list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "type": "array", - "items": { - "$ref": "#/definitions/NetworkConnection" - }, - "readOnly": true - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "DomainJoinType": { - "description": "Active Directory join type", - "enum": [ - "HybridAzureADJoin", - "AzureADJoin", - "None" - ], - "type": "string", - "x-ms-enum": { - "name": "DomainJoinType", - "modelAsString": true - } - }, - "HealthCheckStatus": { - "description": "Health check status values", - "enum": [ - "Unknown", - "Pending", - "Running", - "Passed", - "Warning", - "Failed", - "Informational" - ], - "type": "string", - "x-ms-enum": { - "name": "HealthCheckStatus", - "modelAsString": true - } - }, - "HealthCheckStatusDetails": { - "description": "Health Check details.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Health check status details properties.", - "$ref": "#/definitions/HealthCheckStatusDetailsProperties" - } - } - }, - "HealthCheckStatusDetailsProperties": { - "description": "Health Check properties.", - "type": "object", - "properties": { - "startDateTime": { - "type": "string", - "description": "Start time of last execution of the health checks.", - "readOnly": true, - "format": "date-time" - }, - "endDateTime": { - "type": "string", - "description": "End time of last execution of the health checks.", - "readOnly": true, - "format": "date-time" - }, - "healthChecks": { - "description": "Details for each health check item.", - "type": "array", - "items": { - "$ref": "#/definitions/HealthCheck" - }, - "x-ms-identifiers": [], - "readOnly": true - } - } - }, - "HealthCheck": { - "description": "An individual health check item", - "type": "object", - "properties": { - "status": { - "description": "The status of the health check item.", - "$ref": "#/definitions/HealthCheckStatus", - "readOnly": true - }, - "displayName": { - "description": "The display name of this health check item.", - "type": "string", - "readOnly": true - }, - "startDateTime": { - "description": "Start time of health check item.", - "type": "string", - "readOnly": true, - "format": "date-time" - }, - "endDateTime": { - "description": "End time of the health check item.", - "type": "string", - "readOnly": true, - "format": "date-time" - }, - "errorType": { - "description": "The type of error that occurred during this health check.", - "type": "string", - "readOnly": true - }, - "recommendedAction": { - "description": "The recommended action to fix the corresponding error.", - "type": "string", - "readOnly": true - }, - "additionalDetails": { - "description": "Additional details about the health check or the recommended action.", - "type": "string", - "readOnly": true - } - } - }, - "HealthCheckStatusDetailsListResult": { - "description": "Result of the network health check list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "type": "array", - "items": { - "$ref": "#/definitions/HealthCheckStatusDetails" - }, - "readOnly": true - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "OutboundEnvironmentEndpointCollection": { - "type": "object", - "properties": { - "value": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/OutboundEnvironmentEndpoint" - }, - "x-ms-identifiers": [ - "category" - ], - "description": "The collection of outbound network dependency endpoints returned by the listing operation." - }, - "nextLink": { - "type": "string", - "description": "The continuation token." - } - }, - "description": "Values returned by the List operation." - }, - "OutboundEnvironmentEndpoint": { - "type": "object", - "properties": { - "category": { - "type": "string", - "readOnly": true, - "description": "The type of service that the agent connects to." - }, - "endpoints": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/EndpointDependency" - }, - "x-ms-identifiers": [ - "domainName" - ], - "description": "The endpoints for this service for which the agent requires outbound access." - } - }, - "description": "A collection of related endpoints from the same service for which the agent requires outbound access." - }, - "EndpointDependency": { - "type": "object", - "properties": { - "domainName": { - "type": "string", - "readOnly": true, - "description": "The domain name of the dependency. Domain names may be fully qualified or may contain a * wildcard." - }, - "description": { - "type": "string", - "readOnly": true, - "description": "Human-readable supplemental information about the dependency and when it is applicable." - }, - "endpointDetails": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/EndpointDetail" - }, - "x-ms-identifiers": [], - "description": "The list of connection details for this endpoint." - } - }, - "description": "A domain name and connection details used to access a dependency." - }, - "EndpointDetail": { - "type": "object", - "properties": { - "port": { - "type": "integer", - "format": "int32", - "readOnly": true, - "description": "The port an endpoint is connected to." - } - }, - "description": "Details about the connection between the Batch service and the endpoint." - }, - "Schedule": { - "type": "object", - "description": "Represents a Schedule to execute a task.", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" - } - ], - "properties": { - "properties": { - "description": "Properties of a Schedule resource", - "x-ms-client-flatten": true, - "$ref": "#/definitions/ScheduleProperties" - } - } - }, - "ScheduleUpdate": { - "description": "The schedule properties for partial update. Properties not provided in the update request will not be changed.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ScheduleUpdateProperties", - "description": "Properties of a schedule resource to be updated." - } - } - }, - "ScheduleUpdateProperties": { - "description": "Updatable properties of a Schedule.", - "type": "object", - "allOf": [ - { - "$ref": "commonDefinitions.json#/definitions/TrackedResourceUpdate" - } - ], - "properties": { - "type": { - "description": "Supported type this scheduled task represents.", - "$ref": "#/definitions/ScheduledType" - }, - "frequency": { - "description": "The frequency of this scheduled task.", - "$ref": "#/definitions/ScheduledFrequency" - }, - "time": { - "description": "The target time to trigger the action. The format is HH:MM.", - "type": "string" - }, - "timeZone": { - "description": "The IANA timezone id at which the schedule should execute.", - "type": "string" - }, - "state": { - "description": "Indicates whether or not this scheduled task is enabled.", - "$ref": "#/definitions/ScheduleEnableStatus" - } - } - }, - "ScheduleProperties": { - "description": "The Schedule properties defining when and what to execute.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/ScheduleUpdateProperties" - } - ], - "properties": { - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", - "readOnly": true - } - }, - "required": [ - "type", - "frequency", - "timeZone", - "time" - ] - }, - "ScheduleListResult": { - "description": "Result of the schedule list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "type": "array", - "items": { - "$ref": "#/definitions/Schedule" - }, - "readOnly": true - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "ScheduledType": { - "description": "The supported types for a scheduled task.", - "enum": [ - "StopDevBox" - ], - "type": "string", - "x-ms-enum": { - "name": "ScheduledType", - "modelAsString": true - } - }, - "ScheduledFrequency": { - "description": "The frequency of task execution.", - "enum": [ - "Daily" - ], - "type": "string", - "x-ms-enum": { - "name": "ScheduledFrequency", - "modelAsString": true - } - }, - "ScheduleEnableStatus": { - "description": "Schedule enable or disable status. Indicates whether the schedule applied to is either enabled or disabled.", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "ScheduleEnableStatus", - "modelAsString": true - } - }, - "ActiveHoursConfiguration": { - "type": "object", - "description": "Active hours configuration.", - "properties": { - "keepAwakeEnableStatus": { - "$ref": "#/definitions/KeepAwakeEnableStatus", - "description": "Enables or disables whether the Dev Box should be kept awake during active hours." - }, - "autoStartEnableStatus": { - "$ref": "#/definitions/AutoStartEnableStatus", - "description": "Enables or disables whether the Dev Box should be automatically started at commencement of active hours." - }, - "defaultTimeZone": { - "type": "string", - "description": "The default IANA timezone id of the active hours." - }, - "defaultStartTimeHour": { - "type": "integer", - "format": "int32", - "description": "The default start time of the active hours." - }, - "defaultEndTimeHour": { - "type": "integer", - "format": "int32", - "description": "The default end time of the active hours" - }, - "defaultDaysOfWeek": { - "type": "array", - "items": { - "$ref": "#/definitions/DaysOfWeek" - }, - "description": "The days of the week that active hours features will be enabled. This serves as a default that can be updated by each individual user." - }, - "daysOfWeekLimit": { - "type": "integer", - "format": "int32", - "description": "The maximum amount of days per week that a user can enable active hours related features." - } - } - }, - "KeepAwakeEnableStatus": { - "type": "string", - "description": "Enables or disables whether Dev Boxes should be kept awake during active hours.", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "KeepAwakeEnableStatus", - "modelAsString": true - } - }, - "AutoStartEnableStatus": { - "type": "string", - "description": "Enables or disables whether Dev Boxes should be automatically started at commencement of active hours.", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "AutoStartEnableStatus", - "modelAsString": true - } - }, - "DaysOfWeek": { - "type": "string", - "description": "The days of the week.", - "enum": [ - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday", - "Sunday" - ], - "x-ms-enum": { - "name": "DaysOfWeek", - "modelAsString": false - } - } - }, - "parameters": { - "PoolNameParameter": { - "name": "poolName", - "in": "path", - "required": true, - "type": "string", - "description": "Name of the pool.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63 - }, - "NetworkConnectionName": { - "name": "networkConnectionName", - "in": "path", - "required": true, - "type": "string", - "description": "Name of the Network Connection that can be applied to a Pool.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63 - }, - "ScheduleNameParameter": { - "name": "scheduleName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the schedule that uniquely identifies it.", - "minLength": 1, - "maxLength": 100, - "pattern": "^[-\\w]+$", - "x-ms-parameter-location": "method" - }, - "FilterParameter": { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName').", - "type": "string", - "required": false, - "x-ms-parameter-location": "method" - } - } -} From 7fd4c3b2a61803cb776763a842bfed65ceb3a17a Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Thu, 10 Jul 2025 22:33:18 +0000 Subject: [PATCH 066/111] Architecture feedback --- .../shared/cmd}/api-doc-preview.js | 6 +- .../shared/src}/doc-preview.js | 0 .../shared/test}/doc-preview.test.js | 0 eng/pipelines/swagger-api-doc-preview.yml | 107 +++++++++++++--- eng/scripts/api-doc-preview-interpret.js | 85 ------------- eng/scripts/api-doc-preview-wait.js | 118 ------------------ 6 files changed, 96 insertions(+), 220 deletions(-) rename {eng/scripts => .github/shared/cmd}/api-doc-preview.js (96%) rename {eng/scripts => .github/shared/src}/doc-preview.js (100%) rename {eng/scripts/Tests => .github/shared/test}/doc-preview.test.js (100%) delete mode 100755 eng/scripts/api-doc-preview-interpret.js delete mode 100755 eng/scripts/api-doc-preview-wait.js diff --git a/eng/scripts/api-doc-preview.js b/.github/shared/cmd/api-doc-preview.js similarity index 96% rename from eng/scripts/api-doc-preview.js rename to .github/shared/cmd/api-doc-preview.js index 29ecce25cf22..01773d0f43d7 100755 --- a/eng/scripts/api-doc-preview.js +++ b/.github/shared/cmd/api-doc-preview.js @@ -9,15 +9,15 @@ import { swagger, getChangedFiles, pathExists, -} from "../../.github/shared/src/changed-files.js"; -import { filterAsync } from "../../.github/shared/src/array.js"; +} from "../src/changed-files.js"; +import { filterAsync } from "../src/array.js"; import { mappingJSONTemplate, repoJSONTemplate, indexMd, getSwaggersToProcess, -} from "./doc-preview.js"; +} from "../src/doc-preview.js"; const __dirname = dirname(fileURLToPath(import.meta.url)); diff --git a/eng/scripts/doc-preview.js b/.github/shared/src/doc-preview.js similarity index 100% rename from eng/scripts/doc-preview.js rename to .github/shared/src/doc-preview.js diff --git a/eng/scripts/Tests/doc-preview.test.js b/.github/shared/test/doc-preview.test.js similarity index 100% rename from eng/scripts/Tests/doc-preview.test.js rename to .github/shared/test/doc-preview.test.js diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 08005cf14fc9..ce626f49b09b 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -22,6 +22,7 @@ jobs: - name: CurrentBuildUrl value: $(System.CollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId) + # TODO: Remove [TEST-IGNORE] when this is ready to go live - name: StatusName value: '[TEST-IGNORE] Swagger ApiDocPreview' @@ -46,7 +47,7 @@ jobs: # checks out files in the repo root Repositories: - Name: MicrosoftDocs/AzureRestPreview - # TODO: use main + # TODO: use main branch when this is ready to go live Commitish: refs/heads/doc-preview-migration-test WorkingDirectory: AzureRestPreview @@ -71,15 +72,16 @@ jobs: displayName: Start docs build inputs: azureSubscription: msdocs-apidrop-connection - scriptType: bash + scriptType: pwsh scriptLocation: inlineScript - inlineScript: >- - az pipelines build queue - --organization "https://dev.azure.com/apidrop/" - --project "Content CI" - --definition-id "8120" - --variables 'params={"target_repo":{"url":"https://github.com/MicrosoftDocs/AzureRestPreview","branch":"$(BranchName)"}, "source_of_truth": "code"}' - | tee buildstart.json + inlineScript: | + $buildStart = az pipelines build queue + --organization "https://dev.azure.com/apidrop/" + --project "Content CI" + --definition-id "8120" + --variables 'params={"target_repo":{"url":"https://github.com/MicrosoftDocs/AzureRestPreview","branch":"$(BranchName)"}, "source_of_truth": "code"}' + $buildStart | Set-Content buildstart.json + Write-Host "Build started at https://dev.azure.com/apidrop/Content%20CI/_build/results?buildId=$($buildStart.id)" - task: AzureCLI@2 displayName: Wait for docs build to finish @@ -88,12 +90,88 @@ jobs: retryCountOnTaskFailure: 3 inputs: azureSubscription: msdocs-apidrop-connection - scriptType: bash + scriptType: pwsh scriptLocation: inlineScript - inlineScript: eng/scripts/api-doc-preview-wait.js + inlineScript: | + $buildStart = Get-Content buildstart.json | ConvertFrom-Json - - script: eng/scripts/api-doc-preview-interpret.js - displayName: Interpret build results and update PR status + Write-Host "Waiting for build to finish: https://dev.azure.com/apidrop/Content%20CI/_build/results?buildId=$($buildStart.id)" + while($true) { + $runStatusRaw = az pipelines runs show ` + --organization "https://dev.azure.com/apidrop/" ` + --project "Content CI" ` + --id "$($buildStart.id)" + + if ($LASTEXITCODE) { + Write-Host "Failed to get run status" + Write-Host "Exit code: $LASTEXITCODE" + Write-Host "Output: $runStatusRaw" + exit 1 + } + + $runStatus = $runStatusRaw | ConvertFrom-Json + Write-Host "Run status: $($runStatus.status)" + + if ($runStatus.status -eq "completed") { + break; + } + Start-Sleep -Seconds 10 + } + + Write-Host "Build completed with status: $($runStatus.result)" + Write-Host "Build logs: https://dev.azure.com/apidrop/Content%20CI/_build/results?buildId=$($buildStart.id)" + + Write-Host "Downloading artifact..." + $artifactDownloadRaw = az pipelines runs artifact download ` + --organization "https://dev.azure.com/apidrop/" ` + --project "Content CI" ` + --run-id "$($buildStart.id)" ` + --artifact-name "report" ` + --path "./" + + if ($LASTEXITCODE) { + Write-Host "Failed to download artifact" + Write-Host "Exit code: $LASTEXITCODE" + Write-Host "Output: $artifactDownloadRaw" + exit 1 + } + + Write-Host "Artifact downloaded successfully" + + - pwsh: | + # Read the report.json file downloaded from the docs build artifact + $reportRaw = Get-Content -Path "./report.json" -Raw + $report = $reportRaw | ConvertFrom-Json -AsHashtable + + # Get build ID from buildstart.json (set during the "Start docs build" step) + $buildStart = Get-Content buildstart.json | ConvertFrom-Json + $buildLink = "https://dev.azure.com/apidrop/Content%20CI/_build/results?buildId=$($buildStart.id)" + + if ($report.status -ne "Succeeded") { + Write-Host "Docs build failed with status: $($report.status)" + Write-Host "Report:" + Write-Host $reportRaw + + Write-Host "##vso[task.setvariable variable=CheckUrl]${buildLink}" + Write-Host "##vso[task.setvariable variable=CheckDescription]Docs build failed (click to see pipeline logs)" + Write-Host "##vso[task.setvariable variable=CheckState]failure" + + # Docs build failed, but this job should not fail unless it + # encounters an unexpected error. The check status will be set in + # the next task. + exit 0 + } + + Write-Host "Docs build succeeded with status: $($report.status)" + + $docsPreviewUrl = "https://review.learn.microsoft.com/en-us/rest/api/azure-rest-preview/?branch=$([System.Web.HttpUtility]::UrlEncode($report.branch))&view=azure-rest-preview" + Write-Host "##vso[task.setvariable variable=CheckUrl]$docsPreviewUrl" + Write-Host "##vso[task.setvariable variable=CheckDescription]Docs build succeeded (click to see preview)" + Write-Host "##vso[task.setvariable variable=CheckState]success" + Write-Host "Docs preview URL: $docsPreviewUrl" + + exit 0 + displayName: Interpret docs build results # Sets check status from docs build using $(CheckUrl), $(CheckState), and # $(CheckDescription) variables set by api-doc-preview-interpret.js. @@ -108,8 +186,9 @@ jobs: # PR status to failed and link to the current build. - template: /eng/pipelines/templates/steps/set-pr-check.yml parameters: + # Only run if a previous step in the job failed + Condition: failed() State: failure TargetUrl: $(CurrentBuildUrl) Description: 'Orchestration build failed click to see logs' Context: $(StatusName) - Condition: failed() diff --git a/eng/scripts/api-doc-preview-interpret.js b/eng/scripts/api-doc-preview-interpret.js deleted file mode 100755 index b6ce2933b3c3..000000000000 --- a/eng/scripts/api-doc-preview-interpret.js +++ /dev/null @@ -1,85 +0,0 @@ -#!/usr/bin/env node -// @ts-check -import { resolve, dirname } from "path"; -import { fileURLToPath } from "url"; -import { parseArgs } from "util"; -import { readFile } from "fs/promises"; - -const __dirname = dirname(fileURLToPath(import.meta.url)); - -function usage() { - console.log(`Usage: -npx api-doc-preview-interpret --input --build-start - -parameters: - --report Path to the build start JSON file. Defaults to "report.json" at repo root. - --build-start Path to the build start JSON file. Defaults to "buildstart.json" at repo root. -`); -} - -export async function main() { - const { - values: { report: resultArtifactPath, "build-start": buildStartPath }, - } = parseArgs({ - options: { - report: { - type: "string", - default: resolve(__dirname, "../../report.json"), - }, - "build-start": { - type: "string", - default: resolve(__dirname, "../../buildstart.json"), - }, - }, - allowPositionals: false, - }); - - let resultArtifactData, resultArtifactRaw; - try { - // TODO: CLEANUP - resultArtifactRaw = await readFile(resultArtifactPath, { - encoding: "utf8", - }); - // Use .trim() to remove BOM which can be present in the JSON file - resultArtifactData = JSON.parse(resultArtifactRaw.trim()); - } catch (error) { - console.error( - `Failed to read input file "${resultArtifactPath}": ${error.message}`, - ); - usage(); - process.exitCode = 1; - return; - } - - // Read build ID from build start file to provide a link to build details - const buildStartRaw = await readFile(buildStartPath, { encoding: "utf8" }); - const buildStartData = JSON.parse(buildStartRaw.trim()); - const buildId = buildStartData.id; - const buildLink = `https://dev.azure.com/apidrop/Content%20CI/_build/results?buildId=${buildId}`; - console.log(`Build Details: ${buildLink}`); - - if (resultArtifactData.status != "Succeeded") { - console.log(`Build failed: ${resultArtifactData.status}`); - - console.log(`##vso[task.setvariable variable=CheckUrl]${buildLink}`); - console.log( - "##vso[task.setvariable variable=CheckDescription]Docs build failed (click to see pipeline)", - ); - console.log(`##vso[task.setvariable variable=CheckState]failure`); - console.log(`Raw output:\n${resultArtifactRaw}`); - console.log(`Build details: ${buildLink}`); - return; - } - - console.log(`Build completed successfully.`); - - const docsPreviewUrl = `https://review.learn.microsoft.com/en-us/rest/api/azure-rest-preview/?branch=${encodeURIComponent(resultArtifactData.branch)}&view=azure-rest-preview`; - console.log(`##vso[task.setvariable variable=CheckUrl]${docsPreviewUrl}`); - console.log( - "##vso[task.setvariable variable=CheckDescription]Docs build succeeded (click to see preview)", - ); - console.log(`##vso[task.setvariable variable=CheckState]success`); - console.log(`Docs preview URL: ${docsPreviewUrl}`); -} - -await main(); diff --git a/eng/scripts/api-doc-preview-wait.js b/eng/scripts/api-doc-preview-wait.js deleted file mode 100755 index f7eac780bc73..000000000000 --- a/eng/scripts/api-doc-preview-wait.js +++ /dev/null @@ -1,118 +0,0 @@ -#!/usr/bin/env node -// @ts-check -import { resolve, dirname } from "path"; -import { fileURLToPath } from "url"; -import { parseArgs } from "util"; -import { execFile } from "../../.github/shared/src/exec.js"; -import { /* @type {string} */ readFile } from "fs/promises"; - -const __dirname = dirname(fileURLToPath(import.meta.url)); - -function usage() { - console.log(`Usage: -node api-doc-preview-wait.mjs --input - -parameters: - --input Path to the build start JSON file. Defaults to "buildstart.json" at repo root. -`); -} - -export async function main() { - const { - values: { input: buildStartPath }, - } = parseArgs({ - options: { - input: { - type: "string", - default: resolve(__dirname, "../../buildstart.json"), - }, - }, - allowPositionals: false, - }); - - let buildStartData, buildId; - try { - buildStartData = JSON.parse( - await readFile(buildStartPath, { encoding: "utf8" }), - ); - buildId = buildStartData.id; - } catch (error) { - console.error( - `Failed to read or parse input file "${buildStartPath}": ${error.message}`, - ); - usage(); - process.exitCode = 1; - return; - } - - const devOpsIdentifiers = [ - "--organization", - "https://dev.azure.com/apidrop/", - "--project", - "Content CI", - ]; - - while (true) { - try { - const { stdout } = await execFile("az", [ - "pipelines", - "runs", - "show", - ...devOpsIdentifiers, - "--id", - buildId, - ]); - - const run = JSON.parse(stdout); - const status = run.status; - - console.log(`Build ${buildId} status: ${status}`); - if (status === "completed") { - break; - } - - // Sleep 10 seconds to avoid calling the API too frequently - await new Promise((resolve) => setTimeout(resolve, 10_000)); - } catch (error) { - console.error(`Failed to check build status: ${error.message}`); - if (error.stdout) { - console.error(`Command output:\n${error.stdout}`); - } - if (error.stderr) { - console.error(`Command error output:\n${error.stderr}`); - } - - throw error; - } - } - console.log(`Build ${buildId} completed.`); - - console.log("Downloading artifact..."); - try { - await execFile("az", [ - "pipelines", - "runs", - "artifact", - "download", - ...devOpsIdentifiers, - "--run-id", - buildId, - "--artifact-name", - "report", - "--path", - resolve(__dirname, "../../"), - ]); - } catch (error) { - console.error(`Failed to download artifact: ${error.message}`); - if (error.stdout) { - console.error(`Command output:\n${error.stdout}`); - } - if (error.stderr) { - console.error(`Command error output:\n${error.stderr}`); - } - process.exitCode = 1; - return; - } -} - -await main(); From 1a1b5cc643c9e2347838b152b3e974324aef499b Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Thu, 10 Jul 2025 22:35:56 +0000 Subject: [PATCH 067/111] Paths --- .github/shared/cmd/api-doc-preview.js | 2 +- eng/pipelines/swagger-api-doc-preview.yml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/shared/cmd/api-doc-preview.js b/.github/shared/cmd/api-doc-preview.js index 01773d0f43d7..e55ecfb4abdb 100755 --- a/.github/shared/cmd/api-doc-preview.js +++ b/.github/shared/cmd/api-doc-preview.js @@ -59,7 +59,7 @@ export async function main() { }, "spec-repo-root": { type: "string", - default: resolve(__dirname, "../../"), + default: resolve(__dirname, "../../../"), }, }, allowPositionals: false, diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index ce626f49b09b..040f8de9ecb9 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -53,8 +53,9 @@ jobs: - template: /eng/pipelines/templates/steps/npm-install.yml - - script: eng/scripts/api-doc-preview.js --output ./AzureRestPreview + - script: npm exec --no -- api-doc-preview --output ../../AzureRestPreview displayName: Generate Swagger API documentation preview + workingDirectory: .github/shared - template: /eng/common/pipelines/templates/steps/git-push-changes.yml parameters: From c1d356e857d296654649b3f97f064812a5b4e3eb Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Thu, 10 Jul 2025 22:38:50 +0000 Subject: [PATCH 068/111] Docs preview --- .../Microsoft.Contoso/stable/2021-11-01/contoso.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/contoso.json b/specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/contoso.json index 243b6576d7e8..ab7f5d304d43 100644 --- a/specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/contoso.json +++ b/specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/contoso.json @@ -3,7 +3,7 @@ "info": { "title": "Microsoft.Contoso management service", "version": "2021-11-01", - "description": "Microsoft.Contoso Resource Provider management API.", + "description": "Microsoft.Contoso Resource Provider management API. With a change to trigger docs generation.", "x-typespec-generated": [ { "emitter": "@azure-tools/typespec-autorest" From e911f004f64bf8b607e40b82af14dfea2ca49587 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 11 Jul 2025 16:25:42 +0000 Subject: [PATCH 069/111] pscore --- eng/pipelines/swagger-api-doc-preview.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 040f8de9ecb9..09dde539b399 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -73,7 +73,7 @@ jobs: displayName: Start docs build inputs: azureSubscription: msdocs-apidrop-connection - scriptType: pwsh + scriptType: pscore scriptLocation: inlineScript inlineScript: | $buildStart = az pipelines build queue @@ -91,7 +91,7 @@ jobs: retryCountOnTaskFailure: 3 inputs: azureSubscription: msdocs-apidrop-connection - scriptType: pwsh + scriptType: pscore scriptLocation: inlineScript inlineScript: | $buildStart = Get-Content buildstart.json | ConvertFrom-Json From c01a4dbe6e662be73314b2d2b70d0ead85273345 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 11 Jul 2025 16:29:12 +0000 Subject: [PATCH 070/111] ` --- eng/pipelines/swagger-api-doc-preview.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 09dde539b399..613a9dd41b7c 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -76,10 +76,10 @@ jobs: scriptType: pscore scriptLocation: inlineScript inlineScript: | - $buildStart = az pipelines build queue - --organization "https://dev.azure.com/apidrop/" - --project "Content CI" - --definition-id "8120" + $buildStart = az pipelines build queue ` + --organization "https://dev.azure.com/apidrop/" ` + --project "Content CI" ` + --definition-id "8120" ` --variables 'params={"target_repo":{"url":"https://github.com/MicrosoftDocs/AzureRestPreview","branch":"$(BranchName)"}, "source_of_truth": "code"}' $buildStart | Set-Content buildstart.json Write-Host "Build started at https://dev.azure.com/apidrop/Content%20CI/_build/results?buildId=$($buildStart.id)" From 6ec290db43f7b34cbd4571f68161f82afe60ccc8 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 11 Jul 2025 16:30:05 +0000 Subject: [PATCH 071/111] copy --- eng/pipelines/swagger-api-doc-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 613a9dd41b7c..f87bf9c1d6ad 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -191,5 +191,5 @@ jobs: Condition: failed() State: failure TargetUrl: $(CurrentBuildUrl) - Description: 'Orchestration build failed click to see logs' + Description: 'Orchestration build failed (click to see logs)' Context: $(StatusName) From 224d36079abfad9d905f2d3082f63881699670c1 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 11 Jul 2025 16:34:35 +0000 Subject: [PATCH 072/111] $buildStart --- eng/pipelines/swagger-api-doc-preview.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index f87bf9c1d6ad..c8d5844db5fd 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -76,12 +76,13 @@ jobs: scriptType: pscore scriptLocation: inlineScript inlineScript: | - $buildStart = az pipelines build queue ` + $buildStartRaw = az pipelines build queue ` --organization "https://dev.azure.com/apidrop/" ` --project "Content CI" ` --definition-id "8120" ` --variables 'params={"target_repo":{"url":"https://github.com/MicrosoftDocs/AzureRestPreview","branch":"$(BranchName)"}, "source_of_truth": "code"}' - $buildStart | Set-Content buildstart.json + $buildStartRaw | Set-Content buildstart.json + $buildStart = $buildStartRaw | ConvertFrom-Json Write-Host "Build started at https://dev.azure.com/apidrop/Content%20CI/_build/results?buildId=$($buildStart.id)" - task: AzureCLI@2 From b040cfec4b684eb641fe2fa7cb66d6fa010a3bcc Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 11 Jul 2025 18:39:06 +0000 Subject: [PATCH 073/111] Test: timeout --- eng/pipelines/swagger-api-doc-preview.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index c8d5844db5fd..e18fe877f423 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -98,6 +98,9 @@ jobs: $buildStart = Get-Content buildstart.json | ConvertFrom-Json Write-Host "Waiting for build to finish: https://dev.azure.com/apidrop/Content%20CI/_build/results?buildId=$($buildStart.id)" + + # TODO: Remove timeout test + $testTimeoutStart = Get-Date while($true) { $runStatusRaw = az pipelines runs show ` --organization "https://dev.azure.com/apidrop/" ` @@ -111,6 +114,12 @@ jobs: exit 1 } + if ((Get-Date) - $testTimeoutStart).TotalMinutes -gt 3) { + Write-Host "Timeout reached while waiting for build to finish" + Write-Host "Exiting with failure" + exit 1 + } + $runStatus = $runStatusRaw | ConvertFrom-Json Write-Host "Run status: $($runStatus.status)" From 76f4d2941299f834aeba9c2d7324dceb5c1e10f9 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 11 Jul 2025 18:42:43 +0000 Subject: [PATCH 074/111] ( --- eng/pipelines/swagger-api-doc-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index e18fe877f423..3c6365f812fc 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -114,7 +114,7 @@ jobs: exit 1 } - if ((Get-Date) - $testTimeoutStart).TotalMinutes -gt 3) { + if (((Get-Date) - $testTimeoutStart).TotalMinutes -gt 3) { Write-Host "Timeout reached while waiting for build to finish" Write-Host "Exiting with failure" exit 1 From 91419323447d094f1519ef2b2e6d671257c86a99 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 11 Jul 2025 19:02:18 +0000 Subject: [PATCH 075/111] Remove test timeout --- eng/pipelines/swagger-api-doc-preview.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 3c6365f812fc..44b2a33802ce 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -99,8 +99,6 @@ jobs: Write-Host "Waiting for build to finish: https://dev.azure.com/apidrop/Content%20CI/_build/results?buildId=$($buildStart.id)" - # TODO: Remove timeout test - $testTimeoutStart = Get-Date while($true) { $runStatusRaw = az pipelines runs show ` --organization "https://dev.azure.com/apidrop/" ` @@ -114,12 +112,6 @@ jobs: exit 1 } - if (((Get-Date) - $testTimeoutStart).TotalMinutes -gt 3) { - Write-Host "Timeout reached while waiting for build to finish" - Write-Host "Exiting with failure" - exit 1 - } - $runStatus = $runStatusRaw | ConvertFrom-Json Write-Host "Run status: $($runStatus.status)" From c4de2fd878b4e9726290dba47c1d3f6b94d628b7 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 11 Jul 2025 19:02:57 +0000 Subject: [PATCH 076/111] Test orchestration build failure --- eng/pipelines/swagger-api-doc-preview.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 44b2a33802ce..4ef63b941baa 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -85,6 +85,9 @@ jobs: $buildStart = $buildStartRaw | ConvertFrom-Json Write-Host "Build started at https://dev.azure.com/apidrop/Content%20CI/_build/results?buildId=$($buildStart.id)" + - pwsh: exit 1 + displayName: Test fail the orchestration build + - task: AzureCLI@2 displayName: Wait for docs build to finish # Retry on failure to handle transient issues or builds that run longer From 234ecf3f35d7ce26ff89f6ec8b6812121b4c6bb4 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 11 Jul 2025 19:07:39 +0000 Subject: [PATCH 077/111] Revert contrived orchestration failure --- eng/pipelines/swagger-api-doc-preview.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 4ef63b941baa..44b2a33802ce 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -85,9 +85,6 @@ jobs: $buildStart = $buildStartRaw | ConvertFrom-Json Write-Host "Build started at https://dev.azure.com/apidrop/Content%20CI/_build/results?buildId=$($buildStart.id)" - - pwsh: exit 1 - displayName: Test fail the orchestration build - - task: AzureCLI@2 displayName: Wait for docs build to finish # Retry on failure to handle transient issues or builds that run longer From 0523e95c43f33b32bbcad7d07178210123ee816f Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 11 Jul 2025 19:08:26 +0000 Subject: [PATCH 078/111] Contrive a docs build failure --- .../Microsoft.Contoso/stable/2021-11-01/contoso.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/contoso.json b/specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/contoso.json index ab7f5d304d43..45cee0a5aedf 100644 --- a/specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/contoso.json +++ b/specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/contoso.json @@ -3,7 +3,7 @@ "info": { "title": "Microsoft.Contoso management service", "version": "2021-11-01", - "description": "Microsoft.Contoso Resource Provider management API. With a change to trigger docs generation.", + "description": "Microsoft.Contoso Resource Provider management API. With a change to trigger docs generation. contrive a docs build failure, "x-typespec-generated": [ { "emitter": "@azure-tools/typespec-autorest" From 24706421c9181111cc486a7d1156fffc3f85ffd4 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 11 Jul 2025 19:17:41 +0000 Subject: [PATCH 079/111] Test success case --- .../Microsoft.Contoso/stable/2021-11-01/contoso.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/contoso.json b/specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/contoso.json index 45cee0a5aedf..1abbe3bca646 100644 --- a/specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/contoso.json +++ b/specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/contoso.json @@ -3,7 +3,7 @@ "info": { "title": "Microsoft.Contoso management service", "version": "2021-11-01", - "description": "Microsoft.Contoso Resource Provider management API. With a change to trigger docs generation. contrive a docs build failure, + "description": "Microsoft.Contoso Resource Provider management API. Sample successful test.", "x-typespec-generated": [ { "emitter": "@azure-tools/typespec-autorest" From 25cc59cc156e883fb188a8dd106117d001ebd4bf Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 11 Jul 2025 19:33:18 +0000 Subject: [PATCH 080/111] Revert spec change --- .../Microsoft.Contoso/stable/2021-11-01/contoso.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/contoso.json b/specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/contoso.json index 1abbe3bca646..243b6576d7e8 100644 --- a/specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/contoso.json +++ b/specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/contoso.json @@ -3,7 +3,7 @@ "info": { "title": "Microsoft.Contoso management service", "version": "2021-11-01", - "description": "Microsoft.Contoso Resource Provider management API. Sample successful test.", + "description": "Microsoft.Contoso Resource Provider management API.", "x-typespec-generated": [ { "emitter": "@azure-tools/typespec-autorest" From 1e1847a3b6ae72b7ffd7dd322a34758fbd0eb805 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 11 Jul 2025 21:12:37 +0000 Subject: [PATCH 081/111] Add support for filtering quickstart templates --- .github/shared/cmd/api-doc-preview.js | 1 - .github/shared/src/changed-files.js | 14 ++++++++++++++ .github/shared/test/changed-files.test.js | 21 +++++++++++++++++++++ .github/shared/test/doc-preview.test.js | 2 +- 4 files changed, 36 insertions(+), 2 deletions(-) diff --git a/.github/shared/cmd/api-doc-preview.js b/.github/shared/cmd/api-doc-preview.js index e55ecfb4abdb..81fdb513294f 100755 --- a/.github/shared/cmd/api-doc-preview.js +++ b/.github/shared/cmd/api-doc-preview.js @@ -87,7 +87,6 @@ export async function main() { console.log(`Found ${changedFiles.length} changed files in ${specRepoRoot}`); console.log("Changed files:"); changedFiles.forEach((file) => console.log(` - ${file}`)); - // TODO: `swagger` filter doesn't perfectly overlap with existing process. Determine if additional changes are needed to `swagger` check. const swaggerPaths = changedFiles.filter(swagger); const existingSwaggerFiles = await filterAsync( swaggerPaths, diff --git a/.github/shared/src/changed-files.js b/.github/shared/src/changed-files.js index fa538566c6fc..7c07283e83bc 100644 --- a/.github/shared/src/changed-files.js +++ b/.github/shared/src/changed-files.js @@ -202,6 +202,19 @@ export function example(file) { ); } +/** + * @param {string} [file] + * @returns {boolean} + */ +export function quickstartTemplate(file) { + return ( + typeof file === "string" && + json(file) && + specification(file) && + file.includes("/quickstart-templates/") + ); +} + /** * @param {string} [file] * @returns {boolean} @@ -212,6 +225,7 @@ export function swagger(file) { json(file) && (dataPlane(file) || resourceManager(file)) && !example(file) && + !quickstartTemplate(file) && !scenario(file) ); } diff --git a/.github/shared/test/changed-files.test.js b/.github/shared/test/changed-files.test.js index ae6feda82191..1b3cb80ef60b 100644 --- a/.github/shared/test/changed-files.test.js +++ b/.github/shared/test/changed-files.test.js @@ -15,6 +15,8 @@ import { getChangedFiles, getChangedFilesStatuses, json, + pathExists, + quickstartTemplate, readme, resourceManager, specification, @@ -53,6 +55,7 @@ describe("changedFiles", () => { "specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/contoso.json", "specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/examples/Employees_Get.json", "specification/contosowidgetmanager/Contoso.Management/scenarios/2021-11-01/Employees_Get.json", + "specification/compute/quickstart-templates/swagger.json", ]; it("filter:json", () => { @@ -63,6 +66,7 @@ describe("changedFiles", () => { "specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/contoso.json", "specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/examples/Employees_Get.json", "specification/contosowidgetmanager/Contoso.Management/scenarios/2021-11-01/Employees_Get.json", + "specification/compute/quickstart-templates/swagger.json", ]; expect(files.filter(json)).toEqual(expected); @@ -87,6 +91,7 @@ describe("changedFiles", () => { "specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/contoso.json", "specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/examples/Employees_Get.json", "specification/contosowidgetmanager/Contoso.Management/scenarios/2021-11-01/Employees_Get.json", + "specification/compute/quickstart-templates/swagger.json", ]; expect(files.filter(specification)).toEqual(expected); @@ -117,6 +122,12 @@ describe("changedFiles", () => { expect(files.filter(example)).toEqual(expected); }); + it("filter:quickstartTemplate", () => { + const expected = ["specification/compute/quickstart-templates/swagger.json"]; + + expect(files.filter(quickstartTemplate)).toEqual(expected); + }); + it("filter:scenarios", () => { const expected = [ "specification/contosowidgetmanager/Contoso.Management/scenarios/2021-11-01/Employees_Get.json", @@ -235,4 +246,14 @@ describe("changedFiles", () => { ]); }); }); + + describe("pathExists", () => { + it("returns true for existing path", async () => { + expect(await pathExists(".")).toBe(true); + }); + + it("returns false for non-existing path", async () => { + expect(await pathExists("non/existing/path")).toBe(false); + }); + }); }); diff --git a/.github/shared/test/doc-preview.test.js b/.github/shared/test/doc-preview.test.js index 558c6bf3439e..9bace5eed012 100644 --- a/.github/shared/test/doc-preview.test.js +++ b/.github/shared/test/doc-preview.test.js @@ -5,7 +5,7 @@ import { indexMd, mappingJSONTemplate, repoJSONTemplate, -} from "../doc-preview.js"; +} from "../src/doc-preview.js"; describe("parseSwaggerFilePath", () => { test("returns null for invalid path", () => { From 8b58e31faf6dd19982dbe247ee42a0ecd79f3691 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 11 Jul 2025 21:25:22 +0000 Subject: [PATCH 082/111] Use aka.ms link for docs support teams channel --- .github/shared/src/doc-preview.js | 3 +-- .github/shared/test/doc-preview.test.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/shared/src/doc-preview.js b/.github/shared/src/doc-preview.js index de636e78283e..ef07d538cad4 100644 --- a/.github/shared/src/doc-preview.js +++ b/.github/shared/src/doc-preview.js @@ -98,7 +98,6 @@ export function mappingJSONTemplate(files) { * @param {{repoName: string, prNumber: string}} key * @returns {string} */ -// TODO: Use aka.ms link for Teams channel export function indexMd(buildId, { repoName, prNumber }) { return `# Documentation Preview for swagger pipeline build #${buildId} @@ -108,7 +107,7 @@ created via the swagger pipeline. Your documentation may be viewed in the menu on the left hand side. If you have issues around documentation generation, please feel free to contact -us in the [Docs Support Teams Channel](https://teams.microsoft.com/l/channel/19%3A7506cc3e220f430ab89d992c7db5284f%40thread.skype/API%20Reference%20and%20Samples?groupId=de9ddba4-2574-4830-87ed-41668c07a1ca&tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47)`; +us in the [Docs Support Teams Channel](https://aka.ms/ci-fix/api-docs-help)`; } /** diff --git a/.github/shared/test/doc-preview.test.js b/.github/shared/test/doc-preview.test.js index 9bace5eed012..8b80f6225925 100644 --- a/.github/shared/test/doc-preview.test.js +++ b/.github/shared/test/doc-preview.test.js @@ -141,7 +141,7 @@ describe("indexMd", () => { Your documentation may be viewed in the menu on the left hand side. If you have issues around documentation generation, please feel free to contact - us in the [Docs Support Teams Channel](https://teams.microsoft.com/l/channel/19%3A7506cc3e220f430ab89d992c7db5284f%40thread.skype/API%20Reference%20and%20Samples?groupId=de9ddba4-2574-4830-87ed-41668c07a1ca&tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47)" + us in the [Docs Support Teams Channel](https://aka.ms/ci-fix/api-docs-help)" `); }); }); From 4f1a085f9a5d752e86be710a883df49db07c3ce9 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 11 Jul 2025 21:26:48 +0000 Subject: [PATCH 083/111] Sparse checkout might work but that can be investigated elsewhere --- eng/pipelines/swagger-api-doc-preview.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 44b2a33802ce..622ccb3a1425 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -34,7 +34,6 @@ jobs: Description: 'Starting docs build' Context: $(StatusName) - # TODO: Use sparse checkout instead - checkout: self # Fetch depth required to get list of changed files fetchDepth: 2 From f0e7864e5284ee9087ce18dc30c7f84acfbe3e12 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 11 Jul 2025 21:32:12 +0000 Subject: [PATCH 084/111] Improve param validation --- .github/shared/cmd/api-doc-preview.js | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/shared/cmd/api-doc-preview.js b/.github/shared/cmd/api-doc-preview.js index 81fdb513294f..c4043c8ed9a5 100755 --- a/.github/shared/cmd/api-doc-preview.js +++ b/.github/shared/cmd/api-doc-preview.js @@ -65,7 +65,6 @@ export async function main() { allowPositionals: false, }); - // TODO: Better validation let validArgs = true; if (!outputDir) { @@ -75,6 +74,27 @@ export async function main() { validArgs = false; } + if (!specRepoName) { + console.log( + `Missing required parameter --spec-repo-name. Value given: ${specRepoName || ""}`, + ); + validArgs = false; + } + + if (!specRepoPrNumber) { + console.log( + `Missing required parameter --spec-repo-pr-number. Value given: ${specRepoPrNumber || ""}`, + ); + validArgs = false; + } + + if (!specRepoRoot || !(await pathExists(resolve(specRepoRoot)))) { + console.log( + `Invalid parameter --spec-repo-root. Value given: ${specRepoRoot || ""}`, + ); + validArgs = false; + } + if (!validArgs) { usage(); process.exitCode = 1; From 929d33c7d4ad66a1864d65c3c42d83b6e19aebf4 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 11 Jul 2025 21:33:44 +0000 Subject: [PATCH 085/111] Test api-doc-preview param validation in practice --- .../Microsoft.Contoso/stable/2021-11-01/contoso.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/contoso.json b/specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/contoso.json index 243b6576d7e8..5e6b19bcb992 100644 --- a/specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/contoso.json +++ b/specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/contoso.json @@ -3,7 +3,7 @@ "info": { "title": "Microsoft.Contoso management service", "version": "2021-11-01", - "description": "Microsoft.Contoso Resource Provider management API.", + "description": "Microsoft.Contoso Resource Provider management API. One more success test.", "x-typespec-generated": [ { "emitter": "@azure-tools/typespec-autorest" From 670515bddea1218a4de7e95d3ea5dabd5f8c633f Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 11 Jul 2025 21:37:29 +0000 Subject: [PATCH 086/111] Revert github-test.yaml --- .github/workflows/github-test.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/github-test.yaml b/.github/workflows/github-test.yaml index 11d44c2517d5..846608423fc2 100644 --- a/.github/workflows/github-test.yaml +++ b/.github/workflows/github-test.yaml @@ -1,4 +1,4 @@ -name: Specs EngSys - Test +name: GitHub Actions - Test on: push: @@ -6,11 +6,9 @@ on: - main paths: - .github/** - - eng/scripts/** pull_request: paths: - .github/** - - eng/scripts/** workflow_dispatch: permissions: @@ -20,7 +18,7 @@ jobs: test: strategy: matrix: - folder: [.github, .github/shared, eng/scripts] + folder: [.github, .github/shared] os: [ubuntu, windows] runs-on: ${{ fromJSON('{"ubuntu":"ubuntu-24.04", "windows":"windows-2022"}')[matrix.os] }} @@ -35,7 +33,6 @@ jobs: with: sparse-checkout: | .github - eng/scripts - if: ${{ matrix.folder == '.github' }} name: Setup Node 20 and install runtime deps From 100f4cf2b1bede046ae32da9409c9416a22f77b6 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 11 Jul 2025 21:37:50 +0000 Subject: [PATCH 087/111] Revert .gitignore --- .gitignore | 3 --- 1 file changed, 3 deletions(-) diff --git a/.gitignore b/.gitignore index f20a805a610e..23e8f5dfc864 100644 --- a/.gitignore +++ b/.gitignore @@ -120,8 +120,6 @@ warnings.txt # Blanket ignores *.js !.github/**/*.js -!eng/tools/**/*.js -!eng/scripts/**/*.js *.d.ts *.js.map *.d.ts.map @@ -140,7 +138,6 @@ eng/tools/**/dist !/package-lock.json !/.github/package-lock.json !/.github/shared/package-lock.json -!/eng/scripts/package-lock.json # No Armstrong outputs should be commited except the tf files. **/terraform/**/*.json From dc24f8d23637952aa1851ace4916e309b3e93418 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 11 Jul 2025 21:38:55 +0000 Subject: [PATCH 088/111] Remove unnecessary files --- eng/scripts/eslint.config.js | 8 - eng/scripts/package-lock.json | 3321 ------------------------ eng/scripts/package.json | 18 - eng/tools/api-doc-preview/package.json | 24 - 4 files changed, 3371 deletions(-) delete mode 100644 eng/scripts/eslint.config.js delete mode 100644 eng/scripts/package-lock.json delete mode 100644 eng/scripts/package.json delete mode 100644 eng/tools/api-doc-preview/package.json diff --git a/eng/scripts/eslint.config.js b/eng/scripts/eslint.config.js deleted file mode 100644 index 366b15cfe396..000000000000 --- a/eng/scripts/eslint.config.js +++ /dev/null @@ -1,8 +0,0 @@ -import pluginJs from "@eslint/js"; -import globals from "globals"; - -/** @type {import('eslint').Linter.Config[]} */ -export default [ - { languageOptions: { globals: globals.node } }, - pluginJs.configs.recommended, -]; diff --git a/eng/scripts/package-lock.json b/eng/scripts/package-lock.json deleted file mode 100644 index b399843aa0e8..000000000000 --- a/eng/scripts/package-lock.json +++ /dev/null @@ -1,3321 +0,0 @@ -{ - "name": "scripts", - "version": "1.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "devDependencies": { - "@vitest/coverage-v8": "^3.2.4", - "eslint": "^9.30.1", - "prettier": "^3.6.2", - "typescript": "^5.8.3", - "vitest": "^3.2.4" - } - }, - "../../.github/shared": { - "name": "@azure-tools/specs-shared", - "extraneous": true, - "dependencies": { - "@apidevtools/json-schema-ref-parser": "^13.0.4", - "debug": "^4.4.0", - "js-yaml": "^4.1.0", - "marked": "^15.0.7", - "simple-git": "^3.27.0" - }, - "bin": { - "api-doc-preview": "cmd/api-doc-preview.js", - "spec-model": "cmd/spec-model.js" - }, - "devDependencies": { - "@eslint/js": "^9.22.0", - "@tsconfig/node20": "^20.1.4", - "@types/debug": "^4.1.12", - "@types/js-yaml": "^4.0.9", - "@types/node": "^20.0.0", - "@vitest/coverage-v8": "^3.0.7", - "eslint": "^9.22.0", - "globals": "^16.0.0", - "prettier": "~3.5.3", - "semver": "^7.7.1", - "typescript": "~5.8.2", - "vitest": "^3.0.7" - } - }, - "node_modules/@ampproject/remapping": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", - "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", - "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", - "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/parser": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.0.tgz", - "integrity": "sha512-jVZGvOxOuNSsuQuLRTh13nU0AogFlw32w/MT+LV6D3sP5WdbW61E77RnkbaO2dUvmPAYrBDJXGn5gGS6tH4j8g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.28.0" - }, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/types": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.0.tgz", - "integrity": "sha512-jYnje+JyZG5YThjHiF28oT4SIZLnYOcSBb6+SDaFIyzDVSkXQmQQYclJ2R+YxcdmK0AX6x1E5OQNtuh3jHDrUg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-string-parser": "^7.27.1", - "@babel/helper-validator-identifier": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@bcoe/v8-coverage": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-1.0.2.tgz", - "integrity": "sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/aix-ppc64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.6.tgz", - "integrity": "sha512-ShbM/3XxwuxjFiuVBHA+d3j5dyac0aEVVq1oluIDf71hUw0aRF59dV/efUsIwFnR6m8JNM2FjZOzmaZ8yG61kw==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": ["aix"], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.6.tgz", - "integrity": "sha512-S8ToEOVfg++AU/bHwdksHNnyLyVM+eMVAOf6yRKFitnwnbwwPNqKr3srzFRe7nzV69RQKb5DgchIX5pt3L53xg==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.6.tgz", - "integrity": "sha512-hd5zdUarsK6strW+3Wxi5qWws+rJhCCbMiC9QZyzoxfk5uHRIE8T287giQxzVpEvCwuJ9Qjg6bEjcRJcgfLqoA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.6.tgz", - "integrity": "sha512-0Z7KpHSr3VBIO9A/1wcT3NTy7EB4oNC4upJ5ye3R7taCc2GUdeynSLArnon5G8scPwaU866d3H4BCrE5xLW25A==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.6.tgz", - "integrity": "sha512-FFCssz3XBavjxcFxKsGy2DYK5VSvJqa6y5HXljKzhRZ87LvEi13brPrf/wdyl/BbpbMKJNOr1Sd0jtW4Ge1pAA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.6.tgz", - "integrity": "sha512-GfXs5kry/TkGM2vKqK2oyiLFygJRqKVhawu3+DOCk7OxLy/6jYkWXhlHwOoTb0WqGnWGAS7sooxbZowy+pK9Yg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.6.tgz", - "integrity": "sha512-aoLF2c3OvDn2XDTRvn8hN6DRzVVpDlj2B/F66clWd/FHLiHaG3aVZjxQX2DYphA5y/evbdGvC6Us13tvyt4pWg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.6.tgz", - "integrity": "sha512-2SkqTjTSo2dYi/jzFbU9Plt1vk0+nNg8YC8rOXXea+iA3hfNJWebKYPs3xnOUf9+ZWhKAaxnQNUf2X9LOpeiMQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.6.tgz", - "integrity": "sha512-SZHQlzvqv4Du5PrKE2faN0qlbsaW/3QQfUUc6yO2EjFcA83xnwm91UbEEVx4ApZ9Z5oG8Bxz4qPE+HFwtVcfyw==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.6.tgz", - "integrity": "sha512-b967hU0gqKd9Drsh/UuAm21Khpoh6mPBSgz8mKRq4P5mVK8bpA+hQzmm/ZwGVULSNBzKdZPQBRT3+WuVavcWsQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.6.tgz", - "integrity": "sha512-aHWdQ2AAltRkLPOsKdi3xv0mZ8fUGPdlKEjIEhxCPm5yKEThcUjHpWB1idN74lfXGnZ5SULQSgtr5Qos5B0bPw==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.6.tgz", - "integrity": "sha512-VgKCsHdXRSQ7E1+QXGdRPlQ/e08bN6WMQb27/TMfV+vPjjTImuT9PmLXupRlC90S1JeNNW5lzkAEO/McKeJ2yg==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.6.tgz", - "integrity": "sha512-WViNlpivRKT9/py3kCmkHnn44GkGXVdXfdc4drNmRl15zVQ2+D2uFwdlGh6IuK5AAnGTo2qPB1Djppj+t78rzw==", - "cpu": [ - "mips64el" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.6.tgz", - "integrity": "sha512-wyYKZ9NTdmAMb5730I38lBqVu6cKl4ZfYXIs31Baf8aoOtB4xSGi3THmDYt4BTFHk7/EcVixkOV2uZfwU3Q2Jw==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.6.tgz", - "integrity": "sha512-KZh7bAGGcrinEj4qzilJ4hqTY3Dg2U82c8bv+e1xqNqZCrCyc+TL9AUEn5WGKDzm3CfC5RODE/qc96OcbIe33w==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.6.tgz", - "integrity": "sha512-9N1LsTwAuE9oj6lHMyyAM+ucxGiVnEqUdp4v7IaMmrwb06ZTEVCIs3oPPplVsnjPfyjmxwHxHMF8b6vzUVAUGw==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.6.tgz", - "integrity": "sha512-A6bJB41b4lKFWRKNrWoP2LHsjVzNiaurf7wyj/XtFNTsnPuxwEBWHLty+ZE0dWBKuSK1fvKgrKaNjBS7qbFKig==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.6.tgz", - "integrity": "sha512-IjA+DcwoVpjEvyxZddDqBY+uJ2Snc6duLpjmkXm/v4xuS3H+3FkLZlDm9ZsAbF9rsfP3zeA0/ArNDORZgrxR/Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.6.tgz", - "integrity": "sha512-dUXuZr5WenIDlMHdMkvDc1FAu4xdWixTCRgP7RQLBOkkGgwuuzaGSYcOpW4jFxzpzL1ejb8yF620UxAqnBrR9g==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.6.tgz", - "integrity": "sha512-l8ZCvXP0tbTJ3iaqdNf3pjaOSd5ex/e6/omLIQCVBLmHTlfXW3zAxQ4fnDmPLOB1x9xrcSi/xtCWFwCZRIaEwg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.6.tgz", - "integrity": "sha512-hKrmDa0aOFOr71KQ/19JC7az1P0GWtCN1t2ahYAf4O007DHZt/dW8ym5+CUdJhQ/qkZmI1HAF8KkJbEFtCL7gw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openharmony-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.6.tgz", - "integrity": "sha512-+SqBcAWoB1fYKmpWoQP4pGtx+pUUC//RNYhFdbcSA16617cchuryuhOCRpPsjCblKukAckWsV+aQ3UKT/RMPcA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.6.tgz", - "integrity": "sha512-dyCGxv1/Br7MiSC42qinGL8KkG4kX0pEsdb0+TKhmJZgCUDBGmyo1/ArCjNGiOLiIAgdbWgmWgib4HoCi5t7kA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.6.tgz", - "integrity": "sha512-42QOgcZeZOvXfsCBJF5Afw73t4veOId//XD3i+/9gSkhSV6Gk3VPlWncctI+JcOyERv85FUo7RxuxGy+z8A43Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.6.tgz", - "integrity": "sha512-4AWhgXmDuYN7rJI6ORB+uU9DHLq/erBbuMoAuB4VWJTu5KtCgcKYPynF0YI1VkBNuEfjNlLrFr9KZPJzrtLkrQ==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.6.tgz", - "integrity": "sha512-NgJPHHbEpLQgDH2MjQu90pzW/5vvXIZ7KOnPyNBm92A6WgZ/7b6fJyUBjoumLqeOQQGqY2QjQxRo97ah4Sj0cA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.7.0.tgz", - "integrity": "sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==", - "dev": true, - "license": "MIT", - "dependencies": { - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.12.1", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", - "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/config-array": { - "version": "0.21.0", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.0.tgz", - "integrity": "sha512-ENIdc4iLu0d93HeYirvKmrzshzofPw6VkZRKQGe9Nv46ZnWUzcF1xV01dcvEg/1wXUR61OmmlSfyeyO7EvjLxQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/object-schema": "^2.1.6", - "debug": "^4.3.1", - "minimatch": "^3.1.2" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/config-helpers": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.3.0.tgz", - "integrity": "sha512-ViuymvFmcJi04qdZeDc2whTHryouGcDlaxPqarTD0ZE10ISpxGUVZGZDx4w01upyIynL3iu6IXH2bS1NhclQMw==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/core": { - "version": "0.14.0", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.14.0.tgz", - "integrity": "sha512-qIbV0/JZr7iSDjqAc60IqbLdsj9GDt16xQtWD+B78d/HAlvysGdZZ6rpJHGAc2T0FQx1X6thsSPdnoiGKdNtdg==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.15" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz", - "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/js": { - "version": "9.30.1", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.30.1.tgz", - "integrity": "sha512-zXhuECFlyep42KZUhWjfvsmXGX39W8K8LFb8AWXM9gSV9dQB+MrJGLKvW6Zw0Ggnbpw0VHTtrhFXYe3Gym18jg==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - } - }, - "node_modules/@eslint/object-schema": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", - "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/plugin-kit": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.3.3.tgz", - "integrity": "sha512-1+WqvgNMhmlAambTvT3KPtCl/Ibr68VldY2XY40SL1CE0ZXiakFR/cbTspaF5HsnpDMvcYYoJHfl4980NBjGag==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/core": "^0.15.1", - "levn": "^0.4.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/plugin-kit/node_modules/@eslint/core": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.15.1.tgz", - "integrity": "sha512-bkOp+iumZCCbt1K1CmWf0R9pM5yKpDv+ZXtvSyQpudrI9kuFLp+bM2WOPXImuD/ceQuaa8f5pj93Y7zyECIGNA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.15" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@humanfs/core": { - "version": "0.19.1", - "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", - "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/node": { - "version": "0.16.6", - "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", - "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@humanfs/core": "^0.19.1", - "@humanwhocodes/retry": "^0.3.0" - }, - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", - "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/retry": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", - "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "dev": true, - "license": "ISC", - "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@istanbuljs/schema": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", - "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.12", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.12.tgz", - "integrity": "sha512-OuLGC46TjB5BbN1dH8JULVVZY4WTdkF7tV9Ys6wLL1rubZnCMstOhNHueU5bLCrnRuDhKPDM4g6sw4Bel5Gzqg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0", - "@jridgewell/trace-mapping": "^0.3.24" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.4.tgz", - "integrity": "sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.29", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.29.tgz", - "integrity": "sha512-uw6guiW/gcAGPDhLmd77/6lW8QLeiV5RUTsAX46Db6oLhGaVj4lhnPwb184s1bkc8kdVg/+h988dro8GRDpmYQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", - "dev": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">=14" - } - }, - "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.44.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.44.2.tgz", - "integrity": "sha512-g0dF8P1e2QYPOj1gu7s/3LVP6kze9A7m6x0BZ9iTdXK8N5c2V7cpBKHV3/9A4Zd8xxavdhK0t4PnqjkqVmUc9Q==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@rollup/rollup-android-arm64": { - "version": "4.44.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.44.2.tgz", - "integrity": "sha512-Yt5MKrOosSbSaAK5Y4J+vSiID57sOvpBNBR6K7xAaQvk3MkcNVV0f9fE20T+41WYN8hDn6SGFlFrKudtx4EoxA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.44.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.44.2.tgz", - "integrity": "sha512-EsnFot9ZieM35YNA26nhbLTJBHD0jTwWpPwmRVDzjylQT6gkar+zenfb8mHxWpRrbn+WytRRjE0WKsfaxBkVUA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.44.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.44.2.tgz", - "integrity": "sha512-dv/t1t1RkCvJdWWxQ2lWOO+b7cMsVw5YFaS04oHpZRWehI1h0fV1gF4wgGCTyQHHjJDfbNpwOi6PXEafRBBezw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.44.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.44.2.tgz", - "integrity": "sha512-W4tt4BLorKND4qeHElxDoim0+BsprFTwb+vriVQnFFtT/P6v/xO5I99xvYnVzKWrK6j7Hb0yp3x7V5LUbaeOMg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, - "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.44.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.44.2.tgz", - "integrity": "sha512-tdT1PHopokkuBVyHjvYehnIe20fxibxFCEhQP/96MDSOcyjM/shlTkZZLOufV3qO6/FQOSiJTBebhVc12JyPTA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, - "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.44.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.44.2.tgz", - "integrity": "sha512-+xmiDGGaSfIIOXMzkhJ++Oa0Gwvl9oXUeIiwarsdRXSe27HUIvjbSIpPxvnNsRebsNdUo7uAiQVgBD1hVriwSQ==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.44.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.44.2.tgz", - "integrity": "sha512-bDHvhzOfORk3wt8yxIra8N4k/N0MnKInCW5OGZaeDYa/hMrdPaJzo7CSkjKZqX4JFUWjUGm88lI6QJLCM7lDrA==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.44.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.44.2.tgz", - "integrity": "sha512-NMsDEsDiYghTbeZWEGnNi4F0hSbGnsuOG+VnNvxkKg0IGDvFh7UVpM/14mnMwxRxUf9AdAVJgHPvKXf6FpMB7A==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.44.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.44.2.tgz", - "integrity": "sha512-lb5bxXnxXglVq+7imxykIp5xMq+idehfl+wOgiiix0191av84OqbjUED+PRC5OA8eFJYj5xAGcpAZ0pF2MnW+A==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-loongarch64-gnu": { - "version": "4.44.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.44.2.tgz", - "integrity": "sha512-Yl5Rdpf9pIc4GW1PmkUGHdMtbx0fBLE1//SxDmuf3X0dUC57+zMepow2LK0V21661cjXdTn8hO2tXDdAWAqE5g==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { - "version": "4.44.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.44.2.tgz", - "integrity": "sha512-03vUDH+w55s680YYryyr78jsO1RWU9ocRMaeV2vMniJJW/6HhoTBwyyiiTPVHNWLnhsnwcQ0oH3S9JSBEKuyqw==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.44.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.44.2.tgz", - "integrity": "sha512-iYtAqBg5eEMG4dEfVlkqo05xMOk6y/JXIToRca2bAWuqjrJYJlx/I7+Z+4hSrsWU8GdJDFPL4ktV3dy4yBSrzg==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.44.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.44.2.tgz", - "integrity": "sha512-e6vEbgaaqz2yEHqtkPXa28fFuBGmUJ0N2dOJK8YUfijejInt9gfCSA7YDdJ4nYlv67JfP3+PSWFX4IVw/xRIPg==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.44.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.44.2.tgz", - "integrity": "sha512-evFOtkmVdY3udE+0QKrV5wBx7bKI0iHz5yEVx5WqDJkxp9YQefy4Mpx3RajIVcM6o7jxTvVd/qpC1IXUhGc1Mw==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.44.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.44.2.tgz", - "integrity": "sha512-/bXb0bEsWMyEkIsUL2Yt5nFB5naLAwyOWMEviQfQY1x3l5WsLKgvZf66TM7UTfED6erckUVUJQ/jJ1FSpm3pRQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.44.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.44.2.tgz", - "integrity": "sha512-3D3OB1vSSBXmkGEZR27uiMRNiwN08/RVAcBKwhUYPaiZ8bcvdeEwWPvbnXvvXHY+A/7xluzcN+kaiOFNiOZwWg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.44.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.44.2.tgz", - "integrity": "sha512-VfU0fsMK+rwdK8mwODqYeM2hDrF2WiHaSmCBrS7gColkQft95/8tphyzv2EupVxn3iE0FI78wzffoULH1G+dkw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.44.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.44.2.tgz", - "integrity": "sha512-+qMUrkbUurpE6DVRjiJCNGZBGo9xM4Y0FXU5cjgudWqIBWbcLkjE3XprJUsOFgC6xjBClwVa9k6O3A7K3vxb5Q==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.44.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.44.2.tgz", - "integrity": "sha512-3+QZROYfJ25PDcxFF66UEk8jGWigHJeecZILvkPkyQN7oc5BvFo4YEXFkOs154j3FTMp9mn9Ky8RCOwastduEA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@types/chai": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.2.tgz", - "integrity": "sha512-8kB30R7Hwqf40JPiKhVzodJs2Qc1ZJ5zuT3uzw5Hq/dhNCl3G3l83jfpdI1e20BP348+fV7VIL/+FxaXkqBmWg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/deep-eql": "*" - } - }, - "node_modules/@types/deep-eql": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz", - "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/estree": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", - "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@vitest/coverage-v8": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/@vitest/coverage-v8/-/coverage-v8-3.2.4.tgz", - "integrity": "sha512-EyF9SXU6kS5Ku/U82E259WSnvg6c8KTjppUncuNdm5QHpe17mwREHnjDzozC8x9MZ0xfBUFSaLkRv4TMA75ALQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@ampproject/remapping": "^2.3.0", - "@bcoe/v8-coverage": "^1.0.2", - "ast-v8-to-istanbul": "^0.3.3", - "debug": "^4.4.1", - "istanbul-lib-coverage": "^3.2.2", - "istanbul-lib-report": "^3.0.1", - "istanbul-lib-source-maps": "^5.0.6", - "istanbul-reports": "^3.1.7", - "magic-string": "^0.30.17", - "magicast": "^0.3.5", - "std-env": "^3.9.0", - "test-exclude": "^7.0.1", - "tinyrainbow": "^2.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - }, - "peerDependencies": { - "@vitest/browser": "3.2.4", - "vitest": "3.2.4" - }, - "peerDependenciesMeta": { - "@vitest/browser": { - "optional": true - } - } - }, - "node_modules/@vitest/expect": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-3.2.4.tgz", - "integrity": "sha512-Io0yyORnB6sikFlt8QW5K7slY4OjqNX9jmJQ02QDda8lyM6B5oNgVWoSoKPac8/kgnCUzuHQKrSLtu/uOqqrig==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/chai": "^5.2.2", - "@vitest/spy": "3.2.4", - "@vitest/utils": "3.2.4", - "chai": "^5.2.0", - "tinyrainbow": "^2.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/mocker": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-3.2.4.tgz", - "integrity": "sha512-46ryTE9RZO/rfDd7pEqFl7etuyzekzEhUbTW3BvmeO/BcCMEgq59BKhek3dXDWgAj4oMK6OZi+vRr1wPW6qjEQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/spy": "3.2.4", - "estree-walker": "^3.0.3", - "magic-string": "^0.30.17" - }, - "funding": { - "url": "https://opencollective.com/vitest" - }, - "peerDependencies": { - "msw": "^2.4.9", - "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0" - }, - "peerDependenciesMeta": { - "msw": { - "optional": true - }, - "vite": { - "optional": true - } - } - }, - "node_modules/@vitest/pretty-format": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-3.2.4.tgz", - "integrity": "sha512-IVNZik8IVRJRTr9fxlitMKeJeXFFFN0JaB9PHPGQ8NKQbGpfjlTx9zO4RefN8gp7eqjNy8nyK3NZmBzOPeIxtA==", - "dev": true, - "license": "MIT", - "dependencies": { - "tinyrainbow": "^2.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/runner": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-3.2.4.tgz", - "integrity": "sha512-oukfKT9Mk41LreEW09vt45f8wx7DordoWUZMYdY/cyAk7w5TWkTRCNZYF7sX7n2wB7jyGAl74OxgwhPgKaqDMQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/utils": "3.2.4", - "pathe": "^2.0.3", - "strip-literal": "^3.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/snapshot": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-3.2.4.tgz", - "integrity": "sha512-dEYtS7qQP2CjU27QBC5oUOxLE/v5eLkGqPE0ZKEIDGMs4vKWe7IjgLOeauHsR0D5YuuycGRO5oSRXnwnmA78fQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/pretty-format": "3.2.4", - "magic-string": "^0.30.17", - "pathe": "^2.0.3" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/spy": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-3.2.4.tgz", - "integrity": "sha512-vAfasCOe6AIK70iP5UD11Ac4siNUNJ9i/9PZ3NKx07sG6sUxeag1LWdNrMWeKKYBLlzuK+Gn65Yd5nyL6ds+nw==", - "dev": true, - "license": "MIT", - "dependencies": { - "tinyspy": "^4.0.3" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/utils": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-3.2.4.tgz", - "integrity": "sha512-fB2V0JFrQSMsCo9HiSq3Ezpdv4iYaXRG1Sx8edX3MwxfyNn83mKiGzOcH+Fkxt4MHxr3y42fQi1oeAInqgX2QA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/pretty-format": "3.2.4", - "loupe": "^3.1.4", - "tinyrainbow": "^2.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/acorn": { - "version": "8.15.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", - "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", - "dev": true, - "license": "MIT", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-regex": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", - "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true, - "license": "Python-2.0" - }, - "node_modules/assertion-error": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", - "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - } - }, - "node_modules/ast-v8-to-istanbul": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/ast-v8-to-istanbul/-/ast-v8-to-istanbul-0.3.3.tgz", - "integrity": "sha512-MuXMrSLVVoA6sYN/6Hke18vMzrT4TZNbZIj/hvh0fnYFpO+/kFXcLIaiPwXXWaQUPg4yJD8fj+lfJ7/1EBconw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.25", - "estree-walker": "^3.0.3", - "js-tokens": "^9.0.1" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true, - "license": "MIT" - }, - "node_modules/brace-expansion": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", - "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/cac": { - "version": "6.7.14", - "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", - "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/chai": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/chai/-/chai-5.2.1.tgz", - "integrity": "sha512-5nFxhUrX0PqtyogoYOA8IPswy5sZFTOsBFl/9bNsmDLgsxYTzSZQJDPppDnZPTQbzSEm0hqGjWPzRemQCYbD6A==", - "dev": true, - "license": "MIT", - "dependencies": { - "assertion-error": "^2.0.1", - "check-error": "^2.1.1", - "deep-eql": "^5.0.1", - "loupe": "^3.1.0", - "pathval": "^2.0.0" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/check-error": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.1.tgz", - "integrity": "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 16" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true, - "license": "MIT" - }, - "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/debug": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", - "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/deep-eql": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz", - "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true, - "license": "MIT" - }, - "node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true, - "license": "MIT" - }, - "node_modules/es-module-lexer": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz", - "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==", - "dev": true, - "license": "MIT" - }, - "node_modules/esbuild": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.6.tgz", - "integrity": "sha512-GVuzuUwtdsghE3ocJ9Bs8PNoF13HNQ5TXbEi2AhvVb8xU1Iwt9Fos9FEamfoee+u/TOsn7GUWc04lz46n2bbTg==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.25.6", - "@esbuild/android-arm": "0.25.6", - "@esbuild/android-arm64": "0.25.6", - "@esbuild/android-x64": "0.25.6", - "@esbuild/darwin-arm64": "0.25.6", - "@esbuild/darwin-x64": "0.25.6", - "@esbuild/freebsd-arm64": "0.25.6", - "@esbuild/freebsd-x64": "0.25.6", - "@esbuild/linux-arm": "0.25.6", - "@esbuild/linux-arm64": "0.25.6", - "@esbuild/linux-ia32": "0.25.6", - "@esbuild/linux-loong64": "0.25.6", - "@esbuild/linux-mips64el": "0.25.6", - "@esbuild/linux-ppc64": "0.25.6", - "@esbuild/linux-riscv64": "0.25.6", - "@esbuild/linux-s390x": "0.25.6", - "@esbuild/linux-x64": "0.25.6", - "@esbuild/netbsd-arm64": "0.25.6", - "@esbuild/netbsd-x64": "0.25.6", - "@esbuild/openbsd-arm64": "0.25.6", - "@esbuild/openbsd-x64": "0.25.6", - "@esbuild/openharmony-arm64": "0.25.6", - "@esbuild/sunos-x64": "0.25.6", - "@esbuild/win32-arm64": "0.25.6", - "@esbuild/win32-ia32": "0.25.6", - "@esbuild/win32-x64": "0.25.6" - } - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint": { - "version": "9.30.1", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.30.1.tgz", - "integrity": "sha512-zmxXPNMOXmwm9E0yQLi5uqXHs7uq2UIiqEKo3Gq+3fwo1XrJ+hijAZImyF7hclW3E6oHz43Yk3RP8at6OTKflQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.21.0", - "@eslint/config-helpers": "^0.3.0", - "@eslint/core": "^0.14.0", - "@eslint/eslintrc": "^3.3.1", - "@eslint/js": "9.30.1", - "@eslint/plugin-kit": "^0.3.1", - "@humanfs/node": "^0.16.6", - "@humanwhocodes/module-importer": "^1.0.1", - "@humanwhocodes/retry": "^0.4.2", - "@types/estree": "^1.0.6", - "@types/json-schema": "^7.0.15", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.6", - "debug": "^4.3.2", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.4.0", - "eslint-visitor-keys": "^4.2.1", - "espree": "^10.4.0", - "esquery": "^1.5.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^8.0.0", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - }, - "peerDependencies": { - "jiti": "*" - }, - "peerDependenciesMeta": { - "jiti": { - "optional": true - } - } - }, - "node_modules/eslint-scope": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", - "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", - "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/espree": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", - "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "acorn": "^8.15.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esquery": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", - "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estree-walker": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", - "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/estree": "^1.0.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/expect-type": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.2.2.tgz", - "integrity": "sha512-JhFGDVJ7tmDJItKhYgJCGLOWjuK9vPxiXoUFLwLDc99NlmklilbiQJwoctZtt13+xMw91MCk/REan6MWHqDjyA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true, - "license": "MIT" - }, - "node_modules/fdir": { - "version": "6.4.6", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.6.tgz", - "integrity": "sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/file-entry-cache": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", - "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "flat-cache": "^4.0.0" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat-cache": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", - "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", - "dev": true, - "license": "MIT", - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.4" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/flatted": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", - "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", - "dev": true, - "license": "ISC" - }, - "node_modules/foreground-child": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", - "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", - "dev": true, - "license": "ISC", - "dependencies": { - "cross-spawn": "^7.0.6", - "signal-exit": "^4.0.1" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/glob": { - "version": "10.4.5", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", - "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", - "dev": true, - "license": "ISC", - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^1.11.1" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/glob/node_modules/brace-expansion": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", - "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/glob/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/globals": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", - "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/html-escaper": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", - "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", - "dev": true, - "license": "MIT" - }, - "node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/import-fresh": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", - "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true, - "license": "ISC" - }, - "node_modules/istanbul-lib-coverage": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", - "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-report": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", - "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^4.0.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/istanbul-lib-source-maps": { - "version": "5.0.6", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-5.0.6.tgz", - "integrity": "sha512-yg2d+Em4KizZC5niWhQaIomgf5WlL4vOOjZ5xGCmF8SnPE/mDWWXgvRExdcpCgh9lLRRa1/fSYp2ymmbJ1pI+A==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.23", - "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/istanbul-reports": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz", - "integrity": "sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jackspeak": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", - "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "@isaacs/cliui": "^8.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" - } - }, - "node_modules/js-tokens": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-9.0.1.tgz", - "integrity": "sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true, - "license": "MIT" - }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "license": "MIT", - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/loupe": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.1.4.tgz", - "integrity": "sha512-wJzkKwJrheKtknCOKNEtDK4iqg/MxmZheEMtSTYvnzRdEYaZzmgH976nenp8WdJRdx5Vc1X/9MO0Oszl6ezeXg==", - "dev": true, - "license": "MIT" - }, - "node_modules/lru-cache": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", - "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/magic-string": { - "version": "0.30.17", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz", - "integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0" - } - }, - "node_modules/magicast": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/magicast/-/magicast-0.3.5.tgz", - "integrity": "sha512-L0WhttDl+2BOsybvEOLK7fW3UA0OQ0IQ2d6Zl2x/a6vVRs3bAY0ECOSHHeL5jD+SbOpOCUEi0y1DgHEn9Qn1AQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.25.4", - "@babel/types": "^7.25.4", - "source-map-js": "^1.2.0" - } - }, - "node_modules/make-dir": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", - "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", - "dev": true, - "license": "MIT", - "dependencies": { - "semver": "^7.5.3" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, - "license": "MIT" - }, - "node_modules/nanoid": { - "version": "3.3.11", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", - "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true, - "license": "MIT" - }, - "node_modules/optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "dev": true, - "license": "MIT", - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/package-json-from-dist": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", - "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", - "dev": true, - "license": "BlueOak-1.0.0" - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "license": "MIT", - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-scurry": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", - "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - }, - "engines": { - "node": ">=16 || 14 >=14.18" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/pathe": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", - "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", - "dev": true, - "license": "MIT" - }, - "node_modules/pathval": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.1.tgz", - "integrity": "sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 14.16" - } - }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true, - "license": "ISC" - }, - "node_modules/picomatch": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", - "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/postcss": { - "version": "8.5.6", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz", - "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "nanoid": "^3.3.11", - "picocolors": "^1.1.1", - "source-map-js": "^1.2.1" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/prettier": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz", - "integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==", - "dev": true, - "license": "MIT", - "bin": { - "prettier": "bin/prettier.cjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/rollup": { - "version": "4.44.2", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.44.2.tgz", - "integrity": "sha512-PVoapzTwSEcelaWGth3uR66u7ZRo6qhPHc0f2uRO9fX6XDVNrIiGYS0Pj9+R8yIIYSD/mCx2b16Ws9itljKSPg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/estree": "1.0.8" - }, - "bin": { - "rollup": "dist/bin/rollup" - }, - "engines": { - "node": ">=18.0.0", - "npm": ">=8.0.0" - }, - "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.44.2", - "@rollup/rollup-android-arm64": "4.44.2", - "@rollup/rollup-darwin-arm64": "4.44.2", - "@rollup/rollup-darwin-x64": "4.44.2", - "@rollup/rollup-freebsd-arm64": "4.44.2", - "@rollup/rollup-freebsd-x64": "4.44.2", - "@rollup/rollup-linux-arm-gnueabihf": "4.44.2", - "@rollup/rollup-linux-arm-musleabihf": "4.44.2", - "@rollup/rollup-linux-arm64-gnu": "4.44.2", - "@rollup/rollup-linux-arm64-musl": "4.44.2", - "@rollup/rollup-linux-loongarch64-gnu": "4.44.2", - "@rollup/rollup-linux-powerpc64le-gnu": "4.44.2", - "@rollup/rollup-linux-riscv64-gnu": "4.44.2", - "@rollup/rollup-linux-riscv64-musl": "4.44.2", - "@rollup/rollup-linux-s390x-gnu": "4.44.2", - "@rollup/rollup-linux-x64-gnu": "4.44.2", - "@rollup/rollup-linux-x64-musl": "4.44.2", - "@rollup/rollup-win32-arm64-msvc": "4.44.2", - "@rollup/rollup-win32-ia32-msvc": "4.44.2", - "@rollup/rollup-win32-x64-msvc": "4.44.2", - "fsevents": "~2.3.2" - } - }, - "node_modules/semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/siginfo": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", - "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", - "dev": true, - "license": "ISC" - }, - "node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/source-map-js": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", - "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/stackback": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", - "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", - "dev": true, - "license": "MIT" - }, - "node_modules/std-env": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.9.0.tgz", - "integrity": "sha512-UGvjygr6F6tpH7o2qyqR6QYpwraIjKSdtzyBdyytFOHmPZY917kwdwLG0RbOjWOnKmnm3PeHjaoLLMie7kPLQw==", - "dev": true, - "license": "MIT" - }, - "node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dev": true, - "license": "MIT", - "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/string-width-cjs": { - "name": "string-width", - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT" - }, - "node_modules/string-width-cjs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/strip-ansi-cjs": { - "name": "strip-ansi", - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/strip-literal": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-3.0.0.tgz", - "integrity": "sha512-TcccoMhJOM3OebGhSBEmp3UZ2SfDMZUEBdRA/9ynfLi8yYajyWX3JiXArcJt4Umh4vISpspkQIY8ZZoCqjbviA==", - "dev": true, - "license": "MIT", - "dependencies": { - "js-tokens": "^9.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/antfu" - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/test-exclude": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-7.0.1.tgz", - "integrity": "sha512-pFYqmTw68LXVjeWJMST4+borgQP2AyMNbg1BpZh9LbyhUeNkeaPF9gzfPGUAnSMV3qPYdWUwDIjjCLiSDOl7vg==", - "dev": true, - "license": "ISC", - "dependencies": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^10.4.1", - "minimatch": "^9.0.4" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/test-exclude/node_modules/brace-expansion": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", - "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/test-exclude/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/tinybench": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz", - "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==", - "dev": true, - "license": "MIT" - }, - "node_modules/tinyexec": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz", - "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==", - "dev": true, - "license": "MIT" - }, - "node_modules/tinyglobby": { - "version": "0.2.14", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.14.tgz", - "integrity": "sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "fdir": "^6.4.4", - "picomatch": "^4.0.2" - }, - "engines": { - "node": ">=12.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/SuperchupuDev" - } - }, - "node_modules/tinypool": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.1.1.tgz", - "integrity": "sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.0.0 || >=20.0.0" - } - }, - "node_modules/tinyrainbow": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-2.0.0.tgz", - "integrity": "sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/tinyspy": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-4.0.3.tgz", - "integrity": "sha512-t2T/WLB2WRgZ9EpE4jgPJ9w+i66UZfDc8wHh0xrwiRNN+UwH98GIJkTeZqX9rg0i0ptwzqW+uYeIF0T4F8LR7A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/typescript": { - "version": "5.8.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", - "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/vite": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/vite/-/vite-7.0.3.tgz", - "integrity": "sha512-y2L5oJZF7bj4c0jgGYgBNSdIu+5HF+m68rn2cQXFbGoShdhV1phX9rbnxy9YXj82aS8MMsCLAAFkRxZeWdldrQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "esbuild": "^0.25.0", - "fdir": "^6.4.6", - "picomatch": "^4.0.2", - "postcss": "^8.5.6", - "rollup": "^4.40.0", - "tinyglobby": "^0.2.14" - }, - "bin": { - "vite": "bin/vite.js" - }, - "engines": { - "node": "^20.19.0 || >=22.12.0" - }, - "funding": { - "url": "https://github.com/vitejs/vite?sponsor=1" - }, - "optionalDependencies": { - "fsevents": "~2.3.3" - }, - "peerDependencies": { - "@types/node": "^20.19.0 || >=22.12.0", - "jiti": ">=1.21.0", - "less": "^4.0.0", - "lightningcss": "^1.21.0", - "sass": "^1.70.0", - "sass-embedded": "^1.70.0", - "stylus": ">=0.54.8", - "sugarss": "^5.0.0", - "terser": "^5.16.0", - "tsx": "^4.8.1", - "yaml": "^2.4.2" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "jiti": { - "optional": true - }, - "less": { - "optional": true - }, - "lightningcss": { - "optional": true - }, - "sass": { - "optional": true - }, - "sass-embedded": { - "optional": true - }, - "stylus": { - "optional": true - }, - "sugarss": { - "optional": true - }, - "terser": { - "optional": true - }, - "tsx": { - "optional": true - }, - "yaml": { - "optional": true - } - } - }, - "node_modules/vite-node": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-3.2.4.tgz", - "integrity": "sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==", - "dev": true, - "license": "MIT", - "dependencies": { - "cac": "^6.7.14", - "debug": "^4.4.1", - "es-module-lexer": "^1.7.0", - "pathe": "^2.0.3", - "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0" - }, - "bin": { - "vite-node": "vite-node.mjs" - }, - "engines": { - "node": "^18.0.0 || ^20.0.0 || >=22.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/vitest": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-3.2.4.tgz", - "integrity": "sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/chai": "^5.2.2", - "@vitest/expect": "3.2.4", - "@vitest/mocker": "3.2.4", - "@vitest/pretty-format": "^3.2.4", - "@vitest/runner": "3.2.4", - "@vitest/snapshot": "3.2.4", - "@vitest/spy": "3.2.4", - "@vitest/utils": "3.2.4", - "chai": "^5.2.0", - "debug": "^4.4.1", - "expect-type": "^1.2.1", - "magic-string": "^0.30.17", - "pathe": "^2.0.3", - "picomatch": "^4.0.2", - "std-env": "^3.9.0", - "tinybench": "^2.9.0", - "tinyexec": "^0.3.2", - "tinyglobby": "^0.2.14", - "tinypool": "^1.1.1", - "tinyrainbow": "^2.0.0", - "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0", - "vite-node": "3.2.4", - "why-is-node-running": "^2.3.0" - }, - "bin": { - "vitest": "vitest.mjs" - }, - "engines": { - "node": "^18.0.0 || ^20.0.0 || >=22.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - }, - "peerDependencies": { - "@edge-runtime/vm": "*", - "@types/debug": "^4.1.12", - "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", - "@vitest/browser": "3.2.4", - "@vitest/ui": "3.2.4", - "happy-dom": "*", - "jsdom": "*" - }, - "peerDependenciesMeta": { - "@edge-runtime/vm": { - "optional": true - }, - "@types/debug": { - "optional": true - }, - "@types/node": { - "optional": true - }, - "@vitest/browser": { - "optional": true - }, - "@vitest/ui": { - "optional": true - }, - "happy-dom": { - "optional": true - }, - "jsdom": { - "optional": true - } - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/why-is-node-running": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz", - "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==", - "dev": true, - "license": "MIT", - "dependencies": { - "siginfo": "^2.0.0", - "stackback": "0.0.2" - }, - "bin": { - "why-is-node-running": "cli.js" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs": { - "name": "wrap-ansi", - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT" - }, - "node_modules/wrap-ansi-cjs/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - } - } -} diff --git a/eng/scripts/package.json b/eng/scripts/package.json deleted file mode 100644 index 81c88823310d..000000000000 --- a/eng/scripts/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "devDependencies": { - "@vitest/coverage-v8": "^3.2.4", - "eslint": "^9.30.1", - "prettier": "^3.6.2", - "typescript": "^5.8.3", - "vitest": "^3.2.4" - }, - "scripts": { - "lint": "eslint", - "format": "prettier . --write", - "format:check": "prettier . --check", - "format:check:ci": "prettier . --check --log-level debug", - "test": "vitest", - "test:ci": "vitest run --coverage --reporter=verbose" - }, - "type": "module" -} diff --git a/eng/tools/api-doc-preview/package.json b/eng/tools/api-doc-preview/package.json deleted file mode 100644 index 82cc960b54a3..000000000000 --- a/eng/tools/api-doc-preview/package.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "api-doc-preview", - "type": "module", - "private": true, - "main": "api-doc-preview.js", - "bin": { - "api-doc-preview": "cmd/api-doc-preview.js" - }, - "scripts": { - "test": "vitest", - "test:ci": "vitest run --coverage --reporter=verbose", - "prettier": "prettier \"**/*.js\" --check", - "prettier:debug": "prettier \"**/*.js\" --check ---log-level debug", - "prettier:write": "prettier \"**/*.js\" --write" - }, - "dependencies": { - "@azure-tools/specs-shared": "file:../../../.github/shared" - }, - "devDependencies": { - "prettier": "~3.5.3", - "vitest": "^3.0.2", - "@vitest/coverage-v8": "^3.0.2" - } -} From c5c72e79ddd8ae594f5040ac07df34f6e66b282c Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 11 Jul 2025 21:40:52 +0000 Subject: [PATCH 089/111] More status update messages --- eng/pipelines/swagger-api-doc-preview.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 622ccb3a1425..c76aae5ce2fd 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -84,6 +84,13 @@ jobs: $buildStart = $buildStartRaw | ConvertFrom-Json Write-Host "Build started at https://dev.azure.com/apidrop/Content%20CI/_build/results?buildId=$($buildStart.id)" + - template: /eng/pipelines/templates/steps/set-pr-check.yml + parameters: + State: pending + TargetUrl: $(CurrentBuildUrl) + Description: 'Waiting for docs build to finish' + Context: $(StatusName) + - task: AzureCLI@2 displayName: Wait for docs build to finish # Retry on failure to handle transient issues or builds that run longer From 2ed2bb3f70836d0e64d59cfb6e048217f310de8a Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 11 Jul 2025 21:42:56 +0000 Subject: [PATCH 090/111] Revert "Test api-doc-preview param validation in practice" This reverts commit 929d33c7d4ad66a1864d65c3c42d83b6e19aebf4. --- .../Microsoft.Contoso/stable/2021-11-01/contoso.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/contoso.json b/specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/contoso.json index 5e6b19bcb992..243b6576d7e8 100644 --- a/specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/contoso.json +++ b/specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/contoso.json @@ -3,7 +3,7 @@ "info": { "title": "Microsoft.Contoso management service", "version": "2021-11-01", - "description": "Microsoft.Contoso Resource Provider management API. One more success test.", + "description": "Microsoft.Contoso Resource Provider management API.", "x-typespec-generated": [ { "emitter": "@azure-tools/typespec-autorest" From 55c560ab5de16c75ff8afe7eb261f15e388fffef Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 11 Jul 2025 21:44:46 +0000 Subject: [PATCH 091/111] Fix package.json/package-lock.json --- package-lock.json | 83 +++++++++++++++-------------------------------- package.json | 3 +- 2 files changed, 27 insertions(+), 59 deletions(-) diff --git a/package-lock.json b/package-lock.json index 34d8d1f6fd86..16dbcb084f85 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "@azure-tools/typespec-azure-portal-core": "0.57.0", "@azure-tools/typespec-azure-resource-manager": "0.57.2", "@azure-tools/typespec-azure-rulesets": "0.57.1", - "@azure-tools/typespec-client-generator-cli": "0.24.0", + "@azure-tools/typespec-client-generator-cli": "0.25.0", "@azure-tools/typespec-client-generator-core": "0.57.3", "@azure-tools/typespec-liftr-base": "0.8.0", "@azure/avocado": "^0.9.1", @@ -30,7 +30,6 @@ "@typespec/streams": "0.71.0", "@typespec/versioning": "0.71.0", "@typespec/xml": "0.71.0", - "azure-rest-api-specs-eng-scripts": "file:eng/scripts", "azure-rest-api-specs-eng-tools": "file:eng/tools", "oav": "^3.6.1", "prettier": "~3.5.3", @@ -101,32 +100,6 @@ "node": ">= 20" } }, - "eng/scripts": { - "dev": true, - "devDependencies": { - "@vitest/coverage-v8": "^3.2.4", - "eslint": "^9.30.1", - "prettier": "^3.6.2", - "typescript": "^5.8.3", - "vitest": "^3.2.4" - } - }, - "eng/scripts/node_modules/prettier": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz", - "integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==", - "dev": true, - "license": "MIT", - "bin": { - "prettier": "bin/prettier.cjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, "eng/tools": { "name": "azure-rest-api-specs-eng-tools", "dev": true, @@ -1078,9 +1051,9 @@ } }, "node_modules/@azure-tools/typespec-client-generator-cli": { - "version": "0.24.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-cli/-/typespec-client-generator-cli-0.24.0.tgz", - "integrity": "sha512-PUhyLie5MZ1vEVJeNUBeNkXRdQcbYrhb4ESzI1U+KA2f8O61Sh+JbGU/dxIaM70pO6J2BHKtT11fwX5vuKdhcw==", + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-cli/-/typespec-client-generator-cli-0.25.0.tgz", + "integrity": "sha512-8ot4Lm1LuwAy8qeciY0bKtJgBFxJ8qdQ3sI2U9o6Lel37IENuNbklC8pDRM2VvfP+5hjzBTrG7f54iH6IMAJpA==", "dev": true, "license": "MIT", "dependencies": { @@ -2505,9 +2478,9 @@ } }, "node_modules/@eslint/config-array": { - "version": "0.21.0", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.0.tgz", - "integrity": "sha512-ENIdc4iLu0d93HeYirvKmrzshzofPw6VkZRKQGe9Nv46ZnWUzcF1xV01dcvEg/1wXUR61OmmlSfyeyO7EvjLxQ==", + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.20.1.tgz", + "integrity": "sha512-OL0RJzC/CBzli0DrrR31qzj6d6i6Mm3HByuhflhl4LOBiWxN+3i6/t/ZQQNii4tjksXi8r2CRW1wMpWA2ULUEw==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -2520,9 +2493,9 @@ } }, "node_modules/@eslint/config-helpers": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.3.0.tgz", - "integrity": "sha512-ViuymvFmcJi04qdZeDc2whTHryouGcDlaxPqarTD0ZE10ISpxGUVZGZDx4w01upyIynL3iu6IXH2bS1NhclQMw==", + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.2.3.tgz", + "integrity": "sha512-u180qk2Um1le4yf0ruXH3PYFeEZeYC3p/4wCTKrr2U1CmGdzGi3KtY0nuPDH48UJxlKCC5RDzbcbh4X0XlqgHg==", "dev": true, "license": "Apache-2.0", "engines": { @@ -2580,9 +2553,9 @@ } }, "node_modules/@eslint/js": { - "version": "9.30.1", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.30.1.tgz", - "integrity": "sha512-zXhuECFlyep42KZUhWjfvsmXGX39W8K8LFb8AWXM9gSV9dQB+MrJGLKvW6Zw0Ggnbpw0VHTtrhFXYe3Gym18jg==", + "version": "9.29.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.29.0.tgz", + "integrity": "sha512-3PIF4cBw/y+1u2EazflInpV+lYsSG0aByVIQzAgb1m1MhHFSbqTyNqtBKHgWf/9Ykud+DhILS9EGkmekVhbKoQ==", "dev": true, "license": "MIT", "engines": { @@ -5842,10 +5815,6 @@ "proxy-from-env": "^1.1.0" } }, - "node_modules/azure-rest-api-specs-eng-scripts": { - "resolved": "eng/scripts", - "link": true - }, "node_modules/azure-rest-api-specs-eng-tools": { "resolved": "eng/tools", "link": true @@ -7069,19 +7038,19 @@ } }, "node_modules/eslint": { - "version": "9.30.1", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.30.1.tgz", - "integrity": "sha512-zmxXPNMOXmwm9E0yQLi5uqXHs7uq2UIiqEKo3Gq+3fwo1XrJ+hijAZImyF7hclW3E6oHz43Yk3RP8at6OTKflQ==", + "version": "9.29.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.29.0.tgz", + "integrity": "sha512-GsGizj2Y1rCWDu6XoEekL3RLilp0voSePurjZIkxL3wlm5o5EC9VpgaP7lrCvjnkuLvzFBQWB3vWB3K5KQTveQ==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.21.0", - "@eslint/config-helpers": "^0.3.0", + "@eslint/config-array": "^0.20.1", + "@eslint/config-helpers": "^0.2.1", "@eslint/core": "^0.14.0", "@eslint/eslintrc": "^3.3.1", - "@eslint/js": "9.30.1", + "@eslint/js": "9.29.0", "@eslint/plugin-kit": "^0.3.1", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", @@ -14255,9 +14224,9 @@ } }, "node_modules/zod": { - "version": "3.25.67", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.67.tgz", - "integrity": "sha512-idA2YXwpCdqUSKRCACDE6ItZD9TZzy3OZMtpfLoh6oPR47lipysRrJfjzMqFxQ3uJuUPyUeWe1r9vLH33xO/Qw==", + "version": "3.25.76", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz", + "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", "dev": true, "license": "MIT", "funding": { @@ -14265,16 +14234,16 @@ } }, "node_modules/zod-validation-error": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-3.5.2.tgz", - "integrity": "sha512-mdi7YOLtram5dzJ5aDtm1AG9+mxRma1iaMrZdYIpFO7epdKBUwLHIxTF8CPDeCQ828zAXYtizrKlEJAtzgfgrw==", + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-3.5.3.tgz", + "integrity": "sha512-OT5Y8lbUadqVZCsnyFaTQ4/O2mys4tj7PqhdbBCp7McPwvIEKfPtdA6QfPeFQK2/Rz5LgwmAXRJTugBNBi0btw==", "dev": true, "license": "MIT", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "zod": "^3.25.0" + "zod": "^3.25.0 || ^4.0.0" } } } diff --git a/package.json b/package.json index c37b0ebc5d67..8e9f50433801 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "@azure-tools/typespec-azure-portal-core": "0.57.0", "@azure-tools/typespec-azure-resource-manager": "0.57.2", "@azure-tools/typespec-azure-rulesets": "0.57.1", - "@azure-tools/typespec-client-generator-cli": "0.24.0", + "@azure-tools/typespec-client-generator-cli": "0.25.0", "@azure-tools/typespec-client-generator-core": "0.57.3", "@azure-tools/typespec-liftr-base": "0.8.0", "@autorest/openapi-to-typespec": "0.11.2", @@ -26,7 +26,6 @@ "@typespec/versioning": "0.71.0", "@typespec/xml": "0.71.0", "azure-rest-api-specs-eng-tools": "file:eng/tools", - "azure-rest-api-specs-eng-scripts": "file:eng/scripts", "oav": "^3.6.1", "prettier": "~3.5.3", "typescript": "~5.8.2" From dd2d43321ce761100fe8869bc5a013b6fb76331c Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 11 Jul 2025 21:50:54 +0000 Subject: [PATCH 092/111] package-lock.json --- package-lock.json | 37 +++++++++++-------------------------- 1 file changed, 11 insertions(+), 26 deletions(-) diff --git a/package-lock.json b/package-lock.json index 16dbcb084f85..361cc6b0e9e6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -51,7 +51,6 @@ "simple-git": "^3.27.0" }, "bin": { - "api-doc-preview": "cmd/api-doc-preview.js", "spec-model": "cmd/spec-model.js" }, "devDependencies": { @@ -362,6 +361,16 @@ "node": "^20.19.0 || ^22.12.0 || >=23" } }, + "eng/tools/node_modules/zod": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.0.2.tgz", + "integrity": "sha512-X2niJNY54MGam4L6Kj0AxeedeDIi/E5QFW0On2faSX5J4/pfLk1tW+cRMIMoojnCavn/u5W/kX17e1CSGnKMxA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, "eng/tools/oav-runner": { "name": "@azure-tools/oav-runner", "dev": true, @@ -461,8 +470,7 @@ "dependencies": { "minimatch": "^10.0.1", "yaml": "^2.4.2", - "zod": "^3.23.8", - "zod-validation-error": "^3.3.0" + "zod": "^4.0.2" }, "bin": { "get-suppressions": "cmd/get-suppressions.js" @@ -14222,29 +14230,6 @@ "engines": { "node": "^12.20.0 || >=14" } - }, - "node_modules/zod": { - "version": "3.25.76", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz", - "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/colinhacks" - } - }, - "node_modules/zod-validation-error": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-3.5.3.tgz", - "integrity": "sha512-OT5Y8lbUadqVZCsnyFaTQ4/O2mys4tj7PqhdbBCp7McPwvIEKfPtdA6QfPeFQK2/Rz5LgwmAXRJTugBNBi0btw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18.0.0" - }, - "peerDependencies": { - "zod": "^3.25.0 || ^4.0.0" - } } } } From a7811caaab0d865be58c378842f9015fcb0b7a6a Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 11 Jul 2025 21:52:43 +0000 Subject: [PATCH 093/111] npm i --- package-lock.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package-lock.json b/package-lock.json index 361cc6b0e9e6..3c7fcfa9b52c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -51,6 +51,7 @@ "simple-git": "^3.27.0" }, "bin": { + "api-doc-preview": "cmd/api-doc-preview.js", "spec-model": "cmd/spec-model.js" }, "devDependencies": { From 4919a944d17c50b20f4ef45f39bfbfe7387ba159 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 11 Jul 2025 22:04:24 +0000 Subject: [PATCH 094/111] Format --- .github/shared/cmd/api-doc-preview.js | 28 ++++++----------------- .github/shared/src/doc-preview.js | 21 ++++------------- .github/shared/test/changed-files.test.js | 2 +- 3 files changed, 12 insertions(+), 39 deletions(-) diff --git a/.github/shared/cmd/api-doc-preview.js b/.github/shared/cmd/api-doc-preview.js index c4043c8ed9a5..e82d7f01e7bf 100755 --- a/.github/shared/cmd/api-doc-preview.js +++ b/.github/shared/cmd/api-doc-preview.js @@ -5,11 +5,7 @@ import { fileURLToPath } from "url"; import { parseArgs } from "util"; import { mkdir, writeFile } from "fs/promises"; -import { - swagger, - getChangedFiles, - pathExists, -} from "../src/changed-files.js"; +import { swagger, getChangedFiles, pathExists } from "../src/changed-files.js"; import { filterAsync } from "../src/array.js"; import { @@ -68,13 +64,11 @@ export async function main() { let validArgs = true; if (!outputDir) { - console.log( - `Missing required parameter --output. Value given: ${outputDir || ""}`, - ); + console.log(`Missing required parameter --output. Value given: ${outputDir || ""}`); validArgs = false; } - if (!specRepoName) { + if (!specRepoName) { console.log( `Missing required parameter --spec-repo-name. Value given: ${specRepoName || ""}`, ); @@ -89,9 +83,7 @@ export async function main() { } if (!specRepoRoot || !(await pathExists(resolve(specRepoRoot)))) { - console.log( - `Invalid parameter --spec-repo-root. Value given: ${specRepoRoot || ""}`, - ); + console.log(`Invalid parameter --spec-repo-root. Value given: ${specRepoRoot || ""}`); validArgs = false; } @@ -114,14 +106,11 @@ export async function main() { ); if (existingSwaggerFiles.length === 0) { - console.log( - "No eligible swagger files found. No documentation artifacts will be written.", - ); + console.log("No eligible swagger files found. No documentation artifacts will be written."); return; } - const { selectedVersion, swaggersToProcess } = - getSwaggersToProcess(existingSwaggerFiles); + const { selectedVersion, swaggersToProcess } = getSwaggersToProcess(existingSwaggerFiles); const key = { repoName: specRepoName, @@ -129,10 +118,7 @@ export async function main() { }; await mkdir(outputDir, { recursive: true }); - await writeFile( - join(outputDir, "repo.json"), - JSON.stringify(repoJSONTemplate(key), null, 2), - ); + await writeFile(join(outputDir, "repo.json"), JSON.stringify(repoJSONTemplate(key), null, 2)); await writeFile( join(outputDir, "mapping.json"), JSON.stringify(mappingJSONTemplate(swaggersToProcess), null, 2), diff --git a/.github/shared/src/doc-preview.js b/.github/shared/src/doc-preview.js index ef07d538cad4..64fbd22cd514 100644 --- a/.github/shared/src/doc-preview.js +++ b/.github/shared/src/doc-preview.js @@ -19,22 +19,11 @@ const SPEC_FILE_REGEX = export function parseSwaggerFilePath(specPath) { const m = specPath.match(SPEC_FILE_REGEX); if (!m) { - console.log( - `Path "${specPath}" does not match expected swagger file pattern.`, - ); + console.log(`Path "${specPath}" does not match expected swagger file pattern.`); return null; } - const [ - path, - , - serviceName, - serviceType, - resourceProvider, - releaseState, - apiVersion, - , - fileName, - ] = m; + const [path, , serviceName, serviceType, resourceProvider, releaseState, apiVersion, , fileName] = + m; return { path, serviceName, @@ -119,9 +108,7 @@ export function getSwaggersToProcess(swaggerFiles) { // swaggerFileObjs never has any `null` elements, otherwise, returns the // output type of `parseSwaggerFilePath`. /** @type {Exclude, null>[]} */ - const swaggerFileObjs = swaggerFiles - .map(parseSwaggerFilePath) - .filter((obj) => obj !== null); + const swaggerFileObjs = swaggerFiles.map(parseSwaggerFilePath).filter((obj) => obj !== null); const versions = swaggerFileObjs.map((obj) => obj.apiVersion).filter(Boolean); const uniqueVersions = [...new Set(versions)]; diff --git a/.github/shared/test/changed-files.test.js b/.github/shared/test/changed-files.test.js index 1b3cb80ef60b..67022dc3a17e 100644 --- a/.github/shared/test/changed-files.test.js +++ b/.github/shared/test/changed-files.test.js @@ -247,7 +247,7 @@ describe("changedFiles", () => { }); }); - describe("pathExists", () => { + describe("pathExists", () => { it("returns true for existing path", async () => { expect(await pathExists(".")).toBe(true); }); From 3bdb0b5de7f5f465bd31f96120fab6aac8f531d0 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Mon, 14 Jul 2025 20:54:16 -0700 Subject: [PATCH 095/111] Apply suggestions from code review Co-authored-by: Mike Harder --- .github/shared/cmd/api-doc-preview.js | 1 + .github/shared/package.json | 2 +- .github/shared/test/doc-preview.test.js | 2 ++ eng/pipelines/swagger-api-doc-preview.yml | 1 - 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/shared/cmd/api-doc-preview.js b/.github/shared/cmd/api-doc-preview.js index e82d7f01e7bf..14f4f2b4d313 100755 --- a/.github/shared/cmd/api-doc-preview.js +++ b/.github/shared/cmd/api-doc-preview.js @@ -1,5 +1,6 @@ #!/usr/bin/env node // @ts-check + import { join, resolve, dirname } from "path"; import { fileURLToPath } from "url"; import { parseArgs } from "util"; diff --git a/.github/shared/package.json b/.github/shared/package.json index e72286455b5d..008b737c069d 100644 --- a/.github/shared/package.json +++ b/.github/shared/package.json @@ -23,7 +23,7 @@ }, "bin": { "spec-model": "./cmd/spec-model.js", - "api-doc-preview": "cmd/api-doc-preview.js" + "api-doc-preview": "./cmd/api-doc-preview.js" }, "_comments": { "dependencies": "Runtime dependencies must be kept to an absolute minimum for performance, ideally with no transitive dependencies", diff --git a/.github/shared/test/doc-preview.test.js b/.github/shared/test/doc-preview.test.js index 8b80f6225925..57623c8bfd8b 100644 --- a/.github/shared/test/doc-preview.test.js +++ b/.github/shared/test/doc-preview.test.js @@ -1,3 +1,5 @@ +// @ts-check + import { test, describe, expect } from "vitest"; import { parseSwaggerFilePath, diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index c76aae5ce2fd..2d14ac2cdca1 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -10,7 +10,6 @@ jobs: pool: name: $(LINUXPOOL) vmImage: $(LINUXVMIMAGE) - os: linux variables: - template: /eng/pipelines/templates/variables/globals.yml From 6c8ee1a08f0921a5c26f29f193def0de1340ffde Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Tue, 15 Jul 2025 03:59:21 +0000 Subject: [PATCH 096/111] inline, fix ts-check errors --- .github/shared/cmd/api-doc-preview.js | 181 +++++++++++++------------- 1 file changed, 88 insertions(+), 93 deletions(-) diff --git a/.github/shared/cmd/api-doc-preview.js b/.github/shared/cmd/api-doc-preview.js index 14f4f2b4d313..6a279dee1844 100755 --- a/.github/shared/cmd/api-doc-preview.js +++ b/.github/shared/cmd/api-doc-preview.js @@ -30,106 +30,101 @@ parameters: --spec-repo-root Root path of the repository containing the swagger files. Defaults to the root of the repository containing this script.`); } -export async function main() { - const { - values: { - output: outputDir, - "build-id": buildId, - "spec-repo-name": specRepoName, - "spec-repo-pr-number": specRepoPrNumber, - "spec-repo-root": specRepoRoot, +const { + values: { + output: outputDir, + "build-id": buildId, + "spec-repo-name": specRepoName, + "spec-repo-pr-number": specRepoPrNumber, + "spec-repo-root": specRepoRoot, + }, +} = parseArgs({ + options: { + output: { type: "string", default: "" }, + "build-id": { + type: "string", + default: process.env.BUILD_BUILDID || "", }, - } = parseArgs({ - options: { - output: { type: "string" }, - "build-id": { - type: "string", - default: process.env.BUILD_BUILDID || "", - }, - "spec-repo-name": { - type: "string", - default: process.env.BUILD_REPOSITORY_NAME || "", - }, - "spec-repo-pr-number": { - type: "string", - default: process.env.SYSTEM_PULLREQUEST_PULLREQUESTNUMBER || "", - }, - "spec-repo-root": { - type: "string", - default: resolve(__dirname, "../../../"), - }, + "spec-repo-name": { + type: "string", + default: process.env.BUILD_REPOSITORY_NAME || "", }, - allowPositionals: false, - }); - - let validArgs = true; - - if (!outputDir) { - console.log(`Missing required parameter --output. Value given: ${outputDir || ""}`); - validArgs = false; - } - - if (!specRepoName) { - console.log( - `Missing required parameter --spec-repo-name. Value given: ${specRepoName || ""}`, - ); - validArgs = false; - } - - if (!specRepoPrNumber) { - console.log( - `Missing required parameter --spec-repo-pr-number. Value given: ${specRepoPrNumber || ""}`, - ); - validArgs = false; - } - - if (!specRepoRoot || !(await pathExists(resolve(specRepoRoot)))) { - console.log(`Invalid parameter --spec-repo-root. Value given: ${specRepoRoot || ""}`); - validArgs = false; - } - - if (!validArgs) { - usage(); - process.exitCode = 1; - return; - } - - // Get selected version and swaggers to process - - const changedFiles = await getChangedFiles({ cwd: specRepoRoot }); - console.log(`Found ${changedFiles.length} changed files in ${specRepoRoot}`); - console.log("Changed files:"); - changedFiles.forEach((file) => console.log(` - ${file}`)); - const swaggerPaths = changedFiles.filter(swagger); - const existingSwaggerFiles = await filterAsync( - swaggerPaths, - async (p) => await pathExists(resolve(specRepoRoot, p)), - ); + "spec-repo-pr-number": { + type: "string", + default: process.env.SYSTEM_PULLREQUEST_PULLREQUESTNUMBER || "", + }, + "spec-repo-root": { + type: "string", + default: resolve(__dirname, "../../../"), + }, + }, + allowPositionals: false, +}); - if (existingSwaggerFiles.length === 0) { - console.log("No eligible swagger files found. No documentation artifacts will be written."); - return; - } +let validArgs = true; - const { selectedVersion, swaggersToProcess } = getSwaggersToProcess(existingSwaggerFiles); +if (!outputDir) { + console.log(`Missing required parameter --output. Value given: ${outputDir || ""}`); + validArgs = false; +} - const key = { - repoName: specRepoName, - prNumber: specRepoPrNumber, - }; +if (!specRepoName) { + console.log( + `Missing required parameter --spec-repo-name. Value given: ${specRepoName || ""}`, + ); + validArgs = false; +} - await mkdir(outputDir, { recursive: true }); - await writeFile(join(outputDir, "repo.json"), JSON.stringify(repoJSONTemplate(key), null, 2)); - await writeFile( - join(outputDir, "mapping.json"), - JSON.stringify(mappingJSONTemplate(swaggersToProcess), null, 2), +if (!specRepoPrNumber) { + console.log( + `Missing required parameter --spec-repo-pr-number. Value given: ${specRepoPrNumber || ""}`, ); - await writeFile(join(outputDir, "index.md"), indexMd(buildId, key)); - console.log(`Documentation preview artifacts written to ${outputDir}`); + validArgs = false; +} + +if (!specRepoRoot || !(await pathExists(resolve(specRepoRoot)))) { + console.log(`Invalid parameter --spec-repo-root. Value given: ${specRepoRoot || ""}`); + validArgs = false; +} + +if (!validArgs) { + usage(); + process.exit(1); +} - console.log(`Doc preview for API version ${selectedVersion} includes:`); - swaggersToProcess.forEach((swagger) => console.log(` - ${swagger}`)); - console.log(`Artifacts written to: ${outputDir}`); +// Get selected version and swaggers to process + +const changedFiles = await getChangedFiles({ cwd: specRepoRoot }); +console.log(`Found ${changedFiles.length} changed files in ${specRepoRoot}`); +console.log("Changed files:"); +changedFiles.forEach((file) => console.log(` - ${file}`)); +const swaggerPaths = changedFiles.filter(swagger); +const existingSwaggerFiles = await filterAsync( + swaggerPaths, + async (p) => await pathExists(resolve(specRepoRoot, p)), +); + +if (existingSwaggerFiles.length === 0) { + console.log("No eligible swagger files found. No documentation artifacts will be written."); + process.exit(0); } -await main(); +const { selectedVersion, swaggersToProcess } = getSwaggersToProcess(existingSwaggerFiles); + +const key = { + repoName: specRepoName, + prNumber: specRepoPrNumber, +}; + +await mkdir(outputDir, { recursive: true }); +await writeFile(join(outputDir, "repo.json"), JSON.stringify(repoJSONTemplate(key), null, 2)); +await writeFile( + join(outputDir, "mapping.json"), + JSON.stringify(mappingJSONTemplate(swaggersToProcess), null, 2), +); +await writeFile(join(outputDir, "index.md"), indexMd(buildId, key)); +console.log(`Documentation preview artifacts written to ${outputDir}`); + +console.log(`Doc preview for API version ${selectedVersion} includes:`); +swaggersToProcess.forEach((swagger) => console.log(` - ${swagger}`)); +console.log(`Artifacts written to: ${outputDir}`); From 99f14303b7cf03308f5f03288d4537b13fa42c21 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Tue, 15 Jul 2025 04:23:24 +0000 Subject: [PATCH 097/111] Use getChangedFilesStatuses to exclude deleted files instead of querying the filesystem directly --- .github/shared/cmd/api-doc-preview.js | 25 +++++++++++--------- .github/shared/src/changed-files.js | 28 ++++++----------------- .github/shared/test/changed-files.test.js | 10 -------- 3 files changed, 21 insertions(+), 42 deletions(-) diff --git a/.github/shared/cmd/api-doc-preview.js b/.github/shared/cmd/api-doc-preview.js index 6a279dee1844..04a2e413e306 100755 --- a/.github/shared/cmd/api-doc-preview.js +++ b/.github/shared/cmd/api-doc-preview.js @@ -6,8 +6,7 @@ import { fileURLToPath } from "url"; import { parseArgs } from "util"; import { mkdir, writeFile } from "fs/promises"; -import { swagger, getChangedFiles, pathExists } from "../src/changed-files.js"; -import { filterAsync } from "../src/array.js"; +import { swagger, getChangedFilesStatuses } from "../src/changed-files.js"; import { mappingJSONTemplate, @@ -82,7 +81,7 @@ if (!specRepoPrNumber) { validArgs = false; } -if (!specRepoRoot || !(await pathExists(resolve(specRepoRoot)))) { +if (!specRepoRoot) { console.log(`Invalid parameter --spec-repo-root. Value given: ${specRepoRoot || ""}`); validArgs = false; } @@ -94,22 +93,26 @@ if (!validArgs) { // Get selected version and swaggers to process -const changedFiles = await getChangedFiles({ cwd: specRepoRoot }); -console.log(`Found ${changedFiles.length} changed files in ${specRepoRoot}`); +const changedFileStatuses = await getChangedFilesStatuses({ cwd: specRepoRoot }); + +// Exclude deleted files as they are not relevant for generating documentation. +const changedFiles = [ + ...changedFileStatuses.additions, + ...changedFileStatuses.modifications, + // Current names of renamed files are interesting, previous names are not. + ...changedFileStatuses.renames.map((r) => r.to), +]; +console.log(`Found ${changedFiles.length} relevant changed files in ${specRepoRoot}`); console.log("Changed files:"); changedFiles.forEach((file) => console.log(` - ${file}`)); const swaggerPaths = changedFiles.filter(swagger); -const existingSwaggerFiles = await filterAsync( - swaggerPaths, - async (p) => await pathExists(resolve(specRepoRoot, p)), -); -if (existingSwaggerFiles.length === 0) { +if (swaggerPaths.length === 0) { console.log("No eligible swagger files found. No documentation artifacts will be written."); process.exit(0); } -const { selectedVersion, swaggersToProcess } = getSwaggersToProcess(existingSwaggerFiles); +const { selectedVersion, swaggersToProcess } = getSwaggersToProcess(swaggerPaths); const key = { repoName: specRepoName, diff --git a/.github/shared/src/changed-files.js b/.github/shared/src/changed-files.js index 7c07283e83bc..c392e520af36 100644 --- a/.github/shared/src/changed-files.js +++ b/.github/shared/src/changed-files.js @@ -8,6 +8,8 @@ import { access } from "fs/promises"; debug.enable("simple-git"); /** + * Get a list of changed files in a git repository + * * @param {Object} [options] * @param {string} [options.baseCommitish] Default: "HEAD^". * @param {string} [options.cwd] Current working directory. Default: process.cwd(). @@ -18,15 +20,9 @@ debug.enable("simple-git"); export async function getChangedFiles(options = {}) { const { baseCommitish = "HEAD^", cwd, headCommitish = "HEAD", logger } = options; - // TODO: If we need to filter based on status, instead of passing an argument to `--diff-filter, - // consider using "--name-status" instead of "--name-only", and return an array of objects like - // { name: "/foo/baz.js", status: Status.Renamed, previousName: "/foo/bar.js"}. - // Then add filter functions to filter based on status. This is more flexible and lets consumers - // filter based on status with a single call to `git diff`. const result = await simpleGit(cwd).diff(["--name-only", baseCommitish, headCommitish]); - + const files = result.trim().split("\n"); - logger?.info("Changed Files:"); for (const file of files) { logger?.info(` ${file}`); @@ -37,6 +33,10 @@ export async function getChangedFiles(options = {}) { } /** + * Get a list of changed files in a git repository with statuses for additions, + * modifications, deletions, and renames. Warning: rename behavior can vary + * based on the git client's configuration of diff.renames. + * * @param {Object} [options] * @param {string} [options.baseCommitish] Default: "HEAD^". * @param {string} [options.cwd] Current working directory. Default: process.cwd(). @@ -239,17 +239,3 @@ export function scenario(file) { typeof file === "string" && json(file) && specification(file) && file.includes("/scenarios/") ); } - -/** - * Check if a path exists - * @param {string} path Path to check for existence - * @returns true if the path exists, false otherwise - */ -export async function pathExists(path) { - try { - await access(path); - return true; - } catch { - return false; - } -} diff --git a/.github/shared/test/changed-files.test.js b/.github/shared/test/changed-files.test.js index 67022dc3a17e..e04b46e472ea 100644 --- a/.github/shared/test/changed-files.test.js +++ b/.github/shared/test/changed-files.test.js @@ -246,14 +246,4 @@ describe("changedFiles", () => { ]); }); }); - - describe("pathExists", () => { - it("returns true for existing path", async () => { - expect(await pathExists(".")).toBe(true); - }); - - it("returns false for non-existing path", async () => { - expect(await pathExists("non/existing/path")).toBe(false); - }); - }); }); From dde8c412895fbd5d7371b334342fd3875d7e0ad1 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Tue, 15 Jul 2025 04:56:36 +0000 Subject: [PATCH 098/111] Comments --- .github/shared/src/changed-files.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/shared/src/changed-files.js b/.github/shared/src/changed-files.js index c392e520af36..4a06caa4f00c 100644 --- a/.github/shared/src/changed-files.js +++ b/.github/shared/src/changed-files.js @@ -9,7 +9,7 @@ debug.enable("simple-git"); /** * Get a list of changed files in a git repository - * + * * @param {Object} [options] * @param {string} [options.baseCommitish] Default: "HEAD^". * @param {string} [options.cwd] Current working directory. Default: process.cwd(). @@ -21,7 +21,7 @@ export async function getChangedFiles(options = {}) { const { baseCommitish = "HEAD^", cwd, headCommitish = "HEAD", logger } = options; const result = await simpleGit(cwd).diff(["--name-only", baseCommitish, headCommitish]); - + const files = result.trim().split("\n"); logger?.info("Changed Files:"); for (const file of files) { @@ -33,10 +33,10 @@ export async function getChangedFiles(options = {}) { } /** - * Get a list of changed files in a git repository with statuses for additions, - * modifications, deletions, and renames. Warning: rename behavior can vary + * Get a list of changed files in a git repository with statuses for additions, + * modifications, deletions, and renames. Warning: rename behavior can vary * based on the git client's configuration of diff.renames. - * + * * @param {Object} [options] * @param {string} [options.baseCommitish] Default: "HEAD^". * @param {string} [options.cwd] Current working directory. Default: process.cwd(). From 6fd04c01745b3ae55241e94ce09cf87dab1dad60 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Tue, 15 Jul 2025 04:57:22 +0000 Subject: [PATCH 099/111] Named typedefs, more exceptions, expand "key" to a couple variables --- .github/shared/cmd/api-doc-preview.js | 13 ++-- .github/shared/src/doc-preview.js | 89 ++++++++++++++++--------- .github/shared/test/doc-preview.test.js | 25 +++---- 3 files changed, 74 insertions(+), 53 deletions(-) diff --git a/.github/shared/cmd/api-doc-preview.js b/.github/shared/cmd/api-doc-preview.js index 04a2e413e306..172999fcd8da 100755 --- a/.github/shared/cmd/api-doc-preview.js +++ b/.github/shared/cmd/api-doc-preview.js @@ -114,18 +114,19 @@ if (swaggerPaths.length === 0) { const { selectedVersion, swaggersToProcess } = getSwaggersToProcess(swaggerPaths); -const key = { - repoName: specRepoName, - prNumber: specRepoPrNumber, -}; +const repoName = specRepoName; +const prNumber = specRepoPrNumber; await mkdir(outputDir, { recursive: true }); -await writeFile(join(outputDir, "repo.json"), JSON.stringify(repoJSONTemplate(key), null, 2)); +await writeFile( + join(outputDir, "repo.json"), + JSON.stringify(repoJSONTemplate(repoName, prNumber), null, 2), +); await writeFile( join(outputDir, "mapping.json"), JSON.stringify(mappingJSONTemplate(swaggersToProcess), null, 2), ); -await writeFile(join(outputDir, "index.md"), indexMd(buildId, key)); +await writeFile(join(outputDir, "index.md"), indexMd(buildId, repoName, prNumber)); console.log(`Documentation preview artifacts written to ${outputDir}`); console.log(`Doc preview for API version ${selectedVersion} includes:`); diff --git a/.github/shared/src/doc-preview.js b/.github/shared/src/doc-preview.js index 64fbd22cd514..1ac67eb7ee36 100644 --- a/.github/shared/src/doc-preview.js +++ b/.github/shared/src/doc-preview.js @@ -3,24 +3,53 @@ const DOCS_NAMESPACE = "_swagger_specs"; const SPEC_FILE_REGEX = "(specification/)+(.*)/(resourcemanager|resource-manager|dataplane|data-plane|control-plane)/(.*)/(preview|stable|privatepreview)/(.*?)/(example)?(.*)"; +/** + * @typedef {Object} SwaggerFileMetadata + * @property {string} path + * @property {string} serviceName + * @property {string} serviceType + * @property {string} resourceProvider + * @property {string} releaseState + * @property {string} apiVersion + * @property {string} fileName + */ + +/** + * @typedef {Object} RepoJSONTemplate + * @property {Object[]} repo + * @property {string} repo[].url + * @property {string} repo[].prNumber + * @property {string} repo[].name + */ + +/** + * @typedef {Object} MappingJSONStructure + * @property {string} target_api_root_dir + * @property {boolean} enable_markdown_fragment + * @property {string} markdown_fragment_folder + * @property {boolean} use_yaml_toc + * @property {boolean} formalize_url + * @property {string[]} version_list + * @property {Object[]} organizations + * @property {string} organizations[].index + * @property {string} organizations[].default_toc_title + * @property {string} organizations[].version + * @property {Object[]} organizations[].services + * @property {string} organizations[].services[].toc_title + * @property {string} organizations[].services[].url_group + * @property {Object[]} organizations[].services[].swagger_files + * @property {string} organizations[].services[].swagger_files[].source + */ + /** * Extract swagger file metadata from path. * @param {string} specPath - * @returns {{ - * path: string, - * serviceName: string, - * serviceType: string, - * resourceProvider: string, - * releaseState: string, - * apiVersion: string, - * fileName: string - * } | null} + * @returns {SwaggerFileMetadata} */ export function parseSwaggerFilePath(specPath) { const m = specPath.match(SPEC_FILE_REGEX); if (!m) { - console.log(`Path "${specPath}" does not match expected swagger file pattern.`); - return null; + throw new Error(`Path "${specPath}" does not match expected swagger file pattern.`); } const [path, , serviceName, serviceType, resourceProvider, releaseState, apiVersion, , fileName] = m; @@ -36,10 +65,11 @@ export function parseSwaggerFilePath(specPath) { } /** - * @param {{repoName: string, prNumber: string}} prKey + * @param {string} repoName + * @param {string} prNumber * @returns {object} */ -export function repoJSONTemplate({ repoName, prNumber }) { +export function repoJSONTemplate(repoName, prNumber) { return { repo: [ { @@ -53,7 +83,7 @@ export function repoJSONTemplate({ repoName, prNumber }) { /** * @param {string[]} files - * @returns {object} + * @returns {MappingJSONStructure} */ export function mappingJSONTemplate(files) { return { @@ -84,10 +114,11 @@ export function mappingJSONTemplate(files) { /** * @param {string} buildId - * @param {{repoName: string, prNumber: string}} key + * @param {string} repoName + * @param {string} prNumber * @returns {string} */ -export function indexMd(buildId, { repoName, prNumber }) { +export function indexMd(buildId, repoName, prNumber) { return `# Documentation Preview for swagger pipeline build #${buildId} Welcome to documentation preview for ${repoName}/pull/${prNumber} @@ -105,29 +136,27 @@ us in the [Docs Support Teams Channel](https://aka.ms/ci-fix/api-docs-help)`; * @param {string[]} swaggerFiles **/ export function getSwaggersToProcess(swaggerFiles) { - // swaggerFileObjs never has any `null` elements, otherwise, returns the - // output type of `parseSwaggerFilePath`. - /** @type {Exclude, null>[]} */ - const swaggerFileObjs = swaggerFiles.map(parseSwaggerFilePath).filter((obj) => obj !== null); + const swaggerFileObjs = swaggerFiles.map(parseSwaggerFilePath); const versions = swaggerFileObjs.map((obj) => obj.apiVersion).filter(Boolean); - const uniqueVersions = [...new Set(versions)]; - if (uniqueVersions.length === 0) { - console.log( - "No API versions found in eligible swagger files. No documentation artifacts will be written.", - ); - return { selectedVersion: null, swaggersToProcess: [] }; + if (versions.length === 0) { + throw new Error("No new API versions found in eligible swagger files."); } + const uniqueVersions = Array.from(new Set(versions)); - let selectedVersion = uniqueVersions[0]; - if (uniqueVersions.length > 1) { + let selectedVersion; + if (uniqueVersions.length === 1) { + selectedVersion = uniqueVersions[0]; + console.log(`Single API version found: ${selectedVersion}`); + } else { + // This sorting logic is ported from the original code which sorts only the + // strings and doesn't attempt to parse versions for more semantically-aware + // sorting. const sortedVersions = [...uniqueVersions].sort(); selectedVersion = sortedVersions[sortedVersions.length - 1]; console.log( `Multiple API versions found: ${JSON.stringify(sortedVersions)}. Selected version: ${selectedVersion}`, ); - } else { - console.log(`Single API version found: ${selectedVersion}`); } const swaggersToProcess = swaggerFileObjs diff --git a/.github/shared/test/doc-preview.test.js b/.github/shared/test/doc-preview.test.js index 57623c8bfd8b..94d671b44d3b 100644 --- a/.github/shared/test/doc-preview.test.js +++ b/.github/shared/test/doc-preview.test.js @@ -10,9 +10,8 @@ import { } from "../src/doc-preview.js"; describe("parseSwaggerFilePath", () => { - test("returns null for invalid path", () => { - const result = parseSwaggerFilePath("invalid/path/to/swagger.json"); - expect(result).toBeNull(); + test("throws null when given invalid path", () => { + expect(() => parseSwaggerFilePath("invalid/path/to/swagger.json")).toThrow(); }); test("parses valid swagger file path", () => { @@ -33,11 +32,8 @@ describe("parseSwaggerFilePath", () => { }); describe("getSwaggersToProcess", () => { - test("returns empty array for no files", () => { - const { selectedVersion, swaggersToProcess } = getSwaggersToProcess([]); - - expect(selectedVersion).toEqual(null); - expect(swaggersToProcess).toEqual([]); + test("throws when swagger paths do not properly parse", () => { + expect(() => getSwaggersToProcess(["specification/inscrutable/path/swagger.json"])).toThrow(); }); test("returns swaggers to process for valid files", () => { @@ -66,10 +62,7 @@ describe("getSwaggersToProcess", () => { describe("repoJSONTemplate", () => { test("matches snapshot", () => { - const actual = repoJSONTemplate({ - repoName: "test-repo", - prNumber: "1234", - }); + const actual = repoJSONTemplate("test-repo", "1234"); expect(actual).toMatchInlineSnapshot(` { @@ -128,11 +121,9 @@ describe("mappingJSONTemplate", () => { describe("indexMd", () => { test("matches snapshot", () => { const buildId = "build-123"; - const key = { - repoName: "test-repo", - prNumber: "1234", - }; - const actual = indexMd(buildId, key); + const repoName = "test-repo"; + const prNumber = "1234"; + const actual = indexMd(buildId, repoName, prNumber); expect(actual).toMatchInlineSnapshot(` "# Documentation Preview for swagger pipeline build #build-123 From 1872b4a4341a7df9e83a8d0e21f15a2566dd45c1 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Tue, 15 Jul 2025 05:00:29 +0000 Subject: [PATCH 100/111] Adjust PR triggers --- eng/pipelines/swagger-api-doc-preview.yml | 15 +++++++++++---- .../steps/{set-pr-check.yml => set-sha-check.yml} | 0 2 files changed, 11 insertions(+), 4 deletions(-) rename eng/pipelines/templates/steps/{set-pr-check.yml => set-sha-check.yml} (100%) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 2d14ac2cdca1..c6c814ad57c2 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -2,8 +2,15 @@ trigger: none pr: paths: include: + # Trigger for files that will result in a doc preview build - specification/** + # Smoke test on changed files + - eng/pipelilnes/swagger-api-doc-preview.yml + - eng/pipelines/templates/steps/set-sha-check.yml + - .github/shared/src/doc-preview.js + - .github/shared/cmd/api-doc-preview.js + jobs: - job: SwaggerApiDocPreview @@ -26,7 +33,7 @@ jobs: value: '[TEST-IGNORE] Swagger ApiDocPreview' steps: - - template: /eng/pipelines/templates/steps/set-pr-check.yml + - template: /eng/pipelines/templates/steps/set-sha-check.yml parameters: State: pending TargetUrl: $(CurrentBuildUrl) @@ -83,7 +90,7 @@ jobs: $buildStart = $buildStartRaw | ConvertFrom-Json Write-Host "Build started at https://dev.azure.com/apidrop/Content%20CI/_build/results?buildId=$($buildStart.id)" - - template: /eng/pipelines/templates/steps/set-pr-check.yml + - template: /eng/pipelines/templates/steps/set-sha-check.yml parameters: State: pending TargetUrl: $(CurrentBuildUrl) @@ -183,7 +190,7 @@ jobs: # Sets check status from docs build using $(CheckUrl), $(CheckState), and # $(CheckDescription) variables set by api-doc-preview-interpret.js. - - template: /eng/pipelines/templates/steps/set-pr-check.yml + - template: /eng/pipelines/templates/steps/set-sha-check.yml parameters: State: $(CheckState) TargetUrl: $(CheckUrl) @@ -192,7 +199,7 @@ jobs: # In the event of a failure in this job (not the docs build job), set the # PR status to failed and link to the current build. - - template: /eng/pipelines/templates/steps/set-pr-check.yml + - template: /eng/pipelines/templates/steps/set-sha-check.yml parameters: # Only run if a previous step in the job failed Condition: failed() diff --git a/eng/pipelines/templates/steps/set-pr-check.yml b/eng/pipelines/templates/steps/set-sha-check.yml similarity index 100% rename from eng/pipelines/templates/steps/set-pr-check.yml rename to eng/pipelines/templates/steps/set-sha-check.yml From d5af561fe081c358310c7d8316316f01e3bc870a Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Tue, 15 Jul 2025 05:11:04 +0000 Subject: [PATCH 101/111] Remove fs/promises/access --- .github/shared/src/changed-files.js | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/shared/src/changed-files.js b/.github/shared/src/changed-files.js index 4a06caa4f00c..b4001e0a5892 100644 --- a/.github/shared/src/changed-files.js +++ b/.github/shared/src/changed-files.js @@ -2,7 +2,6 @@ import debug from "debug"; import { simpleGit } from "simple-git"; -import { access } from "fs/promises"; // Enable simple-git debug logging to improve console output debug.enable("simple-git"); From 2a45ee2251945eb4dd4858a436e64153b19c70ea Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Tue, 15 Jul 2025 05:12:37 +0000 Subject: [PATCH 102/111] Add WorkingDirectory to npm-install.yml, use shebang invocation --- eng/pipelines/swagger-api-doc-preview.yml | 4 +++- eng/pipelines/templates/steps/npm-install.yml | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index c6c814ad57c2..932bf6f3a0f3 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -57,8 +57,10 @@ jobs: WorkingDirectory: AzureRestPreview - template: /eng/pipelines/templates/steps/npm-install.yml + parameters: + WorkingDirectory: .github/shared - - script: npm exec --no -- api-doc-preview --output ../../AzureRestPreview + - script: cmd/api-doc-preview --output ../../AzureRestPreview displayName: Generate Swagger API documentation preview workingDirectory: .github/shared diff --git a/eng/pipelines/templates/steps/npm-install.yml b/eng/pipelines/templates/steps/npm-install.yml index c64de780bc12..399d58b558fa 100644 --- a/eng/pipelines/templates/steps/npm-install.yml +++ b/eng/pipelines/templates/steps/npm-install.yml @@ -2,6 +2,9 @@ parameters: - name: NodeVersion type: string default: $(NodeVersion) + - name: WorkingDirectory + type: string + default: $(Build.SourcesDirectory) steps: - template: /eng/pipelines/templates/steps/use-node-version.yml @@ -10,7 +13,9 @@ steps: - script: npm ci displayName: npm ci + workingDirectory: ${{ parameters.WorkingDirectory }} - script: npm ls -a || true displayName: npm ls -a condition: succeededOrFailed() + workingDirectory: ${{ parameters.WorkingDirectory }} From be528276af3306ee95725b13d09c8c7fe5764713 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Tue, 15 Jul 2025 05:14:33 +0000 Subject: [PATCH 103/111] Remove infinite loop condition --- eng/pipelines/swagger-api-doc-preview.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 932bf6f3a0f3..974ab9567454 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -113,7 +113,9 @@ jobs: Write-Host "Waiting for build to finish: https://dev.azure.com/apidrop/Content%20CI/_build/results?buildId=$($buildStart.id)" - while($true) { + # Timeout in 10 minutes to avoid infinite waiting + $start = Get-Date + while ((Get-Date) - $start).TotalMinutes -lt 10) { $runStatusRaw = az pipelines runs show ` --organization "https://dev.azure.com/apidrop/" ` --project "Content CI" ` From f6aafa0406939170d343b683d105c257476396a8 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Tue, 15 Jul 2025 05:17:22 +0000 Subject: [PATCH 104/111] pathExists --- .github/shared/test/changed-files.test.js | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/shared/test/changed-files.test.js b/.github/shared/test/changed-files.test.js index e04b46e472ea..6a0c946e7236 100644 --- a/.github/shared/test/changed-files.test.js +++ b/.github/shared/test/changed-files.test.js @@ -15,7 +15,6 @@ import { getChangedFiles, getChangedFilesStatuses, json, - pathExists, quickstartTemplate, readme, resourceManager, From 0833e32b197fc6f6d469e3da4ec5e99f0be0dbba Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Tue, 15 Jul 2025 18:03:15 +0000 Subject: [PATCH 105/111] .js --- eng/pipelines/swagger-api-doc-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 974ab9567454..b0cab7b0cd51 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -60,7 +60,7 @@ jobs: parameters: WorkingDirectory: .github/shared - - script: cmd/api-doc-preview --output ../../AzureRestPreview + - script: cmd/api-doc-preview.js --output ../../AzureRestPreview displayName: Generate Swagger API documentation preview workingDirectory: .github/shared From 48145c27847bf7e6f26c3cb8e1930abb242ed96c Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Tue, 15 Jul 2025 18:11:48 +0000 Subject: [PATCH 106/111] ( --- eng/pipelines/swagger-api-doc-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index b0cab7b0cd51..18edbe55995f 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -115,7 +115,7 @@ jobs: # Timeout in 10 minutes to avoid infinite waiting $start = Get-Date - while ((Get-Date) - $start).TotalMinutes -lt 10) { + while (((Get-Date) - $start).TotalMinutes -lt 10) { $runStatusRaw = az pipelines runs show ` --organization "https://dev.azure.com/apidrop/" ` --project "Content CI" ` From 32f69d2ee55143e50e7c93f1c6b11edf49c67cba Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Tue, 15 Jul 2025 18:24:30 +0000 Subject: [PATCH 107/111] Only run docs build if there are changes to push --- eng/pipelines/swagger-api-doc-preview.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 18edbe55995f..30ddc6e8fc17 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -78,6 +78,7 @@ jobs: - task: AzureCLI@2 displayName: Start docs build + condition: and(succeeded(), eq(variables['HasChanges'], 'true')) inputs: azureSubscription: msdocs-apidrop-connection scriptType: pscore @@ -94,6 +95,7 @@ jobs: - template: /eng/pipelines/templates/steps/set-sha-check.yml parameters: + Condition: and(succeeded(), eq(variables['HasChanges'], 'true')) State: pending TargetUrl: $(CurrentBuildUrl) Description: 'Waiting for docs build to finish' @@ -101,6 +103,7 @@ jobs: - task: AzureCLI@2 displayName: Wait for docs build to finish + condition: and(succeeded(), eq(variables['HasChanges'], 'true')) # Retry on failure to handle transient issues or builds that run longer # than the token used by az CLI is valid retryCountOnTaskFailure: 3 @@ -191,16 +194,26 @@ jobs: exit 0 displayName: Interpret docs build results + condition: and(succeeded(), eq(variables['HasChanges'], 'true')) # Sets check status from docs build using $(CheckUrl), $(CheckState), and # $(CheckDescription) variables set by api-doc-preview-interpret.js. - template: /eng/pipelines/templates/steps/set-sha-check.yml parameters: + Condition: and(succeeded(), eq(variables['HasChanges'], 'true')) State: $(CheckState) TargetUrl: $(CheckUrl) Description: $(CheckDescription) Context: $(StatusName) + - template: /eng/pipelines/templates/steps/set-sha-check.yml + parameters: + Condition: and(succeeded(), ne(variables['HasChanges'], 'true')) + State: success + TargetUrl: $(CurrentBuildUrl) + Description: No files changed require docs build + Context: $(StatusName) + # In the event of a failure in this job (not the docs build job), set the # PR status to failed and link to the current build. - template: /eng/pipelines/templates/steps/set-sha-check.yml From 77de6d14ab18e002314830102b531b5d36ba3c1f Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 16 Jul 2025 21:23:33 +0000 Subject: [PATCH 108/111] DisplayName --- eng/pipelines/swagger-api-doc-preview.yml | 3 +++ eng/pipelines/templates/steps/set-sha-check.yml | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 30ddc6e8fc17..81793f888f2e 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -200,6 +200,7 @@ jobs: # $(CheckDescription) variables set by api-doc-preview-interpret.js. - template: /eng/pipelines/templates/steps/set-sha-check.yml parameters: + DisplayName: Set PR status from docs build Condition: and(succeeded(), eq(variables['HasChanges'], 'true')) State: $(CheckState) TargetUrl: $(CheckUrl) @@ -208,6 +209,7 @@ jobs: - template: /eng/pipelines/templates/steps/set-sha-check.yml parameters: + DisplayName: Set PR status for no-op Condition: and(succeeded(), ne(variables['HasChanges'], 'true')) State: success TargetUrl: $(CurrentBuildUrl) @@ -218,6 +220,7 @@ jobs: # PR status to failed and link to the current build. - template: /eng/pipelines/templates/steps/set-sha-check.yml parameters: + DisplayName: Set PR status for job failure # Only run if a previous step in the job failed Condition: failed() State: failure diff --git a/eng/pipelines/templates/steps/set-sha-check.yml b/eng/pipelines/templates/steps/set-sha-check.yml index 7761b0ea254f..ae5845922de0 100644 --- a/eng/pipelines/templates/steps/set-sha-check.yml +++ b/eng/pipelines/templates/steps/set-sha-check.yml @@ -36,6 +36,10 @@ parameters: type: string default: succeeded() + - name: DisplayName + type: string + default: 'Set PR status' + - name: GitHubToken type: string default: $(azuresdk-github-pat) @@ -54,7 +58,7 @@ steps: -f target_url='${{ parameters.TargetUrl }}' \ -f description='${{ parameters.Description }}' \ -f context='${{ parameters.Context }}' - displayName: 'Set PR status' + displayName: ${{ parameters.DisplayName }} condition: ${{ parameters.Condition }} env: GH_TOKEN: ${{ parameters.GitHubToken }} From 894bd8720030d3b083116311dbf5873a363c1326 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 16 Jul 2025 21:44:11 +0000 Subject: [PATCH 109/111] Final TODOs --- eng/pipelines/swagger-api-doc-preview.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 81793f888f2e..7f4d419a51c2 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -28,9 +28,8 @@ jobs: - name: CurrentBuildUrl value: $(System.CollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId) - # TODO: Remove [TEST-IGNORE] when this is ready to go live - name: StatusName - value: '[TEST-IGNORE] Swagger ApiDocPreview' + value: 'Swagger ApiDocPreview' steps: - template: /eng/pipelines/templates/steps/set-sha-check.yml @@ -52,8 +51,7 @@ jobs: # checks out files in the repo root Repositories: - Name: MicrosoftDocs/AzureRestPreview - # TODO: use main branch when this is ready to go live - Commitish: refs/heads/doc-preview-migration-test + Commitish: main WorkingDirectory: AzureRestPreview - template: /eng/pipelines/templates/steps/npm-install.yml @@ -87,7 +85,7 @@ jobs: $buildStartRaw = az pipelines build queue ` --organization "https://dev.azure.com/apidrop/" ` --project "Content CI" ` - --definition-id "8120" ` + --definition-id "8157" ` --variables 'params={"target_repo":{"url":"https://github.com/MicrosoftDocs/AzureRestPreview","branch":"$(BranchName)"}, "source_of_truth": "code"}' $buildStartRaw | Set-Content buildstart.json $buildStart = $buildStartRaw | ConvertFrom-Json From fac26bc744f8a2388cdde00d47b2c4263cc946eb Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Thu, 24 Jul 2025 03:54:59 +0000 Subject: [PATCH 110/111] Format --- .github/shared/cmd/api-doc-preview.js | 15 +++++++++------ .github/shared/package-lock.json | 1 + .github/shared/src/changed-files.js | 7 +------ .github/shared/test/changed-files.test.js | 7 +------ .github/shared/test/doc-preview.test.js | 4 ++-- 5 files changed, 14 insertions(+), 20 deletions(-) diff --git a/.github/shared/cmd/api-doc-preview.js b/.github/shared/cmd/api-doc-preview.js index 172999fcd8da..d3ba8a05a372 100755 --- a/.github/shared/cmd/api-doc-preview.js +++ b/.github/shared/cmd/api-doc-preview.js @@ -1,18 +1,18 @@ #!/usr/bin/env node // @ts-check -import { join, resolve, dirname } from "path"; +import { mkdir, writeFile } from "fs/promises"; +import { dirname, join, resolve } from "path"; import { fileURLToPath } from "url"; import { parseArgs } from "util"; -import { mkdir, writeFile } from "fs/promises"; -import { swagger, getChangedFilesStatuses } from "../src/changed-files.js"; +import { getChangedFilesStatuses, swagger } from "../src/changed-files.js"; import { + getSwaggersToProcess, + indexMd, mappingJSONTemplate, repoJSONTemplate, - indexMd, - getSwaggersToProcess, } from "../src/doc-preview.js"; const __dirname = dirname(fileURLToPath(import.meta.url)); @@ -93,7 +93,10 @@ if (!validArgs) { // Get selected version and swaggers to process -const changedFileStatuses = await getChangedFilesStatuses({ cwd: specRepoRoot }); +const changedFileStatuses = await getChangedFilesStatuses({ + cwd: specRepoRoot, + paths: ["specification"], +}); // Exclude deleted files as they are not relevant for generating documentation. const changedFiles = [ diff --git a/.github/shared/package-lock.json b/.github/shared/package-lock.json index 308e5e1b9ad2..af2795689f9d 100644 --- a/.github/shared/package-lock.json +++ b/.github/shared/package-lock.json @@ -13,6 +13,7 @@ "simple-git": "^3.27.0" }, "bin": { + "api-doc-preview": "cmd/api-doc-preview.js", "spec-model": "cmd/spec-model.js" }, "devDependencies": { diff --git a/.github/shared/src/changed-files.js b/.github/shared/src/changed-files.js index cac145477432..4561c394116f 100644 --- a/.github/shared/src/changed-files.js +++ b/.github/shared/src/changed-files.js @@ -220,12 +220,7 @@ export function typespec(file) { * @returns {boolean} */ export function quickstartTemplate(file) { - return ( - typeof file === "string" && - json(file) && - specification(file) && - file.includes("/quickstart-templates/") - ); + return typeof file === "string" && json(file) && file.includes("/quickstart-templates/"); } /** diff --git a/.github/shared/test/changed-files.test.js b/.github/shared/test/changed-files.test.js index 1e090e2be509..e98dadff5d9d 100644 --- a/.github/shared/test/changed-files.test.js +++ b/.github/shared/test/changed-files.test.js @@ -104,12 +104,7 @@ describe("changedFiles", () => { "not-spec/contosowidgetmanager/Contoso.Management/main.tsp", "not-spec/contosowidgetmanager/Contoso.Management/tspconfig.yaml", "specification/contosowidgetmanager/Contoso.Management/main.tsp", - "specification/contosowidgetmanager/Contoso.Management/examples/2021-11-01/Employees_Get.json", - "specification/contosowidgetmanager/resource-manager/readme.md", - "specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/contoso.json", - "specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/stable/2021-11-01/examples/Employees_Get.json", - "specification/contosowidgetmanager/Contoso.Management/scenarios/2021-11-01/Employees_Get.json", - "specification/compute/quickstart-templates/swagger.json", + "specification/contosowidgetmanager/Contoso.Management/tspconfig.yaml", ]; expect(files.filter(typespec)).toEqual(expected); }); diff --git a/.github/shared/test/doc-preview.test.js b/.github/shared/test/doc-preview.test.js index 94d671b44d3b..b0425c4f8b36 100644 --- a/.github/shared/test/doc-preview.test.js +++ b/.github/shared/test/doc-preview.test.js @@ -1,11 +1,11 @@ // @ts-check -import { test, describe, expect } from "vitest"; +import { describe, expect, test } from "vitest"; import { - parseSwaggerFilePath, getSwaggersToProcess, indexMd, mappingJSONTemplate, + parseSwaggerFilePath, repoJSONTemplate, } from "../src/doc-preview.js"; From 8311106effaf8336960daf3522a560e6f25beb3a Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Thu, 24 Jul 2025 10:19:02 -0700 Subject: [PATCH 111/111] Update eng/pipelines/swagger-api-doc-preview.yml Co-authored-by: Mike Harder --- eng/pipelines/swagger-api-doc-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/swagger-api-doc-preview.yml b/eng/pipelines/swagger-api-doc-preview.yml index 7f4d419a51c2..8174542fd87f 100644 --- a/eng/pipelines/swagger-api-doc-preview.yml +++ b/eng/pipelines/swagger-api-doc-preview.yml @@ -6,7 +6,7 @@ pr: - specification/** # Smoke test on changed files - - eng/pipelilnes/swagger-api-doc-preview.yml + - eng/pipelines/swagger-api-doc-preview.yml - eng/pipelines/templates/steps/set-sha-check.yml - .github/shared/src/doc-preview.js - .github/shared/cmd/api-doc-preview.js