@azure/arm-playwright 1.0.0-beta.1
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/CHANGELOG.md +7 -0
- package/LICENSE +21 -0
- package/README.md +115 -0
- package/dist/browser/api/index.d.ts +2 -0
- package/dist/browser/api/index.js +4 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/operations/index.d.ts +3 -0
- package/dist/browser/api/operations/index.js +4 -0
- package/dist/browser/api/operations/index.js.map +1 -0
- package/dist/browser/api/operations/operations.d.ts +10 -0
- package/dist/browser/api/operations/operations.js +29 -0
- package/dist/browser/api/operations/operations.js.map +1 -0
- package/dist/browser/api/operations/options.d.ts +5 -0
- package/dist/browser/api/operations/options.js +4 -0
- package/dist/browser/api/operations/options.js.map +1 -0
- package/dist/browser/api/playwrightManagementContext.d.ts +19 -0
- package/dist/browser/api/playwrightManagementContext.js +36 -0
- package/dist/browser/api/playwrightManagementContext.js.map +1 -0
- package/dist/browser/api/playwrightQuotas/index.d.ts +3 -0
- package/dist/browser/api/playwrightQuotas/index.js +4 -0
- package/dist/browser/api/playwrightQuotas/index.js.map +1 -0
- package/dist/browser/api/playwrightQuotas/operations.d.ts +14 -0
- package/dist/browser/api/playwrightQuotas/operations.js +61 -0
- package/dist/browser/api/playwrightQuotas/operations.js.map +1 -0
- package/dist/browser/api/playwrightQuotas/options.d.ts +8 -0
- package/dist/browser/api/playwrightQuotas/options.js +4 -0
- package/dist/browser/api/playwrightQuotas/options.js.map +1 -0
- package/dist/browser/api/playwrightWorkspaceQuotas/index.d.ts +3 -0
- package/dist/browser/api/playwrightWorkspaceQuotas/index.js +4 -0
- package/dist/browser/api/playwrightWorkspaceQuotas/index.js.map +1 -0
- package/dist/browser/api/playwrightWorkspaceQuotas/operations.d.ts +14 -0
- package/dist/browser/api/playwrightWorkspaceQuotas/operations.js +63 -0
- package/dist/browser/api/playwrightWorkspaceQuotas/operations.js.map +1 -0
- package/dist/browser/api/playwrightWorkspaceQuotas/options.d.ts +8 -0
- package/dist/browser/api/playwrightWorkspaceQuotas/options.js +4 -0
- package/dist/browser/api/playwrightWorkspaceQuotas/options.js.map +1 -0
- package/dist/browser/api/playwrightWorkspaces/index.d.ts +3 -0
- package/dist/browser/api/playwrightWorkspaces/index.js +4 -0
- package/dist/browser/api/playwrightWorkspaces/index.js.map +1 -0
- package/dist/browser/api/playwrightWorkspaces/operations.d.ts +40 -0
- package/dist/browser/api/playwrightWorkspaces/operations.js +212 -0
- package/dist/browser/api/playwrightWorkspaces/operations.js.map +1 -0
- package/dist/browser/api/playwrightWorkspaces/options.d.ts +27 -0
- package/dist/browser/api/playwrightWorkspaces/options.js +4 -0
- package/dist/browser/api/playwrightWorkspaces/options.js.map +1 -0
- package/dist/browser/classic/index.d.ts +5 -0
- package/dist/browser/classic/index.js +4 -0
- package/dist/browser/classic/index.js.map +1 -0
- package/dist/browser/classic/operations/index.d.ts +11 -0
- package/dist/browser/classic/operations/index.js +12 -0
- package/dist/browser/classic/operations/index.js.map +1 -0
- package/dist/browser/classic/playwrightQuotas/index.d.ts +13 -0
- package/dist/browser/classic/playwrightQuotas/index.js +13 -0
- package/dist/browser/classic/playwrightQuotas/index.js.map +1 -0
- package/dist/browser/classic/playwrightWorkspaceQuotas/index.d.ts +13 -0
- package/dist/browser/classic/playwrightWorkspaceQuotas/index.js +13 -0
- package/dist/browser/classic/playwrightWorkspaceQuotas/index.js.map +1 -0
- package/dist/browser/classic/playwrightWorkspaces/index.d.ts +29 -0
- package/dist/browser/classic/playwrightWorkspaces/index.js +18 -0
- package/dist/browser/classic/playwrightWorkspaces/index.js.map +1 -0
- package/dist/browser/index.d.ts +12 -0
- package/dist/browser/index.js +6 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.js +5 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/models/index.d.ts +2 -0
- package/dist/browser/models/index.js +4 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/models.d.ts +391 -0
- package/dist/browser/models/models.js +352 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/playwrightManagementClient.d.ts +24 -0
- package/dist/browser/playwrightManagementClient.js +24 -0
- package/dist/browser/playwrightManagementClient.js.map +1 -0
- package/dist/browser/restorePollerHelpers.d.ts +21 -0
- package/dist/browser/restorePollerHelpers.js +97 -0
- package/dist/browser/restorePollerHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/browser/static-helpers/pagingHelpers.js +137 -0
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/browser/static-helpers/pollingHelpers.js +76 -0
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/browser/static-helpers/urlTemplate.js +169 -0
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/api/index.d.ts +2 -0
- package/dist/commonjs/api/index.js +8 -0
- package/dist/commonjs/api/index.js.map +1 -0
- package/dist/commonjs/api/operations/index.d.ts +3 -0
- package/dist/commonjs/api/operations/index.js +8 -0
- package/dist/commonjs/api/operations/index.js.map +1 -0
- package/dist/commonjs/api/operations/operations.d.ts +10 -0
- package/dist/commonjs/api/operations/operations.js +34 -0
- package/dist/commonjs/api/operations/operations.js.map +1 -0
- package/dist/commonjs/api/operations/options.d.ts +5 -0
- package/dist/commonjs/api/operations/options.js +5 -0
- package/dist/commonjs/api/operations/options.js.map +1 -0
- package/dist/commonjs/api/playwrightManagementContext.d.ts +19 -0
- package/dist/commonjs/api/playwrightManagementContext.js +39 -0
- package/dist/commonjs/api/playwrightManagementContext.js.map +1 -0
- package/dist/commonjs/api/playwrightQuotas/index.d.ts +3 -0
- package/dist/commonjs/api/playwrightQuotas/index.js +9 -0
- package/dist/commonjs/api/playwrightQuotas/index.js.map +1 -0
- package/dist/commonjs/api/playwrightQuotas/operations.d.ts +14 -0
- package/dist/commonjs/api/playwrightQuotas/operations.js +69 -0
- package/dist/commonjs/api/playwrightQuotas/operations.js.map +1 -0
- package/dist/commonjs/api/playwrightQuotas/options.d.ts +8 -0
- package/dist/commonjs/api/playwrightQuotas/options.js +5 -0
- package/dist/commonjs/api/playwrightQuotas/options.js.map +1 -0
- package/dist/commonjs/api/playwrightWorkspaceQuotas/index.d.ts +3 -0
- package/dist/commonjs/api/playwrightWorkspaceQuotas/index.js +9 -0
- package/dist/commonjs/api/playwrightWorkspaceQuotas/index.js.map +1 -0
- package/dist/commonjs/api/playwrightWorkspaceQuotas/operations.d.ts +14 -0
- package/dist/commonjs/api/playwrightWorkspaceQuotas/operations.js +71 -0
- package/dist/commonjs/api/playwrightWorkspaceQuotas/operations.js.map +1 -0
- package/dist/commonjs/api/playwrightWorkspaceQuotas/options.d.ts +8 -0
- package/dist/commonjs/api/playwrightWorkspaceQuotas/options.js +5 -0
- package/dist/commonjs/api/playwrightWorkspaceQuotas/options.js.map +1 -0
- package/dist/commonjs/api/playwrightWorkspaces/index.d.ts +3 -0
- package/dist/commonjs/api/playwrightWorkspaces/index.js +14 -0
- package/dist/commonjs/api/playwrightWorkspaces/index.js.map +1 -0
- package/dist/commonjs/api/playwrightWorkspaces/operations.d.ts +40 -0
- package/dist/commonjs/api/playwrightWorkspaces/operations.js +235 -0
- package/dist/commonjs/api/playwrightWorkspaces/operations.js.map +1 -0
- package/dist/commonjs/api/playwrightWorkspaces/options.d.ts +27 -0
- package/dist/commonjs/api/playwrightWorkspaces/options.js +5 -0
- package/dist/commonjs/api/playwrightWorkspaces/options.js.map +1 -0
- package/dist/commonjs/classic/index.d.ts +5 -0
- package/dist/commonjs/classic/index.js +5 -0
- package/dist/commonjs/classic/index.js.map +1 -0
- package/dist/commonjs/classic/operations/index.d.ts +11 -0
- package/dist/commonjs/classic/operations/index.js +15 -0
- package/dist/commonjs/classic/operations/index.js.map +1 -0
- package/dist/commonjs/classic/playwrightQuotas/index.d.ts +13 -0
- package/dist/commonjs/classic/playwrightQuotas/index.js +16 -0
- package/dist/commonjs/classic/playwrightQuotas/index.js.map +1 -0
- package/dist/commonjs/classic/playwrightWorkspaceQuotas/index.d.ts +13 -0
- package/dist/commonjs/classic/playwrightWorkspaceQuotas/index.js +16 -0
- package/dist/commonjs/classic/playwrightWorkspaceQuotas/index.js.map +1 -0
- package/dist/commonjs/classic/playwrightWorkspaces/index.d.ts +29 -0
- package/dist/commonjs/classic/playwrightWorkspaces/index.js +21 -0
- package/dist/commonjs/classic/playwrightWorkspaces/index.js.map +1 -0
- package/dist/commonjs/index.d.ts +12 -0
- package/dist/commonjs/index.js +20 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.js +8 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +2 -0
- package/dist/commonjs/models/index.js +16 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/models.d.ts +391 -0
- package/dist/commonjs/models/models.js +391 -0
- package/dist/commonjs/models/models.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/playwrightManagementClient.d.ts +24 -0
- package/dist/commonjs/playwrightManagementClient.js +28 -0
- package/dist/commonjs/playwrightManagementClient.js.map +1 -0
- package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
- package/dist/commonjs/restorePollerHelpers.js +100 -0
- package/dist/commonjs/restorePollerHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +140 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js +79 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +172 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/api/index.d.ts +2 -0
- package/dist/esm/api/index.js +4 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/operations/index.d.ts +3 -0
- package/dist/esm/api/operations/index.js +4 -0
- package/dist/esm/api/operations/index.js.map +1 -0
- package/dist/esm/api/operations/operations.d.ts +10 -0
- package/dist/esm/api/operations/operations.js +29 -0
- package/dist/esm/api/operations/operations.js.map +1 -0
- package/dist/esm/api/operations/options.d.ts +5 -0
- package/dist/esm/api/operations/options.js +4 -0
- package/dist/esm/api/operations/options.js.map +1 -0
- package/dist/esm/api/playwrightManagementContext.d.ts +19 -0
- package/dist/esm/api/playwrightManagementContext.js +36 -0
- package/dist/esm/api/playwrightManagementContext.js.map +1 -0
- package/dist/esm/api/playwrightQuotas/index.d.ts +3 -0
- package/dist/esm/api/playwrightQuotas/index.js +4 -0
- package/dist/esm/api/playwrightQuotas/index.js.map +1 -0
- package/dist/esm/api/playwrightQuotas/operations.d.ts +14 -0
- package/dist/esm/api/playwrightQuotas/operations.js +61 -0
- package/dist/esm/api/playwrightQuotas/operations.js.map +1 -0
- package/dist/esm/api/playwrightQuotas/options.d.ts +8 -0
- package/dist/esm/api/playwrightQuotas/options.js +4 -0
- package/dist/esm/api/playwrightQuotas/options.js.map +1 -0
- package/dist/esm/api/playwrightWorkspaceQuotas/index.d.ts +3 -0
- package/dist/esm/api/playwrightWorkspaceQuotas/index.js +4 -0
- package/dist/esm/api/playwrightWorkspaceQuotas/index.js.map +1 -0
- package/dist/esm/api/playwrightWorkspaceQuotas/operations.d.ts +14 -0
- package/dist/esm/api/playwrightWorkspaceQuotas/operations.js +63 -0
- package/dist/esm/api/playwrightWorkspaceQuotas/operations.js.map +1 -0
- package/dist/esm/api/playwrightWorkspaceQuotas/options.d.ts +8 -0
- package/dist/esm/api/playwrightWorkspaceQuotas/options.js +4 -0
- package/dist/esm/api/playwrightWorkspaceQuotas/options.js.map +1 -0
- package/dist/esm/api/playwrightWorkspaces/index.d.ts +3 -0
- package/dist/esm/api/playwrightWorkspaces/index.js +4 -0
- package/dist/esm/api/playwrightWorkspaces/index.js.map +1 -0
- package/dist/esm/api/playwrightWorkspaces/operations.d.ts +40 -0
- package/dist/esm/api/playwrightWorkspaces/operations.js +212 -0
- package/dist/esm/api/playwrightWorkspaces/operations.js.map +1 -0
- package/dist/esm/api/playwrightWorkspaces/options.d.ts +27 -0
- package/dist/esm/api/playwrightWorkspaces/options.js +4 -0
- package/dist/esm/api/playwrightWorkspaces/options.js.map +1 -0
- package/dist/esm/classic/index.d.ts +5 -0
- package/dist/esm/classic/index.js +4 -0
- package/dist/esm/classic/index.js.map +1 -0
- package/dist/esm/classic/operations/index.d.ts +11 -0
- package/dist/esm/classic/operations/index.js +12 -0
- package/dist/esm/classic/operations/index.js.map +1 -0
- package/dist/esm/classic/playwrightQuotas/index.d.ts +13 -0
- package/dist/esm/classic/playwrightQuotas/index.js +13 -0
- package/dist/esm/classic/playwrightQuotas/index.js.map +1 -0
- package/dist/esm/classic/playwrightWorkspaceQuotas/index.d.ts +13 -0
- package/dist/esm/classic/playwrightWorkspaceQuotas/index.js +13 -0
- package/dist/esm/classic/playwrightWorkspaceQuotas/index.js.map +1 -0
- package/dist/esm/classic/playwrightWorkspaces/index.d.ts +29 -0
- package/dist/esm/classic/playwrightWorkspaces/index.js +18 -0
- package/dist/esm/classic/playwrightWorkspaces/index.js.map +1 -0
- package/dist/esm/index.d.ts +12 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/models.d.ts +391 -0
- package/dist/esm/models/models.js +352 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/playwrightManagementClient.d.ts +24 -0
- package/dist/esm/playwrightManagementClient.js +24 -0
- package/dist/esm/playwrightManagementClient.js.map +1 -0
- package/dist/esm/restorePollerHelpers.d.ts +21 -0
- package/dist/esm/restorePollerHelpers.js +97 -0
- package/dist/esm/restorePollerHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/esm/static-helpers/pagingHelpers.js +137 -0
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/esm/static-helpers/pollingHelpers.js +76 -0
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/esm/static-helpers/urlTemplate.js +169 -0
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
- package/dist/react-native/api/index.d.ts +2 -0
- package/dist/react-native/api/index.js +4 -0
- package/dist/react-native/api/index.js.map +1 -0
- package/dist/react-native/api/operations/index.d.ts +3 -0
- package/dist/react-native/api/operations/index.js +4 -0
- package/dist/react-native/api/operations/index.js.map +1 -0
- package/dist/react-native/api/operations/operations.d.ts +10 -0
- package/dist/react-native/api/operations/operations.js +29 -0
- package/dist/react-native/api/operations/operations.js.map +1 -0
- package/dist/react-native/api/operations/options.d.ts +5 -0
- package/dist/react-native/api/operations/options.js +4 -0
- package/dist/react-native/api/operations/options.js.map +1 -0
- package/dist/react-native/api/playwrightManagementContext.d.ts +19 -0
- package/dist/react-native/api/playwrightManagementContext.js +36 -0
- package/dist/react-native/api/playwrightManagementContext.js.map +1 -0
- package/dist/react-native/api/playwrightQuotas/index.d.ts +3 -0
- package/dist/react-native/api/playwrightQuotas/index.js +4 -0
- package/dist/react-native/api/playwrightQuotas/index.js.map +1 -0
- package/dist/react-native/api/playwrightQuotas/operations.d.ts +14 -0
- package/dist/react-native/api/playwrightQuotas/operations.js +61 -0
- package/dist/react-native/api/playwrightQuotas/operations.js.map +1 -0
- package/dist/react-native/api/playwrightQuotas/options.d.ts +8 -0
- package/dist/react-native/api/playwrightQuotas/options.js +4 -0
- package/dist/react-native/api/playwrightQuotas/options.js.map +1 -0
- package/dist/react-native/api/playwrightWorkspaceQuotas/index.d.ts +3 -0
- package/dist/react-native/api/playwrightWorkspaceQuotas/index.js +4 -0
- package/dist/react-native/api/playwrightWorkspaceQuotas/index.js.map +1 -0
- package/dist/react-native/api/playwrightWorkspaceQuotas/operations.d.ts +14 -0
- package/dist/react-native/api/playwrightWorkspaceQuotas/operations.js +63 -0
- package/dist/react-native/api/playwrightWorkspaceQuotas/operations.js.map +1 -0
- package/dist/react-native/api/playwrightWorkspaceQuotas/options.d.ts +8 -0
- package/dist/react-native/api/playwrightWorkspaceQuotas/options.js +4 -0
- package/dist/react-native/api/playwrightWorkspaceQuotas/options.js.map +1 -0
- package/dist/react-native/api/playwrightWorkspaces/index.d.ts +3 -0
- package/dist/react-native/api/playwrightWorkspaces/index.js +4 -0
- package/dist/react-native/api/playwrightWorkspaces/index.js.map +1 -0
- package/dist/react-native/api/playwrightWorkspaces/operations.d.ts +40 -0
- package/dist/react-native/api/playwrightWorkspaces/operations.js +212 -0
- package/dist/react-native/api/playwrightWorkspaces/operations.js.map +1 -0
- package/dist/react-native/api/playwrightWorkspaces/options.d.ts +27 -0
- package/dist/react-native/api/playwrightWorkspaces/options.js +4 -0
- package/dist/react-native/api/playwrightWorkspaces/options.js.map +1 -0
- package/dist/react-native/classic/index.d.ts +5 -0
- package/dist/react-native/classic/index.js +4 -0
- package/dist/react-native/classic/index.js.map +1 -0
- package/dist/react-native/classic/operations/index.d.ts +11 -0
- package/dist/react-native/classic/operations/index.js +12 -0
- package/dist/react-native/classic/operations/index.js.map +1 -0
- package/dist/react-native/classic/playwrightQuotas/index.d.ts +13 -0
- package/dist/react-native/classic/playwrightQuotas/index.js +13 -0
- package/dist/react-native/classic/playwrightQuotas/index.js.map +1 -0
- package/dist/react-native/classic/playwrightWorkspaceQuotas/index.d.ts +13 -0
- package/dist/react-native/classic/playwrightWorkspaceQuotas/index.js +13 -0
- package/dist/react-native/classic/playwrightWorkspaceQuotas/index.js.map +1 -0
- package/dist/react-native/classic/playwrightWorkspaces/index.d.ts +29 -0
- package/dist/react-native/classic/playwrightWorkspaces/index.js +18 -0
- package/dist/react-native/classic/playwrightWorkspaces/index.js.map +1 -0
- package/dist/react-native/index.d.ts +12 -0
- package/dist/react-native/index.js +6 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/logger.d.ts +2 -0
- package/dist/react-native/logger.js +5 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/models/index.d.ts +2 -0
- package/dist/react-native/models/index.js +4 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/models.d.ts +391 -0
- package/dist/react-native/models/models.js +352 -0
- package/dist/react-native/models/models.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/playwrightManagementClient.d.ts +24 -0
- package/dist/react-native/playwrightManagementClient.js +24 -0
- package/dist/react-native/playwrightManagementClient.js.map +1 -0
- package/dist/react-native/restorePollerHelpers.d.ts +21 -0
- package/dist/react-native/restorePollerHelpers.js +97 -0
- package/dist/react-native/restorePollerHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/react-native/static-helpers/pagingHelpers.js +137 -0
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/react-native/static-helpers/pollingHelpers.js +76 -0
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/react-native/static-helpers/urlTemplate.js +169 -0
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
- package/package.json +252 -0
- package/review/arm-playwright-api-operations.api.md +19 -0
- package/review/arm-playwright-api-playwrightQuotas.api.md +26 -0
- package/review/arm-playwright-api-playwrightWorkspaceQuotas.api.md +26 -0
- package/review/arm-playwright-api-playwrightWorkspaces.api.md +65 -0
- package/review/arm-playwright-api.api.md +27 -0
- package/review/arm-playwright-models.api.md +232 -0
- package/review/arm-playwright.api.md +361 -0
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
export function _operationListResultDeserializer(item) {
|
|
4
|
+
return {
|
|
5
|
+
value: operationArrayDeserializer(item["value"]),
|
|
6
|
+
nextLink: item["nextLink"],
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export function operationArrayDeserializer(result) {
|
|
10
|
+
return result.map((item) => {
|
|
11
|
+
return operationDeserializer(item);
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
export function operationDeserializer(item) {
|
|
15
|
+
return {
|
|
16
|
+
name: item["name"],
|
|
17
|
+
isDataAction: item["isDataAction"],
|
|
18
|
+
display: !item["display"] ? item["display"] : operationDisplayDeserializer(item["display"]),
|
|
19
|
+
origin: item["origin"],
|
|
20
|
+
actionType: item["actionType"],
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export function operationDisplayDeserializer(item) {
|
|
24
|
+
return {
|
|
25
|
+
provider: item["provider"],
|
|
26
|
+
resource: item["resource"],
|
|
27
|
+
operation: item["operation"],
|
|
28
|
+
description: item["description"],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */
|
|
32
|
+
export var KnownOrigin;
|
|
33
|
+
(function (KnownOrigin) {
|
|
34
|
+
/** Indicates the operation is initiated by a user. */
|
|
35
|
+
KnownOrigin["User"] = "user";
|
|
36
|
+
/** Indicates the operation is initiated by a system. */
|
|
37
|
+
KnownOrigin["System"] = "system";
|
|
38
|
+
/** Indicates the operation is initiated by a user or system. */
|
|
39
|
+
KnownOrigin["UserSystem"] = "user,system";
|
|
40
|
+
})(KnownOrigin || (KnownOrigin = {}));
|
|
41
|
+
/** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */
|
|
42
|
+
export var KnownActionType;
|
|
43
|
+
(function (KnownActionType) {
|
|
44
|
+
/** Actions are for internal-only APIs. */
|
|
45
|
+
KnownActionType["Internal"] = "Internal";
|
|
46
|
+
})(KnownActionType || (KnownActionType = {}));
|
|
47
|
+
export function errorResponseDeserializer(item) {
|
|
48
|
+
return {
|
|
49
|
+
error: !item["error"] ? item["error"] : errorDetailDeserializer(item["error"]),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function errorDetailDeserializer(item) {
|
|
53
|
+
return {
|
|
54
|
+
code: item["code"],
|
|
55
|
+
message: item["message"],
|
|
56
|
+
target: item["target"],
|
|
57
|
+
details: !item["details"] ? item["details"] : errorDetailArrayDeserializer(item["details"]),
|
|
58
|
+
additionalInfo: !item["additionalInfo"]
|
|
59
|
+
? item["additionalInfo"]
|
|
60
|
+
: errorAdditionalInfoArrayDeserializer(item["additionalInfo"]),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export function errorDetailArrayDeserializer(result) {
|
|
64
|
+
return result.map((item) => {
|
|
65
|
+
return errorDetailDeserializer(item);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
export function errorAdditionalInfoArrayDeserializer(result) {
|
|
69
|
+
return result.map((item) => {
|
|
70
|
+
return errorAdditionalInfoDeserializer(item);
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
export function errorAdditionalInfoDeserializer(item) {
|
|
74
|
+
return {
|
|
75
|
+
type: item["type"],
|
|
76
|
+
info: item["info"],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
export function playwrightWorkspaceSerializer(item) {
|
|
80
|
+
return {
|
|
81
|
+
tags: item["tags"],
|
|
82
|
+
location: item["location"],
|
|
83
|
+
properties: !item["properties"]
|
|
84
|
+
? item["properties"]
|
|
85
|
+
: playwrightWorkspacePropertiesSerializer(item["properties"]),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
export function playwrightWorkspaceDeserializer(item) {
|
|
89
|
+
return {
|
|
90
|
+
tags: item["tags"],
|
|
91
|
+
location: item["location"],
|
|
92
|
+
id: item["id"],
|
|
93
|
+
name: item["name"],
|
|
94
|
+
type: item["type"],
|
|
95
|
+
systemData: !item["systemData"]
|
|
96
|
+
? item["systemData"]
|
|
97
|
+
: systemDataDeserializer(item["systemData"]),
|
|
98
|
+
properties: !item["properties"]
|
|
99
|
+
? item["properties"]
|
|
100
|
+
: playwrightWorkspacePropertiesDeserializer(item["properties"]),
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
export function playwrightWorkspacePropertiesSerializer(item) {
|
|
104
|
+
return {
|
|
105
|
+
regionalAffinity: item["regionalAffinity"],
|
|
106
|
+
localAuth: item["localAuth"],
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
export function playwrightWorkspacePropertiesDeserializer(item) {
|
|
110
|
+
return {
|
|
111
|
+
provisioningState: item["provisioningState"],
|
|
112
|
+
dataplaneUri: item["dataplaneUri"],
|
|
113
|
+
regionalAffinity: item["regionalAffinity"],
|
|
114
|
+
localAuth: item["localAuth"],
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
/** The status of the last resource operation. */
|
|
118
|
+
export var KnownProvisioningState;
|
|
119
|
+
(function (KnownProvisioningState) {
|
|
120
|
+
/** Resource has been created. */
|
|
121
|
+
KnownProvisioningState["Succeeded"] = "Succeeded";
|
|
122
|
+
/** Resource creation failed. */
|
|
123
|
+
KnownProvisioningState["Failed"] = "Failed";
|
|
124
|
+
/** Resource creation was canceled. */
|
|
125
|
+
KnownProvisioningState["Canceled"] = "Canceled";
|
|
126
|
+
/** Creation in progress.. */
|
|
127
|
+
KnownProvisioningState["Creating"] = "Creating";
|
|
128
|
+
/** Deletion in progress.. */
|
|
129
|
+
KnownProvisioningState["Deleting"] = "Deleting";
|
|
130
|
+
/** Request accepted for processing.. */
|
|
131
|
+
KnownProvisioningState["Accepted"] = "Accepted";
|
|
132
|
+
})(KnownProvisioningState || (KnownProvisioningState = {}));
|
|
133
|
+
/** The enablement status of a feature. */
|
|
134
|
+
export var KnownEnablementStatus;
|
|
135
|
+
(function (KnownEnablementStatus) {
|
|
136
|
+
/** The feature is Enabled. */
|
|
137
|
+
KnownEnablementStatus["Enabled"] = "Enabled";
|
|
138
|
+
/** The feature is Disabled. */
|
|
139
|
+
KnownEnablementStatus["Disabled"] = "Disabled";
|
|
140
|
+
})(KnownEnablementStatus || (KnownEnablementStatus = {}));
|
|
141
|
+
export function trackedResourceSerializer(item) {
|
|
142
|
+
return { tags: item["tags"], location: item["location"] };
|
|
143
|
+
}
|
|
144
|
+
export function trackedResourceDeserializer(item) {
|
|
145
|
+
return {
|
|
146
|
+
id: item["id"],
|
|
147
|
+
name: item["name"],
|
|
148
|
+
type: item["type"],
|
|
149
|
+
systemData: !item["systemData"]
|
|
150
|
+
? item["systemData"]
|
|
151
|
+
: systemDataDeserializer(item["systemData"]),
|
|
152
|
+
tags: item["tags"],
|
|
153
|
+
location: item["location"],
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
export function resourceSerializer(item) {
|
|
157
|
+
return item;
|
|
158
|
+
}
|
|
159
|
+
export function resourceDeserializer(item) {
|
|
160
|
+
return {
|
|
161
|
+
id: item["id"],
|
|
162
|
+
name: item["name"],
|
|
163
|
+
type: item["type"],
|
|
164
|
+
systemData: !item["systemData"]
|
|
165
|
+
? item["systemData"]
|
|
166
|
+
: systemDataDeserializer(item["systemData"]),
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
export function systemDataDeserializer(item) {
|
|
170
|
+
return {
|
|
171
|
+
createdBy: item["createdBy"],
|
|
172
|
+
createdByType: item["createdByType"],
|
|
173
|
+
createdAt: !item["createdAt"] ? item["createdAt"] : new Date(item["createdAt"]),
|
|
174
|
+
lastModifiedBy: item["lastModifiedBy"],
|
|
175
|
+
lastModifiedByType: item["lastModifiedByType"],
|
|
176
|
+
lastModifiedAt: !item["lastModifiedAt"]
|
|
177
|
+
? item["lastModifiedAt"]
|
|
178
|
+
: new Date(item["lastModifiedAt"]),
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
/** The kind of entity that created the resource. */
|
|
182
|
+
export var KnownCreatedByType;
|
|
183
|
+
(function (KnownCreatedByType) {
|
|
184
|
+
/** The entity was created by a user. */
|
|
185
|
+
KnownCreatedByType["User"] = "User";
|
|
186
|
+
/** The entity was created by an application. */
|
|
187
|
+
KnownCreatedByType["Application"] = "Application";
|
|
188
|
+
/** The entity was created by a managed identity. */
|
|
189
|
+
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
190
|
+
/** The entity was created by a key. */
|
|
191
|
+
KnownCreatedByType["Key"] = "Key";
|
|
192
|
+
})(KnownCreatedByType || (KnownCreatedByType = {}));
|
|
193
|
+
export function playwrightWorkspaceUpdateSerializer(item) {
|
|
194
|
+
return {
|
|
195
|
+
tags: item["tags"],
|
|
196
|
+
properties: !item["properties"]
|
|
197
|
+
? item["properties"]
|
|
198
|
+
: playwrightWorkspaceUpdatePropertiesSerializer(item["properties"]),
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
export function playwrightWorkspaceUpdatePropertiesSerializer(item) {
|
|
202
|
+
return {
|
|
203
|
+
regionalAffinity: item["regionalAffinity"],
|
|
204
|
+
localAuth: item["localAuth"],
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
export function _playwrightWorkspaceListResultDeserializer(item) {
|
|
208
|
+
return {
|
|
209
|
+
value: playwrightWorkspaceArrayDeserializer(item["value"]),
|
|
210
|
+
nextLink: item["nextLink"],
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
export function playwrightWorkspaceArraySerializer(result) {
|
|
214
|
+
return result.map((item) => {
|
|
215
|
+
return playwrightWorkspaceSerializer(item);
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
export function playwrightWorkspaceArrayDeserializer(result) {
|
|
219
|
+
return result.map((item) => {
|
|
220
|
+
return playwrightWorkspaceDeserializer(item);
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
export function checkNameAvailabilityRequestSerializer(item) {
|
|
224
|
+
return { name: item["name"], type: item["type"] };
|
|
225
|
+
}
|
|
226
|
+
export function checkNameAvailabilityResponseDeserializer(item) {
|
|
227
|
+
return {
|
|
228
|
+
nameAvailable: item["nameAvailable"],
|
|
229
|
+
reason: item["reason"],
|
|
230
|
+
message: item["message"],
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
/** Possible reasons for a name not being available. */
|
|
234
|
+
export var KnownCheckNameAvailabilityReason;
|
|
235
|
+
(function (KnownCheckNameAvailabilityReason) {
|
|
236
|
+
/** Name is invalid. */
|
|
237
|
+
KnownCheckNameAvailabilityReason["Invalid"] = "Invalid";
|
|
238
|
+
/** Name already exists. */
|
|
239
|
+
KnownCheckNameAvailabilityReason["AlreadyExists"] = "AlreadyExists";
|
|
240
|
+
})(KnownCheckNameAvailabilityReason || (KnownCheckNameAvailabilityReason = {}));
|
|
241
|
+
export function playwrightQuotaDeserializer(item) {
|
|
242
|
+
return {
|
|
243
|
+
id: item["id"],
|
|
244
|
+
name: item["name"],
|
|
245
|
+
type: item["type"],
|
|
246
|
+
systemData: !item["systemData"]
|
|
247
|
+
? item["systemData"]
|
|
248
|
+
: systemDataDeserializer(item["systemData"]),
|
|
249
|
+
properties: !item["properties"]
|
|
250
|
+
? item["properties"]
|
|
251
|
+
: playwrightQuotaPropertiesDeserializer(item["properties"]),
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
export function playwrightQuotaPropertiesDeserializer(item) {
|
|
255
|
+
return {
|
|
256
|
+
freeTrial: !item["freeTrial"]
|
|
257
|
+
? item["freeTrial"]
|
|
258
|
+
: freeTrialPropertiesDeserializer(item["freeTrial"]),
|
|
259
|
+
provisioningState: item["provisioningState"],
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
export function freeTrialPropertiesDeserializer(item) {
|
|
263
|
+
return {
|
|
264
|
+
workspaceId: item["workspaceId"],
|
|
265
|
+
state: item["state"],
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
/** The free-trial state. */
|
|
269
|
+
export var KnownFreeTrialState;
|
|
270
|
+
(function (KnownFreeTrialState) {
|
|
271
|
+
/** The free-trial is Active. */
|
|
272
|
+
KnownFreeTrialState["Active"] = "Active";
|
|
273
|
+
/** The free-trial is Expired. */
|
|
274
|
+
KnownFreeTrialState["Expired"] = "Expired";
|
|
275
|
+
/** The free-trial is Not Applicable. */
|
|
276
|
+
KnownFreeTrialState["NotApplicable"] = "NotApplicable";
|
|
277
|
+
})(KnownFreeTrialState || (KnownFreeTrialState = {}));
|
|
278
|
+
/** Playwright quota names. */
|
|
279
|
+
export var KnownQuotaName;
|
|
280
|
+
(function (KnownQuotaName) {
|
|
281
|
+
/** Quota for execution duration in minutes. */
|
|
282
|
+
KnownQuotaName["ExecutionMinutes"] = "ExecutionMinutes";
|
|
283
|
+
})(KnownQuotaName || (KnownQuotaName = {}));
|
|
284
|
+
export function proxyResourceDeserializer(item) {
|
|
285
|
+
return {
|
|
286
|
+
id: item["id"],
|
|
287
|
+
name: item["name"],
|
|
288
|
+
type: item["type"],
|
|
289
|
+
systemData: !item["systemData"]
|
|
290
|
+
? item["systemData"]
|
|
291
|
+
: systemDataDeserializer(item["systemData"]),
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
export function _playwrightQuotaListResultDeserializer(item) {
|
|
295
|
+
return {
|
|
296
|
+
value: playwrightQuotaArrayDeserializer(item["value"]),
|
|
297
|
+
nextLink: item["nextLink"],
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
export function playwrightQuotaArrayDeserializer(result) {
|
|
301
|
+
return result.map((item) => {
|
|
302
|
+
return playwrightQuotaDeserializer(item);
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
export function playwrightWorkspaceQuotaDeserializer(item) {
|
|
306
|
+
return {
|
|
307
|
+
id: item["id"],
|
|
308
|
+
name: item["name"],
|
|
309
|
+
type: item["type"],
|
|
310
|
+
systemData: !item["systemData"]
|
|
311
|
+
? item["systemData"]
|
|
312
|
+
: systemDataDeserializer(item["systemData"]),
|
|
313
|
+
properties: !item["properties"]
|
|
314
|
+
? item["properties"]
|
|
315
|
+
: playwrightWorkspaceQuotaPropertiesDeserializer(item["properties"]),
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
export function playwrightWorkspaceQuotaPropertiesDeserializer(item) {
|
|
319
|
+
return {
|
|
320
|
+
freeTrial: !item["freeTrial"]
|
|
321
|
+
? item["freeTrial"]
|
|
322
|
+
: playwrightWorkspaceFreeTrialPropertiesDeserializer(item["freeTrial"]),
|
|
323
|
+
provisioningState: item["provisioningState"],
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
export function playwrightWorkspaceFreeTrialPropertiesDeserializer(item) {
|
|
327
|
+
return {
|
|
328
|
+
createdAt: new Date(item["createdAt"]),
|
|
329
|
+
expiryAt: new Date(item["expiryAt"]),
|
|
330
|
+
allocatedValue: item["allocatedValue"],
|
|
331
|
+
usedValue: item["usedValue"],
|
|
332
|
+
percentageUsed: item["percentageUsed"],
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
export function _playwrightWorkspaceQuotaListResultDeserializer(item) {
|
|
336
|
+
return {
|
|
337
|
+
value: playwrightWorkspaceQuotaArrayDeserializer(item["value"]),
|
|
338
|
+
nextLink: item["nextLink"],
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
export function playwrightWorkspaceQuotaArrayDeserializer(result) {
|
|
342
|
+
return result.map((item) => {
|
|
343
|
+
return playwrightWorkspaceQuotaDeserializer(item);
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
/** Playwright service Management API Versions. */
|
|
347
|
+
export var KnownVersions;
|
|
348
|
+
(function (KnownVersions) {
|
|
349
|
+
/** 2025-07-01-preview version */
|
|
350
|
+
KnownVersions["V20250701Preview"] = "2025-07-01-preview";
|
|
351
|
+
})(KnownVersions || (KnownVersions = {}));
|
|
352
|
+
//# sourceMappingURL=models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAUlC,MAAM,UAAU,gCAAgC,CAAC,IAAS;IACxD,OAAO;QACL,KAAK,EAAE,0BAA0B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAChD,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,MAAwB;IACjE,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACL,CAAC;AAgBD,MAAM,UAAU,qBAAqB,CAAC,IAAS;IAC7C,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC;QAClC,OAAO,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,4BAA4B,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC3F,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;QACtB,UAAU,EAAE,IAAI,CAAC,YAAY,CAAC;KAC/B,CAAC;AACJ,CAAC;AAcD,MAAM,UAAU,4BAA4B,CAAC,IAAS;IACpD,OAAO;QACL,QAAQ,EAAE,IAAI,CAAC,U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QACL,SAAS,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACtC,QAAQ,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACpC,cAAc,EAAE,IAAI,CAAC,gBAAgB,CAAC;QACtC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC;QAC5B,cAAc,EAAE,IAAI,CAAC,gBAAgB,CAAC;KACvC,CAAC;AACJ,CAAC;AAUD,MAAM,UAAU,+CAA+C,CAC7D,IAAS;IAET,OAAO;QACL,KAAK,EAAE,yCAAyC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/D,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,yCAAyC,CACvD,MAAuC;IAEvC,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,oCAAoC,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;AACL,CAAC;AAED,kDAAkD;AAClD,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,iCAAiC;IACjC,wDAAuC,CAAA;AACzC,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationListResultDeserializer(item: any): _OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n readonly actionType?: ActionType;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n isDataAction: item[\"isDataAction\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n actionType: item[\"actionType\"],\n };\n}\n\n/** Localized display information for and operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n\n/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\nexport enum KnownOrigin {\n /** Indicates the operation is initiated by a user. */\n User = \"user\",\n /** Indicates the operation is initiated by a system. */\n System = \"system\",\n /** Indicates the operation is initiated by a user or system. */\n UserSystem = \"user,system\",\n}\n\n/**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user**: Indicates the operation is initiated by a user. \\\n * **system**: Indicates the operation is initiated by a system. \\\n * **user,system**: Indicates the operation is initiated by a user or system.\n */\nexport type Origin = string;\n\n/** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\nexport enum KnownActionType {\n /** Actions are for internal-only APIs. */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**: Actions are for internal-only APIs.\n */\nexport type ActionType = string;\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: any;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: item[\"info\"],\n };\n}\n\n/** Playwright workspace resource. */\nexport interface PlaywrightWorkspace extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: PlaywrightWorkspaceProperties;\n}\n\nexport function playwrightWorkspaceSerializer(item: PlaywrightWorkspace): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : playwrightWorkspacePropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function playwrightWorkspaceDeserializer(item: any): PlaywrightWorkspace {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : playwrightWorkspacePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Playwright workspace resource properties. */\nexport interface PlaywrightWorkspaceProperties {\n /** The status of the last resource operation. */\n readonly provisioningState?: ProvisioningState;\n /** The workspace data plane URI. */\n readonly dataplaneUri?: string;\n /** This property sets the connection region for client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created. */\n regionalAffinity?: EnablementStatus;\n /** When enabled, this feature allows the workspace to use local auth (through service access token) for executing operations. */\n localAuth?: EnablementStatus;\n}\n\nexport function playwrightWorkspacePropertiesSerializer(item: PlaywrightWorkspaceProperties): any {\n return {\n regionalAffinity: item[\"regionalAffinity\"],\n localAuth: item[\"localAuth\"],\n };\n}\n\nexport function playwrightWorkspacePropertiesDeserializer(\n item: any,\n): PlaywrightWorkspaceProperties {\n return {\n provisioningState: item[\"provisioningState\"],\n dataplaneUri: item[\"dataplaneUri\"],\n regionalAffinity: item[\"regionalAffinity\"],\n localAuth: item[\"localAuth\"],\n };\n}\n\n/** The status of the last resource operation. */\nexport enum KnownProvisioningState {\n /** Resource has been created. */\n Succeeded = \"Succeeded\",\n /** Resource creation failed. */\n Failed = \"Failed\",\n /** Resource creation was canceled. */\n Canceled = \"Canceled\",\n /** Creation in progress.. */\n Creating = \"Creating\",\n /** Deletion in progress.. */\n Deleting = \"Deleting\",\n /** Request accepted for processing.. */\n Accepted = \"Accepted\",\n}\n\n/**\n * The status of the last resource operation. \\\n * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: Resource has been created. \\\n * **Failed**: Resource creation failed. \\\n * **Canceled**: Resource creation was canceled. \\\n * **Creating**: Creation in progress.. \\\n * **Deleting**: Deletion in progress.. \\\n * **Accepted**: Request accepted for processing..\n */\nexport type ProvisioningState = string;\n\n/** The enablement status of a feature. */\nexport enum KnownEnablementStatus {\n /** The feature is Enabled. */\n Enabled = \"Enabled\",\n /** The feature is Disabled. */\n Disabled = \"Disabled\",\n}\n\n/**\n * The enablement status of a feature. \\\n * {@link KnownEnablementStatus} can be used interchangeably with EnablementStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Enabled**: The feature is Enabled. \\\n * **Disabled**: The feature is Disabled.\n */\nexport type EnablementStatus = string;\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResource extends Resource {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The geo-location where the resource lives */\n location: string;\n}\n\nexport function trackedResourceSerializer(item: TrackedResource): any {\n return { tags: item[\"tags\"], location: item[\"location\"] };\n}\n\nexport function trackedResourceDeserializer(item: any): TrackedResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n tags: item[\"tags\"],\n location: item[\"location\"],\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(item: Resource): any {\n return item;\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnowncreatedByType} can be used interchangeably with createdByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** The type used for update operations of the PlaywrightWorkspace. */\nexport interface PlaywrightWorkspaceUpdate {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The resource-specific properties for this resource. */\n properties?: PlaywrightWorkspaceUpdateProperties;\n}\n\nexport function playwrightWorkspaceUpdateSerializer(item: PlaywrightWorkspaceUpdate): any {\n return {\n tags: item[\"tags\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : playwrightWorkspaceUpdatePropertiesSerializer(item[\"properties\"]),\n };\n}\n\n/** The updatable properties of the PlaywrightWorkspace. */\nexport interface PlaywrightWorkspaceUpdateProperties {\n /** This property sets the connection region for client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created. */\n regionalAffinity?: EnablementStatus;\n /** When enabled, this feature allows the workspace to use local auth (through service access token) for executing operations. */\n localAuth?: EnablementStatus;\n}\n\nexport function playwrightWorkspaceUpdatePropertiesSerializer(\n item: PlaywrightWorkspaceUpdateProperties,\n): any {\n return {\n regionalAffinity: item[\"regionalAffinity\"],\n localAuth: item[\"localAuth\"],\n };\n}\n\n/** The response of a PlaywrightWorkspace list operation. */\nexport interface _PlaywrightWorkspaceListResult {\n /** The PlaywrightWorkspace items on this page */\n value: PlaywrightWorkspace[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _playwrightWorkspaceListResultDeserializer(\n item: any,\n): _PlaywrightWorkspaceListResult {\n return {\n value: playwrightWorkspaceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function playwrightWorkspaceArraySerializer(result: Array<PlaywrightWorkspace>): any[] {\n return result.map((item) => {\n return playwrightWorkspaceSerializer(item);\n });\n}\n\nexport function playwrightWorkspaceArrayDeserializer(result: Array<PlaywrightWorkspace>): any[] {\n return result.map((item) => {\n return playwrightWorkspaceDeserializer(item);\n });\n}\n\n/** The check availability request body. */\nexport interface CheckNameAvailabilityRequest {\n /** The name of the resource for which availability needs to be checked. */\n name?: string;\n /** The resource type. */\n type?: string;\n}\n\nexport function checkNameAvailabilityRequestSerializer(item: CheckNameAvailabilityRequest): any {\n return { name: item[\"name\"], type: item[\"type\"] };\n}\n\n/** The check availability result. */\nexport interface CheckNameAvailabilityResponse {\n /** Indicates if the resource name is available. */\n nameAvailable?: boolean;\n /** The reason why the given name is not available. */\n reason?: CheckNameAvailabilityReason;\n /** Detailed reason why the given name is not available. */\n message?: string;\n}\n\nexport function checkNameAvailabilityResponseDeserializer(\n item: any,\n): CheckNameAvailabilityResponse {\n return {\n nameAvailable: item[\"nameAvailable\"],\n reason: item[\"reason\"],\n message: item[\"message\"],\n };\n}\n\n/** Possible reasons for a name not being available. */\nexport enum KnownCheckNameAvailabilityReason {\n /** Name is invalid. */\n Invalid = \"Invalid\",\n /** Name already exists. */\n AlreadyExists = \"AlreadyExists\",\n}\n\n/**\n * Possible reasons for a name not being available. \\\n * {@link KnownCheckNameAvailabilityReason} can be used interchangeably with CheckNameAvailabilityReason,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Invalid**: Name is invalid. \\\n * **AlreadyExists**: Name already exists.\n */\nexport type CheckNameAvailabilityReason = string;\n\n/** Subscription-level location-based Playwright quota resource. */\nexport interface PlaywrightQuota extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: PlaywrightQuotaProperties;\n}\n\nexport function playwrightQuotaDeserializer(item: any): PlaywrightQuota {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : playwrightQuotaPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Subscription-level location-based Playwright quota resource properties. */\nexport interface PlaywrightQuotaProperties {\n /** The subscription-level location-based Playwright quota resource free-trial properties. */\n readonly freeTrial?: FreeTrialProperties;\n /** The status of the last resource operation. */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function playwrightQuotaPropertiesDeserializer(item: any): PlaywrightQuotaProperties {\n return {\n freeTrial: !item[\"freeTrial\"]\n ? item[\"freeTrial\"]\n : freeTrialPropertiesDeserializer(item[\"freeTrial\"]),\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** Subscription-level location-based Playwright quota resource free-trial properties. */\nexport interface FreeTrialProperties {\n /** Playwright workspace-id that has free-trial in the subscription. */\n readonly workspaceId: string;\n /** The free-trial state. */\n readonly state: FreeTrialState;\n}\n\nexport function freeTrialPropertiesDeserializer(item: any): FreeTrialProperties {\n return {\n workspaceId: item[\"workspaceId\"],\n state: item[\"state\"],\n };\n}\n\n/** The free-trial state. */\nexport enum KnownFreeTrialState {\n /** The free-trial is Active. */\n Active = \"Active\",\n /** The free-trial is Expired. */\n Expired = \"Expired\",\n /** The free-trial is Not Applicable. */\n NotApplicable = \"NotApplicable\",\n}\n\n/**\n * The free-trial state. \\\n * {@link KnownFreeTrialState} can be used interchangeably with FreeTrialState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Active**: The free-trial is Active. \\\n * **Expired**: The free-trial is Expired. \\\n * **NotApplicable**: The free-trial is Not Applicable.\n */\nexport type FreeTrialState = string;\n\n/** Playwright quota names. */\nexport enum KnownQuotaName {\n /** Quota for execution duration in minutes. */\n ExecutionMinutes = \"ExecutionMinutes\",\n}\n\n/**\n * Playwright quota names. \\\n * {@link KnownQuotaName} can be used interchangeably with QuotaName,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **ExecutionMinutes**: Quota for execution duration in minutes.\n */\nexport type QuotaName = string;\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\nexport function proxyResourceDeserializer(item: any): ProxyResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** The response of a PlaywrightQuota list operation. */\nexport interface _PlaywrightQuotaListResult {\n /** The PlaywrightQuota items on this page */\n value: PlaywrightQuota[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _playwrightQuotaListResultDeserializer(item: any): _PlaywrightQuotaListResult {\n return {\n value: playwrightQuotaArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function playwrightQuotaArrayDeserializer(result: Array<PlaywrightQuota>): any[] {\n return result.map((item) => {\n return playwrightQuotaDeserializer(item);\n });\n}\n\n/** Playwright workspace quota resource. */\nexport interface PlaywrightWorkspaceQuota extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: PlaywrightWorkspaceQuotaProperties;\n}\n\nexport function playwrightWorkspaceQuotaDeserializer(item: any): PlaywrightWorkspaceQuota {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : playwrightWorkspaceQuotaPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Playwright workspace quota resource properties. */\nexport interface PlaywrightWorkspaceQuotaProperties {\n /** The Playwright workspace quota resource free-trial properties. */\n readonly freeTrial?: PlaywrightWorkspaceFreeTrialProperties;\n /** The status of the last resource operation. */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function playwrightWorkspaceQuotaPropertiesDeserializer(\n item: any,\n): PlaywrightWorkspaceQuotaProperties {\n return {\n freeTrial: !item[\"freeTrial\"]\n ? item[\"freeTrial\"]\n : playwrightWorkspaceFreeTrialPropertiesDeserializer(item[\"freeTrial\"]),\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** Playwright workspace quota resource resource free-trial properties. */\nexport interface PlaywrightWorkspaceFreeTrialProperties {\n /** The free-trial createdAt utcDateTime. */\n readonly createdAt: Date;\n /** The free-trial expiryAt utcDateTime. */\n readonly expiryAt: Date;\n /** The free-trial allocated limit value eg. allocated free execution minutes. */\n readonly allocatedValue: number;\n /** The free-trial used value eg. used free execution minutes. */\n readonly usedValue: number;\n /** The free-trial percentage used. */\n readonly percentageUsed: number;\n}\n\nexport function playwrightWorkspaceFreeTrialPropertiesDeserializer(\n item: any,\n): PlaywrightWorkspaceFreeTrialProperties {\n return {\n createdAt: new Date(item[\"createdAt\"]),\n expiryAt: new Date(item[\"expiryAt\"]),\n allocatedValue: item[\"allocatedValue\"],\n usedValue: item[\"usedValue\"],\n percentageUsed: item[\"percentageUsed\"],\n };\n}\n\n/** The response of a PlaywrightWorkspaceQuota list operation. */\nexport interface _PlaywrightWorkspaceQuotaListResult {\n /** The PlaywrightWorkspaceQuota items on this page */\n value: PlaywrightWorkspaceQuota[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _playwrightWorkspaceQuotaListResultDeserializer(\n item: any,\n): _PlaywrightWorkspaceQuotaListResult {\n return {\n value: playwrightWorkspaceQuotaArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function playwrightWorkspaceQuotaArrayDeserializer(\n result: Array<PlaywrightWorkspaceQuota>,\n): any[] {\n return result.map((item) => {\n return playwrightWorkspaceQuotaDeserializer(item);\n });\n}\n\n/** Playwright service Management API Versions. */\nexport enum KnownVersions {\n /** 2025-07-01-preview version */\n V20250701Preview = \"2025-07-01-preview\",\n}\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PlaywrightManagementClientOptionalParams } from "./api/index.js";
|
|
2
|
+
import { PlaywrightWorkspaceQuotasOperations } from "./classic/playwrightWorkspaceQuotas/index.js";
|
|
3
|
+
import { PlaywrightQuotasOperations } from "./classic/playwrightQuotas/index.js";
|
|
4
|
+
import { PlaywrightWorkspacesOperations } from "./classic/playwrightWorkspaces/index.js";
|
|
5
|
+
import { OperationsOperations } from "./classic/operations/index.js";
|
|
6
|
+
import { Pipeline } from "@azure/core-rest-pipeline";
|
|
7
|
+
import { TokenCredential } from "@azure/core-auth";
|
|
8
|
+
export { PlaywrightManagementClientOptionalParams } from "./api/playwrightManagementContext.js";
|
|
9
|
+
export declare class PlaywrightManagementClient {
|
|
10
|
+
private _client;
|
|
11
|
+
/** The pipeline used by this client to make requests */
|
|
12
|
+
readonly pipeline: Pipeline;
|
|
13
|
+
/** Playwright service provides access to Playwright workspace resource and it's operations. */
|
|
14
|
+
constructor(credential: TokenCredential, subscriptionId: string, options?: PlaywrightManagementClientOptionalParams);
|
|
15
|
+
/** The operation groups for playwrightWorkspaceQuotas */
|
|
16
|
+
readonly playwrightWorkspaceQuotas: PlaywrightWorkspaceQuotasOperations;
|
|
17
|
+
/** The operation groups for playwrightQuotas */
|
|
18
|
+
readonly playwrightQuotas: PlaywrightQuotasOperations;
|
|
19
|
+
/** The operation groups for playwrightWorkspaces */
|
|
20
|
+
readonly playwrightWorkspaces: PlaywrightWorkspacesOperations;
|
|
21
|
+
/** The operation groups for operations */
|
|
22
|
+
readonly operations: OperationsOperations;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=playwrightManagementClient.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { createPlaywrightManagement, } from "./api/index.js";
|
|
4
|
+
import { _getPlaywrightWorkspaceQuotasOperations, } from "./classic/playwrightWorkspaceQuotas/index.js";
|
|
5
|
+
import { _getPlaywrightQuotasOperations, } from "./classic/playwrightQuotas/index.js";
|
|
6
|
+
import { _getPlaywrightWorkspacesOperations, } from "./classic/playwrightWorkspaces/index.js";
|
|
7
|
+
import { _getOperationsOperations } from "./classic/operations/index.js";
|
|
8
|
+
export class PlaywrightManagementClient {
|
|
9
|
+
/** Playwright service provides access to Playwright workspace resource and it's operations. */
|
|
10
|
+
constructor(credential, subscriptionId, options = {}) {
|
|
11
|
+
var _a;
|
|
12
|
+
const prefixFromOptions = (_a = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _a === void 0 ? void 0 : _a.userAgentPrefix;
|
|
13
|
+
const userAgentPrefix = prefixFromOptions
|
|
14
|
+
? `${prefixFromOptions} azsdk-js-client`
|
|
15
|
+
: `azsdk-js-client`;
|
|
16
|
+
this._client = createPlaywrightManagement(credential, subscriptionId, Object.assign(Object.assign({}, options), { userAgentOptions: { userAgentPrefix } }));
|
|
17
|
+
this.pipeline = this._client.pipeline;
|
|
18
|
+
this.playwrightWorkspaceQuotas = _getPlaywrightWorkspaceQuotasOperations(this._client);
|
|
19
|
+
this.playwrightQuotas = _getPlaywrightQuotasOperations(this._client);
|
|
20
|
+
this.playwrightWorkspaces = _getPlaywrightWorkspacesOperations(this._client);
|
|
21
|
+
this.operations = _getOperationsOperations(this._client);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=playwrightManagementClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"playwrightManagementClient.js","sourceRoot":"","sources":["../../src/playwrightManagementClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,0BAA0B,GAG3B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,uCAAuC,GACxC,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAEL,8BAA8B,GAC/B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAEL,kCAAkC,GACnC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAwB,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAM/F,MAAM,OAAO,0BAA0B;IAKrC,+FAA+F;IAC/F,YACE,UAA2B,EAC3B,cAAsB,EACtB,UAAoD,EAAE;;QAEtD,MAAM,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,0CAAE,eAAe,CAAC;QACrE,MAAM,eAAe,GAAG,iBAAiB;YACvC,CAAC,CAAC,GAAG,iBAAiB,kBAAkB;YACxC,CAAC,CAAC,iBAAiB,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,0BAA0B,CAAC,UAAU,EAAE,cAAc,kCAC/D,OAAO,KACV,gBAAgB,EAAE,EAAE,eAAe,EAAE,IACrC,CAAC;QACH,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;QACtC,IAAI,CAAC,yBAAyB,GAAG,uCAAuC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,IAAI,CAAC,gBAAgB,GAAG,8BAA8B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACrE,IAAI,CAAC,oBAAoB,GAAG,kCAAkC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,IAAI,CAAC,UAAU,GAAG,wBAAwB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;CAUF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n createPlaywrightManagement,\n PlaywrightManagementContext,\n PlaywrightManagementClientOptionalParams,\n} from \"./api/index.js\";\nimport {\n PlaywrightWorkspaceQuotasOperations,\n _getPlaywrightWorkspaceQuotasOperations,\n} from \"./classic/playwrightWorkspaceQuotas/index.js\";\nimport {\n PlaywrightQuotasOperations,\n _getPlaywrightQuotasOperations,\n} from \"./classic/playwrightQuotas/index.js\";\nimport {\n PlaywrightWorkspacesOperations,\n _getPlaywrightWorkspacesOperations,\n} from \"./classic/playwrightWorkspaces/index.js\";\nimport { OperationsOperations, _getOperationsOperations } from \"./classic/operations/index.js\";\nimport { Pipeline } from \"@azure/core-rest-pipeline\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\nexport { PlaywrightManagementClientOptionalParams } from \"./api/playwrightManagementContext.js\";\n\nexport class PlaywrightManagementClient {\n private _client: PlaywrightManagementContext;\n /** The pipeline used by this client to make requests */\n public readonly pipeline: Pipeline;\n\n /** Playwright service provides access to Playwright workspace resource and it's operations. */\n constructor(\n credential: TokenCredential,\n subscriptionId: string,\n options: PlaywrightManagementClientOptionalParams = {},\n ) {\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-client`\n : `azsdk-js-client`;\n this._client = createPlaywrightManagement(credential, subscriptionId, {\n ...options,\n userAgentOptions: { userAgentPrefix },\n });\n this.pipeline = this._client.pipeline;\n this.playwrightWorkspaceQuotas = _getPlaywrightWorkspaceQuotasOperations(this._client);\n this.playwrightQuotas = _getPlaywrightQuotasOperations(this._client);\n this.playwrightWorkspaces = _getPlaywrightWorkspacesOperations(this._client);\n this.operations = _getOperationsOperations(this._client);\n }\n\n /** The operation groups for playwrightWorkspaceQuotas */\n public readonly playwrightWorkspaceQuotas: PlaywrightWorkspaceQuotasOperations;\n /** The operation groups for playwrightQuotas */\n public readonly playwrightQuotas: PlaywrightQuotasOperations;\n /** The operation groups for playwrightWorkspaces */\n public readonly playwrightWorkspaces: PlaywrightWorkspacesOperations;\n /** The operation groups for operations */\n public readonly operations: OperationsOperations;\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PlaywrightManagementClient } from "./playwrightManagementClient.js";
|
|
2
|
+
import { OperationOptions, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
3
|
+
import { AbortSignalLike } from "@azure/abort-controller";
|
|
4
|
+
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
5
|
+
export interface RestorePollerOptions<TResult, TResponse extends PathUncheckedResponse = PathUncheckedResponse> extends OperationOptions {
|
|
6
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
7
|
+
updateIntervalInMs?: number;
|
|
8
|
+
/**
|
|
9
|
+
* The signal which can be used to abort requests.
|
|
10
|
+
*/
|
|
11
|
+
abortSignal?: AbortSignalLike;
|
|
12
|
+
/** Deserialization function for raw response body */
|
|
13
|
+
processResponseBody?: (result: TResponse) => Promise<TResult>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Creates a poller from the serialized state of another poller. This can be
|
|
17
|
+
* useful when you want to create pollers on a different host or a poller
|
|
18
|
+
* needs to be constructed after the original one is not in scope.
|
|
19
|
+
*/
|
|
20
|
+
export declare function restorePoller<TResponse extends PathUncheckedResponse, TResult>(client: PlaywrightManagementClient, serializedState: string, sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>, options?: RestorePollerOptions<TResult>): PollerLike<OperationState<TResult>, TResult>;
|
|
21
|
+
//# sourceMappingURL=restorePollerHelpers.d.ts.map
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { _$deleteDeserialize, _createOrUpdateDeserialize, } from "./api/playwrightWorkspaces/operations.js";
|
|
4
|
+
import { getLongRunningPoller } from "./static-helpers/pollingHelpers.js";
|
|
5
|
+
import { deserializeState, } from "@azure/core-lro";
|
|
6
|
+
/**
|
|
7
|
+
* Creates a poller from the serialized state of another poller. This can be
|
|
8
|
+
* useful when you want to create pollers on a different host or a poller
|
|
9
|
+
* needs to be constructed after the original one is not in scope.
|
|
10
|
+
*/
|
|
11
|
+
export function restorePoller(client, serializedState, sourceOperation, options) {
|
|
12
|
+
var _a, _b, _c;
|
|
13
|
+
const pollerConfig = deserializeState(serializedState).config;
|
|
14
|
+
const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
|
|
15
|
+
if (!initialRequestUrl || !requestMethod) {
|
|
16
|
+
throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation === null || sourceOperation === void 0 ? void 0 : sourceOperation.name}`);
|
|
17
|
+
}
|
|
18
|
+
const resourceLocationConfig = metadata === null || metadata === void 0 ? void 0 : metadata["resourceLocationConfig"];
|
|
19
|
+
const { deserializer, expectedStatuses = [] } = (_a = getDeserializationHelper(initialRequestUrl, requestMethod)) !== null && _a !== void 0 ? _a : {};
|
|
20
|
+
const deserializeHelper = (_b = options === null || options === void 0 ? void 0 : options.processResponseBody) !== null && _b !== void 0 ? _b : deserializer;
|
|
21
|
+
if (!deserializeHelper) {
|
|
22
|
+
throw new Error(`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation === null || sourceOperation === void 0 ? void 0 : sourceOperation.name}.`);
|
|
23
|
+
}
|
|
24
|
+
return getLongRunningPoller((_c = client["_client"]) !== null && _c !== void 0 ? _c : client, deserializeHelper, expectedStatuses, {
|
|
25
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
26
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
27
|
+
resourceLocationConfig,
|
|
28
|
+
restoreFrom: serializedState,
|
|
29
|
+
initialRequestUrl,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
const deserializeMap = {
|
|
33
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}": {
|
|
34
|
+
deserializer: _$deleteDeserialize,
|
|
35
|
+
expectedStatuses: ["202", "204", "200"],
|
|
36
|
+
},
|
|
37
|
+
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}": {
|
|
38
|
+
deserializer: _createOrUpdateDeserialize,
|
|
39
|
+
expectedStatuses: ["200", "201"],
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
function getDeserializationHelper(urlStr, method) {
|
|
43
|
+
var _a, _b, _c, _d;
|
|
44
|
+
const path = new URL(urlStr).pathname;
|
|
45
|
+
const pathParts = path.split("/");
|
|
46
|
+
// Traverse list to match the longest candidate
|
|
47
|
+
// matchedLen: the length of candidate path
|
|
48
|
+
// matchedValue: the matched status code array
|
|
49
|
+
let matchedLen = -1, matchedValue;
|
|
50
|
+
// Iterate the responseMap to find a match
|
|
51
|
+
for (const [key, value] of Object.entries(deserializeMap)) {
|
|
52
|
+
// Extracting the path from the map key which is in format
|
|
53
|
+
// GET /path/foo
|
|
54
|
+
if (!key.startsWith(method)) {
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
const candidatePath = getPathFromMapKey(key);
|
|
58
|
+
// Get each part of the url path
|
|
59
|
+
const candidateParts = candidatePath.split("/");
|
|
60
|
+
// track if we have found a match to return the values found.
|
|
61
|
+
let found = true;
|
|
62
|
+
for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
|
|
63
|
+
if (((_a = candidateParts[i]) === null || _a === void 0 ? void 0 : _a.startsWith("{")) && ((_b = candidateParts[i]) === null || _b === void 0 ? void 0 : _b.indexOf("}")) !== -1) {
|
|
64
|
+
const start = candidateParts[i].indexOf("}") + 1, end = (_c = candidateParts[i]) === null || _c === void 0 ? void 0 : _c.length;
|
|
65
|
+
// If the current part of the candidate is a "template" part
|
|
66
|
+
// Try to use the suffix of pattern to match the path
|
|
67
|
+
// {guid} ==> $
|
|
68
|
+
// {guid}:export ==> :export$
|
|
69
|
+
const isMatched = new RegExp(`${(_d = candidateParts[i]) === null || _d === void 0 ? void 0 : _d.slice(start, end)}`).test(pathParts[j] || "");
|
|
70
|
+
if (!isMatched) {
|
|
71
|
+
found = false;
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
// If the candidate part is not a template and
|
|
77
|
+
// the parts don't match mark the candidate as not found
|
|
78
|
+
// to move on with the next candidate path.
|
|
79
|
+
if (candidateParts[i] !== pathParts[j]) {
|
|
80
|
+
found = false;
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
// We finished evaluating the current candidate parts
|
|
85
|
+
// Update the matched value if and only if we found the longer pattern
|
|
86
|
+
if (found && candidatePath.length > matchedLen) {
|
|
87
|
+
matchedLen = candidatePath.length;
|
|
88
|
+
matchedValue = value;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return matchedValue;
|
|
92
|
+
}
|
|
93
|
+
function getPathFromMapKey(mapKey) {
|
|
94
|
+
const pathStart = mapKey.indexOf("/");
|
|
95
|
+
return mapKey.slice(pathStart);
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=restorePollerHelpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,mBAAmB,EACnB,0BAA0B,GAC3B,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAG1E,OAAO,EAGL,gBAAgB,GAEjB,MAAM,iBAAiB,CAAC;AAgBzB;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAC3B,MAAkC,EAClC,eAAuB,EACvB,eAAiF,EACjF,OAAuC;;IAEvC,MAAM,YAAY,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,iBAAiB,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,YAAY,CAAC;IACpE,IAAI,CAAC,iBAAiB,IAAI,CAAC,aAAa,EAAE,CAAC;QACzC,MAAM,IAAI,KAAK,CACb,6BAA6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,SAAS,GAAG,IAAI,MAAM,CAAC,GAAG,MAAA,cAAc,CAAC,CAAC,CAAC,0CAAE,KAAK,CAAC,KAAK,EAAE,GAAG,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 { PlaywrightManagementClient } from \"./playwrightManagementClient.js\";\nimport {\n _$deleteDeserialize,\n _createOrUpdateDeserialize,\n} from \"./api/playwrightWorkspaces/operations.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport {\n PollerLike,\n OperationState,\n deserializeState,\n ResourceLocationConfig,\n} from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: PlaywrightManagementClient,\n serializedState: string,\n sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>,\n options?: RestorePollerOptions<TResult>,\n): PollerLike<OperationState<TResult>, TResult> {\n const pollerConfig = deserializeState(serializedState).config;\n const { initialRequestUrl, requestMethod, metadata } = pollerConfig;\n if (!initialRequestUrl || !requestMethod) {\n throw new Error(\n `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`,\n );\n }\n const resourceLocationConfig = metadata?.[\"resourceLocationConfig\"] as\n | ResourceLocationConfig\n | undefined;\n const { deserializer, expectedStatuses = [] } =\n getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};\n const deserializeHelper = options?.processResponseBody ?? deserializer;\n if (!deserializeHelper) {\n throw new Error(\n `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`,\n );\n }\n return getLongRunningPoller(\n (client as any)[\"_client\"] ?? client,\n deserializeHelper as (result: TResponse) => Promise<TResult>,\n expectedStatuses,\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n resourceLocationConfig,\n restoreFrom: serializedState,\n initialRequestUrl,\n },\n );\n}\n\ninterface DeserializationHelper {\n deserializer: Function;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}\":\n {\n deserializer: _$deleteDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}\":\n {\n deserializer: _createOrUpdateDeserialize,\n expectedStatuses: [\"200\", \"201\"],\n },\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): DeserializationHelper | undefined {\n const path = new URL(urlStr).pathname;\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: DeserializationHelper | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\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"]}
|