@azure-rest/developer-devcenter 1.0.0-beta.1 → 1.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +17 -44
- package/dist/index.js.map +1 -1
- package/dist-esm/src/generated/azureDevCenter.js +5 -7
- package/dist-esm/src/generated/azureDevCenter.js.map +1 -1
- package/dist-esm/src/generated/clientDefinitions.js.map +1 -1
- package/dist-esm/src/generated/isUnexpected.js +12 -19
- package/dist-esm/src/generated/isUnexpected.js.map +1 -1
- package/dist-esm/src/generated/models.js.map +1 -1
- package/dist-esm/src/generated/outputModels.js.map +1 -1
- package/dist-esm/src/generated/parameters.js.map +1 -1
- package/dist-esm/src/generated/responses.js.map +1 -1
- package/dist-esm/src/index.js +3 -3
- package/dist-esm/src/index.js.map +1 -1
- package/package.json +4 -4
- package/review/developer-devcenter.api.md +180 -173
- package/types/developer-devcenter.d.ts +180 -181
- package/dist-esm/src/azureDevCenter.js +0 -20
- package/dist-esm/src/azureDevCenter.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isUnexpected.js","sourceRoot":"","sources":["../../../src/generated/isUnexpected.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n DevCenterListProjects200Response,\n DevCenterListProjectsDefaultResponse,\n DevCenterGetProject200Response,\n DevCenterGetProjectDefaultResponse,\n DevCenterListAllDevBoxes200Response,\n DevCenterListAllDevBoxesDefaultResponse,\n DevCenterListAllDevBoxesByUser200Response,\n DevCenterListAllDevBoxesByUserDefaultResponse,\n DevBoxesListPools200Response,\n DevBoxesListPoolsDefaultResponse,\n DevBoxesGetPool200Response,\n DevBoxesGetPoolDefaultResponse,\n DevBoxesListSchedulesByPool200Response,\n DevBoxesListSchedulesByPoolDefaultResponse,\n DevBoxesGetScheduleByPool200Response,\n DevBoxesGetScheduleByPoolDefaultResponse,\n DevBoxesListDevBoxesByUser200Response,\n DevBoxesListDevBoxesByUserDefaultResponse,\n DevBoxesGetDevBoxByUser200Response,\n DevBoxesGetDevBoxByUserDefaultResponse,\n DevBoxesCreateDevBox200Response,\n DevBoxesCreateDevBox201Response,\n DevBoxesCreateDevBoxDefaultResponse,\n DevBoxesDeleteDevBox200Response,\n DevBoxesDeleteDevBox202Response,\n DevBoxesDeleteDevBox204Response,\n DevBoxesDeleteDevBoxDefaultResponse,\n DevBoxesStartDevBox200Response,\n DevBoxesStartDevBox202Response,\n DevBoxesStartDevBoxDefaultResponse,\n DevBoxesStopDevBox200Response,\n DevBoxesStopDevBox202Response,\n DevBoxesStopDevBoxDefaultResponse,\n DevBoxesGetRemoteConnection200Response,\n DevBoxesGetRemoteConnectionDefaultResponse,\n EnvironmentsListEnvironments200Response,\n EnvironmentsListEnvironmentsDefaultResponse,\n EnvironmentsListEnvironmentsByUser200Response,\n EnvironmentsListEnvironmentsByUserDefaultResponse,\n EnvironmentsGetEnvironmentByUser200Response,\n EnvironmentsGetEnvironmentByUserDefaultResponse,\n EnvironmentsCreateOrUpdateEnvironment200Response,\n EnvironmentsCreateOrUpdateEnvironment201Response,\n EnvironmentsCreateOrUpdateEnvironmentDefaultResponse,\n EnvironmentsUpdateEnvironment200Response,\n EnvironmentsUpdateEnvironmentDefaultResponse,\n EnvironmentsDeleteEnvironment200Response,\n EnvironmentsDeleteEnvironment202Response,\n EnvironmentsDeleteEnvironment204Response,\n EnvironmentsDeleteEnvironmentDefaultResponse,\n EnvironmentsDeployEnvironmentAction200Response,\n EnvironmentsDeployEnvironmentAction202Response,\n EnvironmentsDeployEnvironmentActionDefaultResponse,\n EnvironmentsDeleteEnvironmentAction200Response,\n EnvironmentsDeleteEnvironmentAction202Response,\n EnvironmentsDeleteEnvironmentActionDefaultResponse,\n EnvironmentsCustomEnvironmentAction200Response,\n EnvironmentsCustomEnvironmentAction202Response,\n EnvironmentsCustomEnvironmentActionDefaultResponse,\n EnvironmentsListArtifactsByEnvironment200Response,\n EnvironmentsListArtifactsByEnvironmentDefaultResponse,\n EnvironmentsListArtifactsByEnvironmentAndPath200Response,\n EnvironmentsListArtifactsByEnvironmentAndPathDefaultResponse,\n EnvironmentsListCatalogItems200Response,\n EnvironmentsListCatalogItemsDefaultResponse,\n EnvironmentsGetCatalogItem200Response,\n EnvironmentsGetCatalogItemDefaultResponse,\n EnvironmentsListCatalogItemVersions200Response,\n EnvironmentsListCatalogItemVersionsDefaultResponse,\n EnvironmentsGetCatalogItemVersion200Response,\n EnvironmentsGetCatalogItemVersionDefaultResponse,\n EnvironmentsListEnvironmentTypes200Response,\n EnvironmentsListEnvironmentTypesDefaultResponse\n} from \"./responses\";\n\nconst responseMap: Record<string, string[]> = {\n \"GET /projects\": [\"200\"],\n \"GET /projects/{projectName}\": [\"200\"],\n \"GET /devboxes\": [\"200\"],\n \"GET /users/{userId}/devboxes\": [\"200\"],\n \"GET /projects/{projectName}/pools\": [\"200\"],\n \"GET /projects/{projectName}/pools/{poolName}\": [\"200\"],\n \"GET /projects/{projectName}/pools/{poolName}/schedules\": [\"200\"],\n \"GET /projects/{projectName}/pools/{poolName}/schedules/{scheduleName}\": [\n \"200\"\n ],\n \"GET /projects/{projectName}/users/{userId}/devboxes\": [\"200\"],\n \"GET /projects/{projectName}/users/{userId}/devboxes/{devBoxName}\": [\"200\"],\n \"PUT /projects/{projectName}/users/{userId}/devboxes/{devBoxName}\": [\n \"200\",\n \"201\"\n ],\n \"DELETE /projects/{projectName}/users/{userId}/devboxes/{devBoxName}\": [\n \"200\",\n \"202\",\n \"204\"\n ],\n \"POST /projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start\": [\n \"200\",\n \"202\"\n ],\n \"GET /projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start\": [\n \"200\",\n \"202\"\n ],\n \"POST /projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop\": [\n \"200\",\n \"202\"\n ],\n \"GET /projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop\": [\n \"200\",\n \"202\"\n ],\n \"GET /projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection\": [\n \"200\"\n ],\n \"GET /projects/{projectName}/environments\": [\"200\"],\n \"GET /projects/{projectName}/users/{userId}/environments\": [\"200\"],\n \"GET /projects/{projectName}/users/{userId}/environments/{environmentName}\": [\n \"200\"\n ],\n \"PUT /projects/{projectName}/users/{userId}/environments/{environmentName}\": [\n \"200\",\n \"201\"\n ],\n \"PATCH /projects/{projectName}/users/{userId}/environments/{environmentName}\": [\n \"200\"\n ],\n \"DELETE /projects/{projectName}/users/{userId}/environments/{environmentName}\": [\n \"200\",\n \"202\",\n \"204\"\n ],\n \"POST /projects/{projectName}/users/{userId}/environments/{environmentName}:deploy\": [\n \"200\",\n \"202\"\n ],\n \"GET /projects/{projectName}/users/{userId}/environments/{environmentName}:deploy\": [\n \"200\",\n \"202\"\n ],\n \"POST /projects/{projectName}/users/{userId}/environments/{environmentName}:delete\": [\n \"200\",\n \"202\"\n ],\n \"GET /projects/{projectName}/users/{userId}/environments/{environmentName}:delete\": [\n \"200\",\n \"202\"\n ],\n \"POST /projects/{projectName}/users/{userId}/environments/{environmentName}:custom\": [\n \"200\",\n \"202\"\n ],\n \"GET /projects/{projectName}/users/{userId}/environments/{environmentName}:custom\": [\n \"200\",\n \"202\"\n ],\n \"GET /projects/{projectName}/users/{userId}/environments/{environmentName}/artifacts\": [\n \"200\"\n ],\n \"GET /projects/{projectName}/users/{userId}/environments/{environmentName}/artifacts/{artifactPath}\": [\n \"200\"\n ],\n \"GET /projects/{projectName}/catalogItems\": [\"200\"],\n \"GET /projects/{projectName}/catalogItems/{catalogItemId}\": [\"200\"],\n \"GET /projects/{projectName}/catalogItems/{catalogItemId}/versions\": [\"200\"],\n \"GET /projects/{projectName}/catalogItems/{catalogItemId}/versions/{version}\": [\n \"200\"\n ],\n \"GET /projects/{projectName}/environmentTypes\": [\"200\"]\n};\n\nexport function isUnexpected(\n response:\n | DevCenterListProjects200Response\n | DevCenterListProjectsDefaultResponse\n): response is DevCenterListProjectsDefaultResponse;\nexport function isUnexpected(\n response: DevCenterGetProject200Response | DevCenterGetProjectDefaultResponse\n): response is DevCenterGetProjectDefaultResponse;\nexport function isUnexpected(\n response:\n | DevCenterListAllDevBoxes200Response\n | DevCenterListAllDevBoxesDefaultResponse\n): response is DevCenterListAllDevBoxesDefaultResponse;\nexport function isUnexpected(\n response:\n | DevCenterListAllDevBoxesByUser200Response\n | DevCenterListAllDevBoxesByUserDefaultResponse\n): response is DevCenterListAllDevBoxesByUserDefaultResponse;\nexport function isUnexpected(\n response: DevBoxesListPools200Response | DevBoxesListPoolsDefaultResponse\n): response is DevBoxesListPoolsDefaultResponse;\nexport function isUnexpected(\n response: DevBoxesGetPool200Response | DevBoxesGetPoolDefaultResponse\n): response is DevBoxesGetPoolDefaultResponse;\nexport function isUnexpected(\n response:\n | DevBoxesListSchedulesByPool200Response\n | DevBoxesListSchedulesByPoolDefaultResponse\n): response is DevBoxesListSchedulesByPoolDefaultResponse;\nexport function isUnexpected(\n response:\n | DevBoxesGetScheduleByPool200Response\n | DevBoxesGetScheduleByPoolDefaultResponse\n): response is DevBoxesGetScheduleByPoolDefaultResponse;\nexport function isUnexpected(\n response:\n | DevBoxesListDevBoxesByUser200Response\n | DevBoxesListDevBoxesByUserDefaultResponse\n): response is DevBoxesListDevBoxesByUserDefaultResponse;\nexport function isUnexpected(\n response:\n | DevBoxesGetDevBoxByUser200Response\n | DevBoxesGetDevBoxByUserDefaultResponse\n): response is DevBoxesGetDevBoxByUserDefaultResponse;\nexport function isUnexpected(\n response:\n | DevBoxesCreateDevBox200Response\n | DevBoxesCreateDevBox201Response\n | DevBoxesCreateDevBoxDefaultResponse\n): response is DevBoxesCreateDevBoxDefaultResponse;\nexport function isUnexpected(\n response:\n | DevBoxesDeleteDevBox200Response\n | DevBoxesDeleteDevBox202Response\n | DevBoxesDeleteDevBox204Response\n | DevBoxesDeleteDevBoxDefaultResponse\n): response is DevBoxesDeleteDevBoxDefaultResponse;\nexport function isUnexpected(\n response:\n | DevBoxesStartDevBox200Response\n | DevBoxesStartDevBox202Response\n | DevBoxesStartDevBoxDefaultResponse\n): response is DevBoxesStartDevBoxDefaultResponse;\nexport function isUnexpected(\n response:\n | DevBoxesStopDevBox200Response\n | DevBoxesStopDevBox202Response\n | DevBoxesStopDevBoxDefaultResponse\n): response is DevBoxesStopDevBoxDefaultResponse;\nexport function isUnexpected(\n response:\n | DevBoxesGetRemoteConnection200Response\n | DevBoxesGetRemoteConnectionDefaultResponse\n): response is DevBoxesGetRemoteConnectionDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsListEnvironments200Response\n | EnvironmentsListEnvironmentsDefaultResponse\n): response is EnvironmentsListEnvironmentsDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsListEnvironmentsByUser200Response\n | EnvironmentsListEnvironmentsByUserDefaultResponse\n): response is EnvironmentsListEnvironmentsByUserDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsGetEnvironmentByUser200Response\n | EnvironmentsGetEnvironmentByUserDefaultResponse\n): response is EnvironmentsGetEnvironmentByUserDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsCreateOrUpdateEnvironment200Response\n | EnvironmentsCreateOrUpdateEnvironment201Response\n | EnvironmentsCreateOrUpdateEnvironmentDefaultResponse\n): response is EnvironmentsCreateOrUpdateEnvironmentDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsUpdateEnvironment200Response\n | EnvironmentsUpdateEnvironmentDefaultResponse\n): response is EnvironmentsUpdateEnvironmentDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsDeleteEnvironment200Response\n | EnvironmentsDeleteEnvironment202Response\n | EnvironmentsDeleteEnvironment204Response\n | EnvironmentsDeleteEnvironmentDefaultResponse\n): response is EnvironmentsDeleteEnvironmentDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsDeployEnvironmentAction200Response\n | EnvironmentsDeployEnvironmentAction202Response\n | EnvironmentsDeployEnvironmentActionDefaultResponse\n): response is EnvironmentsDeployEnvironmentActionDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsDeleteEnvironmentAction200Response\n | EnvironmentsDeleteEnvironmentAction202Response\n | EnvironmentsDeleteEnvironmentActionDefaultResponse\n): response is EnvironmentsDeleteEnvironmentActionDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsCustomEnvironmentAction200Response\n | EnvironmentsCustomEnvironmentAction202Response\n | EnvironmentsCustomEnvironmentActionDefaultResponse\n): response is EnvironmentsCustomEnvironmentActionDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsListArtifactsByEnvironment200Response\n | EnvironmentsListArtifactsByEnvironmentDefaultResponse\n): response is EnvironmentsListArtifactsByEnvironmentDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsListArtifactsByEnvironmentAndPath200Response\n | EnvironmentsListArtifactsByEnvironmentAndPathDefaultResponse\n): response is EnvironmentsListArtifactsByEnvironmentAndPathDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsListCatalogItems200Response\n | EnvironmentsListCatalogItemsDefaultResponse\n): response is EnvironmentsListCatalogItemsDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsGetCatalogItem200Response\n | EnvironmentsGetCatalogItemDefaultResponse\n): response is EnvironmentsGetCatalogItemDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsListCatalogItemVersions200Response\n | EnvironmentsListCatalogItemVersionsDefaultResponse\n): response is EnvironmentsListCatalogItemVersionsDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsGetCatalogItemVersion200Response\n | EnvironmentsGetCatalogItemVersionDefaultResponse\n): response is EnvironmentsGetCatalogItemVersionDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsListEnvironmentTypes200Response\n | EnvironmentsListEnvironmentTypesDefaultResponse\n): response is EnvironmentsListEnvironmentTypesDefaultResponse;\nexport function isUnexpected(\n response:\n | DevCenterListProjects200Response\n | DevCenterListProjectsDefaultResponse\n | DevCenterGetProject200Response\n | DevCenterGetProjectDefaultResponse\n | DevCenterListAllDevBoxes200Response\n | DevCenterListAllDevBoxesDefaultResponse\n | DevCenterListAllDevBoxesByUser200Response\n | DevCenterListAllDevBoxesByUserDefaultResponse\n | DevBoxesListPools200Response\n | DevBoxesListPoolsDefaultResponse\n | DevBoxesGetPool200Response\n | DevBoxesGetPoolDefaultResponse\n | DevBoxesListSchedulesByPool200Response\n | DevBoxesListSchedulesByPoolDefaultResponse\n | DevBoxesGetScheduleByPool200Response\n | DevBoxesGetScheduleByPoolDefaultResponse\n | DevBoxesListDevBoxesByUser200Response\n | DevBoxesListDevBoxesByUserDefaultResponse\n | DevBoxesGetDevBoxByUser200Response\n | DevBoxesGetDevBoxByUserDefaultResponse\n | DevBoxesCreateDevBox200Response\n | DevBoxesCreateDevBox201Response\n | DevBoxesCreateDevBoxDefaultResponse\n | DevBoxesDeleteDevBox200Response\n | DevBoxesDeleteDevBox202Response\n | DevBoxesDeleteDevBox204Response\n | DevBoxesDeleteDevBoxDefaultResponse\n | DevBoxesStartDevBox200Response\n | DevBoxesStartDevBox202Response\n | DevBoxesStartDevBoxDefaultResponse\n | DevBoxesStopDevBox200Response\n | DevBoxesStopDevBox202Response\n | DevBoxesStopDevBoxDefaultResponse\n | DevBoxesGetRemoteConnection200Response\n | DevBoxesGetRemoteConnectionDefaultResponse\n | EnvironmentsListEnvironments200Response\n | EnvironmentsListEnvironmentsDefaultResponse\n | EnvironmentsListEnvironmentsByUser200Response\n | EnvironmentsListEnvironmentsByUserDefaultResponse\n | EnvironmentsGetEnvironmentByUser200Response\n | EnvironmentsGetEnvironmentByUserDefaultResponse\n | EnvironmentsCreateOrUpdateEnvironment200Response\n | EnvironmentsCreateOrUpdateEnvironment201Response\n | EnvironmentsCreateOrUpdateEnvironmentDefaultResponse\n | EnvironmentsUpdateEnvironment200Response\n | EnvironmentsUpdateEnvironmentDefaultResponse\n | EnvironmentsDeleteEnvironment200Response\n | EnvironmentsDeleteEnvironment202Response\n | EnvironmentsDeleteEnvironment204Response\n | EnvironmentsDeleteEnvironmentDefaultResponse\n | EnvironmentsDeployEnvironmentAction200Response\n | EnvironmentsDeployEnvironmentAction202Response\n | EnvironmentsDeployEnvironmentActionDefaultResponse\n | EnvironmentsDeleteEnvironmentAction200Response\n | EnvironmentsDeleteEnvironmentAction202Response\n | EnvironmentsDeleteEnvironmentActionDefaultResponse\n | EnvironmentsCustomEnvironmentAction200Response\n | EnvironmentsCustomEnvironmentAction202Response\n | EnvironmentsCustomEnvironmentActionDefaultResponse\n | EnvironmentsListArtifactsByEnvironment200Response\n | EnvironmentsListArtifactsByEnvironmentDefaultResponse\n | EnvironmentsListArtifactsByEnvironmentAndPath200Response\n | EnvironmentsListArtifactsByEnvironmentAndPathDefaultResponse\n | EnvironmentsListCatalogItems200Response\n | EnvironmentsListCatalogItemsDefaultResponse\n | EnvironmentsGetCatalogItem200Response\n | EnvironmentsGetCatalogItemDefaultResponse\n | EnvironmentsListCatalogItemVersions200Response\n | EnvironmentsListCatalogItemVersionsDefaultResponse\n | EnvironmentsGetCatalogItemVersion200Response\n | EnvironmentsGetCatalogItemVersionDefaultResponse\n | EnvironmentsListEnvironmentTypes200Response\n | EnvironmentsListEnvironmentTypesDefaultResponse\n): response is\n | DevCenterListProjectsDefaultResponse\n | DevCenterGetProjectDefaultResponse\n | DevCenterListAllDevBoxesDefaultResponse\n | DevCenterListAllDevBoxesByUserDefaultResponse\n | DevBoxesListPoolsDefaultResponse\n | DevBoxesGetPoolDefaultResponse\n | DevBoxesListSchedulesByPoolDefaultResponse\n | DevBoxesGetScheduleByPoolDefaultResponse\n | DevBoxesListDevBoxesByUserDefaultResponse\n | DevBoxesGetDevBoxByUserDefaultResponse\n | DevBoxesCreateDevBoxDefaultResponse\n | DevBoxesDeleteDevBoxDefaultResponse\n | DevBoxesStartDevBoxDefaultResponse\n | DevBoxesStopDevBoxDefaultResponse\n | DevBoxesGetRemoteConnectionDefaultResponse\n | EnvironmentsListEnvironmentsDefaultResponse\n | EnvironmentsListEnvironmentsByUserDefaultResponse\n | EnvironmentsGetEnvironmentByUserDefaultResponse\n | EnvironmentsCreateOrUpdateEnvironmentDefaultResponse\n | EnvironmentsUpdateEnvironmentDefaultResponse\n | EnvironmentsDeleteEnvironmentDefaultResponse\n | EnvironmentsDeployEnvironmentActionDefaultResponse\n | EnvironmentsDeleteEnvironmentActionDefaultResponse\n | EnvironmentsCustomEnvironmentActionDefaultResponse\n | EnvironmentsListArtifactsByEnvironmentDefaultResponse\n | EnvironmentsListArtifactsByEnvironmentAndPathDefaultResponse\n | EnvironmentsListCatalogItemsDefaultResponse\n | EnvironmentsGetCatalogItemDefaultResponse\n | EnvironmentsListCatalogItemVersionsDefaultResponse\n | EnvironmentsGetCatalogItemVersionDefaultResponse\n | EnvironmentsListEnvironmentTypesDefaultResponse {\n const lroOriginal = response.headers[\"x-ms-original-url\"];\n const url = new URL(lroOriginal ?? response.request.url);\n const method = response.request.method;\n let pathDetails = responseMap[`${method} ${url.pathname}`];\n if (!pathDetails) {\n pathDetails = geParametrizedPathSuccess(method, url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction geParametrizedPathSuccess(method: string, path: string): string[] {\n const pathParts = path.split(\"/\");\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(responseMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // If the candidate and actual paths don't match in size\n // we move on to the next candidate path\n if (\n candidateParts.length === pathParts.length &&\n hasParametrizedPath(key)\n ) {\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = 0; i < candidateParts.length; i++) {\n if (\n candidateParts[i]?.startsWith(\"{\") &&\n candidateParts[i]?.endsWith(\"}\")\n ) {\n // If the current part of the candidate is a \"template\" part\n // it is a match with the actual path part on hand\n // skip as the parameterized part can match anything\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[i]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // if all parts matched we return the success values form\n // the path mapping.\n if (found) {\n return value;\n }\n }\n }\n\n // No match was found, return an empty array.\n return [];\n}\n\nfunction hasParametrizedPath(path: string): boolean {\n return path.includes(\"/{\");\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"isUnexpected.js","sourceRoot":"","sources":["../../../src/generated/isUnexpected.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n DevCenterListProjects200Response,\n DevCenterListProjectsDefaultResponse,\n DevCenterGetProject200Response,\n DevCenterGetProjectDefaultResponse,\n DevCenterListAllDevBoxes200Response,\n DevCenterListAllDevBoxesDefaultResponse,\n DevCenterListAllDevBoxesByUser200Response,\n DevCenterListAllDevBoxesByUserDefaultResponse,\n DevBoxesListPools200Response,\n DevBoxesListPoolsDefaultResponse,\n DevBoxesGetPool200Response,\n DevBoxesGetPoolDefaultResponse,\n DevBoxesListSchedulesByPool200Response,\n DevBoxesListSchedulesByPoolDefaultResponse,\n DevBoxesGetScheduleByPool200Response,\n DevBoxesGetScheduleByPoolDefaultResponse,\n DevBoxesListDevBoxesByUser200Response,\n DevBoxesListDevBoxesByUserDefaultResponse,\n DevBoxesGetDevBoxByUser200Response,\n DevBoxesGetDevBoxByUserDefaultResponse,\n DevBoxesCreateDevBox200Response,\n DevBoxesCreateDevBox201Response,\n DevBoxesCreateDevBoxDefaultResponse,\n DevBoxesDeleteDevBox202Response,\n DevBoxesDeleteDevBox204Response,\n DevBoxesDeleteDevBoxDefaultResponse,\n DevBoxesStartDevBox202Response,\n DevBoxesStartDevBoxDefaultResponse,\n DevBoxesStopDevBox202Response,\n DevBoxesStopDevBoxDefaultResponse,\n DevBoxesGetRemoteConnection200Response,\n DevBoxesGetRemoteConnectionDefaultResponse,\n DevBoxesListUpcomingActions200Response,\n DevBoxesListUpcomingActionsDefaultResponse,\n DevBoxesGetUpcomingAction200Response,\n DevBoxesGetUpcomingActionDefaultResponse,\n DevBoxesSkipUpcomingAction204Response,\n DevBoxesSkipUpcomingActionDefaultResponse,\n DevBoxesDelayUpcomingAction200Response,\n DevBoxesDelayUpcomingActionDefaultResponse,\n EnvironmentsListEnvironments200Response,\n EnvironmentsListEnvironmentsDefaultResponse,\n EnvironmentsListEnvironmentsByUser200Response,\n EnvironmentsListEnvironmentsByUserDefaultResponse,\n EnvironmentsGetEnvironmentByUser200Response,\n EnvironmentsGetEnvironmentByUserDefaultResponse,\n EnvironmentsCreateOrUpdateEnvironment200Response,\n EnvironmentsCreateOrUpdateEnvironment201Response,\n EnvironmentsCreateOrUpdateEnvironmentDefaultResponse,\n EnvironmentsUpdateEnvironment200Response,\n EnvironmentsUpdateEnvironmentDefaultResponse,\n EnvironmentsDeleteEnvironment200Response,\n EnvironmentsDeleteEnvironment202Response,\n EnvironmentsDeleteEnvironment204Response,\n EnvironmentsDeleteEnvironmentDefaultResponse,\n EnvironmentsDeployEnvironmentAction200Response,\n EnvironmentsDeployEnvironmentAction202Response,\n EnvironmentsDeployEnvironmentActionDefaultResponse,\n EnvironmentsCustomEnvironmentAction200Response,\n EnvironmentsCustomEnvironmentAction202Response,\n EnvironmentsCustomEnvironmentActionDefaultResponse,\n EnvironmentsListCatalogItems200Response,\n EnvironmentsListCatalogItemsDefaultResponse,\n EnvironmentsGetCatalogItem200Response,\n EnvironmentsGetCatalogItemDefaultResponse,\n EnvironmentsListCatalogItemVersions200Response,\n EnvironmentsListCatalogItemVersionsDefaultResponse,\n EnvironmentsGetCatalogItemVersion200Response,\n EnvironmentsGetCatalogItemVersionDefaultResponse,\n EnvironmentsListEnvironmentTypes200Response,\n EnvironmentsListEnvironmentTypesDefaultResponse\n} from \"./responses\";\n\nconst responseMap: Record<string, string[]> = {\n \"GET /projects\": [\"200\"],\n \"GET /projects/{projectName}\": [\"200\"],\n \"GET /devboxes\": [\"200\"],\n \"GET /users/{userId}/devboxes\": [\"200\"],\n \"GET /projects/{projectName}/pools\": [\"200\"],\n \"GET /projects/{projectName}/pools/{poolName}\": [\"200\"],\n \"GET /projects/{projectName}/pools/{poolName}/schedules\": [\"200\"],\n \"GET /projects/{projectName}/pools/{poolName}/schedules/{scheduleName}\": [\n \"200\"\n ],\n \"GET /projects/{projectName}/users/{userId}/devboxes\": [\"200\"],\n \"GET /projects/{projectName}/users/{userId}/devboxes/{devBoxName}\": [\"200\"],\n \"PUT /projects/{projectName}/users/{userId}/devboxes/{devBoxName}\": [\n \"200\",\n \"201\"\n ],\n \"DELETE /projects/{projectName}/users/{userId}/devboxes/{devBoxName}\": [\n \"202\",\n \"204\"\n ],\n \"POST /projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start\": [\n \"202\"\n ],\n \"GET /projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start\": [\n \"202\"\n ],\n \"POST /projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop\": [\n \"202\"\n ],\n \"GET /projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop\": [\n \"202\"\n ],\n \"GET /projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection\": [\n \"200\"\n ],\n \"GET /projects/{projectName}/users/{userId}/devboxes/{devBoxName}/upcomingActions\": [\n \"200\"\n ],\n \"GET /projects/{projectName}/users/{userId}/devboxes/{devBoxName}/upcomingActions/{upcomingActionId}\": [\n \"200\"\n ],\n \"POST /projects/{projectName}/users/{userId}/devboxes/{devBoxName}/upcomingActions/{upcomingActionId}:skip\": [\n \"204\"\n ],\n \"POST /projects/{projectName}/users/{userId}/devboxes/{devBoxName}/upcomingActions/{upcomingActionId}:delay\": [\n \"200\"\n ],\n \"GET /projects/{projectName}/environments\": [\"200\"],\n \"GET /projects/{projectName}/users/{userId}/environments\": [\"200\"],\n \"GET /projects/{projectName}/users/{userId}/environments/{environmentName}\": [\n \"200\"\n ],\n \"PUT /projects/{projectName}/users/{userId}/environments/{environmentName}\": [\n \"200\",\n \"201\"\n ],\n \"PATCH /projects/{projectName}/users/{userId}/environments/{environmentName}\": [\n \"200\"\n ],\n \"DELETE /projects/{projectName}/users/{userId}/environments/{environmentName}\": [\n \"200\",\n \"202\",\n \"204\"\n ],\n \"POST /projects/{projectName}/users/{userId}/environments/{environmentName}:deploy\": [\n \"200\",\n \"202\"\n ],\n \"GET /projects/{projectName}/users/{userId}/environments/{environmentName}:deploy\": [\n \"200\",\n \"202\"\n ],\n \"POST /projects/{projectName}/users/{userId}/environments/{environmentName}:custom\": [\n \"200\",\n \"202\"\n ],\n \"GET /projects/{projectName}/users/{userId}/environments/{environmentName}:custom\": [\n \"200\",\n \"202\"\n ],\n \"GET /projects/{projectName}/catalogItems\": [\"200\"],\n \"GET /projects/{projectName}/catalogItems/{catalogItemId}\": [\"200\"],\n \"GET /projects/{projectName}/catalogItems/{catalogItemId}/versions\": [\"200\"],\n \"GET /projects/{projectName}/catalogItems/{catalogItemId}/versions/{version}\": [\n \"200\"\n ],\n \"GET /projects/{projectName}/environmentTypes\": [\"200\"]\n};\n\nexport function isUnexpected(\n response:\n | DevCenterListProjects200Response\n | DevCenterListProjectsDefaultResponse\n): response is DevCenterListProjectsDefaultResponse;\nexport function isUnexpected(\n response: DevCenterGetProject200Response | DevCenterGetProjectDefaultResponse\n): response is DevCenterGetProjectDefaultResponse;\nexport function isUnexpected(\n response:\n | DevCenterListAllDevBoxes200Response\n | DevCenterListAllDevBoxesDefaultResponse\n): response is DevCenterListAllDevBoxesDefaultResponse;\nexport function isUnexpected(\n response:\n | DevCenterListAllDevBoxesByUser200Response\n | DevCenterListAllDevBoxesByUserDefaultResponse\n): response is DevCenterListAllDevBoxesByUserDefaultResponse;\nexport function isUnexpected(\n response: DevBoxesListPools200Response | DevBoxesListPoolsDefaultResponse\n): response is DevBoxesListPoolsDefaultResponse;\nexport function isUnexpected(\n response: DevBoxesGetPool200Response | DevBoxesGetPoolDefaultResponse\n): response is DevBoxesGetPoolDefaultResponse;\nexport function isUnexpected(\n response:\n | DevBoxesListSchedulesByPool200Response\n | DevBoxesListSchedulesByPoolDefaultResponse\n): response is DevBoxesListSchedulesByPoolDefaultResponse;\nexport function isUnexpected(\n response:\n | DevBoxesGetScheduleByPool200Response\n | DevBoxesGetScheduleByPoolDefaultResponse\n): response is DevBoxesGetScheduleByPoolDefaultResponse;\nexport function isUnexpected(\n response:\n | DevBoxesListDevBoxesByUser200Response\n | DevBoxesListDevBoxesByUserDefaultResponse\n): response is DevBoxesListDevBoxesByUserDefaultResponse;\nexport function isUnexpected(\n response:\n | DevBoxesGetDevBoxByUser200Response\n | DevBoxesGetDevBoxByUserDefaultResponse\n): response is DevBoxesGetDevBoxByUserDefaultResponse;\nexport function isUnexpected(\n response:\n | DevBoxesCreateDevBox200Response\n | DevBoxesCreateDevBox201Response\n | DevBoxesCreateDevBoxDefaultResponse\n): response is DevBoxesCreateDevBoxDefaultResponse;\nexport function isUnexpected(\n response:\n | DevBoxesDeleteDevBox202Response\n | DevBoxesDeleteDevBox204Response\n | DevBoxesDeleteDevBoxDefaultResponse\n): response is DevBoxesDeleteDevBoxDefaultResponse;\nexport function isUnexpected(\n response: DevBoxesStartDevBox202Response | DevBoxesStartDevBoxDefaultResponse\n): response is DevBoxesStartDevBoxDefaultResponse;\nexport function isUnexpected(\n response: DevBoxesStopDevBox202Response | DevBoxesStopDevBoxDefaultResponse\n): response is DevBoxesStopDevBoxDefaultResponse;\nexport function isUnexpected(\n response:\n | DevBoxesGetRemoteConnection200Response\n | DevBoxesGetRemoteConnectionDefaultResponse\n): response is DevBoxesGetRemoteConnectionDefaultResponse;\nexport function isUnexpected(\n response:\n | DevBoxesListUpcomingActions200Response\n | DevBoxesListUpcomingActionsDefaultResponse\n): response is DevBoxesListUpcomingActionsDefaultResponse;\nexport function isUnexpected(\n response:\n | DevBoxesGetUpcomingAction200Response\n | DevBoxesGetUpcomingActionDefaultResponse\n): response is DevBoxesGetUpcomingActionDefaultResponse;\nexport function isUnexpected(\n response:\n | DevBoxesSkipUpcomingAction204Response\n | DevBoxesSkipUpcomingActionDefaultResponse\n): response is DevBoxesSkipUpcomingActionDefaultResponse;\nexport function isUnexpected(\n response:\n | DevBoxesDelayUpcomingAction200Response\n | DevBoxesDelayUpcomingActionDefaultResponse\n): response is DevBoxesDelayUpcomingActionDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsListEnvironments200Response\n | EnvironmentsListEnvironmentsDefaultResponse\n): response is EnvironmentsListEnvironmentsDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsListEnvironmentsByUser200Response\n | EnvironmentsListEnvironmentsByUserDefaultResponse\n): response is EnvironmentsListEnvironmentsByUserDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsGetEnvironmentByUser200Response\n | EnvironmentsGetEnvironmentByUserDefaultResponse\n): response is EnvironmentsGetEnvironmentByUserDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsCreateOrUpdateEnvironment200Response\n | EnvironmentsCreateOrUpdateEnvironment201Response\n | EnvironmentsCreateOrUpdateEnvironmentDefaultResponse\n): response is EnvironmentsCreateOrUpdateEnvironmentDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsUpdateEnvironment200Response\n | EnvironmentsUpdateEnvironmentDefaultResponse\n): response is EnvironmentsUpdateEnvironmentDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsDeleteEnvironment200Response\n | EnvironmentsDeleteEnvironment202Response\n | EnvironmentsDeleteEnvironment204Response\n | EnvironmentsDeleteEnvironmentDefaultResponse\n): response is EnvironmentsDeleteEnvironmentDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsDeployEnvironmentAction200Response\n | EnvironmentsDeployEnvironmentAction202Response\n | EnvironmentsDeployEnvironmentActionDefaultResponse\n): response is EnvironmentsDeployEnvironmentActionDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsCustomEnvironmentAction200Response\n | EnvironmentsCustomEnvironmentAction202Response\n | EnvironmentsCustomEnvironmentActionDefaultResponse\n): response is EnvironmentsCustomEnvironmentActionDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsListCatalogItems200Response\n | EnvironmentsListCatalogItemsDefaultResponse\n): response is EnvironmentsListCatalogItemsDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsGetCatalogItem200Response\n | EnvironmentsGetCatalogItemDefaultResponse\n): response is EnvironmentsGetCatalogItemDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsListCatalogItemVersions200Response\n | EnvironmentsListCatalogItemVersionsDefaultResponse\n): response is EnvironmentsListCatalogItemVersionsDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsGetCatalogItemVersion200Response\n | EnvironmentsGetCatalogItemVersionDefaultResponse\n): response is EnvironmentsGetCatalogItemVersionDefaultResponse;\nexport function isUnexpected(\n response:\n | EnvironmentsListEnvironmentTypes200Response\n | EnvironmentsListEnvironmentTypesDefaultResponse\n): response is EnvironmentsListEnvironmentTypesDefaultResponse;\nexport function isUnexpected(\n response:\n | DevCenterListProjects200Response\n | DevCenterListProjectsDefaultResponse\n | DevCenterGetProject200Response\n | DevCenterGetProjectDefaultResponse\n | DevCenterListAllDevBoxes200Response\n | DevCenterListAllDevBoxesDefaultResponse\n | DevCenterListAllDevBoxesByUser200Response\n | DevCenterListAllDevBoxesByUserDefaultResponse\n | DevBoxesListPools200Response\n | DevBoxesListPoolsDefaultResponse\n | DevBoxesGetPool200Response\n | DevBoxesGetPoolDefaultResponse\n | DevBoxesListSchedulesByPool200Response\n | DevBoxesListSchedulesByPoolDefaultResponse\n | DevBoxesGetScheduleByPool200Response\n | DevBoxesGetScheduleByPoolDefaultResponse\n | DevBoxesListDevBoxesByUser200Response\n | DevBoxesListDevBoxesByUserDefaultResponse\n | DevBoxesGetDevBoxByUser200Response\n | DevBoxesGetDevBoxByUserDefaultResponse\n | DevBoxesCreateDevBox200Response\n | DevBoxesCreateDevBox201Response\n | DevBoxesCreateDevBoxDefaultResponse\n | DevBoxesDeleteDevBox202Response\n | DevBoxesDeleteDevBox204Response\n | DevBoxesDeleteDevBoxDefaultResponse\n | DevBoxesStartDevBox202Response\n | DevBoxesStartDevBoxDefaultResponse\n | DevBoxesStopDevBox202Response\n | DevBoxesStopDevBoxDefaultResponse\n | DevBoxesGetRemoteConnection200Response\n | DevBoxesGetRemoteConnectionDefaultResponse\n | DevBoxesListUpcomingActions200Response\n | DevBoxesListUpcomingActionsDefaultResponse\n | DevBoxesGetUpcomingAction200Response\n | DevBoxesGetUpcomingActionDefaultResponse\n | DevBoxesSkipUpcomingAction204Response\n | DevBoxesSkipUpcomingActionDefaultResponse\n | DevBoxesDelayUpcomingAction200Response\n | DevBoxesDelayUpcomingActionDefaultResponse\n | EnvironmentsListEnvironments200Response\n | EnvironmentsListEnvironmentsDefaultResponse\n | EnvironmentsListEnvironmentsByUser200Response\n | EnvironmentsListEnvironmentsByUserDefaultResponse\n | EnvironmentsGetEnvironmentByUser200Response\n | EnvironmentsGetEnvironmentByUserDefaultResponse\n | EnvironmentsCreateOrUpdateEnvironment200Response\n | EnvironmentsCreateOrUpdateEnvironment201Response\n | EnvironmentsCreateOrUpdateEnvironmentDefaultResponse\n | EnvironmentsUpdateEnvironment200Response\n | EnvironmentsUpdateEnvironmentDefaultResponse\n | EnvironmentsDeleteEnvironment200Response\n | EnvironmentsDeleteEnvironment202Response\n | EnvironmentsDeleteEnvironment204Response\n | EnvironmentsDeleteEnvironmentDefaultResponse\n | EnvironmentsDeployEnvironmentAction200Response\n | EnvironmentsDeployEnvironmentAction202Response\n | EnvironmentsDeployEnvironmentActionDefaultResponse\n | EnvironmentsCustomEnvironmentAction200Response\n | EnvironmentsCustomEnvironmentAction202Response\n | EnvironmentsCustomEnvironmentActionDefaultResponse\n | EnvironmentsListCatalogItems200Response\n | EnvironmentsListCatalogItemsDefaultResponse\n | EnvironmentsGetCatalogItem200Response\n | EnvironmentsGetCatalogItemDefaultResponse\n | EnvironmentsListCatalogItemVersions200Response\n | EnvironmentsListCatalogItemVersionsDefaultResponse\n | EnvironmentsGetCatalogItemVersion200Response\n | EnvironmentsGetCatalogItemVersionDefaultResponse\n | EnvironmentsListEnvironmentTypes200Response\n | EnvironmentsListEnvironmentTypesDefaultResponse\n): response is\n | DevCenterListProjectsDefaultResponse\n | DevCenterGetProjectDefaultResponse\n | DevCenterListAllDevBoxesDefaultResponse\n | DevCenterListAllDevBoxesByUserDefaultResponse\n | DevBoxesListPoolsDefaultResponse\n | DevBoxesGetPoolDefaultResponse\n | DevBoxesListSchedulesByPoolDefaultResponse\n | DevBoxesGetScheduleByPoolDefaultResponse\n | DevBoxesListDevBoxesByUserDefaultResponse\n | DevBoxesGetDevBoxByUserDefaultResponse\n | DevBoxesCreateDevBoxDefaultResponse\n | DevBoxesDeleteDevBoxDefaultResponse\n | DevBoxesStartDevBoxDefaultResponse\n | DevBoxesStopDevBoxDefaultResponse\n | DevBoxesGetRemoteConnectionDefaultResponse\n | DevBoxesListUpcomingActionsDefaultResponse\n | DevBoxesGetUpcomingActionDefaultResponse\n | DevBoxesSkipUpcomingActionDefaultResponse\n | DevBoxesDelayUpcomingActionDefaultResponse\n | EnvironmentsListEnvironmentsDefaultResponse\n | EnvironmentsListEnvironmentsByUserDefaultResponse\n | EnvironmentsGetEnvironmentByUserDefaultResponse\n | EnvironmentsCreateOrUpdateEnvironmentDefaultResponse\n | EnvironmentsUpdateEnvironmentDefaultResponse\n | EnvironmentsDeleteEnvironmentDefaultResponse\n | EnvironmentsDeployEnvironmentActionDefaultResponse\n | EnvironmentsCustomEnvironmentActionDefaultResponse\n | EnvironmentsListCatalogItemsDefaultResponse\n | EnvironmentsGetCatalogItemDefaultResponse\n | EnvironmentsListCatalogItemVersionsDefaultResponse\n | EnvironmentsGetCatalogItemVersionDefaultResponse\n | EnvironmentsListEnvironmentTypesDefaultResponse {\n const lroOriginal = response.headers[\"x-ms-original-url\"];\n const url = new URL(lroOriginal ?? response.request.url);\n const method = response.request.method;\n let pathDetails = responseMap[`${method} ${url.pathname}`];\n if (!pathDetails) {\n pathDetails = geParametrizedPathSuccess(method, url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction geParametrizedPathSuccess(method: string, path: string): string[] {\n const pathParts = path.split(\"/\");\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(responseMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // If the candidate and actual paths don't match in size\n // we move on to the next candidate path\n if (\n candidateParts.length === pathParts.length &&\n hasParametrizedPath(key)\n ) {\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = 0; i < candidateParts.length; i++) {\n if (\n candidateParts[i]?.startsWith(\"{\") &&\n candidateParts[i]?.endsWith(\"}\")\n ) {\n // If the current part of the candidate is a \"template\" part\n // it is a match with the actual path part on hand\n // skip as the parameterized part can match anything\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[i]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // if all parts matched we return the success values form\n // the path mapping.\n if (found) {\n return value;\n }\n }\n }\n\n // No match was found, return an empty array.\n return [];\n}\n\nfunction hasParametrizedPath(path: string): boolean {\n return path.includes(\"/{\");\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/generated/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/** Hardware specifications for the Dev Box. */\nexport interface HardwareProfile {\n /** The name of the SKU */\n skuName?: string;\n /** The number of vCPUs available for the Dev Box. */\n vCPUs?: number;\n /** The amount of memory available for the Dev Box. */\n memoryGB?: number;\n}\n\n/** Storage settings for the Dev Box's disks */\nexport interface StorageProfile {\n /** Settings for the operating system disk. */\n osDisk?: OSDisk;\n}\n\n/** Settings for the operating system disk. */\nexport interface OSDisk {\n /** The size of the OS Disk in gigabytes. */\n diskSizeGB?: number;\n}\n\n/** Specifies information about the image used */\nexport interface ImageReference {\n /** The name of the image used. */\n name?: string;\n /** The version of the image. */\n version?: string;\n /** The operating system of the image. */\n operatingSystem?: string;\n /** The operating system build number of the image. */\n osBuildNumber?: string;\n /** The datetime that the backing image version was published. */\n publishedDate?: Date | string;\n}\n\n/** A DevBox Dev Box */\nexport interface DevBox {\n /** Display name for the Dev Box */\n name?: string;\n /** Name of the project this Dev Box belongs to */\n projectName?: string;\n /** The name of the Dev Box pool this machine belongs to. */\n poolName: string;\n /** The current provisioning state of the Dev Box. */\n provisioningState?: string;\n /** The current action state of the Dev Box. This is state is based on previous action performed by user. */\n actionState?: string;\n /** The current power state of the Dev Box. */\n powerState?:\n | \"Unknown\"\n | \"Deallocated\"\n | \"PoweredOff\"\n | \"Running\"\n | \"Hibernated\";\n /** A unique identifier for the Dev Box. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). */\n uniqueId?: string;\n /** Provisioning or action error details. Populated only for error states. */\n errorDetails?: ProvisioningError;\n /** Azure region where this Dev Box is located. This will be the same region as the Virtual Network it is attached to. */\n location?: string;\n /** The operating system type of this Dev Box. */\n osType?: \"Windows\";\n /**
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/generated/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/** Hardware specifications for the Dev Box. */\nexport interface HardwareProfile {\n /** The name of the SKU */\n skuName?: string;\n /** The number of vCPUs available for the Dev Box. */\n vCPUs?: number;\n /** The amount of memory available for the Dev Box. */\n memoryGB?: number;\n}\n\n/** Storage settings for the Dev Box's disks */\nexport interface StorageProfile {\n /** Settings for the operating system disk. */\n osDisk?: OSDisk;\n}\n\n/** Settings for the operating system disk. */\nexport interface OSDisk {\n /** The size of the OS Disk in gigabytes. */\n diskSizeGB?: number;\n}\n\n/** Specifies information about the image used */\nexport interface ImageReference {\n /** The name of the image used. */\n name?: string;\n /** The version of the image. */\n version?: string;\n /** The operating system of the image. */\n operatingSystem?: string;\n /** The operating system build number of the image. */\n osBuildNumber?: string;\n /** The datetime that the backing image version was published. */\n publishedDate?: Date | string;\n}\n\n/** A DevBox Dev Box */\nexport interface DevBox {\n /** Display name for the Dev Box */\n name?: string;\n /** Name of the project this Dev Box belongs to */\n projectName?: string;\n /** The name of the Dev Box pool this machine belongs to. */\n poolName: string;\n /** Indicates whether hibernate is enabled/disabled or unknown. */\n hibernateSupport?: \"Disabled\" | \"Enabled\";\n /** The current provisioning state of the Dev Box. */\n provisioningState?: string;\n /** The current action state of the Dev Box. This is state is based on previous action performed by user. */\n actionState?: string;\n /** The current power state of the Dev Box. */\n powerState?:\n | \"Unknown\"\n | \"Deallocated\"\n | \"PoweredOff\"\n | \"Running\"\n | \"Hibernated\";\n /** A unique identifier for the Dev Box. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). */\n uniqueId?: string;\n /** Provisioning or action error details. Populated only for error states. */\n errorDetails?: ProvisioningError;\n /** Azure region where this Dev Box is located. This will be the same region as the Virtual Network it is attached to. */\n location?: string;\n /** The operating system type of this Dev Box. */\n osType?: \"Windows\";\n /** The AAD object id of the user this Dev Box is assigned to. */\n user?: string;\n /** Information about the Dev Box's hardware resources */\n hardwareProfile?: HardwareProfile;\n /** Storage settings for this Dev Box */\n storageProfile?: StorageProfile;\n /** Information about the image used for this Dev Box */\n imageReference?: ImageReference;\n /** Creation time of this Dev Box */\n createdTime?: Date | string;\n /** Indicates whether the owner of the Dev Box is a local administrator. */\n localAdministrator?: \"Enabled\" | \"Disabled\";\n}\n\n/** Error details */\nexport interface ProvisioningError {\n /** The error code. */\n code?: string;\n /** The error message. */\n message?: string;\n}\n\n/** Properties of an environment. */\nexport interface Environment extends EnvironmentUpdateProperties {\n /** Environment name. */\n name?: string;\n /** Environment type. */\n environmentType: string;\n /** The AAD object id of the owner of this Environment. */\n user?: string;\n /** The provisioning state of the environment. */\n provisioningState?: string;\n /** The identifier of the resource group containing the environment's resources. */\n resourceGroupId?: string;\n}\n\n/** Properties of an environment. These properties can be updated after the resource has been created. */\nexport interface EnvironmentUpdateProperties {\n /** Description of the Environment. */\n description?: string;\n /** Name of the catalog. */\n catalogName?: string;\n /** Name of the catalog item. */\n catalogItemName?: string;\n /** Parameters object for the deploy action */\n parameters?: Record<string, unknown>;\n /** Set of supported scheduled tasks to help manage cost. */\n scheduledTasks?: Record<string, ScheduledTask>;\n /** Key value pairs that will be applied to resources deployed in this environment as tags. */\n tags?: Record<string, string>;\n}\n\n/** Scheduled task to auto-expire an environment. */\nexport interface ScheduledTask {\n /** Supported type this scheduled task represents. */\n type: \"AutoExpire\";\n /** Indicates whether or not this scheduled task is enabled. */\n enabled?: \"Enabled\" | \"Disabled\";\n /** Date/time by which the environment should expire */\n startTime: Date | string;\n}\n\n/** Action request */\nexport interface ActionRequest {\n /** The Catalog Item action id to execute */\n actionId: string;\n /** Parameters object for the Action */\n parameters?: Record<string, unknown>;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outputModels.js","sourceRoot":"","sources":["../../../src/generated/outputModels.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/** Results of the project list operation. */\nexport interface ProjectListResultOutput {\n /** Current page of results. */\n value: Array<ProjectOutput>;\n /** URL to get the next set of results if there are any. */\n nextLink?: string;\n}\n\n/** Project details. */\nexport interface ProjectOutput {\n /** Name of the project */\n name?: string;\n /** Description of the project. */\n description?: string;\n}\n\n/** An error response from the service. */\nexport interface CloudErrorOutput {\n /** Error body */\n error: CloudErrorBodyOutput;\n}\n\n/** An error response from the service. */\nexport interface CloudErrorBodyOutput {\n /** An identifier for the error. Codes are invariant and are intended to be consumed programmatically. */\n code: string;\n /** A message describing the error, intended to be suitable for display in a user interface. */\n message: string;\n /** The target of the particular error. For example, the name of the property in error. */\n target?: string;\n /** A list of additional details about the error. */\n details?: Array<CloudErrorBodyOutput>;\n}\n\n/** The Pool list result */\nexport interface PoolListResultOutput {\n /** Current page of results */\n value: Array<PoolOutput>;\n /** The URL to get the next set of results. */\n nextLink?: string;\n}\n\n/** A pool of Dev Boxes. */\nexport interface PoolOutput {\n /** Pool name */\n name?: string;\n /** Azure region where Dev Boxes in the pool are located */\n location?: string;\n /** The operating system type of Dev Boxes in this pool */\n osType?: \"Windows\";\n /** Hardware settings for the Dev Boxes created in this pool */\n hardwareProfile?: HardwareProfileOutput;\n /** Storage settings for Dev Box created in this pool */\n storageProfile?: StorageProfileOutput;\n /** Image settings for Dev Boxes create in this pool */\n imageReference?: ImageReferenceOutput;\n /** Indicates whether owners of Dev Boxes in this pool are local administrators on the Dev Boxes. */\n localAdministrator?: \"Enabled\" | \"Disabled\";\n}\n\n/** Hardware specifications for the Dev Box. */\nexport interface HardwareProfileOutput {\n /** The name of the SKU */\n skuName?: string;\n /** The number of vCPUs available for the Dev Box. */\n vCPUs?: number;\n /** The amount of memory available for the Dev Box. */\n memoryGB?: number;\n}\n\n/** Storage settings for the Dev Box's disks */\nexport interface StorageProfileOutput {\n /** Settings for the operating system disk. */\n osDisk?: OSDiskOutput;\n}\n\n/** Settings for the operating system disk. */\nexport interface OSDiskOutput {\n /** The size of the OS Disk in gigabytes. */\n diskSizeGB?: number;\n}\n\n/** Specifies information about the image used */\nexport interface ImageReferenceOutput {\n /** The name of the image used. */\n name?: string;\n /** The version of the image. */\n version?: string;\n /** The operating system of the image. */\n operatingSystem?: string;\n /** The operating system build number of the image. */\n osBuildNumber?: string;\n /** The datetime that the backing image version was published. */\n publishedDate?: string;\n}\n\n/** The Schedule list result */\nexport interface ScheduleListResultOutput {\n /** Current page of results */\n value: Array<ScheduleOutput>;\n /** The URL to get the next set of results. */\n nextLink?: string;\n}\n\n/** A Schedule to execute action. */\nexport interface ScheduleOutput {\n /** Display name for the Schedule */\n name?: string;\n /** Supported type this scheduled task represents. */\n type?: \"StopDevBox\";\n /** The frequency of this scheduled task. */\n frequency?: \"Daily\";\n /** The target time to trigger the action. The format is HH:MM. */\n time?: string;\n /** The IANA timezone id at which the schedule should execute. */\n timeZone?: string;\n}\n\n/** The Dev Box list result */\nexport interface DevBoxListResultOutput {\n /** The list of DevBox Dev Boxes */\n value: Array<DevBoxOutput>;\n /** The URL to get the next set of results. */\n nextLink?: string;\n}\n\n/** A DevBox Dev Box */\nexport interface DevBoxOutput {\n /** Display name for the Dev Box */\n name?: string;\n /** Name of the project this Dev Box belongs to */\n projectName?: string;\n /** The name of the Dev Box pool this machine belongs to. */\n poolName: string;\n /** The current provisioning state of the Dev Box. */\n provisioningState?: string;\n /** The current action state of the Dev Box. This is state is based on previous action performed by user. */\n actionState?: string;\n /** The current power state of the Dev Box. */\n powerState?:\n | \"Unknown\"\n | \"Deallocated\"\n | \"PoweredOff\"\n | \"Running\"\n | \"Hibernated\";\n /** A unique identifier for the Dev Box. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). */\n uniqueId?: string;\n /** Provisioning or action error details. Populated only for error states. */\n errorDetails?: ProvisioningErrorOutput;\n /** Azure region where this Dev Box is located. This will be the same region as the Virtual Network it is attached to. */\n location?: string;\n /** The operating system type of this Dev Box. */\n osType?: \"Windows\";\n /** User identifier of the user this vm is assigned to. */\n user?: string;\n /** Information about the Dev Box's hardware resources */\n hardwareProfile?: HardwareProfileOutput;\n /** Storage settings for this Dev Box */\n storageProfile?: StorageProfileOutput;\n /** Information about the image used for this Dev Box */\n imageReference?: ImageReferenceOutput;\n /** Creation time of this Dev Box */\n createdTime?: string;\n /** Indicates whether the owner of the Dev Box is a local administrator. */\n localAdministrator?: \"Enabled\" | \"Disabled\";\n}\n\n/** Error details */\nexport interface ProvisioningErrorOutput {\n /** The error code. */\n code?: string;\n /** The error message. */\n message?: string;\n}\n\n/** Provides RDP connection information */\nexport interface RemoteConnectionOutput {\n /** URL to open a browser based RDP session */\n webUrl?: string;\n /** Link to open a Remote Desktop session */\n rdpConnectionUrl?: string;\n}\n\n/** Results of the environment list operation. */\nexport interface EnvironmentListResultOutput {\n /** Current page of results. */\n value: Array<EnvironmentOutput>;\n /** URL to get the next set of results if there are any. */\n nextLink?: string;\n}\n\n/** Properties of an environment. */\nexport interface EnvironmentOutput extends EnvironmentUpdatePropertiesOutput {\n /** Environment name. */\n name?: string;\n /** Environment type. */\n environmentType: string;\n /** Identifier of the owner of this Environment. */\n owner?: string;\n /** The provisioning state of the environment. */\n provisioningState?: string;\n /** The identifier of the resource group containing the environment's resources. */\n resourceGroupId?: string;\n}\n\n/** Properties of an environment. These properties can be updated after the resource has been created. */\nexport interface EnvironmentUpdatePropertiesOutput {\n /** Description of the Environment. */\n description?: string;\n /** Name of the catalog. */\n catalogName?: string;\n /** Name of the catalog item. */\n catalogItemName?: string;\n /** Parameters object for the deploy action */\n parameters?: Record<string, unknown>;\n /** Set of supported scheduled tasks to help manage cost. */\n scheduledTasks?: Record<string, ScheduledTaskOutput>;\n /** Key value pairs that will be applied to resources deployed in this environment as tags. */\n tags?: Record<string, string>;\n}\n\n/** Scheduled task to auto-expire an environment. */\nexport interface ScheduledTaskOutput {\n /** Supported type this scheduled task represents. */\n type: \"AutoExpire\";\n /** Indicates whether or not this scheduled task is enabled. */\n enabled?: \"Enabled\" | \"Disabled\";\n /** Date/time by which the environment should expire */\n startTime: string;\n}\n\n/** Results of the artifact list operation. */\nexport interface ArtifactListResultOutput {\n /** Current page of results. */\n value: Array<ArtifactOutput>;\n /** URL to get the next set of results if there are any. */\n nextLink?: string;\n}\n\n/** Properties of an Artifact */\nexport interface ArtifactOutput {\n /** Artifact identifier */\n id?: string;\n /** Artifact name */\n name?: string;\n /** Whether artifact is a directory */\n isDirectory?: boolean;\n /** Uri where the file contents can be downloaded */\n downloadUri?: string;\n /** Size of file in bytes, if the artifact is a file */\n fileSize?: number;\n /** Time the artifact was created */\n createdTime?: string;\n /** Time the artifact was last modified */\n lastModifiedTime?: string;\n}\n\n/** Results of the catalog item list operation. */\nexport interface CatalogItemListResultOutput {\n /** Current page of results. */\n value: Array<CatalogItemOutput>;\n /** URL to get the next set of results if there are any. */\n nextLink?: string;\n}\n\n/** A catalog item. */\nexport interface CatalogItemOutput {\n /** Unique identifier of the catalog item. */\n id?: string;\n /** Name of the catalog item. */\n name?: string;\n /** Name of the catalog. */\n catalogName?: string;\n}\n\n/** Results of the catalog item list operation. */\nexport interface CatalogItemVersionListResultOutput {\n /** Current page of results. */\n value: Array<CatalogItemVersionOutput>;\n /** URL to get the next set of results if there are any. */\n nextLink?: string;\n}\n\n/** A catalog item version. */\nexport interface CatalogItemVersionOutput {\n /** Unique identifier of the catalog item. */\n catalogItemId?: string;\n /** Name of the catalog item. */\n catalogItemName?: string;\n /** Name of the catalog. */\n catalogName?: string;\n /** The version of the catalog item. */\n version?: string;\n /** A short summary of the catalog item. */\n summary?: string;\n /** A long description of the catalog item. */\n description?: string;\n /** Path to the catalog item entrypoint file. */\n templatePath?: string;\n /** JSON schema defining the parameters object passed to actions */\n parametersSchema?: string;\n /** Input parameters passed to actions */\n parameters?: Array<CatalogItemParameterOutput>;\n /** Custom actions for the catalog item. */\n actions?: Array<CatalogItemActionOutput>;\n /** The default container image to use to execute actions */\n runner?: string;\n /** Defines whether the specific catalog item version can be used. */\n status?: \"Enabled\" | \"Disabled\";\n /** Whether the version is eligible to be the latest version. */\n eligibleForLatestVersion?: boolean;\n}\n\n/** Properties of an Catalog Item parameter */\nexport interface CatalogItemParameterOutput {\n /** Unique ID of the parameter */\n id?: string;\n /** Display name of the parameter */\n name?: string;\n /** Description of the parameter */\n description?: string;\n /** Default value of the parameter */\n default?: Record<string, unknown>;\n /** A string of one of the basic JSON types (number, integer, null, array, object, boolean, string) */\n type?:\n | \"array\"\n | \"boolean\"\n | \"integer\"\n | \"null\"\n | \"number\"\n | \"object\"\n | \"string\";\n /** Whether or not this parameter is read-only. If true, default should have a value. */\n readOnly?: boolean;\n /** Whether or not this parameter is required */\n required?: boolean;\n /** An array of allowed values */\n allowed?: Array<Record<string, unknown>>;\n}\n\n/** An action that can be taken on a catalog item. */\nexport interface CatalogItemActionOutput {\n /** Unique identifier of the action */\n id?: string;\n /** Display name of the action */\n name?: string;\n /** Description of the action */\n description?: string;\n /** JSON schema defining the parameters specific to the custom action */\n parametersSchema?: string;\n /** Input parameters passed to the action */\n parameters?: Array<CatalogItemParameterOutput>;\n /** The action type. */\n type?: \"Custom\" | \"Deploy\" | \"Delete\";\n /** Name of the custom action type */\n typeName?: string;\n /** The container image to use to execute the action */\n runner?: string;\n}\n\n/** Result of the environment type list operation. */\nexport interface EnvironmentTypeListResultOutput {\n /** Current page of results. */\n value: Array<EnvironmentTypeOutput>;\n /** URL to get the next set of results if there are any. */\n nextLink?: string;\n}\n\n/** Properties of an environment type. */\nexport interface EnvironmentTypeOutput {\n /** Name of the environment type */\n name?: string;\n /** Id of a subscription or management group that the environment type will be mapped to. The environment's resources will be deployed into this subscription or management group. */\n deploymentTargetId?: string;\n /** Defines whether this Environment Type can be used in this Project. */\n status?: \"Enabled\" | \"Disabled\";\n}\n"]}
|
|
1
|
+
{"version":3,"file":"outputModels.js","sourceRoot":"","sources":["../../../src/generated/outputModels.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/** Results of the project list operation. */\nexport interface ProjectListResultOutput {\n /** Current page of results. */\n value: Array<ProjectOutput>;\n /** URL to get the next set of results if there are any. */\n nextLink?: string;\n}\n\n/** Project details. */\nexport interface ProjectOutput {\n /** Name of the project */\n name?: string;\n /** Description of the project. */\n description?: string;\n}\n\n/** An error response from the service. */\nexport interface CloudErrorOutput {\n /** Error body */\n error: CloudErrorBodyOutput;\n}\n\n/** An error response from the service. */\nexport interface CloudErrorBodyOutput {\n /** An identifier for the error. Codes are invariant and are intended to be consumed programmatically. */\n code: string;\n /** A message describing the error, intended to be suitable for display in a user interface. */\n message: string;\n /** The target of the particular error. For example, the name of the property in error. */\n target?: string;\n /** A list of additional details about the error. */\n details?: Array<CloudErrorBodyOutput>;\n}\n\n/** The Pool list result */\nexport interface PoolListResultOutput {\n /** Current page of results */\n value: Array<PoolOutput>;\n /** The URL to get the next set of results. */\n nextLink?: string;\n}\n\n/** A pool of Dev Boxes. */\nexport interface PoolOutput {\n /** Pool name */\n name?: string;\n /** Azure region where Dev Boxes in the pool are located */\n location?: string;\n /** The operating system type of Dev Boxes in this pool */\n osType?: \"Windows\";\n /** Hardware settings for the Dev Boxes created in this pool */\n hardwareProfile?: HardwareProfileOutput;\n /** Indicates whether hibernate is enabled/disabled or unknown. */\n hibernateSupport?: \"Disabled\" | \"Enabled\";\n /** Storage settings for Dev Box created in this pool */\n storageProfile?: StorageProfileOutput;\n /** Image settings for Dev Boxes create in this pool */\n imageReference?: ImageReferenceOutput;\n /** Indicates whether owners of Dev Boxes in this pool are local administrators on the Dev Boxes. */\n localAdministrator?: \"Enabled\" | \"Disabled\";\n}\n\n/** Hardware specifications for the Dev Box. */\nexport interface HardwareProfileOutput {\n /** The name of the SKU */\n skuName?: string;\n /** The number of vCPUs available for the Dev Box. */\n vCPUs?: number;\n /** The amount of memory available for the Dev Box. */\n memoryGB?: number;\n}\n\n/** Storage settings for the Dev Box's disks */\nexport interface StorageProfileOutput {\n /** Settings for the operating system disk. */\n osDisk?: OSDiskOutput;\n}\n\n/** Settings for the operating system disk. */\nexport interface OSDiskOutput {\n /** The size of the OS Disk in gigabytes. */\n diskSizeGB?: number;\n}\n\n/** Specifies information about the image used */\nexport interface ImageReferenceOutput {\n /** The name of the image used. */\n name?: string;\n /** The version of the image. */\n version?: string;\n /** The operating system of the image. */\n operatingSystem?: string;\n /** The operating system build number of the image. */\n osBuildNumber?: string;\n /** The datetime that the backing image version was published. */\n publishedDate?: string;\n}\n\n/** The Schedule list result */\nexport interface ScheduleListResultOutput {\n /** Current page of results */\n value: Array<ScheduleOutput>;\n /** The URL to get the next set of results. */\n nextLink?: string;\n}\n\n/** A Schedule to execute action. */\nexport interface ScheduleOutput {\n /** Display name for the Schedule */\n name?: string;\n /** Supported type this scheduled task represents. */\n type?: \"StopDevBox\";\n /** The frequency of this scheduled task. */\n frequency?: \"Daily\";\n /** The target time to trigger the action. The format is HH:MM. */\n time?: string;\n /** The IANA timezone id at which the schedule should execute. */\n timeZone?: string;\n}\n\n/** The Dev Box list result */\nexport interface DevBoxListResultOutput {\n /** The list of DevBox Dev Boxes */\n value: Array<DevBoxOutput>;\n /** The URL to get the next set of results. */\n nextLink?: string;\n}\n\n/** A DevBox Dev Box */\nexport interface DevBoxOutput {\n /** Display name for the Dev Box */\n name?: string;\n /** Name of the project this Dev Box belongs to */\n projectName?: string;\n /** The name of the Dev Box pool this machine belongs to. */\n poolName: string;\n /** Indicates whether hibernate is enabled/disabled or unknown. */\n hibernateSupport?: \"Disabled\" | \"Enabled\";\n /** The current provisioning state of the Dev Box. */\n provisioningState?: string;\n /** The current action state of the Dev Box. This is state is based on previous action performed by user. */\n actionState?: string;\n /** The current power state of the Dev Box. */\n powerState?:\n | \"Unknown\"\n | \"Deallocated\"\n | \"PoweredOff\"\n | \"Running\"\n | \"Hibernated\";\n /** A unique identifier for the Dev Box. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). */\n uniqueId?: string;\n /** Provisioning or action error details. Populated only for error states. */\n errorDetails?: ProvisioningErrorOutput;\n /** Azure region where this Dev Box is located. This will be the same region as the Virtual Network it is attached to. */\n location?: string;\n /** The operating system type of this Dev Box. */\n osType?: \"Windows\";\n /** The AAD object id of the user this Dev Box is assigned to. */\n user?: string;\n /** Information about the Dev Box's hardware resources */\n hardwareProfile?: HardwareProfileOutput;\n /** Storage settings for this Dev Box */\n storageProfile?: StorageProfileOutput;\n /** Information about the image used for this Dev Box */\n imageReference?: ImageReferenceOutput;\n /** Creation time of this Dev Box */\n createdTime?: string;\n /** Indicates whether the owner of the Dev Box is a local administrator. */\n localAdministrator?: \"Enabled\" | \"Disabled\";\n}\n\n/** Error details */\nexport interface ProvisioningErrorOutput {\n /** The error code. */\n code?: string;\n /** The error message. */\n message?: string;\n}\n\n/** Provides RDP connection information */\nexport interface RemoteConnectionOutput {\n /** URL to open a browser based RDP session */\n webUrl?: string;\n /** Link to open a Remote Desktop session */\n rdpConnectionUrl?: string;\n}\n\n/** The Upcoming Action list result */\nexport interface UpcomingActionsListResultOutput {\n /** Current page of results */\n value: Array<UpcomingActionOutput>;\n /** The URL to get the next set of results. */\n nextLink?: string;\n}\n\n/** An upcoming Action. */\nexport interface UpcomingActionOutput {\n /** Uniquely identifies the action. */\n id?: string;\n /** The action that will be taken. */\n actionType?: \"Stop\";\n /** The reason for this action. */\n reason?: \"Schedule\";\n /** The target time the action will be triggered (UTC). */\n scheduledTime?: string;\n /** The original scheduled time for the action (UTC). */\n originalScheduledTime?: string;\n /** The id of the resource which triggered this action */\n sourceId?: string;\n}\n\n/** Results of the environment list operation. */\nexport interface EnvironmentListResultOutput {\n /** Current page of results. */\n value: Array<EnvironmentOutput>;\n /** URL to get the next set of results if there are any. */\n nextLink?: string;\n}\n\n/** Properties of an environment. */\nexport interface EnvironmentOutput extends EnvironmentUpdatePropertiesOutput {\n /** Environment name. */\n name?: string;\n /** Environment type. */\n environmentType: string;\n /** The AAD object id of the owner of this Environment. */\n user?: string;\n /** The provisioning state of the environment. */\n provisioningState?: string;\n /** The identifier of the resource group containing the environment's resources. */\n resourceGroupId?: string;\n}\n\n/** Properties of an environment. These properties can be updated after the resource has been created. */\nexport interface EnvironmentUpdatePropertiesOutput {\n /** Description of the Environment. */\n description?: string;\n /** Name of the catalog. */\n catalogName?: string;\n /** Name of the catalog item. */\n catalogItemName?: string;\n /** Parameters object for the deploy action */\n parameters?: Record<string, unknown>;\n /** Set of supported scheduled tasks to help manage cost. */\n scheduledTasks?: Record<string, ScheduledTaskOutput>;\n /** Key value pairs that will be applied to resources deployed in this environment as tags. */\n tags?: Record<string, string>;\n}\n\n/** Scheduled task to auto-expire an environment. */\nexport interface ScheduledTaskOutput {\n /** Supported type this scheduled task represents. */\n type: \"AutoExpire\";\n /** Indicates whether or not this scheduled task is enabled. */\n enabled?: \"Enabled\" | \"Disabled\";\n /** Date/time by which the environment should expire */\n startTime: string;\n}\n\n/** Results of the catalog item list operation. */\nexport interface CatalogItemListResultOutput {\n /** Current page of results. */\n value: Array<CatalogItemOutput>;\n /** URL to get the next set of results if there are any. */\n nextLink?: string;\n}\n\n/** A catalog item. */\nexport interface CatalogItemOutput {\n /** Unique identifier of the catalog item. */\n id?: string;\n /** Name of the catalog item. */\n name?: string;\n /** Name of the catalog. */\n catalogName?: string;\n}\n\n/** Results of the catalog item list operation. */\nexport interface CatalogItemVersionListResultOutput {\n /** Current page of results. */\n value: Array<CatalogItemVersionOutput>;\n /** URL to get the next set of results if there are any. */\n nextLink?: string;\n}\n\n/** A catalog item version. */\nexport interface CatalogItemVersionOutput {\n /** Unique identifier of the catalog item. */\n catalogItemId?: string;\n /** Name of the catalog item. */\n catalogItemName?: string;\n /** Name of the catalog. */\n catalogName?: string;\n /** The version of the catalog item. */\n version?: string;\n /** A short summary of the catalog item. */\n summary?: string;\n /** A long description of the catalog item. */\n description?: string;\n /** Path to the catalog item entrypoint file. */\n templatePath?: string;\n /** JSON schema defining the parameters object passed to actions */\n parametersSchema?: string;\n /** Input parameters passed to actions */\n parameters?: Array<CatalogItemParameterOutput>;\n /** Custom actions for the catalog item. */\n actions?: Array<CatalogItemActionOutput>;\n /** The default container image to use to execute actions */\n runner?: string;\n /** Defines whether the specific catalog item version can be used. */\n status?: \"Enabled\" | \"Disabled\";\n /** Whether the version is eligible to be the latest version. */\n eligibleForLatestVersion?: boolean;\n}\n\n/** Properties of an Catalog Item parameter */\nexport interface CatalogItemParameterOutput {\n /** Unique ID of the parameter */\n id?: string;\n /** Display name of the parameter */\n name?: string;\n /** Description of the parameter */\n description?: string;\n /** Default value of the parameter */\n default?: Record<string, unknown>;\n /** A string of one of the basic JSON types (number, integer, null, array, object, boolean, string) */\n type?:\n | \"array\"\n | \"boolean\"\n | \"integer\"\n | \"null\"\n | \"number\"\n | \"object\"\n | \"string\";\n /** Whether or not this parameter is read-only. If true, default should have a value. */\n readOnly?: boolean;\n /** Whether or not this parameter is required */\n required?: boolean;\n /** An array of allowed values */\n allowed?: Array<Record<string, unknown>>;\n}\n\n/** An action that can be taken on a catalog item. */\nexport interface CatalogItemActionOutput {\n /** Unique identifier of the action */\n id?: string;\n /** Display name of the action */\n name?: string;\n /** Description of the action */\n description?: string;\n /** JSON schema defining the parameters specific to the custom action */\n parametersSchema?: string;\n /** Input parameters passed to the action */\n parameters?: Array<CatalogItemParameterOutput>;\n /** The action type. */\n type?: \"Custom\" | \"Deploy\" | \"Delete\";\n /** Name of the custom action type */\n typeName?: string;\n /** The container image to use to execute the action */\n runner?: string;\n}\n\n/** Result of the environment type list operation. */\nexport interface EnvironmentTypeListResultOutput {\n /** Current page of results. */\n value: Array<EnvironmentTypeOutput>;\n /** URL to get the next set of results if there are any. */\n nextLink?: string;\n}\n\n/** Properties of an environment type. */\nexport interface EnvironmentTypeOutput {\n /** Name of the environment type */\n name?: string;\n /** Id of a subscription or management group that the environment type will be mapped to. The environment's resources will be deployed into this subscription or management group. */\n deploymentTargetId?: string;\n /** Defines whether this Environment Type can be used in this Project. */\n status?: \"Enabled\" | \"Disabled\";\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/generated/parameters.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { RequestParameters } from \"@azure-rest/core-client\";\nimport {\n DevBox,\n Environment,\n EnvironmentUpdateProperties,\n ActionRequest\n} from \"./models\";\n\nexport interface DevCenterListProjectsQueryParamProperties {\n /** An OData filter clause to apply to the operation. */\n filter?: string;\n /** The maximum number of resources to return from the operation. Example: 'top=10'. */\n top?: number;\n}\n\nexport interface DevCenterListProjectsQueryParam {\n queryParameters?: DevCenterListProjectsQueryParamProperties;\n}\n\nexport type DevCenterListProjectsParameters = DevCenterListProjectsQueryParam &\n RequestParameters;\nexport type DevCenterGetProjectParameters = RequestParameters;\n\nexport interface DevCenterListAllDevBoxesQueryParamProperties {\n /** An OData filter clause to apply to the operation. */\n filter?: string;\n /** The maximum number of resources to return from the operation. Example: 'top=10'. */\n top?: number;\n}\n\nexport interface DevCenterListAllDevBoxesQueryParam {\n queryParameters?: DevCenterListAllDevBoxesQueryParamProperties;\n}\n\nexport type DevCenterListAllDevBoxesParameters = DevCenterListAllDevBoxesQueryParam &\n RequestParameters;\n\nexport interface DevCenterListAllDevBoxesByUserQueryParamProperties {\n /** An OData filter clause to apply to the operation. */\n filter?: string;\n /** The maximum number of resources to return from the operation. Example: 'top=10'. */\n top?: number;\n}\n\nexport interface DevCenterListAllDevBoxesByUserQueryParam {\n queryParameters?: DevCenterListAllDevBoxesByUserQueryParamProperties;\n}\n\nexport type DevCenterListAllDevBoxesByUserParameters = DevCenterListAllDevBoxesByUserQueryParam &\n RequestParameters;\n\nexport interface DevBoxesListPoolsQueryParamProperties {\n /** The maximum number of resources to return from the operation. Example: 'top=10'. */\n top?: number;\n /** An OData filter clause to apply to the operation. */\n filter?: string;\n}\n\nexport interface DevBoxesListPoolsQueryParam {\n queryParameters?: DevBoxesListPoolsQueryParamProperties;\n}\n\nexport type DevBoxesListPoolsParameters = DevBoxesListPoolsQueryParam &\n RequestParameters;\nexport type DevBoxesGetPoolParameters = RequestParameters;\n\nexport interface DevBoxesListSchedulesByPoolQueryParamProperties {\n /** The maximum number of resources to return from the operation. Example: 'top=10'. */\n top?: number;\n /** An OData filter clause to apply to the operation. */\n filter?: string;\n}\n\nexport interface DevBoxesListSchedulesByPoolQueryParam {\n queryParameters?: DevBoxesListSchedulesByPoolQueryParamProperties;\n}\n\nexport type DevBoxesListSchedulesByPoolParameters = DevBoxesListSchedulesByPoolQueryParam &\n RequestParameters;\nexport type DevBoxesGetScheduleByPoolParameters = RequestParameters;\n\nexport interface DevBoxesListDevBoxesByUserQueryParamProperties {\n /** An OData filter clause to apply to the operation. */\n filter?: string;\n /** The maximum number of resources to return from the operation. Example: 'top=10'. */\n top?: number;\n}\n\nexport interface DevBoxesListDevBoxesByUserQueryParam {\n queryParameters?: DevBoxesListDevBoxesByUserQueryParamProperties;\n}\n\nexport type DevBoxesListDevBoxesByUserParameters = DevBoxesListDevBoxesByUserQueryParam &\n RequestParameters;\nexport type DevBoxesGetDevBoxByUserParameters = RequestParameters;\n\nexport interface DevBoxesCreateDevBoxBodyParam {\n /** Represents a environment. */\n body: DevBox;\n}\n\nexport interface DevBoxesCreateDevBoxMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type DevBoxesCreateDevBoxParameters = DevBoxesCreateDevBoxMediaTypesParam &\n DevBoxesCreateDevBoxBodyParam &\n RequestParameters;\nexport type DevBoxesDeleteDevBoxParameters = RequestParameters;\nexport type DevBoxesStartDevBoxParameters = RequestParameters;\nexport type DevBoxesStopDevBoxParameters = RequestParameters;\nexport type DevBoxesGetRemoteConnectionParameters = RequestParameters;\n\nexport interface EnvironmentsListEnvironmentsQueryParamProperties {\n /** The maximum number of resources to return from the operation. Example: 'top=10'. */\n top?: number;\n}\n\nexport interface EnvironmentsListEnvironmentsQueryParam {\n queryParameters?: EnvironmentsListEnvironmentsQueryParamProperties;\n}\n\nexport type EnvironmentsListEnvironmentsParameters = EnvironmentsListEnvironmentsQueryParam &\n RequestParameters;\n\nexport interface EnvironmentsListEnvironmentsByUserQueryParamProperties {\n /** The maximum number of resources to return from the operation. Example: 'top=10'. */\n top?: number;\n}\n\nexport interface EnvironmentsListEnvironmentsByUserQueryParam {\n queryParameters?: EnvironmentsListEnvironmentsByUserQueryParamProperties;\n}\n\nexport type EnvironmentsListEnvironmentsByUserParameters = EnvironmentsListEnvironmentsByUserQueryParam &\n RequestParameters;\nexport type EnvironmentsGetEnvironmentByUserParameters = RequestParameters;\n\nexport interface EnvironmentsCreateOrUpdateEnvironmentBodyParam {\n /** Represents a environment. */\n body: Environment;\n}\n\nexport interface EnvironmentsCreateOrUpdateEnvironmentMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type EnvironmentsCreateOrUpdateEnvironmentParameters = EnvironmentsCreateOrUpdateEnvironmentMediaTypesParam &\n EnvironmentsCreateOrUpdateEnvironmentBodyParam &\n RequestParameters;\n\nexport interface EnvironmentsUpdateEnvironmentBodyParam {\n /** Updatable environment properties. */\n body: EnvironmentUpdateProperties;\n}\n\nexport interface EnvironmentsUpdateEnvironmentMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type EnvironmentsUpdateEnvironmentParameters = EnvironmentsUpdateEnvironmentMediaTypesParam &\n EnvironmentsUpdateEnvironmentBodyParam &\n RequestParameters;\nexport type EnvironmentsDeleteEnvironmentParameters = RequestParameters;\n\nexport interface EnvironmentsDeployEnvironmentActionBodyParam {\n /** Action properties overriding the environment's default values. */\n body: ActionRequest;\n}\n\nexport interface EnvironmentsDeployEnvironmentActionMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type EnvironmentsDeployEnvironmentActionParameters = EnvironmentsDeployEnvironmentActionMediaTypesParam &\n EnvironmentsDeployEnvironmentActionBodyParam &\n RequestParameters;\n\nexport interface
|
|
1
|
+
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/generated/parameters.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { RequestParameters } from \"@azure-rest/core-client\";\nimport {\n DevBox,\n Environment,\n EnvironmentUpdateProperties,\n ActionRequest\n} from \"./models\";\n\nexport interface DevCenterListProjectsQueryParamProperties {\n /** An OData filter clause to apply to the operation. */\n filter?: string;\n /** The maximum number of resources to return from the operation. Example: 'top=10'. */\n top?: number;\n}\n\nexport interface DevCenterListProjectsQueryParam {\n queryParameters?: DevCenterListProjectsQueryParamProperties;\n}\n\nexport type DevCenterListProjectsParameters = DevCenterListProjectsQueryParam &\n RequestParameters;\nexport type DevCenterGetProjectParameters = RequestParameters;\n\nexport interface DevCenterListAllDevBoxesQueryParamProperties {\n /** An OData filter clause to apply to the operation. */\n filter?: string;\n /** The maximum number of resources to return from the operation. Example: 'top=10'. */\n top?: number;\n}\n\nexport interface DevCenterListAllDevBoxesQueryParam {\n queryParameters?: DevCenterListAllDevBoxesQueryParamProperties;\n}\n\nexport type DevCenterListAllDevBoxesParameters = DevCenterListAllDevBoxesQueryParam &\n RequestParameters;\n\nexport interface DevCenterListAllDevBoxesByUserQueryParamProperties {\n /** An OData filter clause to apply to the operation. */\n filter?: string;\n /** The maximum number of resources to return from the operation. Example: 'top=10'. */\n top?: number;\n}\n\nexport interface DevCenterListAllDevBoxesByUserQueryParam {\n queryParameters?: DevCenterListAllDevBoxesByUserQueryParamProperties;\n}\n\nexport type DevCenterListAllDevBoxesByUserParameters = DevCenterListAllDevBoxesByUserQueryParam &\n RequestParameters;\n\nexport interface DevBoxesListPoolsQueryParamProperties {\n /** The maximum number of resources to return from the operation. Example: 'top=10'. */\n top?: number;\n /** An OData filter clause to apply to the operation. */\n filter?: string;\n}\n\nexport interface DevBoxesListPoolsQueryParam {\n queryParameters?: DevBoxesListPoolsQueryParamProperties;\n}\n\nexport type DevBoxesListPoolsParameters = DevBoxesListPoolsQueryParam &\n RequestParameters;\nexport type DevBoxesGetPoolParameters = RequestParameters;\n\nexport interface DevBoxesListSchedulesByPoolQueryParamProperties {\n /** The maximum number of resources to return from the operation. Example: 'top=10'. */\n top?: number;\n /** An OData filter clause to apply to the operation. */\n filter?: string;\n}\n\nexport interface DevBoxesListSchedulesByPoolQueryParam {\n queryParameters?: DevBoxesListSchedulesByPoolQueryParamProperties;\n}\n\nexport type DevBoxesListSchedulesByPoolParameters = DevBoxesListSchedulesByPoolQueryParam &\n RequestParameters;\nexport type DevBoxesGetScheduleByPoolParameters = RequestParameters;\n\nexport interface DevBoxesListDevBoxesByUserQueryParamProperties {\n /** An OData filter clause to apply to the operation. */\n filter?: string;\n /** The maximum number of resources to return from the operation. Example: 'top=10'. */\n top?: number;\n}\n\nexport interface DevBoxesListDevBoxesByUserQueryParam {\n queryParameters?: DevBoxesListDevBoxesByUserQueryParamProperties;\n}\n\nexport type DevBoxesListDevBoxesByUserParameters = DevBoxesListDevBoxesByUserQueryParam &\n RequestParameters;\nexport type DevBoxesGetDevBoxByUserParameters = RequestParameters;\n\nexport interface DevBoxesCreateDevBoxBodyParam {\n /** Represents a environment. */\n body: DevBox;\n}\n\nexport interface DevBoxesCreateDevBoxMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type DevBoxesCreateDevBoxParameters = DevBoxesCreateDevBoxMediaTypesParam &\n DevBoxesCreateDevBoxBodyParam &\n RequestParameters;\nexport type DevBoxesDeleteDevBoxParameters = RequestParameters;\nexport type DevBoxesStartDevBoxParameters = RequestParameters;\n\nexport interface DevBoxesStopDevBoxQueryParamProperties {\n /** Optional parameter to hibernate the dev box. */\n hibernate?: boolean;\n}\n\nexport interface DevBoxesStopDevBoxQueryParam {\n queryParameters?: DevBoxesStopDevBoxQueryParamProperties;\n}\n\nexport type DevBoxesStopDevBoxParameters = DevBoxesStopDevBoxQueryParam &\n RequestParameters;\nexport type DevBoxesGetRemoteConnectionParameters = RequestParameters;\nexport type DevBoxesListUpcomingActionsParameters = RequestParameters;\nexport type DevBoxesGetUpcomingActionParameters = RequestParameters;\nexport type DevBoxesSkipUpcomingActionParameters = RequestParameters;\n\nexport interface DevBoxesDelayUpcomingActionQueryParamProperties {\n /** The delayed action time (UTC). */\n delayUntil: Date | string;\n}\n\nexport interface DevBoxesDelayUpcomingActionQueryParam {\n queryParameters: DevBoxesDelayUpcomingActionQueryParamProperties;\n}\n\nexport type DevBoxesDelayUpcomingActionParameters = DevBoxesDelayUpcomingActionQueryParam &\n RequestParameters;\n\nexport interface EnvironmentsListEnvironmentsQueryParamProperties {\n /** The maximum number of resources to return from the operation. Example: 'top=10'. */\n top?: number;\n}\n\nexport interface EnvironmentsListEnvironmentsQueryParam {\n queryParameters?: EnvironmentsListEnvironmentsQueryParamProperties;\n}\n\nexport type EnvironmentsListEnvironmentsParameters = EnvironmentsListEnvironmentsQueryParam &\n RequestParameters;\n\nexport interface EnvironmentsListEnvironmentsByUserQueryParamProperties {\n /** The maximum number of resources to return from the operation. Example: 'top=10'. */\n top?: number;\n}\n\nexport interface EnvironmentsListEnvironmentsByUserQueryParam {\n queryParameters?: EnvironmentsListEnvironmentsByUserQueryParamProperties;\n}\n\nexport type EnvironmentsListEnvironmentsByUserParameters = EnvironmentsListEnvironmentsByUserQueryParam &\n RequestParameters;\nexport type EnvironmentsGetEnvironmentByUserParameters = RequestParameters;\n\nexport interface EnvironmentsCreateOrUpdateEnvironmentBodyParam {\n /** Represents a environment. */\n body: Environment;\n}\n\nexport interface EnvironmentsCreateOrUpdateEnvironmentMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type EnvironmentsCreateOrUpdateEnvironmentParameters = EnvironmentsCreateOrUpdateEnvironmentMediaTypesParam &\n EnvironmentsCreateOrUpdateEnvironmentBodyParam &\n RequestParameters;\n\nexport interface EnvironmentsUpdateEnvironmentBodyParam {\n /** Updatable environment properties. */\n body: EnvironmentUpdateProperties;\n}\n\nexport interface EnvironmentsUpdateEnvironmentMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type EnvironmentsUpdateEnvironmentParameters = EnvironmentsUpdateEnvironmentMediaTypesParam &\n EnvironmentsUpdateEnvironmentBodyParam &\n RequestParameters;\nexport type EnvironmentsDeleteEnvironmentParameters = RequestParameters;\n\nexport interface EnvironmentsDeployEnvironmentActionBodyParam {\n /** Action properties overriding the environment's default values. */\n body: ActionRequest;\n}\n\nexport interface EnvironmentsDeployEnvironmentActionMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type EnvironmentsDeployEnvironmentActionParameters = EnvironmentsDeployEnvironmentActionMediaTypesParam &\n EnvironmentsDeployEnvironmentActionBodyParam &\n RequestParameters;\n\nexport interface EnvironmentsCustomEnvironmentActionBodyParam {\n /** Action properties overriding the environment's default values. */\n body: ActionRequest;\n}\n\nexport interface EnvironmentsCustomEnvironmentActionMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type EnvironmentsCustomEnvironmentActionParameters = EnvironmentsCustomEnvironmentActionMediaTypesParam &\n EnvironmentsCustomEnvironmentActionBodyParam &\n RequestParameters;\n\nexport interface EnvironmentsListCatalogItemsQueryParamProperties {\n /** The maximum number of resources to return from the operation. Example: 'top=10'. */\n top?: number;\n}\n\nexport interface EnvironmentsListCatalogItemsQueryParam {\n queryParameters?: EnvironmentsListCatalogItemsQueryParamProperties;\n}\n\nexport type EnvironmentsListCatalogItemsParameters = EnvironmentsListCatalogItemsQueryParam &\n RequestParameters;\nexport type EnvironmentsGetCatalogItemParameters = RequestParameters;\n\nexport interface EnvironmentsListCatalogItemVersionsQueryParamProperties {\n /** The maximum number of resources to return from the operation. Example: 'top=10'. */\n top?: number;\n}\n\nexport interface EnvironmentsListCatalogItemVersionsQueryParam {\n queryParameters?: EnvironmentsListCatalogItemVersionsQueryParamProperties;\n}\n\nexport type EnvironmentsListCatalogItemVersionsParameters = EnvironmentsListCatalogItemVersionsQueryParam &\n RequestParameters;\nexport type EnvironmentsGetCatalogItemVersionParameters = RequestParameters;\n\nexport interface EnvironmentsListEnvironmentTypesQueryParamProperties {\n /** The maximum number of resources to return from the operation. Example: 'top=10'. */\n top?: number;\n}\n\nexport interface EnvironmentsListEnvironmentTypesQueryParam {\n queryParameters?: EnvironmentsListEnvironmentTypesQueryParamProperties;\n}\n\nexport type EnvironmentsListEnvironmentTypesParameters = EnvironmentsListEnvironmentTypesQueryParam &\n RequestParameters;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responses.js","sourceRoot":"","sources":["../../../src/generated/responses.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { RawHttpHeaders } from \"@azure/core-rest-pipeline\";\nimport { HttpResponse } from \"@azure-rest/core-client\";\nimport {\n ProjectListResultOutput,\n CloudErrorOutput,\n ProjectOutput,\n DevBoxListResultOutput,\n PoolListResultOutput,\n PoolOutput,\n ScheduleListResultOutput,\n ScheduleOutput,\n DevBoxOutput,\n RemoteConnectionOutput,\n EnvironmentListResultOutput,\n EnvironmentOutput,\n ArtifactListResultOutput,\n CatalogItemListResultOutput,\n CatalogItemOutput,\n CatalogItemVersionListResultOutput,\n CatalogItemVersionOutput,\n EnvironmentTypeListResultOutput\n} from \"./outputModels\";\n\n/** Lists all projects. */\nexport interface DevCenterListProjects200Response extends HttpResponse {\n status: \"200\";\n body: ProjectListResultOutput;\n}\n\n/** Lists all projects. */\nexport interface DevCenterListProjectsDefaultResponse extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n}\n\n/** Gets a project. */\nexport interface DevCenterGetProject200Response extends HttpResponse {\n status: \"200\";\n body: ProjectOutput;\n}\n\n/** Gets a project. */\nexport interface DevCenterGetProjectDefaultResponse extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n}\n\n/** Lists Dev Boxes that the caller has access to in the DevCenter. */\nexport interface DevCenterListAllDevBoxes200Response extends HttpResponse {\n status: \"200\";\n body: DevBoxListResultOutput;\n}\n\nexport interface DevCenterListAllDevBoxesDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Lists Dev Boxes that the caller has access to in the DevCenter. */\nexport interface DevCenterListAllDevBoxesDefaultResponse extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevCenterListAllDevBoxesDefaultHeaders;\n}\n\n/** Lists Dev Boxes in the Dev Center for a particular user. */\nexport interface DevCenterListAllDevBoxesByUser200Response\n extends HttpResponse {\n status: \"200\";\n body: DevBoxListResultOutput;\n}\n\nexport interface DevCenterListAllDevBoxesByUserDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Lists Dev Boxes in the Dev Center for a particular user. */\nexport interface DevCenterListAllDevBoxesByUserDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevCenterListAllDevBoxesByUserDefaultHeaders;\n}\n\n/** Lists available pools */\nexport interface DevBoxesListPools200Response extends HttpResponse {\n status: \"200\";\n body: PoolListResultOutput;\n}\n\nexport interface DevBoxesListPoolsDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Lists available pools */\nexport interface DevBoxesListPoolsDefaultResponse extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevBoxesListPoolsDefaultHeaders;\n}\n\n/** Gets a pool */\nexport interface DevBoxesGetPool200Response extends HttpResponse {\n status: \"200\";\n body: PoolOutput;\n}\n\nexport interface DevBoxesGetPoolDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Gets a pool */\nexport interface DevBoxesGetPoolDefaultResponse extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevBoxesGetPoolDefaultHeaders;\n}\n\n/** Lists available schedules for a pool. */\nexport interface DevBoxesListSchedulesByPool200Response extends HttpResponse {\n status: \"200\";\n body: ScheduleListResultOutput;\n}\n\nexport interface DevBoxesListSchedulesByPoolDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Lists available schedules for a pool. */\nexport interface DevBoxesListSchedulesByPoolDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevBoxesListSchedulesByPoolDefaultHeaders;\n}\n\n/** Gets a schedule. */\nexport interface DevBoxesGetScheduleByPool200Response extends HttpResponse {\n status: \"200\";\n body: ScheduleOutput;\n}\n\nexport interface DevBoxesGetScheduleByPoolDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Gets a schedule. */\nexport interface DevBoxesGetScheduleByPoolDefaultResponse extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevBoxesGetScheduleByPoolDefaultHeaders;\n}\n\n/** Lists Dev Boxes in the project for a particular user. */\nexport interface DevBoxesListDevBoxesByUser200Response extends HttpResponse {\n status: \"200\";\n body: DevBoxListResultOutput;\n}\n\nexport interface DevBoxesListDevBoxesByUserDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Lists Dev Boxes in the project for a particular user. */\nexport interface DevBoxesListDevBoxesByUserDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevBoxesListDevBoxesByUserDefaultHeaders;\n}\n\n/** Gets a Dev Box */\nexport interface DevBoxesGetDevBoxByUser200Response extends HttpResponse {\n status: \"200\";\n body: DevBoxOutput;\n}\n\nexport interface DevBoxesGetDevBoxByUserDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Gets a Dev Box */\nexport interface DevBoxesGetDevBoxByUserDefaultResponse extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevBoxesGetDevBoxByUserDefaultHeaders;\n}\n\n/** Creates or updates a Dev Box. */\nexport interface DevBoxesCreateDevBox200Response extends HttpResponse {\n status: \"200\";\n body: DevBoxOutput;\n}\n\n/** Creates or updates a Dev Box. */\nexport interface DevBoxesCreateDevBox201Response extends HttpResponse {\n status: \"201\";\n body: DevBoxOutput;\n}\n\nexport interface DevBoxesCreateDevBoxDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Creates or updates a Dev Box. */\nexport interface DevBoxesCreateDevBoxDefaultResponse extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevBoxesCreateDevBoxDefaultHeaders;\n}\n\n/** Deletes a Dev Box. */\nexport interface DevBoxesDeleteDevBox200Response extends HttpResponse {\n status: \"200\";\n body: DevBoxOutput;\n}\n\nexport interface DevBoxesDeleteDevBox202Headers {\n /** URL to query for status of the operation. */\n \"operation-location\"?: string;\n}\n\n/** Deletes a Dev Box. */\nexport interface DevBoxesDeleteDevBox202Response extends HttpResponse {\n status: \"202\";\n body: Record<string, unknown>;\n headers: RawHttpHeaders & DevBoxesDeleteDevBox202Headers;\n}\n\n/** Deletes a Dev Box. */\nexport interface DevBoxesDeleteDevBox204Response extends HttpResponse {\n status: \"204\";\n body: Record<string, unknown>;\n}\n\nexport interface DevBoxesDeleteDevBoxDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Deletes a Dev Box. */\nexport interface DevBoxesDeleteDevBoxDefaultResponse extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevBoxesDeleteDevBoxDefaultHeaders;\n}\n\n/** Starts a Dev Box */\nexport interface DevBoxesStartDevBox200Response extends HttpResponse {\n status: \"200\";\n body: DevBoxOutput;\n}\n\nexport interface DevBoxesStartDevBox202Headers {\n /** URL to query for status of the operation. */\n \"operation-location\"?: string;\n}\n\n/** Starts a Dev Box */\nexport interface DevBoxesStartDevBox202Response extends HttpResponse {\n status: \"202\";\n body: Record<string, unknown>;\n headers: RawHttpHeaders & DevBoxesStartDevBox202Headers;\n}\n\nexport interface DevBoxesStartDevBoxDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Starts a Dev Box */\nexport interface DevBoxesStartDevBoxDefaultResponse extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevBoxesStartDevBoxDefaultHeaders;\n}\n\n/** Stops a Dev Box */\nexport interface DevBoxesStopDevBox200Response extends HttpResponse {\n status: \"200\";\n body: DevBoxOutput;\n}\n\nexport interface DevBoxesStopDevBox202Headers {\n /** URL to query for status of the operation. */\n \"operation-location\"?: string;\n}\n\n/** Stops a Dev Box */\nexport interface DevBoxesStopDevBox202Response extends HttpResponse {\n status: \"202\";\n body: Record<string, unknown>;\n headers: RawHttpHeaders & DevBoxesStopDevBox202Headers;\n}\n\nexport interface DevBoxesStopDevBoxDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Stops a Dev Box */\nexport interface DevBoxesStopDevBoxDefaultResponse extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevBoxesStopDevBoxDefaultHeaders;\n}\n\n/** Gets RDP Connection info */\nexport interface DevBoxesGetRemoteConnection200Response extends HttpResponse {\n status: \"200\";\n body: RemoteConnectionOutput;\n}\n\nexport interface DevBoxesGetRemoteConnectionDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Gets RDP Connection info */\nexport interface DevBoxesGetRemoteConnectionDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevBoxesGetRemoteConnectionDefaultHeaders;\n}\n\n/** Lists the environments for a project. */\nexport interface EnvironmentsListEnvironments200Response extends HttpResponse {\n status: \"200\";\n body: EnvironmentListResultOutput;\n}\n\nexport interface EnvironmentsListEnvironmentsDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Lists the environments for a project. */\nexport interface EnvironmentsListEnvironmentsDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & EnvironmentsListEnvironmentsDefaultHeaders;\n}\n\n/** Lists the environments for a project and user. */\nexport interface EnvironmentsListEnvironmentsByUser200Response\n extends HttpResponse {\n status: \"200\";\n body: EnvironmentListResultOutput;\n}\n\nexport interface EnvironmentsListEnvironmentsByUserDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Lists the environments for a project and user. */\nexport interface EnvironmentsListEnvironmentsByUserDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & EnvironmentsListEnvironmentsByUserDefaultHeaders;\n}\n\n/** Gets an environment */\nexport interface EnvironmentsGetEnvironmentByUser200Response\n extends HttpResponse {\n status: \"200\";\n body: EnvironmentOutput;\n}\n\nexport interface EnvironmentsGetEnvironmentByUserDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Gets an environment */\nexport interface EnvironmentsGetEnvironmentByUserDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & EnvironmentsGetEnvironmentByUserDefaultHeaders;\n}\n\n/** Creates or updates an environment. */\nexport interface EnvironmentsCreateOrUpdateEnvironment200Response\n extends HttpResponse {\n status: \"200\";\n body: EnvironmentOutput;\n}\n\nexport interface EnvironmentsCreateOrUpdateEnvironment201Headers {\n /** URL to query for status of the operation. */\n \"operation-location\"?: string;\n}\n\n/** Creates or updates an environment. */\nexport interface EnvironmentsCreateOrUpdateEnvironment201Response\n extends HttpResponse {\n status: \"201\";\n body: EnvironmentOutput;\n headers: RawHttpHeaders & EnvironmentsCreateOrUpdateEnvironment201Headers;\n}\n\nexport interface EnvironmentsCreateOrUpdateEnvironmentDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Creates or updates an environment. */\nexport interface EnvironmentsCreateOrUpdateEnvironmentDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & EnvironmentsCreateOrUpdateEnvironmentDefaultHeaders;\n}\n\n/** Partially updates an environment */\nexport interface EnvironmentsUpdateEnvironment200Response extends HttpResponse {\n status: \"200\";\n body: EnvironmentOutput;\n}\n\nexport interface EnvironmentsUpdateEnvironmentDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Partially updates an environment */\nexport interface EnvironmentsUpdateEnvironmentDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & EnvironmentsUpdateEnvironmentDefaultHeaders;\n}\n\n/** Deletes an environment and all it's associated resources */\nexport interface EnvironmentsDeleteEnvironment200Response extends HttpResponse {\n status: \"200\";\n body: Record<string, unknown>;\n}\n\nexport interface EnvironmentsDeleteEnvironment202Headers {\n /** URL to query for status of the operation. */\n \"operation-location\"?: string;\n}\n\n/** Deletes an environment and all it's associated resources */\nexport interface EnvironmentsDeleteEnvironment202Response extends HttpResponse {\n status: \"202\";\n body: Record<string, unknown>;\n headers: RawHttpHeaders & EnvironmentsDeleteEnvironment202Headers;\n}\n\n/** Deletes an environment and all it's associated resources */\nexport interface EnvironmentsDeleteEnvironment204Response extends HttpResponse {\n status: \"204\";\n body: Record<string, unknown>;\n}\n\nexport interface EnvironmentsDeleteEnvironmentDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Deletes an environment and all it's associated resources */\nexport interface EnvironmentsDeleteEnvironmentDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & EnvironmentsDeleteEnvironmentDefaultHeaders;\n}\n\n/** Executes a deploy action */\nexport interface EnvironmentsDeployEnvironmentAction200Response\n extends HttpResponse {\n status: \"200\";\n body: Record<string, unknown>;\n}\n\nexport interface EnvironmentsDeployEnvironmentAction202Headers {\n /** URL to query for status of the operation. */\n \"operation-location\"?: string;\n}\n\n/** Executes a deploy action */\nexport interface EnvironmentsDeployEnvironmentAction202Response\n extends HttpResponse {\n status: \"202\";\n body: Record<string, unknown>;\n headers: RawHttpHeaders & EnvironmentsDeployEnvironmentAction202Headers;\n}\n\nexport interface EnvironmentsDeployEnvironmentActionDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Executes a deploy action */\nexport interface EnvironmentsDeployEnvironmentActionDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & EnvironmentsDeployEnvironmentActionDefaultHeaders;\n}\n\n/** Executes a delete action */\nexport interface EnvironmentsDeleteEnvironmentAction200Response\n extends HttpResponse {\n status: \"200\";\n body: Record<string, unknown>;\n}\n\nexport interface EnvironmentsDeleteEnvironmentAction202Headers {\n /** URL to query for status of the operation. */\n \"operation-location\"?: string;\n}\n\n/** Executes a delete action */\nexport interface EnvironmentsDeleteEnvironmentAction202Response\n extends HttpResponse {\n status: \"202\";\n body: Record<string, unknown>;\n headers: RawHttpHeaders & EnvironmentsDeleteEnvironmentAction202Headers;\n}\n\nexport interface EnvironmentsDeleteEnvironmentActionDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Executes a delete action */\nexport interface EnvironmentsDeleteEnvironmentActionDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & EnvironmentsDeleteEnvironmentActionDefaultHeaders;\n}\n\n/** Executes a custom action */\nexport interface EnvironmentsCustomEnvironmentAction200Response\n extends HttpResponse {\n status: \"200\";\n body: Record<string, unknown>;\n}\n\nexport interface EnvironmentsCustomEnvironmentAction202Headers {\n /** URL to query for status of the operation. */\n \"operation-location\"?: string;\n}\n\n/** Executes a custom action */\nexport interface EnvironmentsCustomEnvironmentAction202Response\n extends HttpResponse {\n status: \"202\";\n body: Record<string, unknown>;\n headers: RawHttpHeaders & EnvironmentsCustomEnvironmentAction202Headers;\n}\n\nexport interface EnvironmentsCustomEnvironmentActionDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Executes a custom action */\nexport interface EnvironmentsCustomEnvironmentActionDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & EnvironmentsCustomEnvironmentActionDefaultHeaders;\n}\n\n/** Lists the artifacts for an environment */\nexport interface EnvironmentsListArtifactsByEnvironment200Response\n extends HttpResponse {\n status: \"200\";\n body: ArtifactListResultOutput;\n}\n\nexport interface EnvironmentsListArtifactsByEnvironmentDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Lists the artifacts for an environment */\nexport interface EnvironmentsListArtifactsByEnvironmentDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders &\n EnvironmentsListArtifactsByEnvironmentDefaultHeaders;\n}\n\n/** Lists the artifacts for an environment at a specified path, or returns the file at the path. */\nexport interface EnvironmentsListArtifactsByEnvironmentAndPath200Response\n extends HttpResponse {\n status: \"200\";\n body: ArtifactListResultOutput;\n}\n\nexport interface EnvironmentsListArtifactsByEnvironmentAndPathDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Lists the artifacts for an environment at a specified path, or returns the file at the path. */\nexport interface EnvironmentsListArtifactsByEnvironmentAndPathDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders &\n EnvironmentsListArtifactsByEnvironmentAndPathDefaultHeaders;\n}\n\n/** Lists latest version of all catalog items available for a project. */\nexport interface EnvironmentsListCatalogItems200Response extends HttpResponse {\n status: \"200\";\n body: CatalogItemListResultOutput;\n}\n\nexport interface EnvironmentsListCatalogItemsDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Lists latest version of all catalog items available for a project. */\nexport interface EnvironmentsListCatalogItemsDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & EnvironmentsListCatalogItemsDefaultHeaders;\n}\n\n/** Get a catalog item from a project. */\nexport interface EnvironmentsGetCatalogItem200Response extends HttpResponse {\n status: \"200\";\n body: CatalogItemOutput;\n}\n\nexport interface EnvironmentsGetCatalogItemDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Get a catalog item from a project. */\nexport interface EnvironmentsGetCatalogItemDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & EnvironmentsGetCatalogItemDefaultHeaders;\n}\n\n/** List all versions of a catalog item from a project. */\nexport interface EnvironmentsListCatalogItemVersions200Response\n extends HttpResponse {\n status: \"200\";\n body: CatalogItemVersionListResultOutput;\n}\n\nexport interface EnvironmentsListCatalogItemVersionsDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** List all versions of a catalog item from a project. */\nexport interface EnvironmentsListCatalogItemVersionsDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & EnvironmentsListCatalogItemVersionsDefaultHeaders;\n}\n\n/** Get a specific catalog item version from a project. */\nexport interface EnvironmentsGetCatalogItemVersion200Response\n extends HttpResponse {\n status: \"200\";\n body: CatalogItemVersionOutput;\n}\n\nexport interface EnvironmentsGetCatalogItemVersionDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Get a specific catalog item version from a project. */\nexport interface EnvironmentsGetCatalogItemVersionDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & EnvironmentsGetCatalogItemVersionDefaultHeaders;\n}\n\n/** Lists all environment types configured for a project. */\nexport interface EnvironmentsListEnvironmentTypes200Response\n extends HttpResponse {\n status: \"200\";\n body: EnvironmentTypeListResultOutput;\n}\n\nexport interface EnvironmentsListEnvironmentTypesDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Lists all environment types configured for a project. */\nexport interface EnvironmentsListEnvironmentTypesDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & EnvironmentsListEnvironmentTypesDefaultHeaders;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"responses.js","sourceRoot":"","sources":["../../../src/generated/responses.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { RawHttpHeaders } from \"@azure/core-rest-pipeline\";\nimport { HttpResponse } from \"@azure-rest/core-client\";\nimport {\n ProjectListResultOutput,\n CloudErrorOutput,\n ProjectOutput,\n DevBoxListResultOutput,\n PoolListResultOutput,\n PoolOutput,\n ScheduleListResultOutput,\n ScheduleOutput,\n DevBoxOutput,\n RemoteConnectionOutput,\n UpcomingActionsListResultOutput,\n UpcomingActionOutput,\n EnvironmentListResultOutput,\n EnvironmentOutput,\n CatalogItemListResultOutput,\n CatalogItemOutput,\n CatalogItemVersionListResultOutput,\n CatalogItemVersionOutput,\n EnvironmentTypeListResultOutput\n} from \"./outputModels\";\n\n/** Lists all projects. */\nexport interface DevCenterListProjects200Response extends HttpResponse {\n status: \"200\";\n body: ProjectListResultOutput;\n}\n\n/** Lists all projects. */\nexport interface DevCenterListProjectsDefaultResponse extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n}\n\n/** Gets a project. */\nexport interface DevCenterGetProject200Response extends HttpResponse {\n status: \"200\";\n body: ProjectOutput;\n}\n\n/** Gets a project. */\nexport interface DevCenterGetProjectDefaultResponse extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n}\n\n/** Lists Dev Boxes that the caller has access to in the DevCenter. */\nexport interface DevCenterListAllDevBoxes200Response extends HttpResponse {\n status: \"200\";\n body: DevBoxListResultOutput;\n}\n\nexport interface DevCenterListAllDevBoxesDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Lists Dev Boxes that the caller has access to in the DevCenter. */\nexport interface DevCenterListAllDevBoxesDefaultResponse extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevCenterListAllDevBoxesDefaultHeaders;\n}\n\n/** Lists Dev Boxes in the Dev Center for a particular user. */\nexport interface DevCenterListAllDevBoxesByUser200Response\n extends HttpResponse {\n status: \"200\";\n body: DevBoxListResultOutput;\n}\n\nexport interface DevCenterListAllDevBoxesByUserDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Lists Dev Boxes in the Dev Center for a particular user. */\nexport interface DevCenterListAllDevBoxesByUserDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevCenterListAllDevBoxesByUserDefaultHeaders;\n}\n\n/** Lists available pools */\nexport interface DevBoxesListPools200Response extends HttpResponse {\n status: \"200\";\n body: PoolListResultOutput;\n}\n\nexport interface DevBoxesListPoolsDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Lists available pools */\nexport interface DevBoxesListPoolsDefaultResponse extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevBoxesListPoolsDefaultHeaders;\n}\n\n/** Gets a pool */\nexport interface DevBoxesGetPool200Response extends HttpResponse {\n status: \"200\";\n body: PoolOutput;\n}\n\nexport interface DevBoxesGetPoolDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Gets a pool */\nexport interface DevBoxesGetPoolDefaultResponse extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevBoxesGetPoolDefaultHeaders;\n}\n\n/** Lists available schedules for a pool. */\nexport interface DevBoxesListSchedulesByPool200Response extends HttpResponse {\n status: \"200\";\n body: ScheduleListResultOutput;\n}\n\nexport interface DevBoxesListSchedulesByPoolDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Lists available schedules for a pool. */\nexport interface DevBoxesListSchedulesByPoolDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevBoxesListSchedulesByPoolDefaultHeaders;\n}\n\n/** Gets a schedule. */\nexport interface DevBoxesGetScheduleByPool200Response extends HttpResponse {\n status: \"200\";\n body: ScheduleOutput;\n}\n\nexport interface DevBoxesGetScheduleByPoolDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Gets a schedule. */\nexport interface DevBoxesGetScheduleByPoolDefaultResponse extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevBoxesGetScheduleByPoolDefaultHeaders;\n}\n\n/** Lists Dev Boxes in the project for a particular user. */\nexport interface DevBoxesListDevBoxesByUser200Response extends HttpResponse {\n status: \"200\";\n body: DevBoxListResultOutput;\n}\n\nexport interface DevBoxesListDevBoxesByUserDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Lists Dev Boxes in the project for a particular user. */\nexport interface DevBoxesListDevBoxesByUserDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevBoxesListDevBoxesByUserDefaultHeaders;\n}\n\n/** Gets a Dev Box */\nexport interface DevBoxesGetDevBoxByUser200Response extends HttpResponse {\n status: \"200\";\n body: DevBoxOutput;\n}\n\nexport interface DevBoxesGetDevBoxByUserDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Gets a Dev Box */\nexport interface DevBoxesGetDevBoxByUserDefaultResponse extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevBoxesGetDevBoxByUserDefaultHeaders;\n}\n\n/** Creates or updates a Dev Box. */\nexport interface DevBoxesCreateDevBox200Response extends HttpResponse {\n status: \"200\";\n body: DevBoxOutput;\n}\n\n/** Creates or updates a Dev Box. */\nexport interface DevBoxesCreateDevBox201Response extends HttpResponse {\n status: \"201\";\n body: DevBoxOutput;\n}\n\nexport interface DevBoxesCreateDevBoxDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Creates or updates a Dev Box. */\nexport interface DevBoxesCreateDevBoxDefaultResponse extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevBoxesCreateDevBoxDefaultHeaders;\n}\n\nexport interface DevBoxesDeleteDevBox202Headers {\n /** URL to query for status of the operation. */\n \"operation-location\"?: string;\n}\n\n/** Deletes a Dev Box. */\nexport interface DevBoxesDeleteDevBox202Response extends HttpResponse {\n status: \"202\";\n body: Record<string, unknown>;\n headers: RawHttpHeaders & DevBoxesDeleteDevBox202Headers;\n}\n\n/** Deletes a Dev Box. */\nexport interface DevBoxesDeleteDevBox204Response extends HttpResponse {\n status: \"204\";\n body: Record<string, unknown>;\n}\n\nexport interface DevBoxesDeleteDevBoxDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Deletes a Dev Box. */\nexport interface DevBoxesDeleteDevBoxDefaultResponse extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevBoxesDeleteDevBoxDefaultHeaders;\n}\n\nexport interface DevBoxesStartDevBox202Headers {\n /** URL to query for status of the operation. */\n \"operation-location\"?: string;\n}\n\n/** Starts a Dev Box */\nexport interface DevBoxesStartDevBox202Response extends HttpResponse {\n status: \"202\";\n body: Record<string, unknown>;\n headers: RawHttpHeaders & DevBoxesStartDevBox202Headers;\n}\n\nexport interface DevBoxesStartDevBoxDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Starts a Dev Box */\nexport interface DevBoxesStartDevBoxDefaultResponse extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevBoxesStartDevBoxDefaultHeaders;\n}\n\nexport interface DevBoxesStopDevBox202Headers {\n /** URL to query for status of the operation. */\n \"operation-location\"?: string;\n}\n\n/** Stops a Dev Box */\nexport interface DevBoxesStopDevBox202Response extends HttpResponse {\n status: \"202\";\n body: Record<string, unknown>;\n headers: RawHttpHeaders & DevBoxesStopDevBox202Headers;\n}\n\nexport interface DevBoxesStopDevBoxDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Stops a Dev Box */\nexport interface DevBoxesStopDevBoxDefaultResponse extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevBoxesStopDevBoxDefaultHeaders;\n}\n\n/** Gets RDP Connection info */\nexport interface DevBoxesGetRemoteConnection200Response extends HttpResponse {\n status: \"200\";\n body: RemoteConnectionOutput;\n}\n\nexport interface DevBoxesGetRemoteConnectionDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Gets RDP Connection info */\nexport interface DevBoxesGetRemoteConnectionDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevBoxesGetRemoteConnectionDefaultHeaders;\n}\n\n/** Lists upcoming actions on a Dev Box. */\nexport interface DevBoxesListUpcomingActions200Response extends HttpResponse {\n status: \"200\";\n body: UpcomingActionsListResultOutput;\n}\n\nexport interface DevBoxesListUpcomingActionsDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Lists upcoming actions on a Dev Box. */\nexport interface DevBoxesListUpcomingActionsDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevBoxesListUpcomingActionsDefaultHeaders;\n}\n\n/** Gets an Upcoming Action. */\nexport interface DevBoxesGetUpcomingAction200Response extends HttpResponse {\n status: \"200\";\n body: UpcomingActionOutput;\n}\n\nexport interface DevBoxesGetUpcomingActionDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Gets an Upcoming Action. */\nexport interface DevBoxesGetUpcomingActionDefaultResponse extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevBoxesGetUpcomingActionDefaultHeaders;\n}\n\n/** Skips an Upcoming Action. */\nexport interface DevBoxesSkipUpcomingAction204Response extends HttpResponse {\n status: \"204\";\n body: Record<string, unknown>;\n}\n\nexport interface DevBoxesSkipUpcomingActionDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Skips an Upcoming Action. */\nexport interface DevBoxesSkipUpcomingActionDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevBoxesSkipUpcomingActionDefaultHeaders;\n}\n\n/** Delays an Upcoming Action. */\nexport interface DevBoxesDelayUpcomingAction200Response extends HttpResponse {\n status: \"200\";\n body: UpcomingActionOutput;\n}\n\nexport interface DevBoxesDelayUpcomingActionDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Delays an Upcoming Action. */\nexport interface DevBoxesDelayUpcomingActionDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & DevBoxesDelayUpcomingActionDefaultHeaders;\n}\n\n/** Lists the environments for a project. */\nexport interface EnvironmentsListEnvironments200Response extends HttpResponse {\n status: \"200\";\n body: EnvironmentListResultOutput;\n}\n\nexport interface EnvironmentsListEnvironmentsDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Lists the environments for a project. */\nexport interface EnvironmentsListEnvironmentsDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & EnvironmentsListEnvironmentsDefaultHeaders;\n}\n\n/** Lists the environments for a project and user. */\nexport interface EnvironmentsListEnvironmentsByUser200Response\n extends HttpResponse {\n status: \"200\";\n body: EnvironmentListResultOutput;\n}\n\nexport interface EnvironmentsListEnvironmentsByUserDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Lists the environments for a project and user. */\nexport interface EnvironmentsListEnvironmentsByUserDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & EnvironmentsListEnvironmentsByUserDefaultHeaders;\n}\n\n/** Gets an environment */\nexport interface EnvironmentsGetEnvironmentByUser200Response\n extends HttpResponse {\n status: \"200\";\n body: EnvironmentOutput;\n}\n\nexport interface EnvironmentsGetEnvironmentByUserDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Gets an environment */\nexport interface EnvironmentsGetEnvironmentByUserDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & EnvironmentsGetEnvironmentByUserDefaultHeaders;\n}\n\n/** Creates or updates an environment. */\nexport interface EnvironmentsCreateOrUpdateEnvironment200Response\n extends HttpResponse {\n status: \"200\";\n body: EnvironmentOutput;\n}\n\nexport interface EnvironmentsCreateOrUpdateEnvironment201Headers {\n /** URL to query for status of the operation. */\n \"operation-location\"?: string;\n}\n\n/** Creates or updates an environment. */\nexport interface EnvironmentsCreateOrUpdateEnvironment201Response\n extends HttpResponse {\n status: \"201\";\n body: EnvironmentOutput;\n headers: RawHttpHeaders & EnvironmentsCreateOrUpdateEnvironment201Headers;\n}\n\nexport interface EnvironmentsCreateOrUpdateEnvironmentDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Creates or updates an environment. */\nexport interface EnvironmentsCreateOrUpdateEnvironmentDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & EnvironmentsCreateOrUpdateEnvironmentDefaultHeaders;\n}\n\n/** Partially updates an environment */\nexport interface EnvironmentsUpdateEnvironment200Response extends HttpResponse {\n status: \"200\";\n body: EnvironmentOutput;\n}\n\nexport interface EnvironmentsUpdateEnvironmentDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Partially updates an environment */\nexport interface EnvironmentsUpdateEnvironmentDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & EnvironmentsUpdateEnvironmentDefaultHeaders;\n}\n\n/** Deletes an environment and all its associated resources */\nexport interface EnvironmentsDeleteEnvironment200Response extends HttpResponse {\n status: \"200\";\n body: Record<string, unknown>;\n}\n\nexport interface EnvironmentsDeleteEnvironment202Headers {\n /** URL to query for status of the operation. */\n \"operation-location\"?: string;\n}\n\n/** Deletes an environment and all its associated resources */\nexport interface EnvironmentsDeleteEnvironment202Response extends HttpResponse {\n status: \"202\";\n body: Record<string, unknown>;\n headers: RawHttpHeaders & EnvironmentsDeleteEnvironment202Headers;\n}\n\n/** Deletes an environment and all its associated resources */\nexport interface EnvironmentsDeleteEnvironment204Response extends HttpResponse {\n status: \"204\";\n body: Record<string, unknown>;\n}\n\nexport interface EnvironmentsDeleteEnvironmentDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Deletes an environment and all its associated resources */\nexport interface EnvironmentsDeleteEnvironmentDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & EnvironmentsDeleteEnvironmentDefaultHeaders;\n}\n\n/** Executes a deploy action */\nexport interface EnvironmentsDeployEnvironmentAction200Response\n extends HttpResponse {\n status: \"200\";\n body: Record<string, unknown>;\n}\n\nexport interface EnvironmentsDeployEnvironmentAction202Headers {\n /** URL to query for status of the operation. */\n \"operation-location\"?: string;\n}\n\n/** Executes a deploy action */\nexport interface EnvironmentsDeployEnvironmentAction202Response\n extends HttpResponse {\n status: \"202\";\n body: Record<string, unknown>;\n headers: RawHttpHeaders & EnvironmentsDeployEnvironmentAction202Headers;\n}\n\nexport interface EnvironmentsDeployEnvironmentActionDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Executes a deploy action */\nexport interface EnvironmentsDeployEnvironmentActionDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & EnvironmentsDeployEnvironmentActionDefaultHeaders;\n}\n\n/** Executes a custom action */\nexport interface EnvironmentsCustomEnvironmentAction200Response\n extends HttpResponse {\n status: \"200\";\n body: Record<string, unknown>;\n}\n\nexport interface EnvironmentsCustomEnvironmentAction202Headers {\n /** URL to query for status of the operation. */\n \"operation-location\"?: string;\n}\n\n/** Executes a custom action */\nexport interface EnvironmentsCustomEnvironmentAction202Response\n extends HttpResponse {\n status: \"202\";\n body: Record<string, unknown>;\n headers: RawHttpHeaders & EnvironmentsCustomEnvironmentAction202Headers;\n}\n\nexport interface EnvironmentsCustomEnvironmentActionDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Executes a custom action */\nexport interface EnvironmentsCustomEnvironmentActionDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & EnvironmentsCustomEnvironmentActionDefaultHeaders;\n}\n\n/** Lists latest version of all catalog items available for a project. */\nexport interface EnvironmentsListCatalogItems200Response extends HttpResponse {\n status: \"200\";\n body: CatalogItemListResultOutput;\n}\n\nexport interface EnvironmentsListCatalogItemsDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Lists latest version of all catalog items available for a project. */\nexport interface EnvironmentsListCatalogItemsDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & EnvironmentsListCatalogItemsDefaultHeaders;\n}\n\n/** Get a catalog item from a project. */\nexport interface EnvironmentsGetCatalogItem200Response extends HttpResponse {\n status: \"200\";\n body: CatalogItemOutput;\n}\n\nexport interface EnvironmentsGetCatalogItemDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Get a catalog item from a project. */\nexport interface EnvironmentsGetCatalogItemDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & EnvironmentsGetCatalogItemDefaultHeaders;\n}\n\n/** List all versions of a catalog item from a project. */\nexport interface EnvironmentsListCatalogItemVersions200Response\n extends HttpResponse {\n status: \"200\";\n body: CatalogItemVersionListResultOutput;\n}\n\nexport interface EnvironmentsListCatalogItemVersionsDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** List all versions of a catalog item from a project. */\nexport interface EnvironmentsListCatalogItemVersionsDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & EnvironmentsListCatalogItemVersionsDefaultHeaders;\n}\n\n/** Get a specific catalog item version from a project. */\nexport interface EnvironmentsGetCatalogItemVersion200Response\n extends HttpResponse {\n status: \"200\";\n body: CatalogItemVersionOutput;\n}\n\nexport interface EnvironmentsGetCatalogItemVersionDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Get a specific catalog item version from a project. */\nexport interface EnvironmentsGetCatalogItemVersionDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & EnvironmentsGetCatalogItemVersionDefaultHeaders;\n}\n\n/** Lists all environment types configured for a project. */\nexport interface EnvironmentsListEnvironmentTypes200Response\n extends HttpResponse {\n status: \"200\";\n body: EnvironmentTypeListResultOutput;\n}\n\nexport interface EnvironmentsListEnvironmentTypesDefaultHeaders {\n /** The error code for specific error that occurred. */\n \"x-ms-error-code\"?: string;\n}\n\n/** Lists all environment types configured for a project. */\nexport interface EnvironmentsListEnvironmentTypesDefaultResponse\n extends HttpResponse {\n status: string;\n body: CloudErrorOutput;\n headers: RawHttpHeaders & EnvironmentsListEnvironmentTypesDefaultHeaders;\n}\n"]}
|
package/dist-esm/src/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT license.
|
|
3
|
-
import
|
|
4
|
-
export * from "./azureDevCenter";
|
|
3
|
+
import createClient from "./generated/azureDevCenter";
|
|
4
|
+
export * from "./generated/azureDevCenter";
|
|
5
5
|
export * from "./generated/parameters";
|
|
6
6
|
export * from "./generated/responses";
|
|
7
7
|
export * from "./generated/clientDefinitions";
|
|
@@ -10,5 +10,5 @@ export * from "./generated/models";
|
|
|
10
10
|
export * from "./generated/outputModels";
|
|
11
11
|
export * from "./generated/paginateHelper";
|
|
12
12
|
export * from "./generated/pollingHelper";
|
|
13
|
-
export default
|
|
13
|
+
export default createClient;
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,YAAY,MAAM,4BAA4B,CAAC;AAEtD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAE1C,eAAe,YAAY,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport createClient from \"./generated/azureDevCenter\";\n\nexport * from \"./generated/azureDevCenter\";\nexport * from \"./generated/parameters\";\nexport * from \"./generated/responses\";\nexport * from \"./generated/clientDefinitions\";\nexport * from \"./generated/isUnexpected\";\nexport * from \"./generated/models\";\nexport * from \"./generated/outputModels\";\nexport * from \"./generated/paginateHelper\";\nexport * from \"./generated/pollingHelper\";\n\nexport default createClient;\n"]}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@azure-rest/developer-devcenter",
|
|
3
3
|
"sdk-type": "client",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
|
-
"version": "1.0.0-beta.
|
|
5
|
+
"version": "1.0.0-beta.2",
|
|
6
6
|
"description": "",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"node",
|
|
@@ -90,10 +90,10 @@
|
|
|
90
90
|
"@microsoft/api-extractor": "^7.31.1",
|
|
91
91
|
"autorest": "latest",
|
|
92
92
|
"@types/node": "^14.0.0",
|
|
93
|
-
"dotenv": "^
|
|
93
|
+
"dotenv": "^16.0.0",
|
|
94
94
|
"eslint": "^7.15.0",
|
|
95
95
|
"mkdirp": "^1.0.4",
|
|
96
|
-
"prettier": "2.
|
|
96
|
+
"prettier": "^2.5.1",
|
|
97
97
|
"rimraf": "^3.0.0",
|
|
98
98
|
"source-map-support": "^0.5.9",
|
|
99
99
|
"typescript": "~4.2.0",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"karma-source-map-support": "~1.4.0",
|
|
120
120
|
"karma-sourcemap-loader": "^0.3.8",
|
|
121
121
|
"karma": "^6.2.0",
|
|
122
|
-
"nyc": "^
|
|
122
|
+
"nyc": "^15.0.0"
|
|
123
123
|
},
|
|
124
124
|
"browser": {
|
|
125
125
|
"./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js"
|