@azure/arm-sitemanager 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/edgeContext.d.ts +19 -0
- package/dist/browser/api/edgeContext.d.ts.map +1 -0
- package/dist/browser/api/edgeContext.js +35 -0
- package/dist/browser/api/edgeContext.js.map +1 -0
- package/dist/browser/api/index.d.ts +2 -0
- package/dist/browser/api/index.d.ts.map +1 -0
- package/dist/browser/api/index.js +4 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/sites/index.d.ts +3 -0
- package/dist/browser/api/sites/index.d.ts.map +1 -0
- package/dist/browser/api/sites/index.js +4 -0
- package/dist/browser/api/sites/index.js.map +1 -0
- package/dist/browser/api/sites/operations.d.ts +32 -0
- package/dist/browser/api/sites/operations.d.ts.map +1 -0
- package/dist/browser/api/sites/operations.js +145 -0
- package/dist/browser/api/sites/operations.js.map +1 -0
- package/dist/browser/api/sites/options.d.ts +19 -0
- package/dist/browser/api/sites/options.d.ts.map +1 -0
- package/dist/browser/api/sites/options.js +4 -0
- package/dist/browser/api/sites/options.js.map +1 -0
- package/dist/browser/api/sitesByServiceGroup/index.d.ts +3 -0
- package/dist/browser/api/sitesByServiceGroup/index.d.ts.map +1 -0
- package/dist/browser/api/sitesByServiceGroup/index.js +4 -0
- package/dist/browser/api/sitesByServiceGroup/index.js.map +1 -0
- package/dist/browser/api/sitesByServiceGroup/operations.d.ts +32 -0
- package/dist/browser/api/sitesByServiceGroup/operations.d.ts.map +1 -0
- package/dist/browser/api/sitesByServiceGroup/operations.js +148 -0
- package/dist/browser/api/sitesByServiceGroup/operations.js.map +1 -0
- package/dist/browser/api/sitesByServiceGroup/options.d.ts +19 -0
- package/dist/browser/api/sitesByServiceGroup/options.d.ts.map +1 -0
- package/dist/browser/api/sitesByServiceGroup/options.js +4 -0
- package/dist/browser/api/sitesByServiceGroup/options.js.map +1 -0
- package/dist/browser/api/sitesBySubscription/index.d.ts +3 -0
- package/dist/browser/api/sitesBySubscription/index.d.ts.map +1 -0
- package/dist/browser/api/sitesBySubscription/index.js +4 -0
- package/dist/browser/api/sitesBySubscription/index.js.map +1 -0
- package/dist/browser/api/sitesBySubscription/operations.d.ts +32 -0
- package/dist/browser/api/sitesBySubscription/operations.d.ts.map +1 -0
- package/dist/browser/api/sitesBySubscription/operations.js +144 -0
- package/dist/browser/api/sitesBySubscription/operations.js.map +1 -0
- package/dist/browser/api/sitesBySubscription/options.d.ts +19 -0
- package/dist/browser/api/sitesBySubscription/options.d.ts.map +1 -0
- package/dist/browser/api/sitesBySubscription/options.js +4 -0
- package/dist/browser/api/sitesBySubscription/options.js.map +1 -0
- package/dist/browser/classic/index.d.ts +4 -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/sites/index.d.ts +25 -0
- package/dist/browser/classic/sites/index.d.ts.map +1 -0
- package/dist/browser/classic/sites/index.js +16 -0
- package/dist/browser/classic/sites/index.js.map +1 -0
- package/dist/browser/classic/sitesByServiceGroup/index.d.ts +25 -0
- package/dist/browser/classic/sitesByServiceGroup/index.d.ts.map +1 -0
- package/dist/browser/classic/sitesByServiceGroup/index.js +16 -0
- package/dist/browser/classic/sitesByServiceGroup/index.js.map +1 -0
- package/dist/browser/classic/sitesBySubscription/index.d.ts +25 -0
- package/dist/browser/classic/sitesBySubscription/index.d.ts.map +1 -0
- package/dist/browser/classic/sitesBySubscription/index.js +16 -0
- package/dist/browser/classic/sitesBySubscription/index.js.map +1 -0
- package/dist/browser/edgeClient.d.ts +21 -0
- package/dist/browser/edgeClient.d.ts.map +1 -0
- package/dist/browser/edgeClient.js +22 -0
- package/dist/browser/edgeClient.js.map +1 -0
- package/dist/browser/index.d.ts +11 -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 +184 -0
- package/dist/browser/models/models.d.ts.map +1 -0
- package/dist/browser/models/models.js +200 -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 +103 -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/browser/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.js +169 -0
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/api/edgeContext.d.ts +19 -0
- package/dist/commonjs/api/edgeContext.d.ts.map +1 -0
- package/dist/commonjs/api/edgeContext.js +38 -0
- package/dist/commonjs/api/edgeContext.js.map +1 -0
- package/dist/commonjs/api/index.d.ts +2 -0
- package/dist/commonjs/api/index.d.ts.map +1 -0
- package/dist/commonjs/api/index.js +8 -0
- package/dist/commonjs/api/index.js.map +1 -0
- package/dist/commonjs/api/sites/index.d.ts +3 -0
- package/dist/commonjs/api/sites/index.d.ts.map +1 -0
- package/dist/commonjs/api/sites/index.js +12 -0
- package/dist/commonjs/api/sites/index.js.map +1 -0
- package/dist/commonjs/api/sites/operations.d.ts +32 -0
- package/dist/commonjs/api/sites/operations.d.ts.map +1 -0
- package/dist/commonjs/api/sites/operations.js +162 -0
- package/dist/commonjs/api/sites/operations.js.map +1 -0
- package/dist/commonjs/api/sites/options.d.ts +19 -0
- package/dist/commonjs/api/sites/options.d.ts.map +1 -0
- package/dist/commonjs/api/sites/options.js +5 -0
- package/dist/commonjs/api/sites/options.js.map +1 -0
- package/dist/commonjs/api/sitesByServiceGroup/index.d.ts +3 -0
- package/dist/commonjs/api/sitesByServiceGroup/index.d.ts.map +1 -0
- package/dist/commonjs/api/sitesByServiceGroup/index.js +12 -0
- package/dist/commonjs/api/sitesByServiceGroup/index.js.map +1 -0
- package/dist/commonjs/api/sitesByServiceGroup/operations.d.ts +32 -0
- package/dist/commonjs/api/sitesByServiceGroup/operations.d.ts.map +1 -0
- package/dist/commonjs/api/sitesByServiceGroup/operations.js +165 -0
- package/dist/commonjs/api/sitesByServiceGroup/operations.js.map +1 -0
- package/dist/commonjs/api/sitesByServiceGroup/options.d.ts +19 -0
- package/dist/commonjs/api/sitesByServiceGroup/options.d.ts.map +1 -0
- package/dist/commonjs/api/sitesByServiceGroup/options.js +5 -0
- package/dist/commonjs/api/sitesByServiceGroup/options.js.map +1 -0
- package/dist/commonjs/api/sitesBySubscription/index.d.ts +3 -0
- package/dist/commonjs/api/sitesBySubscription/index.d.ts.map +1 -0
- package/dist/commonjs/api/sitesBySubscription/index.js +12 -0
- package/dist/commonjs/api/sitesBySubscription/index.js.map +1 -0
- package/dist/commonjs/api/sitesBySubscription/operations.d.ts +32 -0
- package/dist/commonjs/api/sitesBySubscription/operations.d.ts.map +1 -0
- package/dist/commonjs/api/sitesBySubscription/operations.js +161 -0
- package/dist/commonjs/api/sitesBySubscription/operations.js.map +1 -0
- package/dist/commonjs/api/sitesBySubscription/options.d.ts +19 -0
- package/dist/commonjs/api/sitesBySubscription/options.d.ts.map +1 -0
- package/dist/commonjs/api/sitesBySubscription/options.js +5 -0
- package/dist/commonjs/api/sitesBySubscription/options.js.map +1 -0
- package/dist/commonjs/classic/index.d.ts +4 -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/sites/index.d.ts +25 -0
- package/dist/commonjs/classic/sites/index.d.ts.map +1 -0
- package/dist/commonjs/classic/sites/index.js +19 -0
- package/dist/commonjs/classic/sites/index.js.map +1 -0
- package/dist/commonjs/classic/sitesByServiceGroup/index.d.ts +25 -0
- package/dist/commonjs/classic/sitesByServiceGroup/index.d.ts.map +1 -0
- package/dist/commonjs/classic/sitesByServiceGroup/index.js +19 -0
- package/dist/commonjs/classic/sitesByServiceGroup/index.js.map +1 -0
- package/dist/commonjs/classic/sitesBySubscription/index.d.ts +25 -0
- package/dist/commonjs/classic/sitesBySubscription/index.d.ts.map +1 -0
- package/dist/commonjs/classic/sitesBySubscription/index.js +19 -0
- package/dist/commonjs/classic/sitesBySubscription/index.js.map +1 -0
- package/dist/commonjs/edgeClient.d.ts +21 -0
- package/dist/commonjs/edgeClient.d.ts.map +1 -0
- package/dist/commonjs/edgeClient.js +26 -0
- package/dist/commonjs/edgeClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +11 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +14 -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 +10 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/models.d.ts +184 -0
- package/dist/commonjs/models/models.d.ts.map +1 -0
- package/dist/commonjs/models/models.js +225 -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 +106 -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/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts.map +1 -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/edgeContext.d.ts +19 -0
- package/dist/esm/api/edgeContext.d.ts.map +1 -0
- package/dist/esm/api/edgeContext.js +35 -0
- package/dist/esm/api/edgeContext.js.map +1 -0
- package/dist/esm/api/index.d.ts +2 -0
- package/dist/esm/api/index.d.ts.map +1 -0
- package/dist/esm/api/index.js +4 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/sites/index.d.ts +3 -0
- package/dist/esm/api/sites/index.d.ts.map +1 -0
- package/dist/esm/api/sites/index.js +4 -0
- package/dist/esm/api/sites/index.js.map +1 -0
- package/dist/esm/api/sites/operations.d.ts +32 -0
- package/dist/esm/api/sites/operations.d.ts.map +1 -0
- package/dist/esm/api/sites/operations.js +145 -0
- package/dist/esm/api/sites/operations.js.map +1 -0
- package/dist/esm/api/sites/options.d.ts +19 -0
- package/dist/esm/api/sites/options.d.ts.map +1 -0
- package/dist/esm/api/sites/options.js +4 -0
- package/dist/esm/api/sites/options.js.map +1 -0
- package/dist/esm/api/sitesByServiceGroup/index.d.ts +3 -0
- package/dist/esm/api/sitesByServiceGroup/index.d.ts.map +1 -0
- package/dist/esm/api/sitesByServiceGroup/index.js +4 -0
- package/dist/esm/api/sitesByServiceGroup/index.js.map +1 -0
- package/dist/esm/api/sitesByServiceGroup/operations.d.ts +32 -0
- package/dist/esm/api/sitesByServiceGroup/operations.d.ts.map +1 -0
- package/dist/esm/api/sitesByServiceGroup/operations.js +148 -0
- package/dist/esm/api/sitesByServiceGroup/operations.js.map +1 -0
- package/dist/esm/api/sitesByServiceGroup/options.d.ts +19 -0
- package/dist/esm/api/sitesByServiceGroup/options.d.ts.map +1 -0
- package/dist/esm/api/sitesByServiceGroup/options.js +4 -0
- package/dist/esm/api/sitesByServiceGroup/options.js.map +1 -0
- package/dist/esm/api/sitesBySubscription/index.d.ts +3 -0
- package/dist/esm/api/sitesBySubscription/index.d.ts.map +1 -0
- package/dist/esm/api/sitesBySubscription/index.js +4 -0
- package/dist/esm/api/sitesBySubscription/index.js.map +1 -0
- package/dist/esm/api/sitesBySubscription/operations.d.ts +32 -0
- package/dist/esm/api/sitesBySubscription/operations.d.ts.map +1 -0
- package/dist/esm/api/sitesBySubscription/operations.js +144 -0
- package/dist/esm/api/sitesBySubscription/operations.js.map +1 -0
- package/dist/esm/api/sitesBySubscription/options.d.ts +19 -0
- package/dist/esm/api/sitesBySubscription/options.d.ts.map +1 -0
- package/dist/esm/api/sitesBySubscription/options.js +4 -0
- package/dist/esm/api/sitesBySubscription/options.js.map +1 -0
- package/dist/esm/classic/index.d.ts +4 -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/sites/index.d.ts +25 -0
- package/dist/esm/classic/sites/index.d.ts.map +1 -0
- package/dist/esm/classic/sites/index.js +16 -0
- package/dist/esm/classic/sites/index.js.map +1 -0
- package/dist/esm/classic/sitesByServiceGroup/index.d.ts +25 -0
- package/dist/esm/classic/sitesByServiceGroup/index.d.ts.map +1 -0
- package/dist/esm/classic/sitesByServiceGroup/index.js +16 -0
- package/dist/esm/classic/sitesByServiceGroup/index.js.map +1 -0
- package/dist/esm/classic/sitesBySubscription/index.d.ts +25 -0
- package/dist/esm/classic/sitesBySubscription/index.d.ts.map +1 -0
- package/dist/esm/classic/sitesBySubscription/index.js +16 -0
- package/dist/esm/classic/sitesBySubscription/index.js.map +1 -0
- package/dist/esm/edgeClient.d.ts +21 -0
- package/dist/esm/edgeClient.d.ts.map +1 -0
- package/dist/esm/edgeClient.js +22 -0
- package/dist/esm/edgeClient.js.map +1 -0
- package/dist/esm/index.d.ts +11 -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 +184 -0
- package/dist/esm/models/models.d.ts.map +1 -0
- package/dist/esm/models/models.js +200 -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 +103 -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/esm/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts.map +1 -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/edgeContext.d.ts +19 -0
- package/dist/react-native/api/edgeContext.d.ts.map +1 -0
- package/dist/react-native/api/edgeContext.js +35 -0
- package/dist/react-native/api/edgeContext.js.map +1 -0
- package/dist/react-native/api/index.d.ts +2 -0
- package/dist/react-native/api/index.d.ts.map +1 -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/sites/index.d.ts +3 -0
- package/dist/react-native/api/sites/index.d.ts.map +1 -0
- package/dist/react-native/api/sites/index.js +4 -0
- package/dist/react-native/api/sites/index.js.map +1 -0
- package/dist/react-native/api/sites/operations.d.ts +32 -0
- package/dist/react-native/api/sites/operations.d.ts.map +1 -0
- package/dist/react-native/api/sites/operations.js +145 -0
- package/dist/react-native/api/sites/operations.js.map +1 -0
- package/dist/react-native/api/sites/options.d.ts +19 -0
- package/dist/react-native/api/sites/options.d.ts.map +1 -0
- package/dist/react-native/api/sites/options.js +4 -0
- package/dist/react-native/api/sites/options.js.map +1 -0
- package/dist/react-native/api/sitesByServiceGroup/index.d.ts +3 -0
- package/dist/react-native/api/sitesByServiceGroup/index.d.ts.map +1 -0
- package/dist/react-native/api/sitesByServiceGroup/index.js +4 -0
- package/dist/react-native/api/sitesByServiceGroup/index.js.map +1 -0
- package/dist/react-native/api/sitesByServiceGroup/operations.d.ts +32 -0
- package/dist/react-native/api/sitesByServiceGroup/operations.d.ts.map +1 -0
- package/dist/react-native/api/sitesByServiceGroup/operations.js +148 -0
- package/dist/react-native/api/sitesByServiceGroup/operations.js.map +1 -0
- package/dist/react-native/api/sitesByServiceGroup/options.d.ts +19 -0
- package/dist/react-native/api/sitesByServiceGroup/options.d.ts.map +1 -0
- package/dist/react-native/api/sitesByServiceGroup/options.js +4 -0
- package/dist/react-native/api/sitesByServiceGroup/options.js.map +1 -0
- package/dist/react-native/api/sitesBySubscription/index.d.ts +3 -0
- package/dist/react-native/api/sitesBySubscription/index.d.ts.map +1 -0
- package/dist/react-native/api/sitesBySubscription/index.js +4 -0
- package/dist/react-native/api/sitesBySubscription/index.js.map +1 -0
- package/dist/react-native/api/sitesBySubscription/operations.d.ts +32 -0
- package/dist/react-native/api/sitesBySubscription/operations.d.ts.map +1 -0
- package/dist/react-native/api/sitesBySubscription/operations.js +144 -0
- package/dist/react-native/api/sitesBySubscription/operations.js.map +1 -0
- package/dist/react-native/api/sitesBySubscription/options.d.ts +19 -0
- package/dist/react-native/api/sitesBySubscription/options.d.ts.map +1 -0
- package/dist/react-native/api/sitesBySubscription/options.js +4 -0
- package/dist/react-native/api/sitesBySubscription/options.js.map +1 -0
- package/dist/react-native/classic/index.d.ts +4 -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/sites/index.d.ts +25 -0
- package/dist/react-native/classic/sites/index.d.ts.map +1 -0
- package/dist/react-native/classic/sites/index.js +16 -0
- package/dist/react-native/classic/sites/index.js.map +1 -0
- package/dist/react-native/classic/sitesByServiceGroup/index.d.ts +25 -0
- package/dist/react-native/classic/sitesByServiceGroup/index.d.ts.map +1 -0
- package/dist/react-native/classic/sitesByServiceGroup/index.js +16 -0
- package/dist/react-native/classic/sitesByServiceGroup/index.js.map +1 -0
- package/dist/react-native/classic/sitesBySubscription/index.d.ts +25 -0
- package/dist/react-native/classic/sitesBySubscription/index.d.ts.map +1 -0
- package/dist/react-native/classic/sitesBySubscription/index.js +16 -0
- package/dist/react-native/classic/sitesBySubscription/index.js.map +1 -0
- package/dist/react-native/edgeClient.d.ts +21 -0
- package/dist/react-native/edgeClient.d.ts.map +1 -0
- package/dist/react-native/edgeClient.js +22 -0
- package/dist/react-native/edgeClient.js.map +1 -0
- package/dist/react-native/index.d.ts +11 -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 +184 -0
- package/dist/react-native/models/models.d.ts.map +1 -0
- package/dist/react-native/models/models.js +200 -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 +103 -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/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/react-native/static-helpers/urlTemplate.d.ts.map +1 -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 +232 -0
- package/review/arm-sitemanager-api-sites.api.md +50 -0
- package/review/arm-sitemanager-api-sitesByServiceGroup.api.md +50 -0
- package/review/arm-sitemanager-api-sitesBySubscription.api.md +50 -0
- package/review/arm-sitemanager-api.api.md +27 -0
- package/review/arm-sitemanager-models.api.md +115 -0
- package/review/arm-sitemanager.api.md +255 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,IAAI,EACJ,cAAc,EACd,qBAAqB,EACrB,8BAA8B,EAC9B,yBAAyB,EACzB,aAAa,EACb,QAAQ,EACR,UAAU,EACV,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,WAAW,EACX,mBAAmB,EACnB,UAAU,EACV,oBAAoB,EACpB,aAAa,GACd,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAIL,8BAA8B,EAK9B,kBAAkB,EAOlB,aAAa,GACd,MAAM,aAAa,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n Site,\n SiteProperties,\n SiteAddressProperties,\n KnownResourceProvisioningState,\n ResourceProvisioningState,\n ProxyResource,\n Resource,\n SystemData,\n KnownCreatedByType,\n CreatedByType,\n ErrorResponse,\n ErrorDetail,\n ErrorAdditionalInfo,\n SiteUpdate,\n SiteUpdateProperties,\n KnownVersions,\n} from \"./models.js\";\n"]}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/** Site as ARM Resource */
|
|
2
|
+
export interface Site extends ProxyResource {
|
|
3
|
+
/** The resource-specific properties for this resource. */
|
|
4
|
+
properties?: SiteProperties;
|
|
5
|
+
}
|
|
6
|
+
export declare function siteSerializer(item: Site): any;
|
|
7
|
+
export declare function siteDeserializer(item: any): Site;
|
|
8
|
+
/** Site properties */
|
|
9
|
+
export interface SiteProperties {
|
|
10
|
+
/** displayName of Site resource */
|
|
11
|
+
displayName?: string;
|
|
12
|
+
/** Description of Site resource */
|
|
13
|
+
description?: string;
|
|
14
|
+
/** Physical address of the site */
|
|
15
|
+
siteAddress?: SiteAddressProperties;
|
|
16
|
+
/** Key-value pairs for labeling the site resource. */
|
|
17
|
+
labels?: Record<string, string>;
|
|
18
|
+
/** Provisioning state of last operation */
|
|
19
|
+
readonly provisioningState?: ResourceProvisioningState;
|
|
20
|
+
}
|
|
21
|
+
export declare function sitePropertiesSerializer(item: SiteProperties): any;
|
|
22
|
+
export declare function sitePropertiesDeserializer(item: any): SiteProperties;
|
|
23
|
+
/** Site address properties */
|
|
24
|
+
export interface SiteAddressProperties {
|
|
25
|
+
/** First line of the street address */
|
|
26
|
+
streetAddress1?: string;
|
|
27
|
+
/** Second line of the street address */
|
|
28
|
+
streetAddress2?: string;
|
|
29
|
+
/** City of the address */
|
|
30
|
+
city?: string;
|
|
31
|
+
/** State or province of the address */
|
|
32
|
+
stateOrProvince?: string;
|
|
33
|
+
/** Country of the address */
|
|
34
|
+
country?: string;
|
|
35
|
+
/** Postal or ZIP code of the address */
|
|
36
|
+
postalCode?: string;
|
|
37
|
+
}
|
|
38
|
+
export declare function siteAddressPropertiesSerializer(item: SiteAddressProperties): any;
|
|
39
|
+
export declare function siteAddressPropertiesDeserializer(item: any): SiteAddressProperties;
|
|
40
|
+
/** The provisioning state of a resource type. */
|
|
41
|
+
export declare enum KnownResourceProvisioningState {
|
|
42
|
+
/** Resource has been created. */
|
|
43
|
+
Succeeded = "Succeeded",
|
|
44
|
+
/** Resource creation failed. */
|
|
45
|
+
Failed = "Failed",
|
|
46
|
+
/** Resource creation was canceled. */
|
|
47
|
+
Canceled = "Canceled"
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* The provisioning state of a resource type. \
|
|
51
|
+
* {@link KnownResourceProvisioningState} can be used interchangeably with ResourceProvisioningState,
|
|
52
|
+
* this enum contains the known values that the service supports.
|
|
53
|
+
* ### Known values supported by the service
|
|
54
|
+
* **Succeeded**: Resource has been created. \
|
|
55
|
+
* **Failed**: Resource creation failed. \
|
|
56
|
+
* **Canceled**: Resource creation was canceled.
|
|
57
|
+
*/
|
|
58
|
+
export type ResourceProvisioningState = string;
|
|
59
|
+
/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
|
|
60
|
+
export interface ProxyResource extends Resource {
|
|
61
|
+
}
|
|
62
|
+
export declare function proxyResourceSerializer(item: ProxyResource): any;
|
|
63
|
+
export declare function proxyResourceDeserializer(item: any): ProxyResource;
|
|
64
|
+
/** Common fields that are returned in the response for all Azure Resource Manager resources */
|
|
65
|
+
export interface Resource {
|
|
66
|
+
/** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */
|
|
67
|
+
readonly id?: string;
|
|
68
|
+
/** The name of the resource */
|
|
69
|
+
readonly name?: string;
|
|
70
|
+
/** The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */
|
|
71
|
+
readonly type?: string;
|
|
72
|
+
/** Azure Resource Manager metadata containing createdBy and modifiedBy information. */
|
|
73
|
+
readonly systemData?: SystemData;
|
|
74
|
+
}
|
|
75
|
+
export declare function resourceSerializer(item: Resource): any;
|
|
76
|
+
export declare function resourceDeserializer(item: any): Resource;
|
|
77
|
+
/** Metadata pertaining to creation and last modification of the resource. */
|
|
78
|
+
export interface SystemData {
|
|
79
|
+
/** The identity that created the resource. */
|
|
80
|
+
createdBy?: string;
|
|
81
|
+
/** The type of identity that created the resource. */
|
|
82
|
+
createdByType?: CreatedByType;
|
|
83
|
+
/** The timestamp of resource creation (UTC). */
|
|
84
|
+
createdAt?: Date;
|
|
85
|
+
/** The identity that last modified the resource. */
|
|
86
|
+
lastModifiedBy?: string;
|
|
87
|
+
/** The type of identity that last modified the resource. */
|
|
88
|
+
lastModifiedByType?: CreatedByType;
|
|
89
|
+
/** The timestamp of resource last modification (UTC) */
|
|
90
|
+
lastModifiedAt?: Date;
|
|
91
|
+
}
|
|
92
|
+
export declare function systemDataDeserializer(item: any): SystemData;
|
|
93
|
+
/** The kind of entity that created the resource. */
|
|
94
|
+
export declare enum KnownCreatedByType {
|
|
95
|
+
/** The entity was created by a user. */
|
|
96
|
+
User = "User",
|
|
97
|
+
/** The entity was created by an application. */
|
|
98
|
+
Application = "Application",
|
|
99
|
+
/** The entity was created by a managed identity. */
|
|
100
|
+
ManagedIdentity = "ManagedIdentity",
|
|
101
|
+
/** The entity was created by a key. */
|
|
102
|
+
Key = "Key"
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* The kind of entity that created the resource. \
|
|
106
|
+
* {@link KnowncreatedByType} can be used interchangeably with createdByType,
|
|
107
|
+
* this enum contains the known values that the service supports.
|
|
108
|
+
* ### Known values supported by the service
|
|
109
|
+
* **User**: The entity was created by a user. \
|
|
110
|
+
* **Application**: The entity was created by an application. \
|
|
111
|
+
* **ManagedIdentity**: The entity was created by a managed identity. \
|
|
112
|
+
* **Key**: The entity was created by a key.
|
|
113
|
+
*/
|
|
114
|
+
export type CreatedByType = string;
|
|
115
|
+
/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */
|
|
116
|
+
export interface ErrorResponse {
|
|
117
|
+
/** The error object. */
|
|
118
|
+
error?: ErrorDetail;
|
|
119
|
+
}
|
|
120
|
+
export declare function errorResponseDeserializer(item: any): ErrorResponse;
|
|
121
|
+
/** The error detail. */
|
|
122
|
+
export interface ErrorDetail {
|
|
123
|
+
/** The error code. */
|
|
124
|
+
readonly code?: string;
|
|
125
|
+
/** The error message. */
|
|
126
|
+
readonly message?: string;
|
|
127
|
+
/** The error target. */
|
|
128
|
+
readonly target?: string;
|
|
129
|
+
/** The error details. */
|
|
130
|
+
readonly details?: ErrorDetail[];
|
|
131
|
+
/** The error additional info. */
|
|
132
|
+
readonly additionalInfo?: ErrorAdditionalInfo[];
|
|
133
|
+
}
|
|
134
|
+
export declare function errorDetailDeserializer(item: any): ErrorDetail;
|
|
135
|
+
export declare function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[];
|
|
136
|
+
export declare function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[];
|
|
137
|
+
/** The resource management error additional info. */
|
|
138
|
+
export interface ErrorAdditionalInfo {
|
|
139
|
+
/** The additional info type. */
|
|
140
|
+
readonly type?: string;
|
|
141
|
+
/** The additional info. */
|
|
142
|
+
readonly info?: Record<string, any>;
|
|
143
|
+
}
|
|
144
|
+
export declare function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo;
|
|
145
|
+
/** model interface _ErrorAdditionalInfoInfo */
|
|
146
|
+
export interface _ErrorAdditionalInfoInfo {
|
|
147
|
+
}
|
|
148
|
+
export declare function _errorAdditionalInfoInfoDeserializer(item: any): _ErrorAdditionalInfoInfo;
|
|
149
|
+
/** The type used for update operations of the Site. */
|
|
150
|
+
export interface SiteUpdate {
|
|
151
|
+
/** The updatable properties of the Site. */
|
|
152
|
+
properties?: SiteUpdateProperties;
|
|
153
|
+
}
|
|
154
|
+
export declare function siteUpdateSerializer(item: SiteUpdate): any;
|
|
155
|
+
/** The updatable properties of the Site. */
|
|
156
|
+
export interface SiteUpdateProperties {
|
|
157
|
+
/** displayName of Site resource */
|
|
158
|
+
displayName?: string;
|
|
159
|
+
/** Description of Site resource */
|
|
160
|
+
description?: string;
|
|
161
|
+
/** Physical address of the site */
|
|
162
|
+
siteAddress?: SiteAddressProperties;
|
|
163
|
+
/** Key-value pairs for labeling the site resource. */
|
|
164
|
+
labels?: Record<string, string>;
|
|
165
|
+
}
|
|
166
|
+
export declare function siteUpdatePropertiesSerializer(item: SiteUpdateProperties): any;
|
|
167
|
+
/** The response of a Site list operation. */
|
|
168
|
+
export interface _SiteListResult {
|
|
169
|
+
/** The Site items on this page */
|
|
170
|
+
value: Site[];
|
|
171
|
+
/** The link to the next page of items */
|
|
172
|
+
nextLink?: string;
|
|
173
|
+
}
|
|
174
|
+
export declare function _siteListResultDeserializer(item: any): _SiteListResult;
|
|
175
|
+
export declare function siteArraySerializer(result: Array<Site>): any[];
|
|
176
|
+
export declare function siteArrayDeserializer(result: Array<Site>): any[];
|
|
177
|
+
/** Supported API Versions */
|
|
178
|
+
export declare enum KnownVersions {
|
|
179
|
+
/** API Version - 2024-02-01-preview */
|
|
180
|
+
V20240201Preview = "2024-02-01-preview",
|
|
181
|
+
/** API Version - 2025-03-01-preview */
|
|
182
|
+
V20250301Preview = "2025-03-01-preview"
|
|
183
|
+
}
|
|
184
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAGA,2BAA2B;AAC3B,MAAM,WAAW,IAAK,SAAQ,aAAa;IACzC,0DAA0D;IAC1D,UAAU,CAAC,EAAE,cAAc,CAAC;CAC7B;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,GAAG,GAAG,CAM9C;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAYhD;AAED,sBAAsB;AACtB,MAAM,WAAW,cAAc;IAC7B,mCAAmC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mCAAmC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mCAAmC;IACnC,WAAW,CAAC,EAAE,qBAAqB,CAAC;IACpC,sDAAsD;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,2CAA2C;I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AAsD;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,oBAAoB,GAAG,GAAG,CAS9E;AAED,6CAA6C;AAC7C,MAAM,WAAW,eAAe;IAC9B,kCAAkC;IAClC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,yCAAyC;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAKtE;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,GAAG,EAAE,CAI9D;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,GAAG,EAAE,CAIhE;AAED,6BAA6B;AAC7B,oBAAY,aAAa;IACvB,uCAAuC;IACvC,gBAAgB,uBAAuB;IACvC,uCAAuC;IACvC,gBAAgB,uBAAuB;CACxC"}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
export function siteSerializer(item) {
|
|
4
|
+
return {
|
|
5
|
+
properties: !item["properties"]
|
|
6
|
+
? item["properties"]
|
|
7
|
+
: sitePropertiesSerializer(item["properties"]),
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export function siteDeserializer(item) {
|
|
11
|
+
return {
|
|
12
|
+
id: item["id"],
|
|
13
|
+
name: item["name"],
|
|
14
|
+
type: item["type"],
|
|
15
|
+
systemData: !item["systemData"]
|
|
16
|
+
? item["systemData"]
|
|
17
|
+
: systemDataDeserializer(item["systemData"]),
|
|
18
|
+
properties: !item["properties"]
|
|
19
|
+
? item["properties"]
|
|
20
|
+
: sitePropertiesDeserializer(item["properties"]),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export function sitePropertiesSerializer(item) {
|
|
24
|
+
return {
|
|
25
|
+
displayName: item["displayName"],
|
|
26
|
+
description: item["description"],
|
|
27
|
+
siteAddress: !item["siteAddress"]
|
|
28
|
+
? item["siteAddress"]
|
|
29
|
+
: siteAddressPropertiesSerializer(item["siteAddress"]),
|
|
30
|
+
labels: item["labels"],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function sitePropertiesDeserializer(item) {
|
|
34
|
+
return {
|
|
35
|
+
displayName: item["displayName"],
|
|
36
|
+
description: item["description"],
|
|
37
|
+
siteAddress: !item["siteAddress"]
|
|
38
|
+
? item["siteAddress"]
|
|
39
|
+
: siteAddressPropertiesDeserializer(item["siteAddress"]),
|
|
40
|
+
labels: item["labels"],
|
|
41
|
+
provisioningState: item["provisioningState"],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export function siteAddressPropertiesSerializer(item) {
|
|
45
|
+
return {
|
|
46
|
+
streetAddress1: item["streetAddress1"],
|
|
47
|
+
streetAddress2: item["streetAddress2"],
|
|
48
|
+
city: item["city"],
|
|
49
|
+
stateOrProvince: item["stateOrProvince"],
|
|
50
|
+
country: item["country"],
|
|
51
|
+
postalCode: item["postalCode"],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export function siteAddressPropertiesDeserializer(item) {
|
|
55
|
+
return {
|
|
56
|
+
streetAddress1: item["streetAddress1"],
|
|
57
|
+
streetAddress2: item["streetAddress2"],
|
|
58
|
+
city: item["city"],
|
|
59
|
+
stateOrProvince: item["stateOrProvince"],
|
|
60
|
+
country: item["country"],
|
|
61
|
+
postalCode: item["postalCode"],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
/** The provisioning state of a resource type. */
|
|
65
|
+
export var KnownResourceProvisioningState;
|
|
66
|
+
(function (KnownResourceProvisioningState) {
|
|
67
|
+
/** Resource has been created. */
|
|
68
|
+
KnownResourceProvisioningState["Succeeded"] = "Succeeded";
|
|
69
|
+
/** Resource creation failed. */
|
|
70
|
+
KnownResourceProvisioningState["Failed"] = "Failed";
|
|
71
|
+
/** Resource creation was canceled. */
|
|
72
|
+
KnownResourceProvisioningState["Canceled"] = "Canceled";
|
|
73
|
+
})(KnownResourceProvisioningState || (KnownResourceProvisioningState = {}));
|
|
74
|
+
export function proxyResourceSerializer(item) {
|
|
75
|
+
return item;
|
|
76
|
+
}
|
|
77
|
+
export function proxyResourceDeserializer(item) {
|
|
78
|
+
return {
|
|
79
|
+
id: item["id"],
|
|
80
|
+
name: item["name"],
|
|
81
|
+
type: item["type"],
|
|
82
|
+
systemData: !item["systemData"]
|
|
83
|
+
? item["systemData"]
|
|
84
|
+
: systemDataDeserializer(item["systemData"]),
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
export function resourceSerializer(item) {
|
|
88
|
+
return item;
|
|
89
|
+
}
|
|
90
|
+
export function resourceDeserializer(item) {
|
|
91
|
+
return {
|
|
92
|
+
id: item["id"],
|
|
93
|
+
name: item["name"],
|
|
94
|
+
type: item["type"],
|
|
95
|
+
systemData: !item["systemData"]
|
|
96
|
+
? item["systemData"]
|
|
97
|
+
: systemDataDeserializer(item["systemData"]),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
export function systemDataDeserializer(item) {
|
|
101
|
+
return {
|
|
102
|
+
createdBy: item["createdBy"],
|
|
103
|
+
createdByType: item["createdByType"],
|
|
104
|
+
createdAt: !item["createdAt"] ? item["createdAt"] : new Date(item["createdAt"]),
|
|
105
|
+
lastModifiedBy: item["lastModifiedBy"],
|
|
106
|
+
lastModifiedByType: item["lastModifiedByType"],
|
|
107
|
+
lastModifiedAt: !item["lastModifiedAt"]
|
|
108
|
+
? item["lastModifiedAt"]
|
|
109
|
+
: new Date(item["lastModifiedAt"]),
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
/** The kind of entity that created the resource. */
|
|
113
|
+
export var KnownCreatedByType;
|
|
114
|
+
(function (KnownCreatedByType) {
|
|
115
|
+
/** The entity was created by a user. */
|
|
116
|
+
KnownCreatedByType["User"] = "User";
|
|
117
|
+
/** The entity was created by an application. */
|
|
118
|
+
KnownCreatedByType["Application"] = "Application";
|
|
119
|
+
/** The entity was created by a managed identity. */
|
|
120
|
+
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
121
|
+
/** The entity was created by a key. */
|
|
122
|
+
KnownCreatedByType["Key"] = "Key";
|
|
123
|
+
})(KnownCreatedByType || (KnownCreatedByType = {}));
|
|
124
|
+
export function errorResponseDeserializer(item) {
|
|
125
|
+
return {
|
|
126
|
+
error: !item["error"] ? item["error"] : errorDetailDeserializer(item["error"]),
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
export function errorDetailDeserializer(item) {
|
|
130
|
+
return {
|
|
131
|
+
code: item["code"],
|
|
132
|
+
message: item["message"],
|
|
133
|
+
target: item["target"],
|
|
134
|
+
details: !item["details"] ? item["details"] : errorDetailArrayDeserializer(item["details"]),
|
|
135
|
+
additionalInfo: !item["additionalInfo"]
|
|
136
|
+
? item["additionalInfo"]
|
|
137
|
+
: errorAdditionalInfoArrayDeserializer(item["additionalInfo"]),
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
export function errorDetailArrayDeserializer(result) {
|
|
141
|
+
return result.map((item) => {
|
|
142
|
+
return errorDetailDeserializer(item);
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
export function errorAdditionalInfoArrayDeserializer(result) {
|
|
146
|
+
return result.map((item) => {
|
|
147
|
+
return errorAdditionalInfoDeserializer(item);
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
export function errorAdditionalInfoDeserializer(item) {
|
|
151
|
+
return {
|
|
152
|
+
type: item["type"],
|
|
153
|
+
info: !item["info"] ? item["info"] : _errorAdditionalInfoInfoDeserializer(item["info"]),
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
export function _errorAdditionalInfoInfoDeserializer(item) {
|
|
157
|
+
return item;
|
|
158
|
+
}
|
|
159
|
+
export function siteUpdateSerializer(item) {
|
|
160
|
+
return {
|
|
161
|
+
properties: !item["properties"]
|
|
162
|
+
? item["properties"]
|
|
163
|
+
: siteUpdatePropertiesSerializer(item["properties"]),
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
export function siteUpdatePropertiesSerializer(item) {
|
|
167
|
+
return {
|
|
168
|
+
displayName: item["displayName"],
|
|
169
|
+
description: item["description"],
|
|
170
|
+
siteAddress: !item["siteAddress"]
|
|
171
|
+
? item["siteAddress"]
|
|
172
|
+
: siteAddressPropertiesSerializer(item["siteAddress"]),
|
|
173
|
+
labels: item["labels"],
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
export function _siteListResultDeserializer(item) {
|
|
177
|
+
return {
|
|
178
|
+
value: siteArrayDeserializer(item["value"]),
|
|
179
|
+
nextLink: item["nextLink"],
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
export function siteArraySerializer(result) {
|
|
183
|
+
return result.map((item) => {
|
|
184
|
+
return siteSerializer(item);
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
export function siteArrayDeserializer(result) {
|
|
188
|
+
return result.map((item) => {
|
|
189
|
+
return siteDeserializer(item);
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
/** Supported API Versions */
|
|
193
|
+
export var KnownVersions;
|
|
194
|
+
(function (KnownVersions) {
|
|
195
|
+
/** API Version - 2024-02-01-preview */
|
|
196
|
+
KnownVersions["V20240201Preview"] = "2024-02-01-preview";
|
|
197
|
+
/** API Version - 2025-03-01-preview */
|
|
198
|
+
KnownVersions["V20250301Preview"] = "2025-03-01-preview";
|
|
199
|
+
})(KnownVersions || (KnownVersions = {}));
|
|
200
|
+
//# 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;AAQlC,MAAM,UAAU,cAAc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AC,OAAO,CAAC,CAAC;QAC3C,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,MAAmB;IACrD,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,MAAmB;IACvD,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;AACL,CAAC;AAED,6BAA6B;AAC7B,MAAM,CAAN,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,uCAAuC;IACvC,wDAAuC,CAAA;IACvC,uCAAuC;IACvC,wDAAuC,CAAA;AACzC,CAAC,EALW,aAAa,KAAb,aAAa,QAKxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** Site as ARM Resource */\nexport interface Site extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: SiteProperties;\n}\n\nexport function siteSerializer(item: Site): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : sitePropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function siteDeserializer(item: any): Site {\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 : sitePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Site properties */\nexport interface SiteProperties {\n /** displayName of Site resource */\n displayName?: string;\n /** Description of Site resource */\n description?: string;\n /** Physical address of the site */\n siteAddress?: SiteAddressProperties;\n /** Key-value pairs for labeling the site resource. */\n labels?: Record<string, string>;\n /** Provisioning state of last operation */\n readonly provisioningState?: ResourceProvisioningState;\n}\n\nexport function sitePropertiesSerializer(item: SiteProperties): any {\n return {\n displayName: item[\"displayName\"],\n description: item[\"description\"],\n siteAddress: !item[\"siteAddress\"]\n ? item[\"siteAddress\"]\n : siteAddressPropertiesSerializer(item[\"siteAddress\"]),\n labels: item[\"labels\"],\n };\n}\n\nexport function sitePropertiesDeserializer(item: any): SiteProperties {\n return {\n displayName: item[\"displayName\"],\n description: item[\"description\"],\n siteAddress: !item[\"siteAddress\"]\n ? item[\"siteAddress\"]\n : siteAddressPropertiesDeserializer(item[\"siteAddress\"]),\n labels: item[\"labels\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** Site address properties */\nexport interface SiteAddressProperties {\n /** First line of the street address */\n streetAddress1?: string;\n /** Second line of the street address */\n streetAddress2?: string;\n /** City of the address */\n city?: string;\n /** State or province of the address */\n stateOrProvince?: string;\n /** Country of the address */\n country?: string;\n /** Postal or ZIP code of the address */\n postalCode?: string;\n}\n\nexport function siteAddressPropertiesSerializer(item: SiteAddressProperties): any {\n return {\n streetAddress1: item[\"streetAddress1\"],\n streetAddress2: item[\"streetAddress2\"],\n city: item[\"city\"],\n stateOrProvince: item[\"stateOrProvince\"],\n country: item[\"country\"],\n postalCode: item[\"postalCode\"],\n };\n}\n\nexport function siteAddressPropertiesDeserializer(item: any): SiteAddressProperties {\n return {\n streetAddress1: item[\"streetAddress1\"],\n streetAddress2: item[\"streetAddress2\"],\n city: item[\"city\"],\n stateOrProvince: item[\"stateOrProvince\"],\n country: item[\"country\"],\n postalCode: item[\"postalCode\"],\n };\n}\n\n/** The provisioning state of a resource type. */\nexport enum KnownResourceProvisioningState {\n /** Resource has been created. */\n Succeeded = \"Succeeded\",\n /** Resource creation failed. */\n Failed = \"Failed\",\n /** Resource creation was canceled. */\n Canceled = \"Canceled\",\n}\n\n/**\n * The provisioning state of a resource type. \\\n * {@link KnownResourceProvisioningState} can be used interchangeably with ResourceProvisioningState,\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 */\nexport type ResourceProvisioningState = 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 proxyResourceSerializer(item: ProxyResource): any {\n return item;\n}\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/** 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/** 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?: Record<string, any>;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: !item[\"info\"] ? item[\"info\"] : _errorAdditionalInfoInfoDeserializer(item[\"info\"]),\n };\n}\n\n/** model interface _ErrorAdditionalInfoInfo */\nexport interface _ErrorAdditionalInfoInfo {}\n\nexport function _errorAdditionalInfoInfoDeserializer(item: any): _ErrorAdditionalInfoInfo {\n return item;\n}\n\n/** The type used for update operations of the Site. */\nexport interface SiteUpdate {\n /** The updatable properties of the Site. */\n properties?: SiteUpdateProperties;\n}\n\nexport function siteUpdateSerializer(item: SiteUpdate): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : siteUpdatePropertiesSerializer(item[\"properties\"]),\n };\n}\n\n/** The updatable properties of the Site. */\nexport interface SiteUpdateProperties {\n /** displayName of Site resource */\n displayName?: string;\n /** Description of Site resource */\n description?: string;\n /** Physical address of the site */\n siteAddress?: SiteAddressProperties;\n /** Key-value pairs for labeling the site resource. */\n labels?: Record<string, string>;\n}\n\nexport function siteUpdatePropertiesSerializer(item: SiteUpdateProperties): any {\n return {\n displayName: item[\"displayName\"],\n description: item[\"description\"],\n siteAddress: !item[\"siteAddress\"]\n ? item[\"siteAddress\"]\n : siteAddressPropertiesSerializer(item[\"siteAddress\"]),\n labels: item[\"labels\"],\n };\n}\n\n/** The response of a Site list operation. */\nexport interface _SiteListResult {\n /** The Site items on this page */\n value: Site[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _siteListResultDeserializer(item: any): _SiteListResult {\n return {\n value: siteArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function siteArraySerializer(result: Array<Site>): any[] {\n return result.map((item) => {\n return siteSerializer(item);\n });\n}\n\nexport function siteArrayDeserializer(result: Array<Site>): any[] {\n return result.map((item) => {\n return siteDeserializer(item);\n });\n}\n\n/** Supported API Versions */\nexport enum KnownVersions {\n /** API Version - 2024-02-01-preview */\n V20240201Preview = \"2024-02-01-preview\",\n /** API Version - 2025-03-01-preview */\n V20250301Preview = \"2025-03-01-preview\",\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EdgeClient } from "./edgeClient.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: EdgeClient, 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 @@
|
|
|
1
|
+
{"version":3,"file":"restorePollerHelpers.d.ts","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAK7C,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACL,UAAU,EACV,cAAc,EAGf,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,oBAAoB,CACnC,OAAO,EACP,SAAS,SAAS,qBAAqB,GAAG,qBAAqB,CAC/D,SAAQ,gBAAgB;IACxB,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,qDAAqD;IACrD,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAC/D;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,SAAS,SAAS,qBAAqB,EAAE,OAAO,EAC5E,MAAM,EAAE,UAAU,EAClB,eAAe,EAAE,MAAM,EACvB,eAAe,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,EACjF,OAAO,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC,GACtC,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CA+B9C"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { _createOrUpdateDeserialize } from "./api/sitesByServiceGroup/operations.js";
|
|
4
|
+
import { _createOrUpdateDeserialize as _createOrUpdateDeserializeSitesBySubscription } from "./api/sitesBySubscription/operations.js";
|
|
5
|
+
import { _createOrUpdateDeserialize as _createOrUpdateDeserializeSites } from "./api/sites/operations.js";
|
|
6
|
+
import { getLongRunningPoller } from "./static-helpers/pollingHelpers.js";
|
|
7
|
+
import { deserializeState, } from "@azure/core-lro";
|
|
8
|
+
/**
|
|
9
|
+
* Creates a poller from the serialized state of another poller. This can be
|
|
10
|
+
* useful when you want to create pollers on a different host or a poller
|
|
11
|
+
* needs to be constructed after the original one is not in scope.
|
|
12
|
+
*/
|
|
13
|
+
export function restorePoller(client, serializedState, sourceOperation, options) {
|
|
14
|
+
var _a, _b, _c;
|
|
15
|
+
const pollerConfig = deserializeState(serializedState).config;
|
|
16
|
+
const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
|
|
17
|
+
if (!initialRequestUrl || !requestMethod) {
|
|
18
|
+
throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation === null || sourceOperation === void 0 ? void 0 : sourceOperation.name}`);
|
|
19
|
+
}
|
|
20
|
+
const resourceLocationConfig = metadata === null || metadata === void 0 ? void 0 : metadata["resourceLocationConfig"];
|
|
21
|
+
const { deserializer, expectedStatuses = [] } = (_a = getDeserializationHelper(initialRequestUrl, requestMethod)) !== null && _a !== void 0 ? _a : {};
|
|
22
|
+
const deserializeHelper = (_b = options === null || options === void 0 ? void 0 : options.processResponseBody) !== null && _b !== void 0 ? _b : deserializer;
|
|
23
|
+
if (!deserializeHelper) {
|
|
24
|
+
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}.`);
|
|
25
|
+
}
|
|
26
|
+
return getLongRunningPoller((_c = client["_client"]) !== null && _c !== void 0 ? _c : client, deserializeHelper, expectedStatuses, {
|
|
27
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
28
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
29
|
+
resourceLocationConfig,
|
|
30
|
+
restoreFrom: serializedState,
|
|
31
|
+
initialRequestUrl,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
const deserializeMap = {
|
|
35
|
+
"PUT /providers/Microsoft.Management/serviceGroups/{servicegroupName}/providers/Microsoft.Edge/sites/{siteName}": {
|
|
36
|
+
deserializer: _createOrUpdateDeserialize,
|
|
37
|
+
expectedStatuses: ["200", "201"],
|
|
38
|
+
},
|
|
39
|
+
"PUT /subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}": {
|
|
40
|
+
deserializer: _createOrUpdateDeserializeSitesBySubscription,
|
|
41
|
+
expectedStatuses: ["200", "201"],
|
|
42
|
+
},
|
|
43
|
+
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/sites/{siteName}": {
|
|
44
|
+
deserializer: _createOrUpdateDeserializeSites,
|
|
45
|
+
expectedStatuses: ["200", "201"],
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
function getDeserializationHelper(urlStr, method) {
|
|
49
|
+
var _a, _b, _c, _d;
|
|
50
|
+
const path = new URL(urlStr).pathname;
|
|
51
|
+
const pathParts = path.split("/");
|
|
52
|
+
// Traverse list to match the longest candidate
|
|
53
|
+
// matchedLen: the length of candidate path
|
|
54
|
+
// matchedValue: the matched status code array
|
|
55
|
+
let matchedLen = -1, matchedValue;
|
|
56
|
+
// Iterate the responseMap to find a match
|
|
57
|
+
for (const [key, value] of Object.entries(deserializeMap)) {
|
|
58
|
+
// Extracting the path from the map key which is in format
|
|
59
|
+
// GET /path/foo
|
|
60
|
+
if (!key.startsWith(method)) {
|
|
61
|
+
continue;
|
|
62
|
+
}
|
|
63
|
+
const candidatePath = getPathFromMapKey(key);
|
|
64
|
+
// Get each part of the url path
|
|
65
|
+
const candidateParts = candidatePath.split("/");
|
|
66
|
+
// track if we have found a match to return the values found.
|
|
67
|
+
let found = true;
|
|
68
|
+
for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
|
|
69
|
+
if (((_a = candidateParts[i]) === null || _a === void 0 ? void 0 : _a.startsWith("{")) && ((_b = candidateParts[i]) === null || _b === void 0 ? void 0 : _b.indexOf("}")) !== -1) {
|
|
70
|
+
const start = candidateParts[i].indexOf("}") + 1, end = (_c = candidateParts[i]) === null || _c === void 0 ? void 0 : _c.length;
|
|
71
|
+
// If the current part of the candidate is a "template" part
|
|
72
|
+
// Try to use the suffix of pattern to match the path
|
|
73
|
+
// {guid} ==> $
|
|
74
|
+
// {guid}:export ==> :export$
|
|
75
|
+
const isMatched = new RegExp(`${(_d = candidateParts[i]) === null || _d === void 0 ? void 0 : _d.slice(start, end)}`).test(pathParts[j] || "");
|
|
76
|
+
if (!isMatched) {
|
|
77
|
+
found = false;
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
continue;
|
|
81
|
+
}
|
|
82
|
+
// If the candidate part is not a template and
|
|
83
|
+
// the parts don't match mark the candidate as not found
|
|
84
|
+
// to move on with the next candidate path.
|
|
85
|
+
if (candidateParts[i] !== pathParts[j]) {
|
|
86
|
+
found = false;
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
// We finished evaluating the current candidate parts
|
|
91
|
+
// Update the matched value if and only if we found the longer pattern
|
|
92
|
+
if (found && candidatePath.length > matchedLen) {
|
|
93
|
+
matchedLen = candidatePath.length;
|
|
94
|
+
matchedValue = value;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
return matchedValue;
|
|
98
|
+
}
|
|
99
|
+
function getPathFromMapKey(mapKey) {
|
|
100
|
+
const pathStart = mapKey.indexOf("/");
|
|
101
|
+
return mapKey.slice(pathStart);
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=restorePollerHelpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restorePollerHelpers.js","sourceRoot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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 { EdgeClient } from \"./edgeClient.js\";\nimport { _createOrUpdateDeserialize } from \"./api/sitesByServiceGroup/operations.js\";\nimport { _createOrUpdateDeserialize as _createOrUpdateDeserializeSitesBySubscription } from \"./api/sitesBySubscription/operations.js\";\nimport { _createOrUpdateDeserialize as _createOrUpdateDeserializeSites } from \"./api/sites/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: EdgeClient,\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 \"PUT /providers/Microsoft.Management/serviceGroups/{servicegroupName}/providers/Microsoft.Edge/sites/{siteName}\":\n {\n deserializer: _createOrUpdateDeserialize,\n expectedStatuses: [\"200\", \"201\"],\n },\n \"PUT /subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}\": {\n deserializer: _createOrUpdateDeserializeSitesBySubscription,\n expectedStatuses: [\"200\", \"201\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/sites/{siteName}\":\n {\n deserializer: _createOrUpdateDeserializeSites,\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"]}
|