@azure/arm-playwrighttesting 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/CHANGELOG.md +3 -26
- package/README.md +18 -19
- package/dist/browser/api/accountQuotas/index.d.ts +13 -0
- package/dist/browser/api/accountQuotas/index.d.ts.map +1 -0
- package/dist/browser/api/accountQuotas/index.js +39 -0
- package/dist/browser/api/accountQuotas/index.js.map +1 -0
- package/dist/browser/api/accounts/index.d.ts +34 -0
- package/dist/browser/api/accounts/index.d.ts.map +1 -0
- package/dist/browser/api/accounts/index.js +132 -0
- package/dist/browser/api/accounts/index.js.map +1 -0
- package/dist/browser/api/azurePlaywrightServiceContext.d.ts +14 -0
- package/dist/browser/api/azurePlaywrightServiceContext.d.ts.map +1 -0
- package/dist/browser/api/azurePlaywrightServiceContext.js +35 -0
- package/dist/browser/api/azurePlaywrightServiceContext.js.map +1 -0
- package/dist/browser/api/index.d.ts +7 -0
- package/dist/browser/api/index.d.ts.map +1 -0
- package/dist/browser/api/index.js +8 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/operations/index.d.ts +9 -0
- package/dist/browser/api/operations/index.d.ts.map +1 -0
- package/dist/browser/api/operations/index.js +22 -0
- package/dist/browser/api/operations/index.js.map +1 -0
- package/dist/browser/api/options.d.ts +42 -0
- package/dist/browser/api/options.d.ts.map +1 -0
- package/dist/browser/api/options.js +4 -0
- package/dist/browser/api/options.js.map +1 -0
- package/dist/browser/api/quotas/index.d.ts +13 -0
- package/dist/browser/api/quotas/index.d.ts.map +1 -0
- package/dist/browser/api/quotas/index.js +39 -0
- package/dist/browser/api/quotas/index.js.map +1 -0
- package/dist/browser/azurePlaywrightServiceClient.d.ts +24 -0
- package/dist/browser/azurePlaywrightServiceClient.d.ts.map +1 -0
- package/dist/browser/azurePlaywrightServiceClient.js +24 -0
- package/dist/browser/azurePlaywrightServiceClient.js.map +1 -0
- package/dist/browser/classic/accountQuotas/index.d.ts +17 -0
- package/dist/browser/classic/accountQuotas/index.d.ts.map +1 -0
- package/dist/browser/classic/accountQuotas/index.js +13 -0
- package/dist/browser/classic/accountQuotas/index.js.map +1 -0
- package/dist/browser/classic/accounts/index.d.ts +33 -0
- package/dist/browser/classic/accounts/index.d.ts.map +1 -0
- package/dist/browser/classic/accounts/index.js +18 -0
- package/dist/browser/classic/accounts/index.js.map +1 -0
- package/dist/browser/classic/index.d.ts +5 -0
- package/dist/browser/classic/index.d.ts.map +1 -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 +14 -0
- package/dist/browser/classic/operations/index.d.ts.map +1 -0
- package/dist/browser/classic/operations/index.js +12 -0
- package/dist/browser/classic/operations/index.js.map +1 -0
- package/dist/browser/classic/quotas/index.d.ts +17 -0
- package/dist/browser/classic/quotas/index.d.ts.map +1 -0
- package/dist/browser/classic/quotas/index.js +13 -0
- package/dist/browser/classic/quotas/index.js.map +1 -0
- package/dist/browser/helpers/serializerHelpers.d.ts +3 -0
- package/dist/browser/helpers/serializerHelpers.d.ts.map +1 -0
- package/dist/browser/helpers/serializerHelpers.js +24 -0
- package/dist/browser/helpers/serializerHelpers.js.map +1 -0
- package/dist/browser/index.d.ts +8 -0
- package/dist/browser/index.d.ts.map +1 -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.d.ts.map +1 -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.d.ts.map +1 -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 +399 -0
- package/dist/browser/models/models.d.ts.map +1 -0
- package/dist/browser/models/models.js +343 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/restorePollerHelpers.d.ts +21 -0
- package/dist/browser/restorePollerHelpers.d.ts.map +1 -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.d.ts.map +1 -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.d.ts.map +1 -0
- package/dist/browser/static-helpers/pollingHelpers.js +76 -0
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/commonjs/api/accountQuotas/index.d.ts +13 -0
- package/dist/commonjs/api/accountQuotas/index.d.ts.map +1 -0
- package/dist/commonjs/api/accountQuotas/index.js +47 -0
- package/dist/commonjs/api/accountQuotas/index.js.map +1 -0
- package/dist/commonjs/api/accounts/index.d.ts +34 -0
- package/dist/commonjs/api/accounts/index.d.ts.map +1 -0
- package/dist/commonjs/api/accounts/index.js +155 -0
- package/dist/commonjs/api/accounts/index.js.map +1 -0
- package/dist/commonjs/api/azurePlaywrightServiceContext.d.ts +14 -0
- package/dist/commonjs/api/azurePlaywrightServiceContext.d.ts.map +1 -0
- package/dist/commonjs/api/azurePlaywrightServiceContext.js +38 -0
- package/dist/commonjs/api/azurePlaywrightServiceContext.js.map +1 -0
- package/dist/commonjs/api/index.d.ts +7 -0
- package/dist/commonjs/api/index.d.ts.map +1 -0
- package/dist/commonjs/api/index.js +24 -0
- package/dist/commonjs/api/index.js.map +1 -0
- package/dist/commonjs/api/operations/index.d.ts +9 -0
- package/dist/commonjs/api/operations/index.d.ts.map +1 -0
- package/dist/commonjs/api/operations/index.js +27 -0
- package/dist/commonjs/api/operations/index.js.map +1 -0
- package/dist/commonjs/api/options.d.ts +42 -0
- package/dist/commonjs/api/options.d.ts.map +1 -0
- package/dist/commonjs/api/options.js +5 -0
- package/dist/commonjs/api/options.js.map +1 -0
- package/dist/commonjs/api/quotas/index.d.ts +13 -0
- package/dist/commonjs/api/quotas/index.d.ts.map +1 -0
- package/dist/commonjs/api/quotas/index.js +47 -0
- package/dist/commonjs/api/quotas/index.js.map +1 -0
- package/dist/commonjs/azurePlaywrightServiceClient.d.ts +24 -0
- package/dist/commonjs/azurePlaywrightServiceClient.d.ts.map +1 -0
- package/dist/commonjs/azurePlaywrightServiceClient.js +28 -0
- package/dist/commonjs/azurePlaywrightServiceClient.js.map +1 -0
- package/dist/commonjs/classic/accountQuotas/index.d.ts +17 -0
- package/dist/commonjs/classic/accountQuotas/index.d.ts.map +1 -0
- package/dist/commonjs/classic/accountQuotas/index.js +17 -0
- package/dist/commonjs/classic/accountQuotas/index.js.map +1 -0
- package/dist/commonjs/classic/accounts/index.d.ts +33 -0
- package/dist/commonjs/classic/accounts/index.d.ts.map +1 -0
- package/dist/commonjs/classic/accounts/index.js +22 -0
- package/dist/commonjs/classic/accounts/index.js.map +1 -0
- package/dist/commonjs/classic/index.d.ts +5 -0
- package/dist/commonjs/classic/index.d.ts.map +1 -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 +14 -0
- package/dist/commonjs/classic/operations/index.d.ts.map +1 -0
- package/dist/commonjs/classic/operations/index.js +16 -0
- package/dist/commonjs/classic/operations/index.js.map +1 -0
- package/dist/commonjs/classic/quotas/index.d.ts +17 -0
- package/dist/commonjs/classic/quotas/index.d.ts.map +1 -0
- package/dist/commonjs/classic/quotas/index.js +17 -0
- package/dist/commonjs/classic/quotas/index.js.map +1 -0
- package/dist/commonjs/helpers/serializerHelpers.d.ts +3 -0
- package/dist/commonjs/helpers/serializerHelpers.d.ts.map +1 -0
- package/dist/commonjs/helpers/serializerHelpers.js +27 -0
- package/dist/commonjs/helpers/serializerHelpers.js.map +1 -0
- package/dist/commonjs/index.d.ts +8 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +21 -0
- package/dist/commonjs/index.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/index.d.ts +2 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +17 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/models.d.ts +399 -0
- package/dist/commonjs/models/models.d.ts.map +1 -0
- package/dist/commonjs/models/models.js +377 -0
- package/dist/commonjs/models/models.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
- package/dist/commonjs/restorePollerHelpers.d.ts.map +1 -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.d.ts.map +1 -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.d.ts.map +1 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js +79 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
- package/{types → dist/commonjs}/tsdoc-metadata.json +1 -1
- package/dist/esm/api/accountQuotas/index.d.ts +13 -0
- package/dist/esm/api/accountQuotas/index.d.ts.map +1 -0
- package/dist/esm/api/accountQuotas/index.js +39 -0
- package/dist/esm/api/accountQuotas/index.js.map +1 -0
- package/dist/esm/api/accounts/index.d.ts +34 -0
- package/dist/esm/api/accounts/index.d.ts.map +1 -0
- package/dist/esm/api/accounts/index.js +132 -0
- package/dist/esm/api/accounts/index.js.map +1 -0
- package/dist/esm/api/azurePlaywrightServiceContext.d.ts +14 -0
- package/dist/esm/api/azurePlaywrightServiceContext.d.ts.map +1 -0
- package/dist/esm/api/azurePlaywrightServiceContext.js +35 -0
- package/dist/esm/api/azurePlaywrightServiceContext.js.map +1 -0
- package/dist/esm/api/index.d.ts +7 -0
- package/dist/esm/api/index.d.ts.map +1 -0
- package/dist/esm/api/index.js +8 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/operations/index.d.ts +9 -0
- package/dist/esm/api/operations/index.d.ts.map +1 -0
- package/dist/esm/api/operations/index.js +22 -0
- package/dist/esm/api/operations/index.js.map +1 -0
- package/dist/esm/api/options.d.ts +42 -0
- package/dist/esm/api/options.d.ts.map +1 -0
- package/dist/esm/api/options.js +4 -0
- package/dist/esm/api/options.js.map +1 -0
- package/dist/esm/api/quotas/index.d.ts +13 -0
- package/dist/esm/api/quotas/index.d.ts.map +1 -0
- package/dist/esm/api/quotas/index.js +39 -0
- package/dist/esm/api/quotas/index.js.map +1 -0
- package/dist/esm/azurePlaywrightServiceClient.d.ts +24 -0
- package/dist/esm/azurePlaywrightServiceClient.d.ts.map +1 -0
- package/dist/esm/azurePlaywrightServiceClient.js +24 -0
- package/dist/esm/azurePlaywrightServiceClient.js.map +1 -0
- package/dist/esm/classic/accountQuotas/index.d.ts +17 -0
- package/dist/esm/classic/accountQuotas/index.d.ts.map +1 -0
- package/dist/esm/classic/accountQuotas/index.js +13 -0
- package/dist/esm/classic/accountQuotas/index.js.map +1 -0
- package/dist/esm/classic/accounts/index.d.ts +33 -0
- package/dist/esm/classic/accounts/index.d.ts.map +1 -0
- package/dist/esm/classic/accounts/index.js +18 -0
- package/dist/esm/classic/accounts/index.js.map +1 -0
- package/dist/esm/classic/index.d.ts +5 -0
- package/dist/esm/classic/index.d.ts.map +1 -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 +14 -0
- package/dist/esm/classic/operations/index.d.ts.map +1 -0
- package/dist/esm/classic/operations/index.js +12 -0
- package/dist/esm/classic/operations/index.js.map +1 -0
- package/dist/esm/classic/quotas/index.d.ts +17 -0
- package/dist/esm/classic/quotas/index.d.ts.map +1 -0
- package/dist/esm/classic/quotas/index.js +13 -0
- package/dist/esm/classic/quotas/index.js.map +1 -0
- package/dist/esm/helpers/serializerHelpers.d.ts +3 -0
- package/dist/esm/helpers/serializerHelpers.d.ts.map +1 -0
- package/dist/esm/helpers/serializerHelpers.js +24 -0
- package/dist/esm/helpers/serializerHelpers.js.map +1 -0
- package/dist/esm/index.d.ts +8 -0
- package/dist/esm/index.d.ts.map +1 -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.d.ts.map +1 -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.d.ts.map +1 -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 +399 -0
- package/dist/esm/models/models.d.ts.map +1 -0
- package/dist/esm/models/models.js +343 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/restorePollerHelpers.d.ts +21 -0
- package/dist/esm/restorePollerHelpers.d.ts.map +1 -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.d.ts.map +1 -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.d.ts.map +1 -0
- package/dist/esm/static-helpers/pollingHelpers.js +76 -0
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/react-native/api/accountQuotas/index.d.ts +13 -0
- package/dist/react-native/api/accountQuotas/index.d.ts.map +1 -0
- package/dist/react-native/api/accountQuotas/index.js +39 -0
- package/dist/react-native/api/accountQuotas/index.js.map +1 -0
- package/dist/react-native/api/accounts/index.d.ts +34 -0
- package/dist/react-native/api/accounts/index.d.ts.map +1 -0
- package/dist/react-native/api/accounts/index.js +132 -0
- package/dist/react-native/api/accounts/index.js.map +1 -0
- package/dist/react-native/api/azurePlaywrightServiceContext.d.ts +14 -0
- package/dist/react-native/api/azurePlaywrightServiceContext.d.ts.map +1 -0
- package/dist/react-native/api/azurePlaywrightServiceContext.js +35 -0
- package/dist/react-native/api/azurePlaywrightServiceContext.js.map +1 -0
- package/dist/react-native/api/index.d.ts +7 -0
- package/dist/react-native/api/index.d.ts.map +1 -0
- package/dist/react-native/api/index.js +8 -0
- package/dist/react-native/api/index.js.map +1 -0
- package/dist/react-native/api/operations/index.d.ts +9 -0
- package/dist/react-native/api/operations/index.d.ts.map +1 -0
- package/dist/react-native/api/operations/index.js +22 -0
- package/dist/react-native/api/operations/index.js.map +1 -0
- package/dist/react-native/api/options.d.ts +42 -0
- package/dist/react-native/api/options.d.ts.map +1 -0
- package/dist/react-native/api/options.js +4 -0
- package/dist/react-native/api/options.js.map +1 -0
- package/dist/react-native/api/quotas/index.d.ts +13 -0
- package/dist/react-native/api/quotas/index.d.ts.map +1 -0
- package/dist/react-native/api/quotas/index.js +39 -0
- package/dist/react-native/api/quotas/index.js.map +1 -0
- package/dist/react-native/azurePlaywrightServiceClient.d.ts +24 -0
- package/dist/react-native/azurePlaywrightServiceClient.d.ts.map +1 -0
- package/dist/react-native/azurePlaywrightServiceClient.js +24 -0
- package/dist/react-native/azurePlaywrightServiceClient.js.map +1 -0
- package/dist/react-native/classic/accountQuotas/index.d.ts +17 -0
- package/dist/react-native/classic/accountQuotas/index.d.ts.map +1 -0
- package/dist/react-native/classic/accountQuotas/index.js +13 -0
- package/dist/react-native/classic/accountQuotas/index.js.map +1 -0
- package/dist/react-native/classic/accounts/index.d.ts +33 -0
- package/dist/react-native/classic/accounts/index.d.ts.map +1 -0
- package/dist/react-native/classic/accounts/index.js +18 -0
- package/dist/react-native/classic/accounts/index.js.map +1 -0
- package/dist/react-native/classic/index.d.ts +5 -0
- package/dist/react-native/classic/index.d.ts.map +1 -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 +14 -0
- package/dist/react-native/classic/operations/index.d.ts.map +1 -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/quotas/index.d.ts +17 -0
- package/dist/react-native/classic/quotas/index.d.ts.map +1 -0
- package/dist/react-native/classic/quotas/index.js +13 -0
- package/dist/react-native/classic/quotas/index.js.map +1 -0
- package/dist/react-native/helpers/serializerHelpers.d.ts +3 -0
- package/dist/react-native/helpers/serializerHelpers.d.ts.map +1 -0
- package/dist/react-native/helpers/serializerHelpers.js +24 -0
- package/dist/react-native/helpers/serializerHelpers.js.map +1 -0
- package/dist/react-native/index.d.ts +8 -0
- package/dist/react-native/index.d.ts.map +1 -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.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/index.d.ts +2 -0
- package/dist/react-native/models/index.d.ts.map +1 -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 +399 -0
- package/dist/react-native/models/models.d.ts.map +1 -0
- package/dist/react-native/models/models.js +343 -0
- package/dist/react-native/models/models.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/restorePollerHelpers.d.ts +21 -0
- package/dist/react-native/restorePollerHelpers.d.ts.map +1 -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.d.ts.map +1 -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.d.ts.map +1 -0
- package/dist/react-native/static-helpers/pollingHelpers.js +76 -0
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
- package/package.json +132 -87
- package/review/arm-playwrighttesting-models.api.md +230 -0
- package/review/arm-playwrighttesting.api.md +131 -143
- package/dist/index.js +0 -1798
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/accountsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/accountsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js +0 -44
- package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/accountsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/accountsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/accountsDeleteSample.js +0 -39
- package/dist-esm/samples-dev/accountsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/accountsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/accountsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/accountsGetSample.js +0 -39
- package/dist-esm/samples-dev/accountsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +0 -54
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.js +0 -53
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/accountsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/accountsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/accountsUpdateSample.js +0 -43
- package/dist-esm/samples-dev/accountsUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.js +0 -53
- package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
- package/dist-esm/samples-dev/quotasGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/quotasGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/quotasGetSample.js +0 -39
- package/dist-esm/samples-dev/quotasGetSample.js.map +0 -1
- package/dist-esm/samples-dev/quotasListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/quotasListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/quotasListBySubscriptionSample.js +0 -54
- package/dist-esm/samples-dev/quotasListBySubscriptionSample.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -6
- package/dist-esm/src/index.d.ts.map +0 -1
- package/dist-esm/src/index.js +0 -13
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/lroImpl.d.ts +0 -11
- package/dist-esm/src/lroImpl.d.ts.map +0 -1
- package/dist-esm/src/lroImpl.js +0 -21
- package/dist-esm/src/lroImpl.js.map +0 -1
- package/dist-esm/src/models/index.d.ts +0 -484
- package/dist-esm/src/models/index.d.ts.map +0 -1
- package/dist-esm/src/models/index.js +0 -72
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.d.ts +0 -23
- package/dist-esm/src/models/mappers.d.ts.map +0 -1
- package/dist-esm/src/models/mappers.js +0 -606
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.d.ts +0 -14
- package/dist-esm/src/models/parameters.d.ts.map +0 -1
- package/dist-esm/src/models/parameters.js +0 -134
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/accounts.d.ts +0 -99
- package/dist-esm/src/operations/accounts.d.ts.map +0 -1
- package/dist-esm/src/operations/accounts.js +0 -489
- package/dist-esm/src/operations/accounts.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -4
- package/dist-esm/src/operations/index.d.ts.map +0 -1
- package/dist-esm/src/operations/index.js +0 -11
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/operations.d.ts +0 -32
- package/dist-esm/src/operations/operations.d.ts.map +0 -1
- package/dist-esm/src/operations/operations.js +0 -133
- package/dist-esm/src/operations/operations.js.map +0 -1
- package/dist-esm/src/operations/quotas.d.ts +0 -42
- package/dist-esm/src/operations/quotas.d.ts.map +0 -1
- package/dist-esm/src/operations/quotas.js +0 -175
- package/dist-esm/src/operations/quotas.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/accounts.d.ts +0 -63
- package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/accounts.js +0 -9
- package/dist-esm/src/operationsInterfaces/accounts.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -4
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.js +0 -11
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.d.ts +0 -11
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js +0 -9
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/quotas.d.ts +0 -19
- package/dist-esm/src/operationsInterfaces/quotas.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/quotas.js +0 -9
- package/dist-esm/src/operationsInterfaces/quotas.js.map +0 -1
- package/dist-esm/src/pagingHelper.d.ts +0 -13
- package/dist-esm/src/pagingHelper.d.ts.map +0 -1
- package/dist-esm/src/pagingHelper.js +0 -32
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/src/playwrightTestingClient.d.ts +0 -22
- package/dist-esm/src/playwrightTestingClient.d.ts.map +0 -1
- package/dist-esm/src/playwrightTestingClient.js +0 -102
- package/dist-esm/src/playwrightTestingClient.js.map +0 -1
- package/dist-esm/test/playwrighttesting_operations_test.spec.d.ts +0 -4
- package/dist-esm/test/playwrighttesting_operations_test.spec.d.ts.map +0 -1
- package/dist-esm/test/playwrighttesting_operations_test.spec.js +0 -71
- package/dist-esm/test/playwrighttesting_operations_test.spec.js.map +0 -1
- package/src/index.ts +0 -13
- package/src/lroImpl.ts +0 -42
- package/src/models/index.ts +0 -549
- package/src/models/mappers.ts +0 -640
- package/src/models/parameters.ts +0 -154
- package/src/operations/accounts.ts +0 -630
- package/src/operations/index.ts +0 -11
- package/src/operations/operations.ts +0 -149
- package/src/operations/quotas.ts +0 -219
- package/src/operationsInterfaces/accounts.ts +0 -121
- package/src/operationsInterfaces/index.ts +0 -11
- package/src/operationsInterfaces/operations.ts +0 -22
- package/src/operationsInterfaces/quotas.ts +0 -41
- package/src/pagingHelper.ts +0 -39
- package/src/playwrightTestingClient.ts +0 -144
- package/tsconfig.json +0 -33
- package/types/arm-playwrighttesting.d.ts +0 -663
package/CHANGELOG.md
CHANGED
|
@@ -1,30 +1,7 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
-
## 1.0.0
|
|
4
|
-
|
|
5
|
-
**Features**
|
|
6
|
-
|
|
7
|
-
- Added Interface AccountProperties
|
|
8
|
-
- Added Interface AccountUpdateProperties
|
|
9
|
-
- Added Interface QuotaProperties
|
|
10
|
-
- Interface Account has a new optional parameter properties
|
|
11
|
-
- Interface AccountUpdate has a new optional parameter properties
|
|
12
|
-
- Interface Quota has a new optional parameter properties
|
|
13
|
-
|
|
14
|
-
**Breaking Changes**
|
|
3
|
+
## 1.0.0 (2024-12-13)
|
|
15
4
|
|
|
16
|
-
|
|
17
|
-
- Interface Account no longer has parameter provisioningState
|
|
18
|
-
- Interface Account no longer has parameter regionalAffinity
|
|
19
|
-
- Interface Account no longer has parameter reporting
|
|
20
|
-
- Interface Account no longer has parameter scalableExecution
|
|
21
|
-
- Interface AccountUpdate no longer has parameter regionalAffinity
|
|
22
|
-
- Interface AccountUpdate no longer has parameter reporting
|
|
23
|
-
- Interface AccountUpdate no longer has parameter scalableExecution
|
|
24
|
-
- Interface Quota no longer has parameter freeTrial
|
|
25
|
-
- Interface Quota no longer has parameter provisioningState
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
## 1.0.0-beta.1 (2023-09-27)
|
|
5
|
+
### Features Added
|
|
29
6
|
|
|
30
|
-
|
|
7
|
+
This is the first stable version with the package of @azure/arm-playwrighttesting.
|
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
#
|
|
1
|
+
# AzurePlaywrightService client library for JavaScript
|
|
2
2
|
|
|
3
|
-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for
|
|
3
|
+
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzurePlaywrightService client.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Microsoft.AzurePlaywrightService Resource Provider Management API.
|
|
6
6
|
|
|
7
7
|
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/playwrighttesting/arm-playwrighttesting) |
|
|
8
8
|
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-playwrighttesting) |
|
|
9
|
-
[API reference documentation](https://
|
|
9
|
+
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-playwrighttesting) |
|
|
10
10
|
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
|
|
11
11
|
|
|
12
12
|
## Getting started
|
|
@@ -24,16 +24,16 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP
|
|
|
24
24
|
|
|
25
25
|
### Install the `@azure/arm-playwrighttesting` package
|
|
26
26
|
|
|
27
|
-
Install the
|
|
27
|
+
Install the AzurePlaywrightService client library for JavaScript with `npm`:
|
|
28
28
|
|
|
29
29
|
```bash
|
|
30
30
|
npm install @azure/arm-playwrighttesting
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
### Create and authenticate a `
|
|
33
|
+
### Create and authenticate a `AzurePlaywrightServiceClient`
|
|
34
34
|
|
|
35
|
-
To create a client object to access the
|
|
36
|
-
You can find the endpoint for your
|
|
35
|
+
To create a client object to access the AzurePlaywrightService API, you will need the `endpoint` of your AzurePlaywrightService resource and a `credential`. The AzurePlaywrightService client can use Azure Active Directory credentials to authenticate.
|
|
36
|
+
You can find the endpoint for your AzurePlaywrightService resource in the [Azure Portal][azure_portal].
|
|
37
37
|
|
|
38
38
|
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
|
|
39
39
|
|
|
@@ -43,36 +43,35 @@ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below
|
|
|
43
43
|
npm install @azure/identity
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
-
You will also need to **register a new AAD application and grant access to
|
|
47
|
-
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
|
|
46
|
+
You will also need to **register a new AAD application and grant access to AzurePlaywrightService** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
|
|
48
47
|
|
|
49
|
-
For more information about how to create an Azure AD Application check out [this guide](https://
|
|
48
|
+
For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
|
|
50
49
|
|
|
51
50
|
```javascript
|
|
52
|
-
const {
|
|
51
|
+
const { AzurePlaywrightServiceClient } = require("@azure/arm-playwrighttesting");
|
|
53
52
|
const { DefaultAzureCredential } = require("@azure/identity");
|
|
54
53
|
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
|
|
55
54
|
|
|
56
55
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
57
|
-
const client = new
|
|
56
|
+
const client = new AzurePlaywrightServiceClient(new DefaultAzureCredential(), subscriptionId);
|
|
58
57
|
|
|
59
58
|
// For client-side applications running in the browser, use this code instead:
|
|
60
59
|
// const credential = new InteractiveBrowserCredential({
|
|
61
60
|
// tenantId: "<YOUR_TENANT_ID>",
|
|
62
61
|
// clientId: "<YOUR_CLIENT_ID>"
|
|
63
62
|
// });
|
|
64
|
-
// const client = new
|
|
63
|
+
// const client = new AzurePlaywrightServiceClient(credential, subscriptionId);
|
|
65
64
|
```
|
|
66
65
|
|
|
67
|
-
|
|
68
66
|
### JavaScript Bundle
|
|
67
|
+
|
|
69
68
|
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
|
|
70
69
|
|
|
71
70
|
## Key concepts
|
|
72
71
|
|
|
73
|
-
###
|
|
72
|
+
### AzurePlaywrightServiceClient
|
|
74
73
|
|
|
75
|
-
`
|
|
74
|
+
`AzurePlaywrightServiceClient` is the primary interface for developers using the AzurePlaywrightService client library. Explore the methods on this client object to understand the different features of the AzurePlaywrightService service that you can access.
|
|
76
75
|
|
|
77
76
|
## Troubleshooting
|
|
78
77
|
|
|
@@ -89,7 +88,7 @@ For more detailed instructions on how to enable logs, you can look at the [@azur
|
|
|
89
88
|
|
|
90
89
|
## Next steps
|
|
91
90
|
|
|
92
|
-
Please take a look at the [samples](https://github.com/Azure
|
|
91
|
+
Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/playwrighttesting/arm-playwrighttesting/samples) directory for detailed examples on how to use this library.
|
|
93
92
|
|
|
94
93
|
## Contributing
|
|
95
94
|
|
|
@@ -101,7 +100,7 @@ If you'd like to contribute to this library, please read the [contributing guide
|
|
|
101
100
|
|
|
102
101
|

|
|
103
102
|
|
|
104
|
-
[azure_cli]: https://
|
|
103
|
+
[azure_cli]: https://learn.microsoft.com/cli/azure
|
|
105
104
|
[azure_sub]: https://azure.microsoft.com/free/
|
|
106
105
|
[azure_sub]: https://azure.microsoft.com/free/
|
|
107
106
|
[azure_portal]: https://portal.azure.com
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AccountQuotasGetOptionalParams, AccountQuotasListByAccountOptionalParams, AzurePlaywrightServiceContext as Client } from "../index.js";
|
|
2
|
+
import { AccountQuota, QuotaNames, _AccountQuotaListResult } from "../../models/models.js";
|
|
3
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
|
+
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
5
|
+
export declare function _accountQuotasGetSend(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, quotaName: QuotaNames, options?: AccountQuotasGetOptionalParams): StreamableMethod;
|
|
6
|
+
export declare function _accountQuotasGetDeserialize(result: PathUncheckedResponse): Promise<AccountQuota>;
|
|
7
|
+
/** Get quota by name for an account. */
|
|
8
|
+
export declare function accountQuotasGet(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, quotaName: QuotaNames, options?: AccountQuotasGetOptionalParams): Promise<AccountQuota>;
|
|
9
|
+
export declare function _accountQuotasListByAccountSend(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, options?: AccountQuotasListByAccountOptionalParams): StreamableMethod;
|
|
10
|
+
export declare function _accountQuotasListByAccountDeserialize(result: PathUncheckedResponse): Promise<_AccountQuotaListResult>;
|
|
11
|
+
/** List quotas for a given account. */
|
|
12
|
+
export declare function accountQuotasListByAccount(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, options?: AccountQuotasListByAccountOptionalParams): PagedAsyncIterableIterator<AccountQuota>;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/accountQuotas/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,8BAA8B,EAC9B,wCAAwC,EACxC,6BAA6B,IAAI,MAAM,EACxC,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,YAAY,EAEZ,UAAU,EACV,uBAAuB,EAExB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EAGtB,MAAM,yBAAyB,CAAC;AAEjC,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,UAAU,EACrB,OAAO,GAAE,8BAAuD,GAC/D,gBAAgB,CAUlB;AAED,wBAAsB,4BAA4B,CAChD,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,YAAY,CAAC,CAOvB;AAED,wCAAwC;AACxC,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,UAAU,EACrB,OAAO,GAAE,8BAAuD,GAC/D,OAAO,CAAC,YAAY,CAAC,CAUvB;AAED,wBAAgB,+BAA+B,CAC7C,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,wCAAiE,GACzE,gBAAgB,CASlB;AAED,wBAAsB,sCAAsC,CAC1D,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,uBAAuB,CAAC,CAOlC;AAED,uCAAuC;AACvC,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,wCAAiE,GACzE,0BAA0B,CAAC,YAAY,CAAC,CAe1C"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { accountQuotaDeserializer, _accountQuotaListResultDeserializer, } from "../../models/models.js";
|
|
4
|
+
import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
|
|
6
|
+
export function _accountQuotasGetSend(context, subscriptionId, resourceGroupName, accountName, quotaName, options = { requestOptions: {} }) {
|
|
7
|
+
return context
|
|
8
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}/quotas/{quotaName}", subscriptionId, resourceGroupName, accountName, quotaName)
|
|
9
|
+
.get(Object.assign({}, operationOptionsToRequestParameters(options)));
|
|
10
|
+
}
|
|
11
|
+
export async function _accountQuotasGetDeserialize(result) {
|
|
12
|
+
const expectedStatuses = ["200"];
|
|
13
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
14
|
+
throw createRestError(result);
|
|
15
|
+
}
|
|
16
|
+
return accountQuotaDeserializer(result.body);
|
|
17
|
+
}
|
|
18
|
+
/** Get quota by name for an account. */
|
|
19
|
+
export async function accountQuotasGet(context, subscriptionId, resourceGroupName, accountName, quotaName, options = { requestOptions: {} }) {
|
|
20
|
+
const result = await _accountQuotasGetSend(context, subscriptionId, resourceGroupName, accountName, quotaName, options);
|
|
21
|
+
return _accountQuotasGetDeserialize(result);
|
|
22
|
+
}
|
|
23
|
+
export function _accountQuotasListByAccountSend(context, subscriptionId, resourceGroupName, accountName, options = { requestOptions: {} }) {
|
|
24
|
+
return context
|
|
25
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}/quotas", subscriptionId, resourceGroupName, accountName)
|
|
26
|
+
.get(Object.assign({}, operationOptionsToRequestParameters(options)));
|
|
27
|
+
}
|
|
28
|
+
export async function _accountQuotasListByAccountDeserialize(result) {
|
|
29
|
+
const expectedStatuses = ["200"];
|
|
30
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
31
|
+
throw createRestError(result);
|
|
32
|
+
}
|
|
33
|
+
return _accountQuotaListResultDeserializer(result.body);
|
|
34
|
+
}
|
|
35
|
+
/** List quotas for a given account. */
|
|
36
|
+
export function accountQuotasListByAccount(context, subscriptionId, resourceGroupName, accountName, options = { requestOptions: {} }) {
|
|
37
|
+
return buildPagedAsyncIterator(context, () => _accountQuotasListByAccountSend(context, subscriptionId, resourceGroupName, accountName, options), _accountQuotasListByAccountDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/accountQuotas/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAOlC,OAAO,EAEL,wBAAwB,EAGxB,mCAAmC,GACpC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,qBAAqB,CACnC,OAAe,EACf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A6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,mCAAmC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC1D,CAAC;AAED,uCAAuC;AACvC,MAAM,UAAU,0BAA0B,CACxC,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,WAAmB,EACnB,UAAoD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE1E,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CACH,+BAA+B,CAC7B,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,EACH,sCAAsC,EACtC,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n AccountQuotasGetOptionalParams,\n AccountQuotasListByAccountOptionalParams,\n AzurePlaywrightServiceContext as Client,\n} from \"../index.js\";\nimport {\n AccountQuota,\n accountQuotaDeserializer,\n QuotaNames,\n _AccountQuotaListResult,\n _accountQuotaListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _accountQuotasGetSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n quotaName: QuotaNames,\n options: AccountQuotasGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}/quotas/{quotaName}\",\n subscriptionId,\n resourceGroupName,\n accountName,\n quotaName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _accountQuotasGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<AccountQuota> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return accountQuotaDeserializer(result.body);\n}\n\n/** Get quota by name for an account. */\nexport async function accountQuotasGet(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n quotaName: QuotaNames,\n options: AccountQuotasGetOptionalParams = { requestOptions: {} },\n): Promise<AccountQuota> {\n const result = await _accountQuotasGetSend(\n context,\n subscriptionId,\n resourceGroupName,\n accountName,\n quotaName,\n options,\n );\n return _accountQuotasGetDeserialize(result);\n}\n\nexport function _accountQuotasListByAccountSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n options: AccountQuotasListByAccountOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}/quotas\",\n subscriptionId,\n resourceGroupName,\n accountName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _accountQuotasListByAccountDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AccountQuotaListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _accountQuotaListResultDeserializer(result.body);\n}\n\n/** List quotas for a given account. */\nexport function accountQuotasListByAccount(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n options: AccountQuotasListByAccountOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<AccountQuota> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _accountQuotasListByAccountSend(\n context,\n subscriptionId,\n resourceGroupName,\n accountName,\n options,\n ),\n _accountQuotasListByAccountDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { AccountsCheckNameAvailabilityOptionalParams, AccountsCreateOrUpdateOptionalParams, AccountsDeleteOptionalParams, AccountsGetOptionalParams, AccountsListByResourceGroupOptionalParams, AccountsListBySubscriptionOptionalParams, AccountsUpdateOptionalParams, AzurePlaywrightServiceContext as Client } from "../index.js";
|
|
2
|
+
import { Account, AccountUpdate, _AccountListResult, CheckNameAvailabilityRequest, CheckNameAvailabilityResponse } from "../../models/models.js";
|
|
3
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
|
+
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
5
|
+
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
6
|
+
export declare function _accountsGetSend(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, options?: AccountsGetOptionalParams): StreamableMethod;
|
|
7
|
+
export declare function _accountsGetDeserialize(result: PathUncheckedResponse): Promise<Account>;
|
|
8
|
+
/** Get a Account */
|
|
9
|
+
export declare function accountsGet(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, options?: AccountsGetOptionalParams): Promise<Account>;
|
|
10
|
+
export declare function _accountsCreateOrUpdateSend(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, resource: Account, options?: AccountsCreateOrUpdateOptionalParams): StreamableMethod;
|
|
11
|
+
export declare function _accountsCreateOrUpdateDeserialize(result: PathUncheckedResponse): Promise<Account>;
|
|
12
|
+
/** Create a Account */
|
|
13
|
+
export declare function accountsCreateOrUpdate(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, resource: Account, options?: AccountsCreateOrUpdateOptionalParams): PollerLike<OperationState<Account>, Account>;
|
|
14
|
+
export declare function _accountsUpdateSend(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, properties: AccountUpdate, options?: AccountsUpdateOptionalParams): StreamableMethod;
|
|
15
|
+
export declare function _accountsUpdateDeserialize(result: PathUncheckedResponse): Promise<Account>;
|
|
16
|
+
/** Update a Account */
|
|
17
|
+
export declare function accountsUpdate(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, properties: AccountUpdate, options?: AccountsUpdateOptionalParams): Promise<Account>;
|
|
18
|
+
export declare function _accountsDeleteSend(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, options?: AccountsDeleteOptionalParams): StreamableMethod;
|
|
19
|
+
export declare function _accountsDeleteDeserialize(result: PathUncheckedResponse): Promise<void>;
|
|
20
|
+
/** Delete a Account */
|
|
21
|
+
export declare function accountsDelete(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, options?: AccountsDeleteOptionalParams): PollerLike<OperationState<void>, void>;
|
|
22
|
+
export declare function _accountsListByResourceGroupSend(context: Client, subscriptionId: string, resourceGroupName: string, options?: AccountsListByResourceGroupOptionalParams): StreamableMethod;
|
|
23
|
+
export declare function _accountsListByResourceGroupDeserialize(result: PathUncheckedResponse): Promise<_AccountListResult>;
|
|
24
|
+
/** List Account resources by resource group */
|
|
25
|
+
export declare function accountsListByResourceGroup(context: Client, subscriptionId: string, resourceGroupName: string, options?: AccountsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Account>;
|
|
26
|
+
export declare function _accountsListBySubscriptionSend(context: Client, subscriptionId: string, options?: AccountsListBySubscriptionOptionalParams): StreamableMethod;
|
|
27
|
+
export declare function _accountsListBySubscriptionDeserialize(result: PathUncheckedResponse): Promise<_AccountListResult>;
|
|
28
|
+
/** List Account resources by subscription ID */
|
|
29
|
+
export declare function accountsListBySubscription(context: Client, subscriptionId: string, options?: AccountsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Account>;
|
|
30
|
+
export declare function _accountsCheckNameAvailabilitySend(context: Client, subscriptionId: string, body: CheckNameAvailabilityRequest, options?: AccountsCheckNameAvailabilityOptionalParams): StreamableMethod;
|
|
31
|
+
export declare function _accountsCheckNameAvailabilityDeserialize(result: PathUncheckedResponse): Promise<CheckNameAvailabilityResponse>;
|
|
32
|
+
/** Adds check global name availability operation, normally used if a resource name must be globally unique. */
|
|
33
|
+
export declare function accountsCheckNameAvailability(context: Client, subscriptionId: string, body: CheckNameAvailabilityRequest, options?: AccountsCheckNameAvailabilityOptionalParams): Promise<CheckNameAvailabilityResponse>;
|
|
34
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/accounts/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,2CAA2C,EAC3C,oCAAoC,EACpC,4BAA4B,EAC5B,yBAAyB,EACzB,yCAAyC,EACzC,wCAAwC,EACxC,4BAA4B,EAC5B,6BAA6B,IAAI,MAAM,EACxC,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,OAAO,EAGP,aAAa,EAEb,kBAAkB,EAElB,4BAA4B,EAE5B,6BAA6B,EAE9B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EAGtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE7D,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,yBAAkD,GAC1D,gBAAgB,CASlB;AAED,wBAAsB,uBAAuB,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,OAAO,CAAC,CAO7F;AAED,oBAAoB;AACpB,wBAAsB,WAAW,CAC/B,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB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,OAAO,GAAE,2CAAoE,GAC5E,gBAAgB,CAUlB;AAED,wBAAsB,yCAAyC,CAC7D,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,6BAA6B,CAAC,CAOxC;AAED,+GAA+G;AAC/G,wBAAsB,6BAA6B,CACjD,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,4BAA4B,EAClC,OAAO,GAAE,2CAAoE,GAC5E,OAAO,CAAC,6BAA6B,CAAC,CAGxC"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { accountSerializer, accountDeserializer, accountUpdateSerializer, _accountListResultDeserializer, checkNameAvailabilityRequestSerializer, checkNameAvailabilityResponseDeserializer, } from "../../models/models.js";
|
|
4
|
+
import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
|
|
5
|
+
import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
|
|
6
|
+
import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
|
|
7
|
+
export function _accountsGetSend(context, subscriptionId, resourceGroupName, accountName, options = { requestOptions: {} }) {
|
|
8
|
+
return context
|
|
9
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}", subscriptionId, resourceGroupName, accountName)
|
|
10
|
+
.get(Object.assign({}, operationOptionsToRequestParameters(options)));
|
|
11
|
+
}
|
|
12
|
+
export async function _accountsGetDeserialize(result) {
|
|
13
|
+
const expectedStatuses = ["200"];
|
|
14
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
15
|
+
throw createRestError(result);
|
|
16
|
+
}
|
|
17
|
+
return accountDeserializer(result.body);
|
|
18
|
+
}
|
|
19
|
+
/** Get a Account */
|
|
20
|
+
export async function accountsGet(context, subscriptionId, resourceGroupName, accountName, options = { requestOptions: {} }) {
|
|
21
|
+
const result = await _accountsGetSend(context, subscriptionId, resourceGroupName, accountName, options);
|
|
22
|
+
return _accountsGetDeserialize(result);
|
|
23
|
+
}
|
|
24
|
+
export function _accountsCreateOrUpdateSend(context, subscriptionId, resourceGroupName, accountName, resource, options = { requestOptions: {} }) {
|
|
25
|
+
return context
|
|
26
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}", subscriptionId, resourceGroupName, accountName)
|
|
27
|
+
.put(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { body: accountSerializer(resource) }));
|
|
28
|
+
}
|
|
29
|
+
export async function _accountsCreateOrUpdateDeserialize(result) {
|
|
30
|
+
const expectedStatuses = ["200", "201"];
|
|
31
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
32
|
+
throw createRestError(result);
|
|
33
|
+
}
|
|
34
|
+
return accountDeserializer(result.body);
|
|
35
|
+
}
|
|
36
|
+
/** Create a Account */
|
|
37
|
+
export function accountsCreateOrUpdate(context, subscriptionId, resourceGroupName, accountName, resource, options = { requestOptions: {} }) {
|
|
38
|
+
return getLongRunningPoller(context, _accountsCreateOrUpdateDeserialize, ["200", "201"], {
|
|
39
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
40
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
41
|
+
getInitialResponse: () => _accountsCreateOrUpdateSend(context, subscriptionId, resourceGroupName, accountName, resource, options),
|
|
42
|
+
resourceLocationConfig: "azure-async-operation",
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
export function _accountsUpdateSend(context, subscriptionId, resourceGroupName, accountName, properties, options = { requestOptions: {} }) {
|
|
46
|
+
return context
|
|
47
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}", subscriptionId, resourceGroupName, accountName)
|
|
48
|
+
.patch(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { body: accountUpdateSerializer(properties) }));
|
|
49
|
+
}
|
|
50
|
+
export async function _accountsUpdateDeserialize(result) {
|
|
51
|
+
const expectedStatuses = ["200"];
|
|
52
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
53
|
+
throw createRestError(result);
|
|
54
|
+
}
|
|
55
|
+
return accountDeserializer(result.body);
|
|
56
|
+
}
|
|
57
|
+
/** Update a Account */
|
|
58
|
+
export async function accountsUpdate(context, subscriptionId, resourceGroupName, accountName, properties, options = { requestOptions: {} }) {
|
|
59
|
+
const result = await _accountsUpdateSend(context, subscriptionId, resourceGroupName, accountName, properties, options);
|
|
60
|
+
return _accountsUpdateDeserialize(result);
|
|
61
|
+
}
|
|
62
|
+
export function _accountsDeleteSend(context, subscriptionId, resourceGroupName, accountName, options = { requestOptions: {} }) {
|
|
63
|
+
return context
|
|
64
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}", subscriptionId, resourceGroupName, accountName)
|
|
65
|
+
.delete(Object.assign({}, operationOptionsToRequestParameters(options)));
|
|
66
|
+
}
|
|
67
|
+
export async function _accountsDeleteDeserialize(result) {
|
|
68
|
+
const expectedStatuses = ["202", "204", "200"];
|
|
69
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
70
|
+
throw createRestError(result);
|
|
71
|
+
}
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
/** Delete a Account */
|
|
75
|
+
export function accountsDelete(context, subscriptionId, resourceGroupName, accountName, options = { requestOptions: {} }) {
|
|
76
|
+
return getLongRunningPoller(context, _accountsDeleteDeserialize, ["202", "204", "200"], {
|
|
77
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
78
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
79
|
+
getInitialResponse: () => _accountsDeleteSend(context, subscriptionId, resourceGroupName, accountName, options),
|
|
80
|
+
resourceLocationConfig: "location",
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
export function _accountsListByResourceGroupSend(context, subscriptionId, resourceGroupName, options = { requestOptions: {} }) {
|
|
84
|
+
return context
|
|
85
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts", subscriptionId, resourceGroupName)
|
|
86
|
+
.get(Object.assign({}, operationOptionsToRequestParameters(options)));
|
|
87
|
+
}
|
|
88
|
+
export async function _accountsListByResourceGroupDeserialize(result) {
|
|
89
|
+
const expectedStatuses = ["200"];
|
|
90
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
91
|
+
throw createRestError(result);
|
|
92
|
+
}
|
|
93
|
+
return _accountListResultDeserializer(result.body);
|
|
94
|
+
}
|
|
95
|
+
/** List Account resources by resource group */
|
|
96
|
+
export function accountsListByResourceGroup(context, subscriptionId, resourceGroupName, options = { requestOptions: {} }) {
|
|
97
|
+
return buildPagedAsyncIterator(context, () => _accountsListByResourceGroupSend(context, subscriptionId, resourceGroupName, options), _accountsListByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
98
|
+
}
|
|
99
|
+
export function _accountsListBySubscriptionSend(context, subscriptionId, options = { requestOptions: {} }) {
|
|
100
|
+
return context
|
|
101
|
+
.path("/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/accounts", subscriptionId)
|
|
102
|
+
.get(Object.assign({}, operationOptionsToRequestParameters(options)));
|
|
103
|
+
}
|
|
104
|
+
export async function _accountsListBySubscriptionDeserialize(result) {
|
|
105
|
+
const expectedStatuses = ["200"];
|
|
106
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
107
|
+
throw createRestError(result);
|
|
108
|
+
}
|
|
109
|
+
return _accountListResultDeserializer(result.body);
|
|
110
|
+
}
|
|
111
|
+
/** List Account resources by subscription ID */
|
|
112
|
+
export function accountsListBySubscription(context, subscriptionId, options = { requestOptions: {} }) {
|
|
113
|
+
return buildPagedAsyncIterator(context, () => _accountsListBySubscriptionSend(context, subscriptionId, options), _accountsListBySubscriptionDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
114
|
+
}
|
|
115
|
+
export function _accountsCheckNameAvailabilitySend(context, subscriptionId, body, options = { requestOptions: {} }) {
|
|
116
|
+
return context
|
|
117
|
+
.path("/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/checkNameAvailability", subscriptionId)
|
|
118
|
+
.post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { body: checkNameAvailabilityRequestSerializer(body) }));
|
|
119
|
+
}
|
|
120
|
+
export async function _accountsCheckNameAvailabilityDeserialize(result) {
|
|
121
|
+
const expectedStatuses = ["200"];
|
|
122
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
123
|
+
throw createRestError(result);
|
|
124
|
+
}
|
|
125
|
+
return checkNameAvailabilityResponseDeserializer(result.body);
|
|
126
|
+
}
|
|
127
|
+
/** Adds check global name availability operation, normally used if a resource name must be globally unique. */
|
|
128
|
+
export async function accountsCheckNameAvailability(context, subscriptionId, body, options = { requestOptions: {} }) {
|
|
129
|
+
const result = await _accountsCheckNameAvailabilitySend(context, subscriptionId, body, options);
|
|
130
|
+
return _accountsCheckNameAvailabilityDeserialize(result);
|
|
131
|
+
}
|
|
132
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/accounts/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAYlC,OAAO,EAEL,iBAAiB,EACjB,mBAAmB,EAEnB,uBAAuB,EAEvB,8BAA8B,EAE9B,sCAAsC,EAEtC,yCAAyC,GAC1C,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CA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O,OAAO;SACX,IAAI,CACH,kGAAkG,EAClG,cAAc,CACf;SACA,IAAI,iCACA,mCAAmC,CAAC,OAAO,CAAC,KAC/C,IAAI,EAAE,sCAAsC,CAAC,IAAI,CAAC,IAClD,CAAC;AACP,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,yCAAyC,CAC7D,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,yCAAyC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAChE,CAAC;AAED,+GAA+G;AAC/G,MAAM,CAAC,KAAK,UAAU,6BAA6B,CACjD,OAAe,EACf,cAAsB,EACtB,IAAkC,EAClC,UAAuD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE7E,MAAM,MAAM,GAAG,MAAM,kCAAkC,CAAC,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAChG,OAAO,yCAAyC,CAAC,MAAM,CAAC,CAAC;AAC3D,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n AccountsCheckNameAvailabilityOptionalParams,\n AccountsCreateOrUpdateOptionalParams,\n AccountsDeleteOptionalParams,\n AccountsGetOptionalParams,\n AccountsListByResourceGroupOptionalParams,\n AccountsListBySubscriptionOptionalParams,\n AccountsUpdateOptionalParams,\n AzurePlaywrightServiceContext as Client,\n} from \"../index.js\";\nimport {\n Account,\n accountSerializer,\n accountDeserializer,\n AccountUpdate,\n accountUpdateSerializer,\n _AccountListResult,\n _accountListResultDeserializer,\n CheckNameAvailabilityRequest,\n checkNameAvailabilityRequestSerializer,\n CheckNameAvailabilityResponse,\n checkNameAvailabilityResponseDeserializer,\n} from \"../../models/models.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _accountsGetSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n options: AccountsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}\",\n subscriptionId,\n resourceGroupName,\n accountName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _accountsGetDeserialize(result: PathUncheckedResponse): Promise<Account> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return accountDeserializer(result.body);\n}\n\n/** Get a Account */\nexport async function accountsGet(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n options: AccountsGetOptionalParams = { requestOptions: {} },\n): Promise<Account> {\n const result = await _accountsGetSend(\n context,\n subscriptionId,\n resourceGroupName,\n accountName,\n options,\n );\n return _accountsGetDeserialize(result);\n}\n\nexport function _accountsCreateOrUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n resource: Account,\n options: AccountsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}\",\n subscriptionId,\n resourceGroupName,\n accountName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n body: accountSerializer(resource),\n });\n}\n\nexport async function _accountsCreateOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<Account> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return accountDeserializer(result.body);\n}\n\n/** Create a Account */\nexport function accountsCreateOrUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n resource: Account,\n options: AccountsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<Account>, Account> {\n return getLongRunningPoller(context, _accountsCreateOrUpdateDeserialize, [\"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _accountsCreateOrUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n accountName,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<Account>, Account>;\n}\n\nexport function _accountsUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n properties: AccountUpdate,\n options: AccountsUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}\",\n subscriptionId,\n resourceGroupName,\n accountName,\n )\n .patch({\n ...operationOptionsToRequestParameters(options),\n body: accountUpdateSerializer(properties),\n });\n}\n\nexport async function _accountsUpdateDeserialize(result: PathUncheckedResponse): Promise<Account> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return accountDeserializer(result.body);\n}\n\n/** Update a Account */\nexport async function accountsUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n properties: AccountUpdate,\n options: AccountsUpdateOptionalParams = { requestOptions: {} },\n): Promise<Account> {\n const result = await _accountsUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n accountName,\n properties,\n options,\n );\n return _accountsUpdateDeserialize(result);\n}\n\nexport function _accountsDeleteSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n options: AccountsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}\",\n subscriptionId,\n resourceGroupName,\n accountName,\n )\n .delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _accountsDeleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return;\n}\n\n/** Delete a Account */\nexport function accountsDelete(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n options: AccountsDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _accountsDeleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _accountsDeleteSend(context, subscriptionId, resourceGroupName, accountName, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _accountsListByResourceGroupSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: AccountsListByResourceGroupOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts\",\n subscriptionId,\n resourceGroupName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _accountsListByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AccountListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _accountListResultDeserializer(result.body);\n}\n\n/** List Account resources by resource group */\nexport function accountsListByResourceGroup(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: AccountsListByResourceGroupOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Account> {\n return buildPagedAsyncIterator(\n context,\n () => _accountsListByResourceGroupSend(context, subscriptionId, resourceGroupName, options),\n _accountsListByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _accountsListBySubscriptionSend(\n context: Client,\n subscriptionId: string,\n options: AccountsListBySubscriptionOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/accounts\",\n subscriptionId,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _accountsListBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AccountListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _accountListResultDeserializer(result.body);\n}\n\n/** List Account resources by subscription ID */\nexport function accountsListBySubscription(\n context: Client,\n subscriptionId: string,\n options: AccountsListBySubscriptionOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Account> {\n return buildPagedAsyncIterator(\n context,\n () => _accountsListBySubscriptionSend(context, subscriptionId, options),\n _accountsListBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _accountsCheckNameAvailabilitySend(\n context: Client,\n subscriptionId: string,\n body: CheckNameAvailabilityRequest,\n options: AccountsCheckNameAvailabilityOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/checkNameAvailability\",\n subscriptionId,\n )\n .post({\n ...operationOptionsToRequestParameters(options),\n body: checkNameAvailabilityRequestSerializer(body),\n });\n}\n\nexport async function _accountsCheckNameAvailabilityDeserialize(\n result: PathUncheckedResponse,\n): Promise<CheckNameAvailabilityResponse> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return checkNameAvailabilityResponseDeserializer(result.body);\n}\n\n/** Adds check global name availability operation, normally used if a resource name must be globally unique. */\nexport async function accountsCheckNameAvailability(\n context: Client,\n subscriptionId: string,\n body: CheckNameAvailabilityRequest,\n options: AccountsCheckNameAvailabilityOptionalParams = { requestOptions: {} },\n): Promise<CheckNameAvailabilityResponse> {\n const result = await _accountsCheckNameAvailabilitySend(context, subscriptionId, body, options);\n return _accountsCheckNameAvailabilityDeserialize(result);\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Client, ClientOptions } from "@azure-rest/core-client";
|
|
2
|
+
import { TokenCredential } from "@azure/core-auth";
|
|
3
|
+
/** Microsoft.AzurePlaywrightService Resource Provider Management API. */
|
|
4
|
+
export interface AzurePlaywrightServiceContext extends Client {
|
|
5
|
+
}
|
|
6
|
+
/** Optional parameters for the client. */
|
|
7
|
+
export interface AzurePlaywrightServiceClientOptionalParams extends ClientOptions {
|
|
8
|
+
/** The API version to use for this operation. */
|
|
9
|
+
/** Known values of {@link KnownVersions} that the service accepts. */
|
|
10
|
+
apiVersion?: string;
|
|
11
|
+
}
|
|
12
|
+
/** Microsoft.AzurePlaywrightService Resource Provider Management API. */
|
|
13
|
+
export declare function createAzurePlaywrightService(credential: TokenCredential, options?: AzurePlaywrightServiceClientOptionalParams): AzurePlaywrightServiceContext;
|
|
14
|
+
//# sourceMappingURL=azurePlaywrightServiceContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"azurePlaywrightServiceContext.d.ts","sourceRoot":"","sources":["../../../src/api/azurePlaywrightServiceContext.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAa,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,yEAAyE;AACzE,MAAM,WAAW,6BAA8B,SAAQ,MAAM;CAAG;AAEhE,0CAA0C;AAC1C,MAAM,WAAW,0CAA2C,SAAQ,aAAa;IAC/E,iDAAiD;IACjD,sEAAsE;IACtE,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,yEAAyE;AACzE,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,eAAe,EAC3B,OAAO,GAAE,0CAA+C,GACvD,6BAA6B,CAkC/B"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { __rest } from "tslib";
|
|
4
|
+
import { logger } from "../logger.js";
|
|
5
|
+
import { getClient } from "@azure-rest/core-client";
|
|
6
|
+
/** Microsoft.AzurePlaywrightService Resource Provider Management API. */
|
|
7
|
+
export function createAzurePlaywrightService(credential, options = {}) {
|
|
8
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
9
|
+
const endpointUrl = (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUrl) !== null && _b !== void 0 ? _b : `https://management.azure.com`;
|
|
10
|
+
const prefixFromOptions = (_c = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _c === void 0 ? void 0 : _c.userAgentPrefix;
|
|
11
|
+
const userAgentInfo = `azsdk-js-arm-playwrighttesting/1.0.0`;
|
|
12
|
+
const userAgentPrefix = prefixFromOptions
|
|
13
|
+
? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
|
|
14
|
+
: `azsdk-js-api ${userAgentInfo}`;
|
|
15
|
+
const _j = Object.assign(Object.assign({}, options), { userAgentOptions: { userAgentPrefix }, loggingOptions: { logger: (_e = (_d = options.loggingOptions) === null || _d === void 0 ? void 0 : _d.logger) !== null && _e !== void 0 ? _e : logger.info }, credentials: {
|
|
16
|
+
scopes: (_g = (_f = options.credentials) === null || _f === void 0 ? void 0 : _f.scopes) !== null && _g !== void 0 ? _g : [`${endpointUrl}/.default`],
|
|
17
|
+
} }), { apiVersion: _ } = _j, updatedOptions = __rest(_j, ["apiVersion"]);
|
|
18
|
+
const clientContext = getClient(endpointUrl, credential, updatedOptions);
|
|
19
|
+
clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
|
|
20
|
+
const apiVersion = (_h = options.apiVersion) !== null && _h !== void 0 ? _h : "2024-12-01";
|
|
21
|
+
clientContext.pipeline.addPolicy({
|
|
22
|
+
name: "ClientApiVersionPolicy",
|
|
23
|
+
sendRequest: (req, next) => {
|
|
24
|
+
// Use the apiVersion defined in request url directly
|
|
25
|
+
// Append one if there is no apiVersion and we have one at client options
|
|
26
|
+
const url = new URL(req.url);
|
|
27
|
+
if (!url.searchParams.get("api-version")) {
|
|
28
|
+
req.url = `${req.url}${Array.from(url.searchParams.keys()).length > 0 ? "&" : "?"}api-version=${apiVersion}`;
|
|
29
|
+
}
|
|
30
|
+
return next(req);
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
return clientContext;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=azurePlaywrightServiceContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"azurePlaywrightServiceContext.js","sourceRoot":"","sources":["../../../src/api/azurePlaywrightServiceContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAyB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAa3E,yEAAyE;AACzE,MAAM,UAAU,4BAA4B,CAC1C,UAA2B,EAC3B,UAAsD,EAAE;;IAExD,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,8BAA8B,CAAC;IAC1F,MAAM,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,0CAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,sCAAsC,CAAC;IAC7D,MAA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zD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IACH,OAAO,aAAa,CAAC;AACvB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport { Client, ClientOptions, getClient } from \"@azure-rest/core-client\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\n/** Microsoft.AzurePlaywrightService Resource Provider Management API. */\nexport interface AzurePlaywrightServiceContext extends Client {}\n\n/** Optional parameters for the client. */\nexport interface AzurePlaywrightServiceClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n}\n\n/** Microsoft.AzurePlaywrightService Resource Provider Management API. */\nexport function createAzurePlaywrightService(\n credential: TokenCredential,\n options: AzurePlaywrightServiceClientOptionalParams = {},\n): AzurePlaywrightServiceContext {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`;\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-playwrighttesting/1.0.0`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n clientContext.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n const apiVersion = options.apiVersion ?? \"2024-12-01\";\n clientContext.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\")) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n return clientContext;\n}\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { createAzurePlaywrightService, AzurePlaywrightServiceContext, AzurePlaywrightServiceClientOptionalParams, } from "./azurePlaywrightServiceContext.js";
|
|
2
|
+
export { OperationsListOptionalParams, AccountsGetOptionalParams, AccountsCreateOrUpdateOptionalParams, AccountsUpdateOptionalParams, AccountsDeleteOptionalParams, AccountsListByResourceGroupOptionalParams, AccountsListBySubscriptionOptionalParams, AccountsCheckNameAvailabilityOptionalParams, QuotasGetOptionalParams, QuotasListBySubscriptionOptionalParams, AccountQuotasGetOptionalParams, AccountQuotasListByAccountOptionalParams, } from "./options.js";
|
|
3
|
+
export { accountQuotasGet, accountQuotasListByAccount } from "./accountQuotas/index.js";
|
|
4
|
+
export { accountsGet, accountsCreateOrUpdate, accountsUpdate, accountsDelete, accountsListByResourceGroup, accountsListBySubscription, accountsCheckNameAvailability, } from "./accounts/index.js";
|
|
5
|
+
export { operationsList } from "./operations/index.js";
|
|
6
|
+
export { quotasGet, quotasListBySubscription } from "./quotas/index.js";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,0CAA0C,GAC3C,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,oCAAoC,EACpC,4BAA4B,EAC5B,4BAA4B,EAC5B,yCAAyC,EACzC,wCAAwC,EACxC,2CAA2C,EAC3C,uBAAuB,EACvB,sCAAsC,EACtC,8BAA8B,EAC9B,wCAAwC,GACzC,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AACxF,OAAO,EACL,WAAW,EACX,sBAAsB,EACtB,cAAc,EACd,cAAc,EACd,2BAA2B,EAC3B,0BAA0B,EAC1B,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
export { createAzurePlaywrightService, } from "./azurePlaywrightServiceContext.js";
|
|
4
|
+
export { accountQuotasGet, accountQuotasListByAccount } from "./accountQuotas/index.js";
|
|
5
|
+
export { accountsGet, accountsCreateOrUpdate, accountsUpdate, accountsDelete, accountsListByResourceGroup, accountsListBySubscription, accountsCheckNameAvailability, } from "./accounts/index.js";
|
|
6
|
+
export { operationsList } from "./operations/index.js";
|
|
7
|
+
export { quotasGet, quotasListBySubscription } from "./quotas/index.js";
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,4BAA4B,GAG7B,MAAM,oCAAoC,CAAC;AAe5C,OAAO,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AACxF,OAAO,EACL,WAAW,EACX,sBAAsB,EACtB,cAAc,EACd,cAAc,EACd,2BAA2B,EAC3B,0BAA0B,EAC1B,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n createAzurePlaywrightService,\n AzurePlaywrightServiceContext,\n AzurePlaywrightServiceClientOptionalParams,\n} from \"./azurePlaywrightServiceContext.js\";\nexport {\n OperationsListOptionalParams,\n AccountsGetOptionalParams,\n AccountsCreateOrUpdateOptionalParams,\n AccountsUpdateOptionalParams,\n AccountsDeleteOptionalParams,\n AccountsListByResourceGroupOptionalParams,\n AccountsListBySubscriptionOptionalParams,\n AccountsCheckNameAvailabilityOptionalParams,\n QuotasGetOptionalParams,\n QuotasListBySubscriptionOptionalParams,\n AccountQuotasGetOptionalParams,\n AccountQuotasListByAccountOptionalParams,\n} from \"./options.js\";\nexport { accountQuotasGet, accountQuotasListByAccount } from \"./accountQuotas/index.js\";\nexport {\n accountsGet,\n accountsCreateOrUpdate,\n accountsUpdate,\n accountsDelete,\n accountsListByResourceGroup,\n accountsListBySubscription,\n accountsCheckNameAvailability,\n} from \"./accounts/index.js\";\nexport { operationsList } from \"./operations/index.js\";\nexport { quotasGet, quotasListBySubscription } from \"./quotas/index.js\";\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AzurePlaywrightServiceContext as Client, OperationsListOptionalParams } from "../index.js";
|
|
2
|
+
import { _OperationListResult, Operation } from "../../models/models.js";
|
|
3
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
|
+
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
5
|
+
export declare function _operationsListSend(context: Client, options?: OperationsListOptionalParams): StreamableMethod;
|
|
6
|
+
export declare function _operationsListDeserialize(result: PathUncheckedResponse): Promise<_OperationListResult>;
|
|
7
|
+
/** List the operations for the provider */
|
|
8
|
+
export declare function operationsList(context: Client, options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,6BAA6B,IAAI,MAAM,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AACpG,OAAO,EACL,oBAAoB,EAEpB,SAAS,EACV,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EAGtB,MAAM,yBAAyB,CAAC;AAEjC,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,4BAAqD,GAC7D,gBAAgB,CAIlB;AAED,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,oBAAoB,CAAC,CAO/B;AAED,2CAA2C;AAC3C,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,4BAAqD,GAC7D,0BAA0B,CAAC,SAAS,CAAC,CAQvC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { _operationListResultDeserializer, } from "../../models/models.js";
|
|
4
|
+
import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
|
|
6
|
+
export function _operationsListSend(context, options = { requestOptions: {} }) {
|
|
7
|
+
return context
|
|
8
|
+
.path("/providers/Microsoft.AzurePlaywrightService/operations")
|
|
9
|
+
.get(Object.assign({}, operationOptionsToRequestParameters(options)));
|
|
10
|
+
}
|
|
11
|
+
export async function _operationsListDeserialize(result) {
|
|
12
|
+
const expectedStatuses = ["200"];
|
|
13
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
14
|
+
throw createRestError(result);
|
|
15
|
+
}
|
|
16
|
+
return _operationListResultDeserializer(result.body);
|
|
17
|
+
}
|
|
18
|
+
/** List the operations for the provider */
|
|
19
|
+
export function operationsList(context, options = { requestOptions: {} }) {
|
|
20
|
+
return buildPagedAsyncIterator(context, () => _operationsListSend(context, options), _operationsListDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAEL,gCAAgC,GAEjC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,mBAAmB,CACjC,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,OAAO;SACX,IAAI,CAAC,wDAAwD,CAAC;SAC9D,GAAG,mBAAM,mCAAmC,CAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,gCAAgC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,2CAA2C;AAC3C,MAAM,UAAU,cAAc,CAC5B,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,EAC3C,0BAA0B,EAC1B,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AzurePlaywrightServiceContext as Client, OperationsListOptionalParams } from \"../index.js\";\nimport {\n _OperationListResult,\n _operationListResultDeserializer,\n Operation,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _operationsListSend(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\"/providers/Microsoft.AzurePlaywrightService/operations\")\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _operationsListDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _operationListResultDeserializer(result.body);\n}\n\n/** List the operations for the provider */\nexport function operationsList(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Operation> {\n return buildPagedAsyncIterator(\n context,\n () => _operationsListSend(context, options),\n _operationsListDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
|