@azure-rest/developer-devcenter 1.0.0-beta.2 → 1.0.0
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/README.md +11 -10
- package/dist/browser/azureDeveloperDevCenter.d.ts +11 -0
- package/dist/browser/azureDeveloperDevCenter.d.ts.map +1 -0
- package/dist/browser/azureDeveloperDevCenter.js +29 -0
- package/dist/browser/azureDeveloperDevCenter.js.map +1 -0
- package/dist/browser/clientDefinitions.d.ts +191 -0
- package/dist/browser/clientDefinitions.d.ts.map +1 -0
- package/dist/browser/clientDefinitions.js.map +1 -0
- package/dist/browser/index.d.ts +12 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +14 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/isUnexpected.d.ts +35 -0
- package/dist/browser/isUnexpected.d.ts.map +1 -0
- package/dist/browser/isUnexpected.js +111 -0
- package/dist/browser/isUnexpected.js.map +1 -0
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.d.ts.map +1 -0
- package/dist/browser/logger.js +5 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/models.d.ts +47 -0
- package/dist/browser/models.d.ts.map +1 -0
- package/dist/browser/models.js.map +1 -0
- package/dist/browser/outputModels.d.ts +338 -0
- package/dist/browser/outputModels.d.ts.map +1 -0
- package/dist/browser/outputModels.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/paginateHelper.d.ts +43 -0
- package/dist/browser/paginateHelper.d.ts.map +1 -0
- package/{dist-esm/src/generated → dist/browser}/paginateHelper.js +4 -17
- package/dist/browser/paginateHelper.js.map +1 -0
- package/dist/browser/parameters.d.ts +65 -0
- package/dist/browser/parameters.d.ts.map +1 -0
- package/dist/browser/parameters.js.map +1 -0
- package/dist/browser/pollingHelper.d.ts +83 -0
- package/dist/browser/pollingHelper.d.ts.map +1 -0
- package/dist/browser/pollingHelper.js +97 -0
- package/dist/browser/pollingHelper.js.map +1 -0
- package/dist/browser/responses.d.ts +547 -0
- package/dist/browser/responses.d.ts.map +1 -0
- package/dist/browser/responses.js.map +1 -0
- package/dist/commonjs/azureDeveloperDevCenter.d.ts +11 -0
- package/dist/commonjs/azureDeveloperDevCenter.d.ts.map +1 -0
- package/dist/commonjs/azureDeveloperDevCenter.js +32 -0
- package/dist/commonjs/azureDeveloperDevCenter.js.map +1 -0
- package/dist/commonjs/clientDefinitions.d.ts +191 -0
- package/dist/commonjs/clientDefinitions.d.ts.map +1 -0
- package/dist/commonjs/clientDefinitions.js +5 -0
- package/dist/commonjs/clientDefinitions.js.map +1 -0
- package/dist/commonjs/index.d.ts +12 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +17 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/isUnexpected.d.ts +35 -0
- package/dist/commonjs/isUnexpected.d.ts.map +1 -0
- package/dist/commonjs/isUnexpected.js +114 -0
- package/dist/commonjs/isUnexpected.js.map +1 -0
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.d.ts.map +1 -0
- package/dist/commonjs/logger.js +8 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/models.d.ts +47 -0
- package/dist/commonjs/models.d.ts.map +1 -0
- package/dist/commonjs/models.js +5 -0
- package/dist/commonjs/models.js.map +1 -0
- package/dist/commonjs/outputModels.d.ts +338 -0
- package/dist/commonjs/outputModels.d.ts.map +1 -0
- package/dist/commonjs/outputModels.js +5 -0
- package/dist/commonjs/outputModels.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/paginateHelper.d.ts +43 -0
- package/dist/commonjs/paginateHelper.d.ts.map +1 -0
- package/dist/commonjs/paginateHelper.js +73 -0
- package/dist/commonjs/paginateHelper.js.map +1 -0
- package/dist/commonjs/parameters.d.ts +65 -0
- package/dist/commonjs/parameters.d.ts.map +1 -0
- package/dist/commonjs/parameters.js +5 -0
- package/dist/commonjs/parameters.js.map +1 -0
- package/dist/commonjs/pollingHelper.d.ts +83 -0
- package/dist/commonjs/pollingHelper.d.ts.map +1 -0
- package/dist/commonjs/pollingHelper.js +100 -0
- package/dist/commonjs/pollingHelper.js.map +1 -0
- package/dist/commonjs/responses.d.ts +547 -0
- package/dist/commonjs/responses.d.ts.map +1 -0
- package/dist/commonjs/responses.js +5 -0
- package/dist/commonjs/responses.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/azureDeveloperDevCenter.d.ts +11 -0
- package/dist/esm/azureDeveloperDevCenter.d.ts.map +1 -0
- package/dist/esm/azureDeveloperDevCenter.js +29 -0
- package/dist/esm/azureDeveloperDevCenter.js.map +1 -0
- package/dist/esm/clientDefinitions.d.ts +191 -0
- package/dist/esm/clientDefinitions.d.ts.map +1 -0
- package/dist/esm/clientDefinitions.js +4 -0
- package/dist/esm/clientDefinitions.js.map +1 -0
- package/dist/esm/index.d.ts +12 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +14 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/isUnexpected.d.ts +35 -0
- package/dist/esm/isUnexpected.d.ts.map +1 -0
- package/dist/esm/isUnexpected.js +111 -0
- package/dist/esm/isUnexpected.js.map +1 -0
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.d.ts.map +1 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models.d.ts +47 -0
- package/dist/esm/models.d.ts.map +1 -0
- package/dist/esm/models.js +4 -0
- package/dist/esm/models.js.map +1 -0
- package/dist/esm/outputModels.d.ts +338 -0
- package/dist/esm/outputModels.d.ts.map +1 -0
- package/dist/esm/outputModels.js +4 -0
- package/dist/esm/outputModels.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/paginateHelper.d.ts +43 -0
- package/dist/esm/paginateHelper.d.ts.map +1 -0
- package/dist/esm/paginateHelper.js +70 -0
- package/dist/esm/paginateHelper.js.map +1 -0
- package/dist/esm/parameters.d.ts +65 -0
- package/dist/esm/parameters.d.ts.map +1 -0
- package/dist/esm/parameters.js +4 -0
- package/dist/esm/parameters.js.map +1 -0
- package/dist/esm/pollingHelper.d.ts +83 -0
- package/dist/esm/pollingHelper.d.ts.map +1 -0
- package/dist/esm/pollingHelper.js +97 -0
- package/dist/esm/pollingHelper.js.map +1 -0
- package/dist/esm/responses.d.ts +547 -0
- package/dist/esm/responses.d.ts.map +1 -0
- package/dist/esm/responses.js +4 -0
- package/dist/esm/responses.js.map +1 -0
- package/dist/react-native/azureDeveloperDevCenter.d.ts +11 -0
- package/dist/react-native/azureDeveloperDevCenter.d.ts.map +1 -0
- package/dist/react-native/azureDeveloperDevCenter.js +29 -0
- package/dist/react-native/azureDeveloperDevCenter.js.map +1 -0
- package/dist/react-native/clientDefinitions.d.ts +191 -0
- package/dist/react-native/clientDefinitions.d.ts.map +1 -0
- package/dist/react-native/clientDefinitions.js +4 -0
- package/dist/react-native/clientDefinitions.js.map +1 -0
- package/dist/react-native/index.d.ts +12 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +14 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/isUnexpected.d.ts +35 -0
- package/dist/react-native/isUnexpected.d.ts.map +1 -0
- package/dist/react-native/isUnexpected.js +111 -0
- package/dist/react-native/isUnexpected.js.map +1 -0
- package/dist/react-native/logger.d.ts +2 -0
- package/dist/react-native/logger.d.ts.map +1 -0
- package/dist/react-native/logger.js +5 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/models.d.ts +47 -0
- package/dist/react-native/models.d.ts.map +1 -0
- package/dist/react-native/models.js +4 -0
- package/dist/react-native/models.js.map +1 -0
- package/dist/react-native/outputModels.d.ts +338 -0
- package/dist/react-native/outputModels.d.ts.map +1 -0
- package/dist/react-native/outputModels.js +4 -0
- package/dist/react-native/outputModels.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/paginateHelper.d.ts +43 -0
- package/dist/react-native/paginateHelper.d.ts.map +1 -0
- package/dist/react-native/paginateHelper.js +70 -0
- package/dist/react-native/paginateHelper.js.map +1 -0
- package/dist/react-native/parameters.d.ts +65 -0
- package/dist/react-native/parameters.d.ts.map +1 -0
- package/dist/react-native/parameters.js +4 -0
- package/dist/react-native/parameters.js.map +1 -0
- package/dist/react-native/pollingHelper.d.ts +83 -0
- package/dist/react-native/pollingHelper.d.ts.map +1 -0
- package/dist/react-native/pollingHelper.js +97 -0
- package/dist/react-native/pollingHelper.js.map +1 -0
- package/dist/react-native/responses.d.ts +547 -0
- package/dist/react-native/responses.d.ts.map +1 -0
- package/dist/react-native/responses.js +4 -0
- package/dist/react-native/responses.js.map +1 -0
- package/package.json +115 -94
- package/review/developer-devcenter.api.md +910 -967
- package/dist/index.js +0 -323
- package/dist/index.js.map +0 -1
- package/dist-esm/src/generated/azureDevCenter.js +0 -26
- package/dist-esm/src/generated/azureDevCenter.js.map +0 -1
- package/dist-esm/src/generated/clientDefinitions.js.map +0 -1
- package/dist-esm/src/generated/index.js +0 -14
- package/dist-esm/src/generated/index.js.map +0 -1
- package/dist-esm/src/generated/isUnexpected.js +0 -155
- package/dist-esm/src/generated/isUnexpected.js.map +0 -1
- package/dist-esm/src/generated/models.js.map +0 -1
- package/dist-esm/src/generated/outputModels.js.map +0 -1
- package/dist-esm/src/generated/paginateHelper.js.map +0 -1
- package/dist-esm/src/generated/parameters.js.map +0 -1
- package/dist-esm/src/generated/pollingHelper.js +0 -51
- package/dist-esm/src/generated/pollingHelper.js.map +0 -1
- package/dist-esm/src/generated/responses.js.map +0 -1
- package/dist-esm/src/index.js +0 -14
- package/dist-esm/src/index.js.map +0 -1
- package/types/developer-devcenter.d.ts +0 -1735
- /package/{dist-esm/src/generated → dist/browser}/clientDefinitions.js +0 -0
- /package/{dist-esm/src/generated → dist/browser}/models.js +0 -0
- /package/{dist-esm/src/generated → dist/browser}/outputModels.js +0 -0
- /package/{dist-esm/src/generated → dist/browser}/parameters.js +0 -0
- /package/{dist-esm/src/generated → dist/browser}/responses.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isUnexpected.js","sourceRoot":"","sources":["../../src/isUnexpected.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAiFlC,MAAM,WAAW,GAA6B;IAC5C,eAAe,EAAE,CAAC,KAAK,CAAC;IACxB,6BAA6B,EAAE,CAAC,KAAK,CAAC;IACtC,6DAA6D,EAAE,CAAC,KAAK,CAAC;IACtE,mCAAmC,EAAE,CAAC,KAAK,CAAC;IAC5C,8CAA8C,EAAE,CAAC,KAAK,CAAC;IACvD,eAAe,EAAE,CAAC,KAAK,CAAC;IACxB,8BAA8B,EAAE,CAAC,KAAK,CAAC;IACvC,wDAAwD,EAAE,CAAC,KAAK,CAAC;IACjE,uEAAuE,EAAE,CAAC,KAAK,CAAC;IAChF,qDAAqD,EAAE,CAAC,KAAK,CAAC;IAC9D,kEAAkE,EAAE,CAAC,KAAK,CAAC;IAC3E,kEAAkE,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IAClF,qEAAqE,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IACrF,wEAAwE,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IACxF,yEAAyE,EAAE,CAAC,KAAK,CAAC;IAClF,uEAAuE,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IACvF,wEAAwE,EAAE,CAAC,KAAK,CAAC;IACjF,0EAA0E,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IAC1F,2EAA2E,EAAE,CAAC,KAAK,CAAC;IACpF,mFAAmF,EAAE,CAAC,KAAK,CAAC;IAC5F,0EAA0E,EAAE,CAAC,KAAK,CAAC;IACnF,uFAAuF,EAAE,CAAC,KAAK,CAAC;IAChG,6FAA6F,EAAE;QAC7F,KAAK;KACN;IACD,8FAA8F,EAAE;QAC9F,KAAK;KACN;IACD,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,CAAC,EAAE,CAAC,CAAC,IAAI,CAC1E,SAAS,CAAC,CAAC,CAAC,IAAI,EAAE,CACnB,CAAC;gBAEF,IAAI,CAAC,SAAS,EAAE,CAAC;oBACf,KAAK,GAAG,KAAK,CAAC;oBACd,MAAM;gBACR,CAAC;gBACD,SAAS;YACX,CAAC;YAED,8CAA8C;YAC9C,wDAAwD;YACxD,2CAA2C;YAC3C,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;YACR,CAAC;QACH,CAAC;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n ListProjects200Response,\n ListProjectsDefaultResponse,\n GetProject200Response,\n GetProjectDefaultResponse,\n Get200Response,\n GetDefaultResponse,\n ListPools200Response,\n ListPoolsDefaultResponse,\n GetPool200Response,\n GetPoolDefaultResponse,\n ListAllDevBoxes200Response,\n ListAllDevBoxesDefaultResponse,\n ListAllDevBoxesByUser200Response,\n ListAllDevBoxesByUserDefaultResponse,\n ListSchedulesByPool200Response,\n ListSchedulesByPoolDefaultResponse,\n GetScheduleByPool200Response,\n GetScheduleByPoolDefaultResponse,\n ListDevBoxesByUser200Response,\n ListDevBoxesByUserDefaultResponse,\n GetDevBoxByUser200Response,\n GetDevBoxByUserDefaultResponse,\n CreateDevBox200Response,\n CreateDevBox201Response,\n CreateDevBoxLogicalResponse,\n CreateDevBoxDefaultResponse,\n DeleteDevBox202Response,\n DeleteDevBox204Response,\n DeleteDevBoxLogicalResponse,\n DeleteDevBoxDefaultResponse,\n StartDevBox202Response,\n StartDevBoxLogicalResponse,\n StartDevBoxDefaultResponse,\n StopDevBox202Response,\n StopDevBoxLogicalResponse,\n StopDevBoxDefaultResponse,\n RestartDevBox202Response,\n RestartDevBoxLogicalResponse,\n RestartDevBoxDefaultResponse,\n GetRemoteConnection200Response,\n GetRemoteConnectionDefaultResponse,\n ListActions200Response,\n ListActionsDefaultResponse,\n GetAction200Response,\n GetActionDefaultResponse,\n SkipAction204Response,\n SkipActionDefaultResponse,\n DelayAction200Response,\n DelayActionDefaultResponse,\n DelayActions200Response,\n DelayActionsDefaultResponse,\n ListEnvironments200Response,\n ListEnvironmentsDefaultResponse,\n ListEnvironmentsByUser200Response,\n ListEnvironmentsByUserDefaultResponse,\n GetEnvironmentByUser200Response,\n GetEnvironmentByUserDefaultResponse,\n CreateOrReplaceEnvironment201Response,\n CreateOrReplaceEnvironmentLogicalResponse,\n CreateOrReplaceEnvironmentDefaultResponse,\n DeleteEnvironment202Response,\n DeleteEnvironment204Response,\n DeleteEnvironmentLogicalResponse,\n DeleteEnvironmentDefaultResponse,\n ListCatalogsByProject200Response,\n ListCatalogsByProjectDefaultResponse,\n GetCatalog200Response,\n GetCatalogDefaultResponse,\n ListEnvironmentDefinitionsByProject200Response,\n ListEnvironmentDefinitionsByProjectDefaultResponse,\n ListEnvironmentDefinitionsByCatalog200Response,\n ListEnvironmentDefinitionsByCatalogDefaultResponse,\n GetEnvironmentDefinition200Response,\n GetEnvironmentDefinitionDefaultResponse,\n ListEnvironmentTypes200Response,\n ListEnvironmentTypesDefaultResponse,\n} from \"./responses.js\";\n\nconst responseMap: Record<string, string[]> = {\n \"GET /projects\": [\"200\"],\n \"GET /projects/{projectName}\": [\"200\"],\n \"GET /projects/{projectName}/operationstatuses/{operationId}\": [\"200\"],\n \"GET /projects/{projectName}/pools\": [\"200\"],\n \"GET /projects/{projectName}/pools/{poolName}\": [\"200\"],\n \"GET /devboxes\": [\"200\"],\n \"GET /users/{userId}/devboxes\": [\"200\"],\n \"GET /projects/{projectName}/pools/{poolName}/schedules\": [\"200\"],\n \"GET /projects/{projectName}/pools/{poolName}/schedules/{scheduleName}\": [\"200\"],\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}\": [\"200\", \"201\"],\n \"DELETE /projects/{projectName}/users/{userId}/devboxes/{devBoxName}\": [\"202\", \"204\"],\n \"GET /projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start\": [\"200\", \"202\"],\n \"POST /projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start\": [\"202\"],\n \"GET /projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop\": [\"200\", \"202\"],\n \"POST /projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop\": [\"202\"],\n \"GET /projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart\": [\"200\", \"202\"],\n \"POST /projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart\": [\"202\"],\n \"GET /projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection\": [\"200\"],\n \"GET /projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions\": [\"200\"],\n \"GET /projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}\": [\"200\"],\n \"POST /projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip\": [\n \"204\",\n ],\n \"POST /projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay\": [\n \"200\",\n ],\n \"POST /projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay\": [\"200\"],\n \"GET /projects/{projectName}/environments\": [\"200\"],\n \"GET /projects/{projectName}/users/{userId}/environments\": [\"200\"],\n \"GET /projects/{projectName}/users/{userId}/environments/{environmentName}\": [\"200\"],\n \"PUT /projects/{projectName}/users/{userId}/environments/{environmentName}\": [\"201\"],\n \"DELETE /projects/{projectName}/users/{userId}/environments/{environmentName}\": [\"202\", \"204\"],\n \"GET /projects/{projectName}/catalogs\": [\"200\"],\n \"GET /projects/{projectName}/catalogs/{catalogName}\": [\"200\"],\n \"GET /projects/{projectName}/environmentDefinitions\": [\"200\"],\n \"GET /projects/{projectName}/catalogs/{catalogName}/environmentDefinitions\": [\"200\"],\n \"GET /projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}\": [\n \"200\",\n ],\n \"GET /projects/{projectName}/environmentTypes\": [\"200\"],\n};\n\nexport function isUnexpected(\n response: ListProjects200Response | ListProjectsDefaultResponse,\n): response is ListProjectsDefaultResponse;\nexport function isUnexpected(\n response: GetProject200Response | GetProjectDefaultResponse,\n): response is GetProjectDefaultResponse;\nexport function isUnexpected(\n response: Get200Response | GetDefaultResponse,\n): response is GetDefaultResponse;\nexport function isUnexpected(\n response: ListPools200Response | ListPoolsDefaultResponse,\n): response is ListPoolsDefaultResponse;\nexport function isUnexpected(\n response: GetPool200Response | GetPoolDefaultResponse,\n): response is GetPoolDefaultResponse;\nexport function isUnexpected(\n response: ListAllDevBoxes200Response | ListAllDevBoxesDefaultResponse,\n): response is ListAllDevBoxesDefaultResponse;\nexport function isUnexpected(\n response: ListAllDevBoxesByUser200Response | ListAllDevBoxesByUserDefaultResponse,\n): response is ListAllDevBoxesByUserDefaultResponse;\nexport function isUnexpected(\n response: ListSchedulesByPool200Response | ListSchedulesByPoolDefaultResponse,\n): response is ListSchedulesByPoolDefaultResponse;\nexport function isUnexpected(\n response: GetScheduleByPool200Response | GetScheduleByPoolDefaultResponse,\n): response is GetScheduleByPoolDefaultResponse;\nexport function isUnexpected(\n response: ListDevBoxesByUser200Response | ListDevBoxesByUserDefaultResponse,\n): response is ListDevBoxesByUserDefaultResponse;\nexport function isUnexpected(\n response: GetDevBoxByUser200Response | GetDevBoxByUserDefaultResponse,\n): response is GetDevBoxByUserDefaultResponse;\nexport function isUnexpected(\n response:\n | CreateDevBox200Response\n | CreateDevBox201Response\n | CreateDevBoxLogicalResponse\n | CreateDevBoxDefaultResponse,\n): response is CreateDevBoxDefaultResponse;\nexport function isUnexpected(\n response:\n | DeleteDevBox202Response\n | DeleteDevBox204Response\n | DeleteDevBoxLogicalResponse\n | DeleteDevBoxDefaultResponse,\n): response is DeleteDevBoxDefaultResponse;\nexport function isUnexpected(\n response: StartDevBox202Response | StartDevBoxLogicalResponse | StartDevBoxDefaultResponse,\n): response is StartDevBoxDefaultResponse;\nexport function isUnexpected(\n response: StopDevBox202Response | StopDevBoxLogicalResponse | StopDevBoxDefaultResponse,\n): response is StopDevBoxDefaultResponse;\nexport function isUnexpected(\n response: RestartDevBox202Response | RestartDevBoxLogicalResponse | RestartDevBoxDefaultResponse,\n): response is RestartDevBoxDefaultResponse;\nexport function isUnexpected(\n response: GetRemoteConnection200Response | GetRemoteConnectionDefaultResponse,\n): response is GetRemoteConnectionDefaultResponse;\nexport function isUnexpected(\n response: ListActions200Response | ListActionsDefaultResponse,\n): response is ListActionsDefaultResponse;\nexport function isUnexpected(\n response: GetAction200Response | GetActionDefaultResponse,\n): response is GetActionDefaultResponse;\nexport function isUnexpected(\n response: SkipAction204Response | SkipActionDefaultResponse,\n): response is SkipActionDefaultResponse;\nexport function isUnexpected(\n response: DelayAction200Response | DelayActionDefaultResponse,\n): response is DelayActionDefaultResponse;\nexport function isUnexpected(\n response: DelayActions200Response | DelayActionsDefaultResponse,\n): response is DelayActionsDefaultResponse;\nexport function isUnexpected(\n response: ListEnvironments200Response | ListEnvironmentsDefaultResponse,\n): response is ListEnvironmentsDefaultResponse;\nexport function isUnexpected(\n response: ListEnvironmentsByUser200Response | ListEnvironmentsByUserDefaultResponse,\n): response is ListEnvironmentsByUserDefaultResponse;\nexport function isUnexpected(\n response: GetEnvironmentByUser200Response | GetEnvironmentByUserDefaultResponse,\n): response is GetEnvironmentByUserDefaultResponse;\nexport function isUnexpected(\n response:\n | CreateOrReplaceEnvironment201Response\n | CreateOrReplaceEnvironmentLogicalResponse\n | CreateOrReplaceEnvironmentDefaultResponse,\n): response is CreateOrReplaceEnvironmentDefaultResponse;\nexport function isUnexpected(\n response:\n | DeleteEnvironment202Response\n | DeleteEnvironment204Response\n | DeleteEnvironmentLogicalResponse\n | DeleteEnvironmentDefaultResponse,\n): response is DeleteEnvironmentDefaultResponse;\nexport function isUnexpected(\n response: ListCatalogsByProject200Response | ListCatalogsByProjectDefaultResponse,\n): response is ListCatalogsByProjectDefaultResponse;\nexport function isUnexpected(\n response: GetCatalog200Response | GetCatalogDefaultResponse,\n): response is GetCatalogDefaultResponse;\nexport function isUnexpected(\n response:\n | ListEnvironmentDefinitionsByProject200Response\n | ListEnvironmentDefinitionsByProjectDefaultResponse,\n): response is ListEnvironmentDefinitionsByProjectDefaultResponse;\nexport function isUnexpected(\n response:\n | ListEnvironmentDefinitionsByCatalog200Response\n | ListEnvironmentDefinitionsByCatalogDefaultResponse,\n): response is ListEnvironmentDefinitionsByCatalogDefaultResponse;\nexport function isUnexpected(\n response: GetEnvironmentDefinition200Response | GetEnvironmentDefinitionDefaultResponse,\n): response is GetEnvironmentDefinitionDefaultResponse;\nexport function isUnexpected(\n response: ListEnvironmentTypes200Response | ListEnvironmentTypesDefaultResponse,\n): response is ListEnvironmentTypesDefaultResponse;\nexport function isUnexpected(\n response:\n | ListProjects200Response\n | ListProjectsDefaultResponse\n | GetProject200Response\n | GetProjectDefaultResponse\n | Get200Response\n | GetDefaultResponse\n | ListPools200Response\n | ListPoolsDefaultResponse\n | GetPool200Response\n | GetPoolDefaultResponse\n | ListAllDevBoxes200Response\n | ListAllDevBoxesDefaultResponse\n | ListAllDevBoxesByUser200Response\n | ListAllDevBoxesByUserDefaultResponse\n | ListSchedulesByPool200Response\n | ListSchedulesByPoolDefaultResponse\n | GetScheduleByPool200Response\n | GetScheduleByPoolDefaultResponse\n | ListDevBoxesByUser200Response\n | ListDevBoxesByUserDefaultResponse\n | GetDevBoxByUser200Response\n | GetDevBoxByUserDefaultResponse\n | CreateDevBox200Response\n | CreateDevBox201Response\n | CreateDevBoxLogicalResponse\n | CreateDevBoxDefaultResponse\n | DeleteDevBox202Response\n | DeleteDevBox204Response\n | DeleteDevBoxLogicalResponse\n | DeleteDevBoxDefaultResponse\n | StartDevBox202Response\n | StartDevBoxLogicalResponse\n | StartDevBoxDefaultResponse\n | StopDevBox202Response\n | StopDevBoxLogicalResponse\n | StopDevBoxDefaultResponse\n | RestartDevBox202Response\n | RestartDevBoxLogicalResponse\n | RestartDevBoxDefaultResponse\n | GetRemoteConnection200Response\n | GetRemoteConnectionDefaultResponse\n | ListActions200Response\n | ListActionsDefaultResponse\n | GetAction200Response\n | GetActionDefaultResponse\n | SkipAction204Response\n | SkipActionDefaultResponse\n | DelayAction200Response\n | DelayActionDefaultResponse\n | DelayActions200Response\n | DelayActionsDefaultResponse\n | ListEnvironments200Response\n | ListEnvironmentsDefaultResponse\n | ListEnvironmentsByUser200Response\n | ListEnvironmentsByUserDefaultResponse\n | GetEnvironmentByUser200Response\n | GetEnvironmentByUserDefaultResponse\n | CreateOrReplaceEnvironment201Response\n | CreateOrReplaceEnvironmentLogicalResponse\n | CreateOrReplaceEnvironmentDefaultResponse\n | DeleteEnvironment202Response\n | DeleteEnvironment204Response\n | DeleteEnvironmentLogicalResponse\n | DeleteEnvironmentDefaultResponse\n | ListCatalogsByProject200Response\n | ListCatalogsByProjectDefaultResponse\n | GetCatalog200Response\n | GetCatalogDefaultResponse\n | ListEnvironmentDefinitionsByProject200Response\n | ListEnvironmentDefinitionsByProjectDefaultResponse\n | ListEnvironmentDefinitionsByCatalog200Response\n | ListEnvironmentDefinitionsByCatalogDefaultResponse\n | GetEnvironmentDefinition200Response\n | GetEnvironmentDefinitionDefaultResponse\n | ListEnvironmentTypes200Response\n | ListEnvironmentTypesDefaultResponse,\n): response is\n | ListProjectsDefaultResponse\n | GetProjectDefaultResponse\n | GetDefaultResponse\n | ListPoolsDefaultResponse\n | GetPoolDefaultResponse\n | ListAllDevBoxesDefaultResponse\n | ListAllDevBoxesByUserDefaultResponse\n | ListSchedulesByPoolDefaultResponse\n | GetScheduleByPoolDefaultResponse\n | ListDevBoxesByUserDefaultResponse\n | GetDevBoxByUserDefaultResponse\n | CreateDevBoxDefaultResponse\n | DeleteDevBoxDefaultResponse\n | StartDevBoxDefaultResponse\n | StopDevBoxDefaultResponse\n | RestartDevBoxDefaultResponse\n | GetRemoteConnectionDefaultResponse\n | ListActionsDefaultResponse\n | GetActionDefaultResponse\n | SkipActionDefaultResponse\n | DelayActionDefaultResponse\n | DelayActionsDefaultResponse\n | ListEnvironmentsDefaultResponse\n | ListEnvironmentsByUserDefaultResponse\n | GetEnvironmentByUserDefaultResponse\n | CreateOrReplaceEnvironmentDefaultResponse\n | DeleteEnvironmentDefaultResponse\n | ListCatalogsByProjectDefaultResponse\n | GetCatalogDefaultResponse\n | ListEnvironmentDefinitionsByProjectDefaultResponse\n | ListEnvironmentDefinitionsByCatalogDefaultResponse\n | GetEnvironmentDefinitionDefaultResponse\n | ListEnvironmentTypesDefaultResponse {\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 = getParametrizedPathSuccess(method, url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction getParametrizedPathSuccess(method: string, path: string): string[] {\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: string[] = [];\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 // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\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[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,qCAA4C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,qBAAqB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { createClientLogger } from \"@azure/logger\";\nexport const logger = createClientLogger(\"developer-devcenter\");\n"]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/** Hardware specifications for the Dev Box. */
|
|
2
|
+
export interface HardwareProfile {
|
|
3
|
+
}
|
|
4
|
+
/** Storage settings for the Dev Box's disks. */
|
|
5
|
+
export interface StorageProfile {
|
|
6
|
+
/** Settings for the operating system disk. */
|
|
7
|
+
osDisk?: OsDisk;
|
|
8
|
+
}
|
|
9
|
+
/** Settings for the operating system disk. */
|
|
10
|
+
export interface OsDisk {
|
|
11
|
+
}
|
|
12
|
+
/** Specifies information about the image used. */
|
|
13
|
+
export interface ImageReference {
|
|
14
|
+
}
|
|
15
|
+
/** A Dev Box. */
|
|
16
|
+
export interface DevBox {
|
|
17
|
+
/** The name of the Dev Box pool this machine belongs to. */
|
|
18
|
+
poolName: string;
|
|
19
|
+
/** Indicates whether the owner of the Dev Box is a local administrator. */
|
|
20
|
+
localAdministrator?: LocalAdminStatus;
|
|
21
|
+
}
|
|
22
|
+
/** Properties of an environment. */
|
|
23
|
+
export interface Environment {
|
|
24
|
+
/** Parameters object for the environment. */
|
|
25
|
+
parameters?: Record<string, unknown>;
|
|
26
|
+
/** Environment type. */
|
|
27
|
+
environmentType: string;
|
|
28
|
+
/** Name of the catalog. */
|
|
29
|
+
catalogName: string;
|
|
30
|
+
/** Name of the environment definition. */
|
|
31
|
+
environmentDefinitionName: string;
|
|
32
|
+
}
|
|
33
|
+
/** Alias for OsType */
|
|
34
|
+
export type OsType = "Windows" | string;
|
|
35
|
+
/** Alias for SkuName */
|
|
36
|
+
export type SkuName = "general_i_8c32gb256ssd_v2" | "general_i_8c32gb512ssd_v2" | "general_i_8c32gb1024ssd_v2" | "general_i_8c32gb2048ssd_v2" | "general_i_16c64gb256ssd_v2" | "general_i_16c64gb512ssd_v2" | "general_i_16c64gb1024ssd_v2" | "general_i_16c64gb2048ssd_v2" | "general_i_32c128gb512ssd_v2" | "general_i_32c128gb1024ssd_v2" | "general_i_32c128gb2048ssd_v2" | "general_a_8c32gb256ssd_v2" | "general_a_8c32gb512ssd_v2" | "general_a_8c32gb1024ssd_v2" | "general_a_8c32gb2048ssd_v2" | "general_a_16c64gb256ssd_v2" | "general_a_16c64gb512ssd_v2" | "general_a_16c64gb1024ssd_v2" | "general_a_16c64gb2048ssd_v2" | "general_a_32c128gb512ssd_v2" | "general_a_32c128gb1024ssd_v2" | "general_a_32c128gb2048ssd_v2" | string;
|
|
37
|
+
/** Alias for HibernateSupport */
|
|
38
|
+
export type HibernateSupport = "Enabled" | "Disabled" | "OsUnsupported" | string;
|
|
39
|
+
/** Alias for LocalAdminStatus */
|
|
40
|
+
export type LocalAdminStatus = "Enabled" | "Disabled" | string;
|
|
41
|
+
/** Alias for DevBoxProvisioningState */
|
|
42
|
+
export type DevBoxProvisioningState = "Succeeded" | "Failed" | "Canceled" | "Creating" | "Deleting" | "Updating" | "Starting" | "Stopping" | "Provisioning" | "ProvisionedWithWarning" | "InGracePeriod" | "NotProvisioned" | string;
|
|
43
|
+
/** Alias for PowerState */
|
|
44
|
+
export type PowerState = "Unknown" | "Running" | "Deallocated" | "PoweredOff" | "Hibernated" | string;
|
|
45
|
+
/** Alias for EnvironmentProvisioningState */
|
|
46
|
+
export type EnvironmentProvisioningState = "Succeeded" | "Failed" | "Canceled" | "Creating" | "Accepted" | "Deleting" | "Updating" | "Preparing" | "Running" | "Syncing" | "MovingResources" | "TransientFailure" | "StorageProvisioningFailed" | string;
|
|
47
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAGA,+CAA+C;AAC/C,MAAM,WAAW,eAAe;CAAG;AAEnC,gDAAgD;AAChD,MAAM,WAAW,cAAc;IAC7B,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;CAC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,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,cAAc,GACd,wBAAwB,GACxB,eAAe,GACf,gBAAgB,GAChB,MAAM,CAAC;AACX,2BAA2B;AAC3B,MAAM,MAAM,UAAU,GAClB,SAAS,GACT,SAAS,GACT,aAAa,GACb,YAAY,GACZ,YAAY,GACZ,MAAM,CAAC;AACX,6CAA6C;AAC7C,MAAM,MAAM,4BAA4B,GACpC,WAAW,GACX,QAAQ,GACR,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,WAAW,GACX,SAAS,GACT,SAAS,GACT,iBAAiB,GACjB,kBAAkB,GAClB,2BAA2B,GAC3B,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/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\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\n/** Specifies information about the image used. */\nexport interface ImageReference {}\n\n/** A Dev Box. */\nexport interface DevBox {\n /** The name of the Dev Box pool this machine belongs to. */\n poolName: string;\n /** Indicates whether the owner of the Dev Box is a local administrator. */\n localAdministrator?: LocalAdminStatus;\n}\n\n/** Properties of an environment. */\nexport interface Environment {\n /** Parameters object for the environment. */\n parameters?: Record<string, unknown>;\n /** Environment type. */\n environmentType: string;\n /** Name of the catalog. */\n catalogName: string;\n /** Name of the environment definition. */\n environmentDefinitionName: string;\n}\n\n/** Alias for OsType */\nexport type OsType = \"Windows\" | string;\n/** Alias for SkuName */\nexport type SkuName =\n | \"general_i_8c32gb256ssd_v2\"\n | \"general_i_8c32gb512ssd_v2\"\n | \"general_i_8c32gb1024ssd_v2\"\n | \"general_i_8c32gb2048ssd_v2\"\n | \"general_i_16c64gb256ssd_v2\"\n | \"general_i_16c64gb512ssd_v2\"\n | \"general_i_16c64gb1024ssd_v2\"\n | \"general_i_16c64gb2048ssd_v2\"\n | \"general_i_32c128gb512ssd_v2\"\n | \"general_i_32c128gb1024ssd_v2\"\n | \"general_i_32c128gb2048ssd_v2\"\n | \"general_a_8c32gb256ssd_v2\"\n | \"general_a_8c32gb512ssd_v2\"\n | \"general_a_8c32gb1024ssd_v2\"\n | \"general_a_8c32gb2048ssd_v2\"\n | \"general_a_16c64gb256ssd_v2\"\n | \"general_a_16c64gb512ssd_v2\"\n | \"general_a_16c64gb1024ssd_v2\"\n | \"general_a_16c64gb2048ssd_v2\"\n | \"general_a_32c128gb512ssd_v2\"\n | \"general_a_32c128gb1024ssd_v2\"\n | \"general_a_32c128gb2048ssd_v2\"\n | string;\n/** Alias for HibernateSupport */\nexport type HibernateSupport = \"Enabled\" | \"Disabled\" | \"OsUnsupported\" | string;\n/** Alias for LocalAdminStatus */\nexport type LocalAdminStatus = \"Enabled\" | \"Disabled\" | string;\n/** Alias for DevBoxProvisioningState */\nexport type DevBoxProvisioningState =\n | \"Succeeded\"\n | \"Failed\"\n | \"Canceled\"\n | \"Creating\"\n | \"Deleting\"\n | \"Updating\"\n | \"Starting\"\n | \"Stopping\"\n | \"Provisioning\"\n | \"ProvisionedWithWarning\"\n | \"InGracePeriod\"\n | \"NotProvisioned\"\n | string;\n/** Alias for PowerState */\nexport type PowerState =\n | \"Unknown\"\n | \"Running\"\n | \"Deallocated\"\n | \"PoweredOff\"\n | \"Hibernated\"\n | string;\n/** Alias for EnvironmentProvisioningState */\nexport type EnvironmentProvisioningState =\n | \"Succeeded\"\n | \"Failed\"\n | \"Canceled\"\n | \"Creating\"\n | \"Accepted\"\n | \"Deleting\"\n | \"Updating\"\n | \"Preparing\"\n | \"Running\"\n | \"Syncing\"\n | \"MovingResources\"\n | \"TransientFailure\"\n | \"StorageProvisioningFailed\"\n | string;\n"]}
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
import { Paged } from "@azure/core-paging";
|
|
2
|
+
import { ErrorModel } from "@azure-rest/core-client";
|
|
3
|
+
/** Project details. */
|
|
4
|
+
export interface ProjectOutput {
|
|
5
|
+
/** Name of the project. */
|
|
6
|
+
readonly name: string;
|
|
7
|
+
/** Description of the project. */
|
|
8
|
+
description?: string;
|
|
9
|
+
/**
|
|
10
|
+
* When specified, indicates the maximum number of Dev Boxes a single user can
|
|
11
|
+
* create across all pools in the project.
|
|
12
|
+
*/
|
|
13
|
+
maxDevBoxesPerUser?: number;
|
|
14
|
+
}
|
|
15
|
+
/** The current status of an async operation. */
|
|
16
|
+
export interface OperationStatusOutput {
|
|
17
|
+
/** Fully qualified ID for the operation status. */
|
|
18
|
+
readonly id: string;
|
|
19
|
+
/** The operation id name. */
|
|
20
|
+
readonly name: string;
|
|
21
|
+
/** Provisioning state of the resource. */
|
|
22
|
+
status: OperationStateOutput;
|
|
23
|
+
/** The id of the resource. */
|
|
24
|
+
resourceId?: string;
|
|
25
|
+
/** The start time of the operation. */
|
|
26
|
+
startTime?: string;
|
|
27
|
+
/** The end time of the operation. */
|
|
28
|
+
endTime?: string;
|
|
29
|
+
/** Percent of the operation that is complete. */
|
|
30
|
+
percentComplete?: number;
|
|
31
|
+
/** Custom operation properties, populated only for a successful operation. */
|
|
32
|
+
properties?: any;
|
|
33
|
+
/** Operation Error message. */
|
|
34
|
+
error?: ErrorModel;
|
|
35
|
+
}
|
|
36
|
+
/** A pool of Dev Boxes. */
|
|
37
|
+
export interface PoolOutput {
|
|
38
|
+
/** Pool name. */
|
|
39
|
+
readonly name: string;
|
|
40
|
+
/** Azure region where Dev Boxes in the pool are located. */
|
|
41
|
+
location: string;
|
|
42
|
+
/** The operating system type of Dev Boxes in this pool. */
|
|
43
|
+
osType?: OsTypeOutput;
|
|
44
|
+
/** Hardware settings for the Dev Boxes created in this pool. */
|
|
45
|
+
hardwareProfile?: HardwareProfileOutput;
|
|
46
|
+
/** Indicates whether hibernate is enabled/disabled or unknown. */
|
|
47
|
+
hibernateSupport?: HibernateSupportOutput;
|
|
48
|
+
/** Storage settings for Dev Box created in this pool. */
|
|
49
|
+
storageProfile?: StorageProfileOutput;
|
|
50
|
+
/** Image settings for Dev Boxes create in this pool. */
|
|
51
|
+
imageReference?: ImageReferenceOutput;
|
|
52
|
+
/**
|
|
53
|
+
* Indicates whether owners of Dev Boxes in this pool are local administrators on
|
|
54
|
+
* the Dev Boxes.
|
|
55
|
+
*/
|
|
56
|
+
localAdministrator?: LocalAdminStatusOutput;
|
|
57
|
+
/** Stop on disconnect configuration settings for Dev Boxes created in this pool. */
|
|
58
|
+
stopOnDisconnect?: StopOnDisconnectConfigurationOutput;
|
|
59
|
+
/**
|
|
60
|
+
* Overall health status of the Pool. Indicates whether or not the Pool is
|
|
61
|
+
* available to create Dev Boxes.
|
|
62
|
+
*/
|
|
63
|
+
healthStatus: PoolHealthStatusOutput;
|
|
64
|
+
}
|
|
65
|
+
/** Hardware specifications for the Dev Box. */
|
|
66
|
+
export interface HardwareProfileOutput {
|
|
67
|
+
/** The name of the SKU. */
|
|
68
|
+
readonly skuName?: SkuNameOutput;
|
|
69
|
+
/** The number of vCPUs available for the Dev Box. */
|
|
70
|
+
readonly vCPUs?: number;
|
|
71
|
+
/** The amount of memory available for the Dev Box. */
|
|
72
|
+
readonly memoryGB?: number;
|
|
73
|
+
}
|
|
74
|
+
/** Storage settings for the Dev Box's disks. */
|
|
75
|
+
export interface StorageProfileOutput {
|
|
76
|
+
/** Settings for the operating system disk. */
|
|
77
|
+
osDisk?: OsDiskOutput;
|
|
78
|
+
}
|
|
79
|
+
/** Settings for the operating system disk. */
|
|
80
|
+
export interface OsDiskOutput {
|
|
81
|
+
/** The size of the OS Disk in gigabytes. */
|
|
82
|
+
readonly diskSizeGB?: number;
|
|
83
|
+
}
|
|
84
|
+
/** Specifies information about the image used. */
|
|
85
|
+
export interface ImageReferenceOutput {
|
|
86
|
+
/** The name of the image used. */
|
|
87
|
+
readonly name?: string;
|
|
88
|
+
/** The version of the image. */
|
|
89
|
+
readonly version?: string;
|
|
90
|
+
/** The operating system of the image. */
|
|
91
|
+
readonly operatingSystem?: string;
|
|
92
|
+
/** The operating system build number of the image. */
|
|
93
|
+
readonly osBuildNumber?: string;
|
|
94
|
+
/** The datetime that the backing image version was published. */
|
|
95
|
+
readonly publishedDate?: string;
|
|
96
|
+
}
|
|
97
|
+
/** Stop on disconnect configuration settings for Dev Boxes created in this pool. */
|
|
98
|
+
export interface StopOnDisconnectConfigurationOutput {
|
|
99
|
+
/**
|
|
100
|
+
* Indicates whether the feature to stop the devbox on disconnect once the grace
|
|
101
|
+
* period has lapsed is enabled.
|
|
102
|
+
*/
|
|
103
|
+
status: StopOnDisconnectEnableStatusOutput;
|
|
104
|
+
/**
|
|
105
|
+
* The specified time in minutes to wait before stopping a Dev Box once disconnect
|
|
106
|
+
* is detected.
|
|
107
|
+
*/
|
|
108
|
+
gracePeriodMinutes?: number;
|
|
109
|
+
}
|
|
110
|
+
/** A Dev Box. */
|
|
111
|
+
export interface DevBoxOutput {
|
|
112
|
+
/** Display name for the Dev Box. */
|
|
113
|
+
readonly name: string;
|
|
114
|
+
/** Name of the project this Dev Box belongs to. */
|
|
115
|
+
readonly projectName?: string;
|
|
116
|
+
/** The name of the Dev Box pool this machine belongs to. */
|
|
117
|
+
poolName: string;
|
|
118
|
+
/** Indicates whether hibernate is enabled/disabled or unknown. */
|
|
119
|
+
readonly hibernateSupport?: HibernateSupportOutput;
|
|
120
|
+
/** The current provisioning state of the Dev Box. */
|
|
121
|
+
readonly provisioningState?: DevBoxProvisioningStateOutput;
|
|
122
|
+
/**
|
|
123
|
+
* The current action state of the Dev Box. This is state is based on previous
|
|
124
|
+
* action performed by user.
|
|
125
|
+
*/
|
|
126
|
+
readonly actionState?: string;
|
|
127
|
+
/** The current power state of the Dev Box. */
|
|
128
|
+
readonly powerState?: PowerStateOutput;
|
|
129
|
+
/**
|
|
130
|
+
* A unique identifier for the Dev Box. This is a GUID-formatted string (e.g.
|
|
131
|
+
* 00000000-0000-0000-0000-000000000000).
|
|
132
|
+
*/
|
|
133
|
+
readonly uniqueId?: string;
|
|
134
|
+
/** Provisioning or action error details. Populated only for error states. */
|
|
135
|
+
readonly error?: ErrorModel;
|
|
136
|
+
/**
|
|
137
|
+
* Azure region where this Dev Box is located. This will be the same region as the
|
|
138
|
+
* Virtual Network it is attached to.
|
|
139
|
+
*/
|
|
140
|
+
readonly location?: string;
|
|
141
|
+
/** The operating system type of this Dev Box. */
|
|
142
|
+
readonly osType?: OsTypeOutput;
|
|
143
|
+
/** The AAD object id of the user this Dev Box is assigned to. */
|
|
144
|
+
readonly user?: string;
|
|
145
|
+
/** Information about the Dev Box's hardware resources. */
|
|
146
|
+
readonly hardwareProfile?: HardwareProfileOutput;
|
|
147
|
+
/** Storage settings for this Dev Box. */
|
|
148
|
+
readonly storageProfile?: StorageProfileOutput;
|
|
149
|
+
/** Information about the image used for this Dev Box. */
|
|
150
|
+
readonly imageReference?: ImageReferenceOutput;
|
|
151
|
+
/** Creation time of this Dev Box. */
|
|
152
|
+
readonly createdTime?: string;
|
|
153
|
+
/** Indicates whether the owner of the Dev Box is a local administrator. */
|
|
154
|
+
localAdministrator?: LocalAdminStatusOutput;
|
|
155
|
+
}
|
|
156
|
+
/** A Schedule to execute action. */
|
|
157
|
+
export interface ScheduleOutput {
|
|
158
|
+
/** Display name for the Schedule. */
|
|
159
|
+
readonly name: string;
|
|
160
|
+
/** Supported type this scheduled task represents. */
|
|
161
|
+
type: ScheduledTypeOutput;
|
|
162
|
+
/** The frequency of this scheduled task. */
|
|
163
|
+
frequency: ScheduledFrequencyOutput;
|
|
164
|
+
/** The target time to trigger the action. The format is HH:MM. */
|
|
165
|
+
time: string;
|
|
166
|
+
/** The IANA timezone id at which the schedule should execute. */
|
|
167
|
+
timeZone: string;
|
|
168
|
+
}
|
|
169
|
+
/** Provides remote connection information for a Dev Box. */
|
|
170
|
+
export interface RemoteConnectionOutput {
|
|
171
|
+
/** URL to open a browser based RDP session. */
|
|
172
|
+
webUrl?: string;
|
|
173
|
+
/** Link to open a Remote Desktop session. */
|
|
174
|
+
rdpConnectionUrl?: string;
|
|
175
|
+
}
|
|
176
|
+
/** An action which will take place on a Dev Box. */
|
|
177
|
+
export interface DevBoxActionOutput {
|
|
178
|
+
/** The name of the action. */
|
|
179
|
+
readonly name: string;
|
|
180
|
+
/** The action that will be taken. */
|
|
181
|
+
actionType: DevBoxActionTypeOutput;
|
|
182
|
+
/** The id of the resource which triggered this action. */
|
|
183
|
+
sourceId: string;
|
|
184
|
+
/** The earliest time that the action could occur (UTC). */
|
|
185
|
+
suspendedUntil?: string;
|
|
186
|
+
/** Details about the next run of this action. */
|
|
187
|
+
next?: DevBoxNextActionOutput;
|
|
188
|
+
}
|
|
189
|
+
/** Details about the next run of an action. */
|
|
190
|
+
export interface DevBoxNextActionOutput {
|
|
191
|
+
/** The time the action will be triggered (UTC). */
|
|
192
|
+
scheduledTime: string;
|
|
193
|
+
}
|
|
194
|
+
/** The action delay result. */
|
|
195
|
+
export interface DevBoxActionDelayResultOutput {
|
|
196
|
+
/** The name of the action. */
|
|
197
|
+
name: string;
|
|
198
|
+
/** The result of the delay operation on this action. */
|
|
199
|
+
result: DevBoxActionDelayResultStatusOutput;
|
|
200
|
+
/** The delayed action. */
|
|
201
|
+
action?: DevBoxActionOutput;
|
|
202
|
+
/** Information about the error that occurred. Only populated on error. */
|
|
203
|
+
error?: ErrorModel;
|
|
204
|
+
}
|
|
205
|
+
/** Properties of an environment. */
|
|
206
|
+
export interface EnvironmentOutput {
|
|
207
|
+
/** Parameters object for the environment. */
|
|
208
|
+
parameters?: Record<string, any>;
|
|
209
|
+
/** Environment name. */
|
|
210
|
+
readonly name: string;
|
|
211
|
+
/** Environment type. */
|
|
212
|
+
environmentType: string;
|
|
213
|
+
/** The AAD object id of the owner of this Environment. */
|
|
214
|
+
readonly user?: string;
|
|
215
|
+
/** The provisioning state of the environment. */
|
|
216
|
+
readonly provisioningState?: EnvironmentProvisioningStateOutput;
|
|
217
|
+
/** The identifier of the resource group containing the environment's resources. */
|
|
218
|
+
readonly resourceGroupId?: string;
|
|
219
|
+
/** Name of the catalog. */
|
|
220
|
+
catalogName: string;
|
|
221
|
+
/** Name of the environment definition. */
|
|
222
|
+
environmentDefinitionName: string;
|
|
223
|
+
/** Provisioning error details. Populated only for error states. */
|
|
224
|
+
readonly error?: ErrorModel;
|
|
225
|
+
}
|
|
226
|
+
/** A catalog. */
|
|
227
|
+
export interface CatalogOutput {
|
|
228
|
+
/** Name of the catalog. */
|
|
229
|
+
readonly name: string;
|
|
230
|
+
}
|
|
231
|
+
/** An environment definition. */
|
|
232
|
+
export interface EnvironmentDefinitionOutput {
|
|
233
|
+
/** The ID of the environment definition. */
|
|
234
|
+
id: string;
|
|
235
|
+
/** Name of the environment definition. */
|
|
236
|
+
readonly name: string;
|
|
237
|
+
/** Name of the catalog. */
|
|
238
|
+
catalogName: string;
|
|
239
|
+
/** A short description of the environment definition. */
|
|
240
|
+
description?: string;
|
|
241
|
+
/** Input parameters passed to an environment. */
|
|
242
|
+
parameters?: Array<EnvironmentDefinitionParameterOutput>;
|
|
243
|
+
/** JSON schema defining the parameters object passed to an environment. */
|
|
244
|
+
parametersSchema?: string;
|
|
245
|
+
/** Path to the Environment Definition entrypoint file. */
|
|
246
|
+
templatePath?: string;
|
|
247
|
+
}
|
|
248
|
+
/** Properties of an Environment Definition parameter */
|
|
249
|
+
export interface EnvironmentDefinitionParameterOutput {
|
|
250
|
+
/** Unique ID of the parameter. */
|
|
251
|
+
id: string;
|
|
252
|
+
/** Display name of the parameter. */
|
|
253
|
+
name?: string;
|
|
254
|
+
/** Description of the parameter. */
|
|
255
|
+
description?: string;
|
|
256
|
+
/** Default value of the parameter. */
|
|
257
|
+
default?: string;
|
|
258
|
+
/**
|
|
259
|
+
* A string of one of the basic JSON types (number, integer, array, object,
|
|
260
|
+
* boolean, string).
|
|
261
|
+
*/
|
|
262
|
+
type: ParameterTypeOutput;
|
|
263
|
+
/**
|
|
264
|
+
* Whether or not this parameter is read-only. If true, default should have a
|
|
265
|
+
* value.
|
|
266
|
+
*/
|
|
267
|
+
readOnly?: boolean;
|
|
268
|
+
/** Whether or not this parameter is required. */
|
|
269
|
+
required: boolean;
|
|
270
|
+
/** An array of allowed values. */
|
|
271
|
+
allowed?: string[];
|
|
272
|
+
}
|
|
273
|
+
/** Properties of an environment type. */
|
|
274
|
+
export interface EnvironmentTypeOutput {
|
|
275
|
+
/** Name of the environment type. */
|
|
276
|
+
readonly name: string;
|
|
277
|
+
/**
|
|
278
|
+
* Id of a subscription or management group that the environment type will be
|
|
279
|
+
* mapped to. The environment's resources will be deployed into this subscription
|
|
280
|
+
* or management group.
|
|
281
|
+
*/
|
|
282
|
+
deploymentTargetId: string;
|
|
283
|
+
/** Indicates whether this environment type is enabled for use in this project. */
|
|
284
|
+
status: EnvironmentTypeEnableStatusOutput;
|
|
285
|
+
}
|
|
286
|
+
/** Paged collection of Project items */
|
|
287
|
+
export type PagedProjectOutput = Paged<ProjectOutput>;
|
|
288
|
+
/** Enum describing allowed operation states. */
|
|
289
|
+
export type OperationStateOutput = "NotStarted" | "Running" | "Succeeded" | "Failed" | "Canceled";
|
|
290
|
+
/** Paged collection of Pool items */
|
|
291
|
+
export type PagedPoolOutput = Paged<PoolOutput>;
|
|
292
|
+
/** Alias for OsTypeOutput */
|
|
293
|
+
export type OsTypeOutput = "Windows" | string;
|
|
294
|
+
/** Alias for SkuNameOutput */
|
|
295
|
+
export type SkuNameOutput = "general_i_8c32gb256ssd_v2" | "general_i_8c32gb512ssd_v2" | "general_i_8c32gb1024ssd_v2" | "general_i_8c32gb2048ssd_v2" | "general_i_16c64gb256ssd_v2" | "general_i_16c64gb512ssd_v2" | "general_i_16c64gb1024ssd_v2" | "general_i_16c64gb2048ssd_v2" | "general_i_32c128gb512ssd_v2" | "general_i_32c128gb1024ssd_v2" | "general_i_32c128gb2048ssd_v2" | "general_a_8c32gb256ssd_v2" | "general_a_8c32gb512ssd_v2" | "general_a_8c32gb1024ssd_v2" | "general_a_8c32gb2048ssd_v2" | "general_a_16c64gb256ssd_v2" | "general_a_16c64gb512ssd_v2" | "general_a_16c64gb1024ssd_v2" | "general_a_16c64gb2048ssd_v2" | "general_a_32c128gb512ssd_v2" | "general_a_32c128gb1024ssd_v2" | "general_a_32c128gb2048ssd_v2" | string;
|
|
296
|
+
/** Alias for HibernateSupportOutput */
|
|
297
|
+
export type HibernateSupportOutput = "Enabled" | "Disabled" | "OsUnsupported" | string;
|
|
298
|
+
/** Alias for LocalAdminStatusOutput */
|
|
299
|
+
export type LocalAdminStatusOutput = "Enabled" | "Disabled" | string;
|
|
300
|
+
/** Alias for StopOnDisconnectEnableStatusOutput */
|
|
301
|
+
export type StopOnDisconnectEnableStatusOutput = "Enabled" | "Disabled" | string;
|
|
302
|
+
/** Alias for PoolHealthStatusOutput */
|
|
303
|
+
export type PoolHealthStatusOutput = "Unknown" | "Pending" | "Healthy" | "Warning" | "Unhealthy" | string;
|
|
304
|
+
/** Paged collection of DevBox items */
|
|
305
|
+
export type PagedDevBoxOutput = Paged<DevBoxOutput>;
|
|
306
|
+
/** Alias for DevBoxProvisioningStateOutput */
|
|
307
|
+
export type DevBoxProvisioningStateOutput = "Succeeded" | "Failed" | "Canceled" | "Creating" | "Deleting" | "Updating" | "Starting" | "Stopping" | "Provisioning" | "ProvisionedWithWarning" | "InGracePeriod" | "NotProvisioned" | string;
|
|
308
|
+
/** Alias for PowerStateOutput */
|
|
309
|
+
export type PowerStateOutput = "Unknown" | "Running" | "Deallocated" | "PoweredOff" | "Hibernated" | string;
|
|
310
|
+
/** Paged collection of Schedule items */
|
|
311
|
+
export type PagedScheduleOutput = Paged<ScheduleOutput>;
|
|
312
|
+
/** Alias for ScheduledTypeOutput */
|
|
313
|
+
export type ScheduledTypeOutput = "StopDevBox" | string;
|
|
314
|
+
/** Alias for ScheduledFrequencyOutput */
|
|
315
|
+
export type ScheduledFrequencyOutput = "Daily" | string;
|
|
316
|
+
/** Paged collection of DevBoxAction items */
|
|
317
|
+
export type PagedDevBoxActionOutput = Paged<DevBoxActionOutput>;
|
|
318
|
+
/** Alias for DevBoxActionTypeOutput */
|
|
319
|
+
export type DevBoxActionTypeOutput = "Stop" | string;
|
|
320
|
+
/** Paged collection of DevBoxActionDelayResult items */
|
|
321
|
+
export type PagedDevBoxActionDelayResultOutput = Paged<DevBoxActionDelayResultOutput>;
|
|
322
|
+
/** Alias for DevBoxActionDelayResultStatusOutput */
|
|
323
|
+
export type DevBoxActionDelayResultStatusOutput = "Succeeded" | "Failed" | string;
|
|
324
|
+
/** Paged collection of Environment items */
|
|
325
|
+
export type PagedEnvironmentOutput = Paged<EnvironmentOutput>;
|
|
326
|
+
/** Alias for EnvironmentProvisioningStateOutput */
|
|
327
|
+
export type EnvironmentProvisioningStateOutput = "Succeeded" | "Failed" | "Canceled" | "Creating" | "Accepted" | "Deleting" | "Updating" | "Preparing" | "Running" | "Syncing" | "MovingResources" | "TransientFailure" | "StorageProvisioningFailed" | string;
|
|
328
|
+
/** Paged collection of Catalog items */
|
|
329
|
+
export type PagedCatalogOutput = Paged<CatalogOutput>;
|
|
330
|
+
/** Paged collection of EnvironmentDefinition items */
|
|
331
|
+
export type PagedEnvironmentDefinitionOutput = Paged<EnvironmentDefinitionOutput>;
|
|
332
|
+
/** Alias for ParameterTypeOutput */
|
|
333
|
+
export type ParameterTypeOutput = "array" | "boolean" | "integer" | "number" | "object" | "string" | string;
|
|
334
|
+
/** Paged collection of EnvironmentType items */
|
|
335
|
+
export type PagedEnvironmentTypeOutput = Paged<EnvironmentTypeOutput>;
|
|
336
|
+
/** Alias for EnvironmentTypeEnableStatusOutput */
|
|
337
|
+
export type EnvironmentTypeEnableStatusOutput = "Enabled" | "Disabled" | string;
|
|
338
|
+
//# sourceMappingURL=outputModels.d.ts.map
|
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GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,WAAW,GACX,SAAS,GACT,SAAS,GACT,iBAAiB,GACjB,kBAAkB,GAClB,2BAA2B,GAC3B,MAAM,CAAC;AACX,wCAAwC;AACxC,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC;AACtD,sDAAsD;AACtD,MAAM,MAAM,gCAAgC,GAAG,KAAK,CAAC,2BAA2B,CAAC,CAAC;AAClF,oCAAoC;AACpC,MAAM,MAAM,mBAAmB,GAC3B,OAAO,GACP,SAAS,GACT,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,MAAM,CAAC;AACX,gDAAgD;AAChD,MAAM,MAAM,0BAA0B,GAAG,KAAK,CAAC,qBAAqB,CAAC,CAAC;AACtE,kDAAkD;AAClD,MAAM,MAAM,iCAAiC,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outputModels.js","sourceRoot":"","sources":["../../src/outputModels.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { Paged } from \"@azure/core-paging\";\nimport { ErrorModel } from \"@azure-rest/core-client\";\n\n/** Project details. */\nexport interface ProjectOutput {\n /** Name of the project. */\n readonly name: string;\n /** Description of the project. */\n description?: string;\n /**\n * When specified, indicates the maximum number of Dev Boxes a single user can\n * create across all pools in the project.\n */\n maxDevBoxesPerUser?: number;\n}\n\n/** The current status of an async operation. */\nexport interface OperationStatusOutput {\n /** Fully qualified ID for the operation status. */\n readonly id: string;\n /** The operation id name. */\n readonly name: string;\n /** Provisioning state of the resource. */\n status: OperationStateOutput;\n /** The id of the resource. */\n resourceId?: string;\n /** The start time of the operation. */\n startTime?: string;\n /** The end time of the operation. */\n endTime?: string;\n /** Percent of the operation that is complete. */\n percentComplete?: number;\n /** Custom operation properties, populated only for a successful operation. */\n properties?: any;\n /** Operation Error message. */\n error?: ErrorModel;\n}\n\n/** A pool of Dev Boxes. */\nexport interface PoolOutput {\n /** Pool name. */\n readonly 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?: OsTypeOutput;\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?: HibernateSupportOutput;\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 /**\n * Indicates whether owners of Dev Boxes in this pool are local administrators on\n * the Dev Boxes.\n */\n localAdministrator?: LocalAdminStatusOutput;\n /** Stop on disconnect configuration settings for Dev Boxes created in this pool. */\n stopOnDisconnect?: StopOnDisconnectConfigurationOutput;\n /**\n * Overall health status of the Pool. Indicates whether or not the Pool is\n * available to create Dev Boxes.\n */\n healthStatus: PoolHealthStatusOutput;\n}\n\n/** Hardware specifications for the Dev Box. */\nexport interface HardwareProfileOutput {\n /** The name of the SKU. */\n readonly skuName?: SkuNameOutput;\n /** The number of vCPUs available for the Dev Box. */\n readonly vCPUs?: number;\n /** The amount of memory available for the Dev Box. */\n readonly 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 readonly diskSizeGB?: number;\n}\n\n/** Specifies information about the image used. */\nexport interface ImageReferenceOutput {\n /** The name of the image used. */\n readonly name?: string;\n /** The version of the image. */\n readonly version?: string;\n /** The operating system of the image. */\n readonly operatingSystem?: string;\n /** The operating system build number of the image. */\n readonly osBuildNumber?: string;\n /** The datetime that the backing image version was published. */\n readonly publishedDate?: string;\n}\n\n/** Stop on disconnect configuration settings for Dev Boxes created in this pool. */\nexport interface StopOnDisconnectConfigurationOutput {\n /**\n * Indicates whether the feature to stop the devbox on disconnect once the grace\n * period has lapsed is enabled.\n */\n status: StopOnDisconnectEnableStatusOutput;\n /**\n * The specified time in minutes to wait before stopping a Dev Box once disconnect\n * is detected.\n */\n gracePeriodMinutes?: number;\n}\n\n/** A Dev Box. */\nexport interface DevBoxOutput {\n /** Display name for the Dev Box. */\n readonly name: string;\n /** Name of the project this Dev Box belongs to. */\n readonly 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 readonly hibernateSupport?: HibernateSupportOutput;\n /** The current provisioning state of the Dev Box. */\n readonly provisioningState?: DevBoxProvisioningStateOutput;\n /**\n * The current action state of the Dev Box. This is state is based on previous\n * action performed by user.\n */\n readonly actionState?: string;\n /** The current power state of the Dev Box. */\n readonly powerState?: PowerStateOutput;\n /**\n * A unique identifier for the Dev Box. This is a GUID-formatted string (e.g.\n * 00000000-0000-0000-0000-000000000000).\n */\n readonly uniqueId?: string;\n /** Provisioning or action error details. Populated only for error states. */\n readonly error?: ErrorModel;\n /**\n * Azure region where this Dev Box is located. This will be the same region as the\n * Virtual Network it is attached to.\n */\n readonly location?: string;\n /** The operating system type of this Dev Box. */\n readonly osType?: OsTypeOutput;\n /** The AAD object id of the user this Dev Box is assigned to. */\n readonly user?: string;\n /** Information about the Dev Box's hardware resources. */\n readonly hardwareProfile?: HardwareProfileOutput;\n /** Storage settings for this Dev Box. */\n readonly storageProfile?: StorageProfileOutput;\n /** Information about the image used for this Dev Box. */\n readonly imageReference?: ImageReferenceOutput;\n /** Creation time of this Dev Box. */\n readonly createdTime?: string;\n /** Indicates whether the owner of the Dev Box is a local administrator. */\n localAdministrator?: LocalAdminStatusOutput;\n}\n\n/** A Schedule to execute action. */\nexport interface ScheduleOutput {\n /** Display name for the Schedule. */\n readonly name: string;\n /** Supported type this scheduled task represents. */\n type: ScheduledTypeOutput;\n /** The frequency of this scheduled task. */\n frequency: ScheduledFrequencyOutput;\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/** Provides remote connection information for a Dev Box. */\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/** An action which will take place on a Dev Box. */\nexport interface DevBoxActionOutput {\n /** The name of the action. */\n readonly name: string;\n /** The action that will be taken. */\n actionType: DevBoxActionTypeOutput;\n /** The id of the resource which triggered this action. */\n sourceId: string;\n /** The earliest time that the action could occur (UTC). */\n suspendedUntil?: string;\n /** Details about the next run of this action. */\n next?: DevBoxNextActionOutput;\n}\n\n/** Details about the next run of an action. */\nexport interface DevBoxNextActionOutput {\n /** The time the action will be triggered (UTC). */\n scheduledTime: string;\n}\n\n/** The action delay result. */\nexport interface DevBoxActionDelayResultOutput {\n /** The name of the action. */\n name: string;\n /** The result of the delay operation on this action. */\n result: DevBoxActionDelayResultStatusOutput;\n /** The delayed action. */\n action?: DevBoxActionOutput;\n /** Information about the error that occurred. Only populated on error. */\n error?: ErrorModel;\n}\n\n/** Properties of an environment. */\nexport interface EnvironmentOutput {\n /** Parameters object for the environment. */\n parameters?: Record<string, any>;\n /** Environment name. */\n readonly name: string;\n /** Environment type. */\n environmentType: string;\n /** The AAD object id of the owner of this Environment. */\n readonly user?: string;\n /** The provisioning state of the environment. */\n readonly provisioningState?: EnvironmentProvisioningStateOutput;\n /** The identifier of the resource group containing the environment's resources. */\n readonly resourceGroupId?: string;\n /** Name of the catalog. */\n catalogName: string;\n /** Name of the environment definition. */\n environmentDefinitionName: string;\n /** Provisioning error details. Populated only for error states. */\n readonly error?: ErrorModel;\n}\n\n/** A catalog. */\nexport interface CatalogOutput {\n /** Name of the catalog. */\n readonly name: string;\n}\n\n/** An environment definition. */\nexport interface EnvironmentDefinitionOutput {\n /** The ID of the environment definition. */\n id: string;\n /** Name of the environment definition. */\n readonly name: string;\n /** Name of the catalog. */\n catalogName: string;\n /** A short description of the environment definition. */\n description?: string;\n /** Input parameters passed to an environment. */\n parameters?: Array<EnvironmentDefinitionParameterOutput>;\n /** JSON schema defining the parameters object passed to an environment. */\n parametersSchema?: string;\n /** Path to the Environment Definition entrypoint file. */\n templatePath?: string;\n}\n\n/** Properties of an Environment Definition parameter */\nexport interface EnvironmentDefinitionParameterOutput {\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?: string;\n /**\n * A string of one of the basic JSON types (number, integer, array, object,\n * boolean, string).\n */\n type: ParameterTypeOutput;\n /**\n * Whether or not this parameter is read-only. If true, default should have a\n * value.\n */\n readOnly?: boolean;\n /** Whether or not this parameter is required. */\n required: boolean;\n /** An array of allowed values. */\n allowed?: string[];\n}\n\n/** Properties of an environment type. */\nexport interface EnvironmentTypeOutput {\n /** Name of the environment type. */\n readonly name: string;\n /**\n * Id of a subscription or management group that the environment type will be\n * mapped to. The environment's resources will be deployed into this subscription\n * or management group.\n */\n deploymentTargetId: string;\n /** Indicates whether this environment type is enabled for use in this project. */\n status: EnvironmentTypeEnableStatusOutput;\n}\n\n/** Paged collection of Project items */\nexport type PagedProjectOutput = Paged<ProjectOutput>;\n/** Enum describing allowed operation states. */\nexport type OperationStateOutput = \"NotStarted\" | \"Running\" | \"Succeeded\" | \"Failed\" | \"Canceled\";\n/** Paged collection of Pool items */\nexport type PagedPoolOutput = Paged<PoolOutput>;\n/** Alias for OsTypeOutput */\nexport type OsTypeOutput = \"Windows\" | string;\n/** Alias for SkuNameOutput */\nexport type SkuNameOutput =\n | \"general_i_8c32gb256ssd_v2\"\n | \"general_i_8c32gb512ssd_v2\"\n | \"general_i_8c32gb1024ssd_v2\"\n | \"general_i_8c32gb2048ssd_v2\"\n | \"general_i_16c64gb256ssd_v2\"\n | \"general_i_16c64gb512ssd_v2\"\n | \"general_i_16c64gb1024ssd_v2\"\n | \"general_i_16c64gb2048ssd_v2\"\n | \"general_i_32c128gb512ssd_v2\"\n | \"general_i_32c128gb1024ssd_v2\"\n | \"general_i_32c128gb2048ssd_v2\"\n | \"general_a_8c32gb256ssd_v2\"\n | \"general_a_8c32gb512ssd_v2\"\n | \"general_a_8c32gb1024ssd_v2\"\n | \"general_a_8c32gb2048ssd_v2\"\n | \"general_a_16c64gb256ssd_v2\"\n | \"general_a_16c64gb512ssd_v2\"\n | \"general_a_16c64gb1024ssd_v2\"\n | \"general_a_16c64gb2048ssd_v2\"\n | \"general_a_32c128gb512ssd_v2\"\n | \"general_a_32c128gb1024ssd_v2\"\n | \"general_a_32c128gb2048ssd_v2\"\n | string;\n/** Alias for HibernateSupportOutput */\nexport type HibernateSupportOutput = \"Enabled\" | \"Disabled\" | \"OsUnsupported\" | string;\n/** Alias for LocalAdminStatusOutput */\nexport type LocalAdminStatusOutput = \"Enabled\" | \"Disabled\" | string;\n/** Alias for StopOnDisconnectEnableStatusOutput */\nexport type StopOnDisconnectEnableStatusOutput = \"Enabled\" | \"Disabled\" | string;\n/** Alias for PoolHealthStatusOutput */\nexport type PoolHealthStatusOutput =\n | \"Unknown\"\n | \"Pending\"\n | \"Healthy\"\n | \"Warning\"\n | \"Unhealthy\"\n | string;\n/** Paged collection of DevBox items */\nexport type PagedDevBoxOutput = Paged<DevBoxOutput>;\n/** Alias for DevBoxProvisioningStateOutput */\nexport type DevBoxProvisioningStateOutput =\n | \"Succeeded\"\n | \"Failed\"\n | \"Canceled\"\n | \"Creating\"\n | \"Deleting\"\n | \"Updating\"\n | \"Starting\"\n | \"Stopping\"\n | \"Provisioning\"\n | \"ProvisionedWithWarning\"\n | \"InGracePeriod\"\n | \"NotProvisioned\"\n | string;\n/** Alias for PowerStateOutput */\nexport type PowerStateOutput =\n | \"Unknown\"\n | \"Running\"\n | \"Deallocated\"\n | \"PoweredOff\"\n | \"Hibernated\"\n | string;\n/** Paged collection of Schedule items */\nexport type PagedScheduleOutput = Paged<ScheduleOutput>;\n/** Alias for ScheduledTypeOutput */\nexport type ScheduledTypeOutput = \"StopDevBox\" | string;\n/** Alias for ScheduledFrequencyOutput */\nexport type ScheduledFrequencyOutput = \"Daily\" | string;\n/** Paged collection of DevBoxAction items */\nexport type PagedDevBoxActionOutput = Paged<DevBoxActionOutput>;\n/** Alias for DevBoxActionTypeOutput */\nexport type DevBoxActionTypeOutput = \"Stop\" | string;\n/** Paged collection of DevBoxActionDelayResult items */\nexport type PagedDevBoxActionDelayResultOutput = Paged<DevBoxActionDelayResultOutput>;\n/** Alias for DevBoxActionDelayResultStatusOutput */\nexport type DevBoxActionDelayResultStatusOutput = \"Succeeded\" | \"Failed\" | string;\n/** Paged collection of Environment items */\nexport type PagedEnvironmentOutput = Paged<EnvironmentOutput>;\n/** Alias for EnvironmentProvisioningStateOutput */\nexport type EnvironmentProvisioningStateOutput =\n | \"Succeeded\"\n | \"Failed\"\n | \"Canceled\"\n | \"Creating\"\n | \"Accepted\"\n | \"Deleting\"\n | \"Updating\"\n | \"Preparing\"\n | \"Running\"\n | \"Syncing\"\n | \"MovingResources\"\n | \"TransientFailure\"\n | \"StorageProvisioningFailed\"\n | string;\n/** Paged collection of Catalog items */\nexport type PagedCatalogOutput = Paged<CatalogOutput>;\n/** Paged collection of EnvironmentDefinition items */\nexport type PagedEnvironmentDefinitionOutput = Paged<EnvironmentDefinitionOutput>;\n/** Alias for ParameterTypeOutput */\nexport type ParameterTypeOutput =\n | \"array\"\n | \"boolean\"\n | \"integer\"\n | \"number\"\n | \"object\"\n | \"string\"\n | string;\n/** Paged collection of EnvironmentType items */\nexport type PagedEnvironmentTypeOutput = Paged<EnvironmentTypeOutput>;\n/** Alias for EnvironmentTypeEnableStatusOutput */\nexport type EnvironmentTypeEnableStatusOutput = \"Enabled\" | \"Disabled\" | string;\n"]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
3
|
+
/**
|
|
4
|
+
* Helper type to extract the type of an array
|
|
5
|
+
*/
|
|
6
|
+
export type GetArrayType<T> = T extends Array<infer TData> ? TData : never;
|
|
7
|
+
/**
|
|
8
|
+
* The type of a custom function that defines how to get a page and a link to the next one if any.
|
|
9
|
+
*/
|
|
10
|
+
export type GetPage<TPage> = (pageLink: string, maxPageSize?: number) => Promise<{
|
|
11
|
+
page: TPage;
|
|
12
|
+
nextPageLink?: string;
|
|
13
|
+
}>;
|
|
14
|
+
/**
|
|
15
|
+
* Options for the paging helper
|
|
16
|
+
*/
|
|
17
|
+
export interface PagingOptions<TResponse> {
|
|
18
|
+
/**
|
|
19
|
+
* Custom function to extract pagination details for crating the PagedAsyncIterableIterator
|
|
20
|
+
*/
|
|
21
|
+
customGetPage?: GetPage<PaginateReturn<TResponse>[]>;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Helper type to infer the Type of the paged elements from the response type
|
|
25
|
+
* This type is generated based on the swagger information for x-ms-pageable
|
|
26
|
+
* specifically on the itemName property which indicates the property of the response
|
|
27
|
+
* where the page items are found. The default value is `value`.
|
|
28
|
+
* This type will allow us to provide strongly typed Iterator based on the response we get as second parameter
|
|
29
|
+
*/
|
|
30
|
+
export type PaginateReturn<TResult> = TResult extends {
|
|
31
|
+
body: {
|
|
32
|
+
value?: infer TPage;
|
|
33
|
+
};
|
|
34
|
+
} ? GetArrayType<TPage> : Array<unknown>;
|
|
35
|
+
/**
|
|
36
|
+
* Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension
|
|
37
|
+
* @param client - Client to use for sending the next page requests
|
|
38
|
+
* @param initialResponse - Initial response containing the nextLink and current page of elements
|
|
39
|
+
* @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results
|
|
40
|
+
* @returns - PagedAsyncIterableIterator to iterate the elements
|
|
41
|
+
*/
|
|
42
|
+
export declare function paginate<TResponse extends PathUncheckedResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>;
|
|
43
|
+
//# sourceMappingURL=paginateHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paginateHelper.d.ts","sourceRoot":"","sources":["../../src/paginateHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAyB,0BAA0B,EAAe,MAAM,oBAAoB,CAAC;AACpG,OAAO,EAAE,MAAM,EAAmB,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEzF;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,CAAC,MAAM,KAAK,CAAC,GAAG,KAAK,GAAG,KAAK,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,OAAO,CAAC,KAAK,IAAI,CAC3B,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,KACjB,OAAO,CAAC;IACX,IAAI,EAAE,KAAK,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,WAAW,aAAa,CAAC,SAAS;IACtC;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;CACtD;AAED;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,CAAC,OAAO,IAAI,OAAO,SAAS;IACpD,IAAI,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,KAAK,CAAA;KAAE,CAAC;CAC/B,GACG,YAAY,CAAC,KAAK,CAAC,GACnB,KAAK,CAAC,OAAO,CAAC,CAAC;AAEnB;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,SAAS,SAAS,qBAAqB,EAC9D,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,SAAS,EAC1B,OAAO,GAAE,aAAa,CAAC,SAAS,CAAM,GACrC,0BAA0B,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CA0BvD"}
|
|
@@ -19,18 +19,16 @@ export function paginate(client, initialResponse, options = {}) {
|
|
|
19
19
|
getPage: typeof customGetPage === "function"
|
|
20
20
|
? customGetPage
|
|
21
21
|
: async (pageLink) => {
|
|
22
|
-
const result = firstRun
|
|
23
|
-
? initialResponse
|
|
24
|
-
: await client.pathUnchecked(pageLink).get();
|
|
22
|
+
const result = firstRun ? initialResponse : await client.pathUnchecked(pageLink).get();
|
|
25
23
|
firstRun = false;
|
|
26
24
|
checkPagingRequest(result);
|
|
27
25
|
const nextLink = getNextLink(result.body, nextLinkName);
|
|
28
26
|
const values = getElements(result.body, itemName);
|
|
29
27
|
return {
|
|
30
28
|
page: values,
|
|
31
|
-
nextPageLink: nextLink
|
|
29
|
+
nextPageLink: nextLink,
|
|
32
30
|
};
|
|
33
|
-
}
|
|
31
|
+
},
|
|
34
32
|
};
|
|
35
33
|
return getPagedAsyncIterator(pagedResult);
|
|
36
34
|
}
|
|
@@ -64,18 +62,7 @@ function getElements(body, itemName) {
|
|
|
64
62
|
* Checks if a request failed
|
|
65
63
|
*/
|
|
66
64
|
function checkPagingRequest(response) {
|
|
67
|
-
const Http2xxStatusCodes = [
|
|
68
|
-
"200",
|
|
69
|
-
"201",
|
|
70
|
-
"202",
|
|
71
|
-
"203",
|
|
72
|
-
"204",
|
|
73
|
-
"205",
|
|
74
|
-
"206",
|
|
75
|
-
"207",
|
|
76
|
-
"208",
|
|
77
|
-
"226"
|
|
78
|
-
];
|
|
65
|
+
const Http2xxStatusCodes = ["200", "201", "202", "203", "204", "205", "206", "207", "208", "226"];
|
|
79
66
|
if (!Http2xxStatusCodes.includes(response.status)) {
|
|
80
67
|
throw createRestError(`Pagination failed with unexpected statusCode ${response.status}`, response);
|
|
81
68
|
}
|