@azure/arm-extendedlocation 1.0.0-beta.4 → 1.0.0-beta.5
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/LICENSE +1 -1
- package/README.md +10 -13
- package/dist/browser/api/customLocations/index.d.ts +3 -0
- package/dist/browser/api/customLocations/index.js +4 -0
- package/dist/browser/api/customLocations/index.js.map +1 -0
- package/dist/browser/api/customLocations/operations.d.ts +43 -0
- package/dist/browser/api/customLocations/operations.js +305 -0
- package/dist/browser/api/customLocations/operations.js.map +1 -0
- package/dist/browser/api/customLocations/options.d.ts +39 -0
- package/dist/browser/api/customLocations/options.js +4 -0
- package/dist/browser/api/customLocations/options.js.map +1 -0
- package/dist/browser/api/customLocationsManagementContext.d.ts +22 -0
- package/dist/browser/api/customLocationsManagementContext.js +26 -0
- package/dist/browser/api/customLocationsManagementContext.js.map +1 -0
- package/dist/browser/api/index.d.ts +3 -0
- package/dist/browser/api/index.js +4 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/resourceSyncRules/index.d.ts +3 -0
- package/dist/browser/api/resourceSyncRules/index.js +4 -0
- package/dist/browser/api/resourceSyncRules/index.js.map +1 -0
- package/dist/browser/api/resourceSyncRules/operations.d.ts +27 -0
- package/dist/browser/api/resourceSyncRules/operations.js +181 -0
- package/dist/browser/api/resourceSyncRules/operations.js.map +1 -0
- package/dist/browser/api/resourceSyncRules/options.d.ts +25 -0
- package/dist/browser/api/resourceSyncRules/options.js +4 -0
- package/dist/browser/api/resourceSyncRules/options.js.map +1 -0
- package/dist/browser/classic/customLocations/index.d.ts +37 -0
- package/dist/browser/classic/customLocations/index.js +39 -0
- package/dist/browser/classic/customLocations/index.js.map +1 -0
- package/dist/browser/classic/index.d.ts +3 -0
- package/dist/browser/classic/index.js +4 -0
- package/dist/browser/classic/index.js.map +1 -0
- package/dist/browser/classic/resourceSyncRules/index.d.ts +29 -0
- package/dist/browser/classic/resourceSyncRules/index.js +35 -0
- package/dist/browser/classic/resourceSyncRules/index.js.map +1 -0
- package/dist/browser/customLocationsManagementClient.d.ts +16 -19
- package/dist/browser/customLocationsManagementClient.js +30 -101
- package/dist/browser/customLocationsManagementClient.js.map +1 -1
- package/dist/browser/index.d.ts +16 -3
- package/dist/browser/index.js +7 -11
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.js +5 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/models/index.d.ts +2 -540
- package/dist/browser/models/index.js +3 -33
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +402 -0
- package/dist/browser/models/models.js +506 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/restorePollerHelpers.d.ts +21 -0
- package/dist/browser/restorePollerHelpers.js +101 -0
- package/dist/browser/restorePollerHelpers.js.map +1 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/browser/static-helpers/pagingHelpers.js +143 -0
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pollingHelpers.d.ts +34 -0
- package/dist/browser/static-helpers/pollingHelpers.js +95 -0
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
- package/dist/browser/static-helpers/serialization/check-prop-undefined.js +17 -0
- package/dist/browser/static-helpers/serialization/check-prop-undefined.js.map +1 -0
- package/dist/browser/static-helpers/simplePollerHelpers.d.ts +73 -0
- package/dist/browser/static-helpers/simplePollerHelpers.js +44 -0
- package/dist/browser/static-helpers/simplePollerHelpers.js.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/browser/static-helpers/urlTemplate.js +200 -0
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/api/customLocations/index.d.ts +3 -0
- package/dist/commonjs/api/customLocations/index.js +44 -0
- package/dist/commonjs/api/customLocations/index.js.map +7 -0
- package/dist/commonjs/api/customLocations/operations.d.ts +43 -0
- package/dist/commonjs/api/customLocations/operations.js +434 -0
- package/dist/commonjs/api/customLocations/operations.js.map +7 -0
- package/dist/commonjs/api/customLocations/options.d.ts +39 -0
- package/dist/commonjs/api/customLocations/options.js +16 -0
- package/dist/commonjs/api/customLocations/options.js.map +7 -0
- package/dist/commonjs/api/customLocationsManagementContext.d.ts +22 -0
- package/dist/commonjs/api/customLocationsManagementContext.js +47 -0
- package/dist/commonjs/api/customLocationsManagementContext.js.map +7 -0
- package/dist/commonjs/api/index.d.ts +3 -0
- package/dist/commonjs/api/index.js +28 -0
- package/dist/commonjs/api/index.js.map +7 -0
- package/dist/commonjs/api/resourceSyncRules/index.d.ts +3 -0
- package/dist/commonjs/api/resourceSyncRules/index.js +36 -0
- package/dist/commonjs/api/resourceSyncRules/index.js.map +7 -0
- package/dist/commonjs/api/resourceSyncRules/operations.d.ts +27 -0
- package/dist/commonjs/api/resourceSyncRules/operations.js +271 -0
- package/dist/commonjs/api/resourceSyncRules/operations.js.map +7 -0
- package/dist/commonjs/api/resourceSyncRules/options.d.ts +25 -0
- package/dist/commonjs/api/resourceSyncRules/options.js +16 -0
- package/dist/commonjs/api/resourceSyncRules/options.js.map +7 -0
- package/dist/commonjs/classic/customLocations/index.d.ts +37 -0
- package/dist/commonjs/classic/customLocations/index.js +63 -0
- package/dist/commonjs/classic/customLocations/index.js.map +7 -0
- package/dist/commonjs/classic/index.d.ts +3 -0
- package/dist/commonjs/classic/index.js +16 -0
- package/dist/commonjs/classic/index.js.map +7 -0
- package/dist/commonjs/classic/resourceSyncRules/index.d.ts +29 -0
- package/dist/commonjs/classic/resourceSyncRules/index.js +80 -0
- package/dist/commonjs/classic/resourceSyncRules/index.js.map +7 -0
- package/dist/commonjs/customLocationsManagementClient.d.ts +16 -19
- package/dist/commonjs/customLocationsManagementClient.js +56 -111
- package/dist/commonjs/customLocationsManagementClient.js.map +7 -1
- package/dist/commonjs/index.d.ts +16 -3
- package/dist/commonjs/index.js +48 -19
- package/dist/commonjs/index.js.map +7 -1
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.js +29 -0
- package/dist/commonjs/logger.js.map +7 -0
- package/dist/commonjs/models/index.d.ts +2 -540
- package/dist/commonjs/models/index.js +34 -37
- package/dist/commonjs/models/index.js.map +7 -1
- package/dist/commonjs/models/models.d.ts +402 -0
- package/dist/commonjs/models/models.js +560 -0
- package/dist/commonjs/models/models.js.map +7 -0
- package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
- package/dist/commonjs/restorePollerHelpers.js +114 -0
- package/dist/commonjs/restorePollerHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js +52 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +143 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +34 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js +101 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
- package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js +35 -0
- package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js.map +7 -0
- package/dist/commonjs/static-helpers/simplePollerHelpers.d.ts +73 -0
- package/dist/commonjs/static-helpers/simplePollerHelpers.js +67 -0
- package/dist/commonjs/static-helpers/simplePollerHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +197 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +7 -0
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/api/customLocations/index.d.ts +3 -0
- package/dist/esm/api/customLocations/index.js +4 -0
- package/dist/esm/api/customLocations/index.js.map +1 -0
- package/dist/esm/api/customLocations/operations.d.ts +43 -0
- package/dist/esm/api/customLocations/operations.js +305 -0
- package/dist/esm/api/customLocations/operations.js.map +1 -0
- package/dist/esm/api/customLocations/options.d.ts +39 -0
- package/dist/esm/api/customLocations/options.js +4 -0
- package/dist/esm/api/customLocations/options.js.map +1 -0
- package/dist/esm/api/customLocationsManagementContext.d.ts +22 -0
- package/dist/esm/api/customLocationsManagementContext.js +26 -0
- package/dist/esm/api/customLocationsManagementContext.js.map +1 -0
- package/dist/esm/api/index.d.ts +3 -0
- package/dist/esm/api/index.js +4 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/resourceSyncRules/index.d.ts +3 -0
- package/dist/esm/api/resourceSyncRules/index.js +4 -0
- package/dist/esm/api/resourceSyncRules/index.js.map +1 -0
- package/dist/esm/api/resourceSyncRules/operations.d.ts +27 -0
- package/dist/esm/api/resourceSyncRules/operations.js +181 -0
- package/dist/esm/api/resourceSyncRules/operations.js.map +1 -0
- package/dist/esm/api/resourceSyncRules/options.d.ts +25 -0
- package/dist/esm/api/resourceSyncRules/options.js +4 -0
- package/dist/esm/api/resourceSyncRules/options.js.map +1 -0
- package/dist/esm/classic/customLocations/index.d.ts +37 -0
- package/dist/esm/classic/customLocations/index.js +39 -0
- package/dist/esm/classic/customLocations/index.js.map +1 -0
- package/dist/esm/classic/index.d.ts +3 -0
- package/dist/esm/classic/index.js +4 -0
- package/dist/esm/classic/index.js.map +1 -0
- package/dist/esm/classic/resourceSyncRules/index.d.ts +29 -0
- package/dist/esm/classic/resourceSyncRules/index.js +35 -0
- package/dist/esm/classic/resourceSyncRules/index.js.map +1 -0
- package/dist/esm/customLocationsManagementClient.d.ts +16 -19
- package/dist/esm/customLocationsManagementClient.js +30 -101
- package/dist/esm/customLocationsManagementClient.js.map +1 -1
- package/dist/esm/index.d.ts +16 -3
- package/dist/esm/index.js +7 -11
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models/index.d.ts +2 -540
- package/dist/esm/models/index.js +3 -33
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +402 -0
- package/dist/esm/models/models.js +506 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/restorePollerHelpers.d.ts +21 -0
- package/dist/esm/restorePollerHelpers.js +101 -0
- package/dist/esm/restorePollerHelpers.js.map +1 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/esm/static-helpers/pagingHelpers.js +143 -0
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pollingHelpers.d.ts +34 -0
- package/dist/esm/static-helpers/pollingHelpers.js +95 -0
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
- package/dist/esm/static-helpers/serialization/check-prop-undefined.js +17 -0
- package/dist/esm/static-helpers/serialization/check-prop-undefined.js.map +1 -0
- package/dist/esm/static-helpers/simplePollerHelpers.d.ts +73 -0
- package/dist/esm/static-helpers/simplePollerHelpers.js +44 -0
- package/dist/esm/static-helpers/simplePollerHelpers.js.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/esm/static-helpers/urlTemplate.js +200 -0
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
- package/package.json +147 -95
- package/CHANGELOG.md +0 -64
- package/dist/browser/customLocationsManagementClient.d.ts.map +0 -1
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/browser/lroImpl.d.ts +0 -16
- package/dist/browser/lroImpl.d.ts.map +0 -1
- package/dist/browser/lroImpl.js +0 -33
- package/dist/browser/lroImpl.js.map +0 -1
- package/dist/browser/models/index.d.ts.map +0 -1
- package/dist/browser/models/mappers.d.ts +0 -26
- package/dist/browser/models/mappers.d.ts.map +0 -1
- package/dist/browser/models/mappers.js +0 -807
- package/dist/browser/models/mappers.js.map +0 -1
- package/dist/browser/models/parameters.d.ts +0 -27
- package/dist/browser/models/parameters.d.ts.map +0 -1
- package/dist/browser/models/parameters.js +0 -185
- package/dist/browser/models/parameters.js.map +0 -1
- package/dist/browser/operations/customLocations.d.ts +0 -155
- package/dist/browser/operations/customLocations.d.ts.map +0 -1
- package/dist/browser/operations/customLocations.js +0 -699
- package/dist/browser/operations/customLocations.js.map +0 -1
- package/dist/browser/operations/index.d.ts +0 -3
- package/dist/browser/operations/index.d.ts.map +0 -1
- package/dist/browser/operations/index.js +0 -10
- package/dist/browser/operations/index.js.map +0 -1
- package/dist/browser/operations/resourceSyncRules.d.ts +0 -97
- package/dist/browser/operations/resourceSyncRules.d.ts.map +0 -1
- package/dist/browser/operations/resourceSyncRules.js +0 -398
- package/dist/browser/operations/resourceSyncRules.js.map +0 -1
- package/dist/browser/operationsInterfaces/customLocations.d.ts +0 -86
- package/dist/browser/operationsInterfaces/customLocations.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/customLocations.js +0 -9
- package/dist/browser/operationsInterfaces/customLocations.js.map +0 -1
- package/dist/browser/operationsInterfaces/index.d.ts +0 -3
- package/dist/browser/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/index.js +0 -10
- package/dist/browser/operationsInterfaces/index.js.map +0 -1
- package/dist/browser/operationsInterfaces/resourceSyncRules.d.ts +0 -71
- package/dist/browser/operationsInterfaces/resourceSyncRules.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/resourceSyncRules.js +0 -9
- package/dist/browser/operationsInterfaces/resourceSyncRules.js.map +0 -1
- package/dist/browser/pagingHelper.d.ts +0 -13
- package/dist/browser/pagingHelper.d.ts.map +0 -1
- package/dist/browser/pagingHelper.js +0 -30
- package/dist/browser/pagingHelper.js.map +0 -1
- package/dist/commonjs/customLocationsManagementClient.d.ts.map +0 -1
- package/dist/commonjs/index.d.ts.map +0 -1
- package/dist/commonjs/lroImpl.d.ts +0 -16
- package/dist/commonjs/lroImpl.d.ts.map +0 -1
- package/dist/commonjs/lroImpl.js +0 -37
- package/dist/commonjs/lroImpl.js.map +0 -1
- package/dist/commonjs/models/index.d.ts.map +0 -1
- package/dist/commonjs/models/mappers.d.ts +0 -26
- package/dist/commonjs/models/mappers.d.ts.map +0 -1
- package/dist/commonjs/models/mappers.js +0 -810
- package/dist/commonjs/models/mappers.js.map +0 -1
- package/dist/commonjs/models/parameters.d.ts +0 -27
- package/dist/commonjs/models/parameters.d.ts.map +0 -1
- package/dist/commonjs/models/parameters.js +0 -188
- package/dist/commonjs/models/parameters.js.map +0 -1
- package/dist/commonjs/operations/customLocations.d.ts +0 -155
- package/dist/commonjs/operations/customLocations.d.ts.map +0 -1
- package/dist/commonjs/operations/customLocations.js +0 -704
- package/dist/commonjs/operations/customLocations.js.map +0 -1
- package/dist/commonjs/operations/index.d.ts +0 -3
- package/dist/commonjs/operations/index.d.ts.map +0 -1
- package/dist/commonjs/operations/index.js +0 -13
- package/dist/commonjs/operations/index.js.map +0 -1
- package/dist/commonjs/operations/resourceSyncRules.d.ts +0 -97
- package/dist/commonjs/operations/resourceSyncRules.d.ts.map +0 -1
- package/dist/commonjs/operations/resourceSyncRules.js +0 -403
- package/dist/commonjs/operations/resourceSyncRules.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/customLocations.d.ts +0 -86
- package/dist/commonjs/operationsInterfaces/customLocations.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/customLocations.js +0 -10
- package/dist/commonjs/operationsInterfaces/customLocations.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/index.d.ts +0 -3
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/index.js +0 -13
- package/dist/commonjs/operationsInterfaces/index.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/resourceSyncRules.d.ts +0 -71
- package/dist/commonjs/operationsInterfaces/resourceSyncRules.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/resourceSyncRules.js +0 -10
- package/dist/commonjs/operationsInterfaces/resourceSyncRules.js.map +0 -1
- package/dist/commonjs/pagingHelper.d.ts +0 -13
- package/dist/commonjs/pagingHelper.d.ts.map +0 -1
- package/dist/commonjs/pagingHelper.js +0 -34
- package/dist/commonjs/pagingHelper.js.map +0 -1
- package/dist/esm/customLocationsManagementClient.d.ts.map +0 -1
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/lroImpl.d.ts +0 -16
- package/dist/esm/lroImpl.d.ts.map +0 -1
- package/dist/esm/lroImpl.js +0 -33
- package/dist/esm/lroImpl.js.map +0 -1
- package/dist/esm/models/index.d.ts.map +0 -1
- package/dist/esm/models/mappers.d.ts +0 -26
- package/dist/esm/models/mappers.d.ts.map +0 -1
- package/dist/esm/models/mappers.js +0 -807
- package/dist/esm/models/mappers.js.map +0 -1
- package/dist/esm/models/parameters.d.ts +0 -27
- package/dist/esm/models/parameters.d.ts.map +0 -1
- package/dist/esm/models/parameters.js +0 -185
- package/dist/esm/models/parameters.js.map +0 -1
- package/dist/esm/operations/customLocations.d.ts +0 -155
- package/dist/esm/operations/customLocations.d.ts.map +0 -1
- package/dist/esm/operations/customLocations.js +0 -699
- package/dist/esm/operations/customLocations.js.map +0 -1
- package/dist/esm/operations/index.d.ts +0 -3
- package/dist/esm/operations/index.d.ts.map +0 -1
- package/dist/esm/operations/index.js +0 -10
- package/dist/esm/operations/index.js.map +0 -1
- package/dist/esm/operations/resourceSyncRules.d.ts +0 -97
- package/dist/esm/operations/resourceSyncRules.d.ts.map +0 -1
- package/dist/esm/operations/resourceSyncRules.js +0 -398
- package/dist/esm/operations/resourceSyncRules.js.map +0 -1
- package/dist/esm/operationsInterfaces/customLocations.d.ts +0 -86
- package/dist/esm/operationsInterfaces/customLocations.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/customLocations.js +0 -9
- package/dist/esm/operationsInterfaces/customLocations.js.map +0 -1
- package/dist/esm/operationsInterfaces/index.d.ts +0 -3
- package/dist/esm/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/index.js +0 -10
- package/dist/esm/operationsInterfaces/index.js.map +0 -1
- package/dist/esm/operationsInterfaces/resourceSyncRules.d.ts +0 -71
- package/dist/esm/operationsInterfaces/resourceSyncRules.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/resourceSyncRules.js +0 -9
- package/dist/esm/operationsInterfaces/resourceSyncRules.js.map +0 -1
- package/dist/esm/pagingHelper.d.ts +0 -13
- package/dist/esm/pagingHelper.d.ts.map +0 -1
- package/dist/esm/pagingHelper.js +0 -30
- package/dist/esm/pagingHelper.js.map +0 -1
- package/dist/react-native/customLocationsManagementClient.d.ts +0 -21
- package/dist/react-native/customLocationsManagementClient.d.ts.map +0 -1
- package/dist/react-native/customLocationsManagementClient.js +0 -108
- package/dist/react-native/customLocationsManagementClient.js.map +0 -1
- package/dist/react-native/index.d.ts +0 -5
- package/dist/react-native/index.d.ts.map +0 -1
- package/dist/react-native/index.js +0 -13
- package/dist/react-native/index.js.map +0 -1
- package/dist/react-native/lroImpl.d.ts +0 -16
- package/dist/react-native/lroImpl.d.ts.map +0 -1
- package/dist/react-native/lroImpl.js +0 -33
- package/dist/react-native/lroImpl.js.map +0 -1
- package/dist/react-native/models/index.d.ts +0 -541
- package/dist/react-native/models/index.d.ts.map +0 -1
- package/dist/react-native/models/index.js +0 -34
- package/dist/react-native/models/index.js.map +0 -1
- package/dist/react-native/models/mappers.d.ts +0 -26
- package/dist/react-native/models/mappers.d.ts.map +0 -1
- package/dist/react-native/models/mappers.js +0 -807
- package/dist/react-native/models/mappers.js.map +0 -1
- package/dist/react-native/models/parameters.d.ts +0 -27
- package/dist/react-native/models/parameters.d.ts.map +0 -1
- package/dist/react-native/models/parameters.js +0 -185
- package/dist/react-native/models/parameters.js.map +0 -1
- package/dist/react-native/operations/customLocations.d.ts +0 -155
- package/dist/react-native/operations/customLocations.d.ts.map +0 -1
- package/dist/react-native/operations/customLocations.js +0 -699
- package/dist/react-native/operations/customLocations.js.map +0 -1
- package/dist/react-native/operations/index.d.ts +0 -3
- package/dist/react-native/operations/index.d.ts.map +0 -1
- package/dist/react-native/operations/index.js +0 -10
- package/dist/react-native/operations/index.js.map +0 -1
- package/dist/react-native/operations/resourceSyncRules.d.ts +0 -97
- package/dist/react-native/operations/resourceSyncRules.d.ts.map +0 -1
- package/dist/react-native/operations/resourceSyncRules.js +0 -398
- package/dist/react-native/operations/resourceSyncRules.js.map +0 -1
- package/dist/react-native/operationsInterfaces/customLocations.d.ts +0 -86
- package/dist/react-native/operationsInterfaces/customLocations.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/customLocations.js +0 -9
- package/dist/react-native/operationsInterfaces/customLocations.js.map +0 -1
- package/dist/react-native/operationsInterfaces/index.d.ts +0 -3
- package/dist/react-native/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/index.js +0 -10
- package/dist/react-native/operationsInterfaces/index.js.map +0 -1
- package/dist/react-native/operationsInterfaces/resourceSyncRules.d.ts +0 -71
- package/dist/react-native/operationsInterfaces/resourceSyncRules.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/resourceSyncRules.js +0 -9
- package/dist/react-native/operationsInterfaces/resourceSyncRules.js.map +0 -1
- package/dist/react-native/package.json +0 -3
- package/dist/react-native/pagingHelper.d.ts +0 -13
- package/dist/react-native/pagingHelper.d.ts.map +0 -1
- package/dist/react-native/pagingHelper.js +0 -30
- package/dist/react-native/pagingHelper.js.map +0 -1
- package/review/arm-extendedlocation-node.api.md +0 -434
package/LICENSE
CHANGED
|
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -4,10 +4,12 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f
|
|
|
4
4
|
|
|
5
5
|
The customLocations Rest API spec.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[
|
|
10
|
-
[
|
|
7
|
+
Key links:
|
|
8
|
+
|
|
9
|
+
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/extendedlocation/arm-extendedlocation)
|
|
10
|
+
- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-extendedlocation)
|
|
11
|
+
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-extendedlocation?view=azure-node-preview)
|
|
12
|
+
- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/extendedlocation/arm-extendedlocation/samples)
|
|
11
13
|
|
|
12
14
|
## Getting started
|
|
13
15
|
|
|
@@ -35,7 +37,7 @@ npm install @azure/arm-extendedlocation
|
|
|
35
37
|
To create a client object to access the Azure CustomLocationsManagement API, you will need the `endpoint` of your Azure CustomLocationsManagement resource and a `credential`. The Azure CustomLocationsManagement client can use Azure Active Directory credentials to authenticate.
|
|
36
38
|
You can find the endpoint for your Azure CustomLocationsManagement resource in the [Azure Portal][azure_portal].
|
|
37
39
|
|
|
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/
|
|
40
|
+
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/main/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
|
|
39
41
|
|
|
40
42
|
To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
|
|
41
43
|
|
|
@@ -44,7 +46,6 @@ npm install @azure/identity
|
|
|
44
46
|
```
|
|
45
47
|
|
|
46
48
|
You will also need to **register a new AAD application and grant access to Azure CustomLocationsManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
|
|
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`.
|
|
48
49
|
|
|
49
50
|
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
51
|
|
|
@@ -64,16 +65,16 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
|
|
|
64
65
|
import { InteractiveBrowserCredential } from "@azure/identity";
|
|
65
66
|
import { CustomLocationsManagementClient } from "@azure/arm-extendedlocation";
|
|
66
67
|
|
|
67
|
-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
68
68
|
const credential = new InteractiveBrowserCredential({
|
|
69
69
|
tenantId: "<YOUR_TENANT_ID>",
|
|
70
70
|
clientId: "<YOUR_CLIENT_ID>",
|
|
71
71
|
});
|
|
72
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
72
73
|
const client = new CustomLocationsManagementClient(credential, subscriptionId);
|
|
73
74
|
```
|
|
74
75
|
|
|
75
|
-
### JavaScript Bundle
|
|
76
76
|
|
|
77
|
+
### JavaScript Bundle
|
|
77
78
|
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).
|
|
78
79
|
|
|
79
80
|
## Key concepts
|
|
@@ -98,7 +99,7 @@ For more detailed instructions on how to enable logs, you can look at the [@azur
|
|
|
98
99
|
|
|
99
100
|
## Next steps
|
|
100
101
|
|
|
101
|
-
Please take a look at the [samples](https://github.com/Azure
|
|
102
|
+
Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/extendedlocation/arm-extendedlocation/samples) directory for detailed examples on how to use this library.
|
|
102
103
|
|
|
103
104
|
## Contributing
|
|
104
105
|
|
|
@@ -108,10 +109,6 @@ If you'd like to contribute to this library, please read the [contributing guide
|
|
|
108
109
|
|
|
109
110
|
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
|
|
110
111
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
[azure_cli]: https://learn.microsoft.com/cli/azure
|
|
114
|
-
[azure_sub]: https://azure.microsoft.com/free/
|
|
115
112
|
[azure_sub]: https://azure.microsoft.com/free/
|
|
116
113
|
[azure_portal]: https://portal.azure.com
|
|
117
114
|
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { findTargetResourceGroup, listEnabledResourceTypes, listBySubscription, listByResourceGroup, $delete, update, createOrUpdate, get, listOperations, } from "./operations.js";
|
|
2
|
+
export type { CustomLocationsFindTargetResourceGroupOptionalParams, CustomLocationsListEnabledResourceTypesOptionalParams, CustomLocationsListBySubscriptionOptionalParams, CustomLocationsListByResourceGroupOptionalParams, CustomLocationsDeleteOptionalParams, CustomLocationsUpdateOptionalParams, CustomLocationsCreateOrUpdateOptionalParams, CustomLocationsGetOptionalParams, CustomLocationsListOperationsOptionalParams, } from "./options.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
export { findTargetResourceGroup, listEnabledResourceTypes, listBySubscription, listByResourceGroup, $delete, update, createOrUpdate, get, listOperations, } from "./operations.js";
|
|
4
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/customLocations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,kBAAkB,EAClB,mBAAmB,EACnB,OAAO,EACP,MAAM,EACN,cAAc,EACd,GAAG,EACH,cAAc,GACf,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n findTargetResourceGroup,\n listEnabledResourceTypes,\n listBySubscription,\n listByResourceGroup,\n $delete,\n update,\n createOrUpdate,\n get,\n listOperations,\n} from \"./operations.js\";\nexport type {\n CustomLocationsFindTargetResourceGroupOptionalParams,\n CustomLocationsListEnabledResourceTypesOptionalParams,\n CustomLocationsListBySubscriptionOptionalParams,\n CustomLocationsListByResourceGroupOptionalParams,\n CustomLocationsDeleteOptionalParams,\n CustomLocationsUpdateOptionalParams,\n CustomLocationsCreateOrUpdateOptionalParams,\n CustomLocationsGetOptionalParams,\n CustomLocationsListOperationsOptionalParams,\n} from \"./options.js\";\n"]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { CustomLocationsManagementContext as Client } from "../index.js";
|
|
2
|
+
import type { _CustomLocationOperationsList, CustomLocationOperation, CustomLocation, _CustomLocationListResult, _EnabledResourceTypesListResult, EnabledResourceType, CustomLocationFindTargetResourceGroupProperties, CustomLocationFindTargetResourceGroupResult } from "../../models/models.js";
|
|
3
|
+
import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
|
+
import type { CustomLocationsFindTargetResourceGroupOptionalParams, CustomLocationsListEnabledResourceTypesOptionalParams, CustomLocationsListBySubscriptionOptionalParams, CustomLocationsListByResourceGroupOptionalParams, CustomLocationsDeleteOptionalParams, CustomLocationsUpdateOptionalParams, CustomLocationsCreateOrUpdateOptionalParams, CustomLocationsGetOptionalParams, CustomLocationsListOperationsOptionalParams } from "./options.js";
|
|
5
|
+
import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
6
|
+
import type { PollerLike, OperationState } from "@azure/core-lro";
|
|
7
|
+
export declare function _findTargetResourceGroupSend(context: Client, resourceGroupName: string, resourceName: string, parameters: CustomLocationFindTargetResourceGroupProperties, options?: CustomLocationsFindTargetResourceGroupOptionalParams): StreamableMethod;
|
|
8
|
+
export declare function _findTargetResourceGroupDeserialize(result: PathUncheckedResponse): Promise<CustomLocationFindTargetResourceGroupResult | undefined>;
|
|
9
|
+
/** Returns the target resource group associated with the resource sync rules of the Custom Location that match the rules passed in with the Find Target Resource Group Request. */
|
|
10
|
+
export declare function findTargetResourceGroup(context: Client, resourceGroupName: string, resourceName: string, parameters: CustomLocationFindTargetResourceGroupProperties, options?: CustomLocationsFindTargetResourceGroupOptionalParams): Promise<CustomLocationFindTargetResourceGroupResult | undefined>;
|
|
11
|
+
export declare function _listEnabledResourceTypesSend(context: Client, resourceGroupName: string, resourceName: string, options?: CustomLocationsListEnabledResourceTypesOptionalParams): StreamableMethod;
|
|
12
|
+
export declare function _listEnabledResourceTypesDeserialize(result: PathUncheckedResponse): Promise<_EnabledResourceTypesListResult>;
|
|
13
|
+
/** Gets the list of the Enabled Resource Types. */
|
|
14
|
+
export declare function listEnabledResourceTypes(context: Client, resourceGroupName: string, resourceName: string, options?: CustomLocationsListEnabledResourceTypesOptionalParams): PagedAsyncIterableIterator<EnabledResourceType>;
|
|
15
|
+
export declare function _listBySubscriptionSend(context: Client, options?: CustomLocationsListBySubscriptionOptionalParams): StreamableMethod;
|
|
16
|
+
export declare function _listBySubscriptionDeserialize(result: PathUncheckedResponse): Promise<_CustomLocationListResult>;
|
|
17
|
+
/** Gets a list of Custom Locations in the specified subscription. The operation returns properties of each Custom Location */
|
|
18
|
+
export declare function listBySubscription(context: Client, options?: CustomLocationsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<CustomLocation>;
|
|
19
|
+
export declare function _listByResourceGroupSend(context: Client, resourceGroupName: string, options?: CustomLocationsListByResourceGroupOptionalParams): StreamableMethod;
|
|
20
|
+
export declare function _listByResourceGroupDeserialize(result: PathUncheckedResponse): Promise<_CustomLocationListResult>;
|
|
21
|
+
/** Gets a list of Custom Locations in the specified subscription and resource group. The operation returns properties of each Custom Location. */
|
|
22
|
+
export declare function listByResourceGroup(context: Client, resourceGroupName: string, options?: CustomLocationsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<CustomLocation>;
|
|
23
|
+
export declare function _$deleteSend(context: Client, resourceGroupName: string, resourceName: string, options?: CustomLocationsDeleteOptionalParams): StreamableMethod;
|
|
24
|
+
export declare function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void>;
|
|
25
|
+
/** Deletes the Custom Location with the specified Resource Name, Resource Group, and Subscription Id. */
|
|
26
|
+
export declare function $delete(context: Client, resourceGroupName: string, resourceName: string, options?: CustomLocationsDeleteOptionalParams): PollerLike<OperationState<void>, void>;
|
|
27
|
+
export declare function _updateSend(context: Client, resourceGroupName: string, resourceName: string, options?: CustomLocationsUpdateOptionalParams): StreamableMethod;
|
|
28
|
+
export declare function _updateDeserialize(result: PathUncheckedResponse): Promise<CustomLocation>;
|
|
29
|
+
/** Updates a Custom Location with the specified Resource Name in the specified Resource Group and Subscription. */
|
|
30
|
+
export declare function update(context: Client, resourceGroupName: string, resourceName: string, options?: CustomLocationsUpdateOptionalParams): Promise<CustomLocation>;
|
|
31
|
+
export declare function _createOrUpdateSend(context: Client, resourceGroupName: string, resourceName: string, parameters: CustomLocation, options?: CustomLocationsCreateOrUpdateOptionalParams): StreamableMethod;
|
|
32
|
+
export declare function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<CustomLocation>;
|
|
33
|
+
/** Creates or updates a Custom Location in the specified Subscription and Resource Group */
|
|
34
|
+
export declare function createOrUpdate(context: Client, resourceGroupName: string, resourceName: string, parameters: CustomLocation, options?: CustomLocationsCreateOrUpdateOptionalParams): PollerLike<OperationState<CustomLocation>, CustomLocation>;
|
|
35
|
+
export declare function _getSend(context: Client, resourceGroupName: string, resourceName: string, options?: CustomLocationsGetOptionalParams): StreamableMethod;
|
|
36
|
+
export declare function _getDeserialize(result: PathUncheckedResponse): Promise<CustomLocation>;
|
|
37
|
+
/** Gets the details of the customLocation with a specified resource group and name. */
|
|
38
|
+
export declare function get(context: Client, resourceGroupName: string, resourceName: string, options?: CustomLocationsGetOptionalParams): Promise<CustomLocation>;
|
|
39
|
+
export declare function _listOperationsSend(context: Client, options?: CustomLocationsListOperationsOptionalParams): StreamableMethod;
|
|
40
|
+
export declare function _listOperationsDeserialize(result: PathUncheckedResponse): Promise<_CustomLocationOperationsList>;
|
|
41
|
+
/** Lists all available Custom Locations operations. */
|
|
42
|
+
export declare function listOperations(context: Client, options?: CustomLocationsListOperationsOptionalParams): PagedAsyncIterableIterator<CustomLocationOperation>;
|
|
43
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { _customLocationOperationsListDeserializer, errorResponseDeserializer, customLocationSerializer, customLocationDeserializer, customLocationPropertiesSerializer, identitySerializer, _customLocationListResultDeserializer, _enabledResourceTypesListResultDeserializer, customLocationFindTargetResourceGroupPropertiesSerializer, customLocationFindTargetResourceGroupResultDeserializer, } from "../../models/models.js";
|
|
4
|
+
import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
|
|
6
|
+
import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
|
|
7
|
+
import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client";
|
|
8
|
+
export function _findTargetResourceGroupSend(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
|
|
9
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/findTargetResourceGroup{?api%2Dversion}", {
|
|
10
|
+
subscriptionId: context.subscriptionId,
|
|
11
|
+
resourceGroupName: resourceGroupName,
|
|
12
|
+
resourceName: resourceName,
|
|
13
|
+
"api%2Dversion": context.apiVersion ?? "2021-08-31-preview",
|
|
14
|
+
}, {
|
|
15
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
16
|
+
});
|
|
17
|
+
return context.path(path).post({
|
|
18
|
+
...operationOptionsToRequestParameters(options),
|
|
19
|
+
contentType: "application/json",
|
|
20
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
21
|
+
body: customLocationFindTargetResourceGroupPropertiesSerializer(parameters),
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
export async function _findTargetResourceGroupDeserialize(result) {
|
|
25
|
+
const expectedStatuses = ["200", "204"];
|
|
26
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
27
|
+
const error = createRestError(result);
|
|
28
|
+
if (result.body) {
|
|
29
|
+
error.details = errorResponseDeserializer(result.body);
|
|
30
|
+
}
|
|
31
|
+
throw error;
|
|
32
|
+
}
|
|
33
|
+
return result.body
|
|
34
|
+
? customLocationFindTargetResourceGroupResultDeserializer(result.body)
|
|
35
|
+
: undefined;
|
|
36
|
+
}
|
|
37
|
+
/** Returns the target resource group associated with the resource sync rules of the Custom Location that match the rules passed in with the Find Target Resource Group Request. */
|
|
38
|
+
export async function findTargetResourceGroup(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
|
|
39
|
+
const result = await _findTargetResourceGroupSend(context, resourceGroupName, resourceName, parameters, options);
|
|
40
|
+
return _findTargetResourceGroupDeserialize(result);
|
|
41
|
+
}
|
|
42
|
+
export function _listEnabledResourceTypesSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
43
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/enabledResourceTypes{?api%2Dversion}", {
|
|
44
|
+
subscriptionId: context.subscriptionId,
|
|
45
|
+
resourceGroupName: resourceGroupName,
|
|
46
|
+
resourceName: resourceName,
|
|
47
|
+
"api%2Dversion": context.apiVersion ?? "2021-08-31-preview",
|
|
48
|
+
}, {
|
|
49
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
50
|
+
});
|
|
51
|
+
return context.path(path).get({
|
|
52
|
+
...operationOptionsToRequestParameters(options),
|
|
53
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
export async function _listEnabledResourceTypesDeserialize(result) {
|
|
57
|
+
const expectedStatuses = ["200"];
|
|
58
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
59
|
+
const error = createRestError(result);
|
|
60
|
+
if (result.body) {
|
|
61
|
+
error.details = errorResponseDeserializer(result.body);
|
|
62
|
+
}
|
|
63
|
+
throw error;
|
|
64
|
+
}
|
|
65
|
+
return _enabledResourceTypesListResultDeserializer(result.body);
|
|
66
|
+
}
|
|
67
|
+
/** Gets the list of the Enabled Resource Types. */
|
|
68
|
+
export function listEnabledResourceTypes(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
69
|
+
return buildPagedAsyncIterator(context, () => _listEnabledResourceTypesSend(context, resourceGroupName, resourceName, options), _listEnabledResourceTypesDeserialize, ["200"], {
|
|
70
|
+
itemName: "value",
|
|
71
|
+
nextLinkName: "nextLink",
|
|
72
|
+
apiVersion: context.apiVersion ?? "2021-08-31-preview",
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
export function _listBySubscriptionSend(context, options = { requestOptions: {} }) {
|
|
76
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ExtendedLocation/customLocations{?api%2Dversion}", {
|
|
77
|
+
subscriptionId: context.subscriptionId,
|
|
78
|
+
"api%2Dversion": context.apiVersion ?? "2021-08-31-preview",
|
|
79
|
+
}, {
|
|
80
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
81
|
+
});
|
|
82
|
+
return context.path(path).get({
|
|
83
|
+
...operationOptionsToRequestParameters(options),
|
|
84
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
export async function _listBySubscriptionDeserialize(result) {
|
|
88
|
+
const expectedStatuses = ["200"];
|
|
89
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
90
|
+
const error = createRestError(result);
|
|
91
|
+
if (result.body) {
|
|
92
|
+
error.details = errorResponseDeserializer(result.body);
|
|
93
|
+
}
|
|
94
|
+
throw error;
|
|
95
|
+
}
|
|
96
|
+
return _customLocationListResultDeserializer(result.body);
|
|
97
|
+
}
|
|
98
|
+
/** Gets a list of Custom Locations in the specified subscription. The operation returns properties of each Custom Location */
|
|
99
|
+
export function listBySubscription(context, options = { requestOptions: {} }) {
|
|
100
|
+
return buildPagedAsyncIterator(context, () => _listBySubscriptionSend(context, options), _listBySubscriptionDeserialize, ["200"], {
|
|
101
|
+
itemName: "value",
|
|
102
|
+
nextLinkName: "nextLink",
|
|
103
|
+
apiVersion: context.apiVersion ?? "2021-08-31-preview",
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
export function _listByResourceGroupSend(context, resourceGroupName, options = { requestOptions: {} }) {
|
|
107
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations{?api%2Dversion}", {
|
|
108
|
+
subscriptionId: context.subscriptionId,
|
|
109
|
+
resourceGroupName: resourceGroupName,
|
|
110
|
+
"api%2Dversion": context.apiVersion ?? "2021-08-31-preview",
|
|
111
|
+
}, {
|
|
112
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
113
|
+
});
|
|
114
|
+
return context.path(path).get({
|
|
115
|
+
...operationOptionsToRequestParameters(options),
|
|
116
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
export async function _listByResourceGroupDeserialize(result) {
|
|
120
|
+
const expectedStatuses = ["200"];
|
|
121
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
122
|
+
const error = createRestError(result);
|
|
123
|
+
if (result.body) {
|
|
124
|
+
error.details = errorResponseDeserializer(result.body);
|
|
125
|
+
}
|
|
126
|
+
throw error;
|
|
127
|
+
}
|
|
128
|
+
return _customLocationListResultDeserializer(result.body);
|
|
129
|
+
}
|
|
130
|
+
/** Gets a list of Custom Locations in the specified subscription and resource group. The operation returns properties of each Custom Location. */
|
|
131
|
+
export function listByResourceGroup(context, resourceGroupName, options = { requestOptions: {} }) {
|
|
132
|
+
return buildPagedAsyncIterator(context, () => _listByResourceGroupSend(context, resourceGroupName, options), _listByResourceGroupDeserialize, ["200"], {
|
|
133
|
+
itemName: "value",
|
|
134
|
+
nextLinkName: "nextLink",
|
|
135
|
+
apiVersion: context.apiVersion ?? "2021-08-31-preview",
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
export function _$deleteSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
139
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}{?api%2Dversion}", {
|
|
140
|
+
subscriptionId: context.subscriptionId,
|
|
141
|
+
resourceGroupName: resourceGroupName,
|
|
142
|
+
resourceName: resourceName,
|
|
143
|
+
"api%2Dversion": context.apiVersion ?? "2021-08-31-preview",
|
|
144
|
+
}, {
|
|
145
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
146
|
+
});
|
|
147
|
+
return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });
|
|
148
|
+
}
|
|
149
|
+
export async function _$deleteDeserialize(result) {
|
|
150
|
+
const expectedStatuses = ["202", "204", "200"];
|
|
151
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
152
|
+
const error = createRestError(result);
|
|
153
|
+
if (result.body) {
|
|
154
|
+
error.details = errorResponseDeserializer(result.body);
|
|
155
|
+
}
|
|
156
|
+
throw error;
|
|
157
|
+
}
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
/** Deletes the Custom Location with the specified Resource Name, Resource Group, and Subscription Id. */
|
|
161
|
+
export function $delete(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
162
|
+
return getLongRunningPoller(context, _$deleteDeserialize, ["202", "204", "200"], {
|
|
163
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
164
|
+
abortSignal: options?.abortSignal,
|
|
165
|
+
getInitialResponse: () => _$deleteSend(context, resourceGroupName, resourceName, options),
|
|
166
|
+
resourceLocationConfig: "azure-async-operation",
|
|
167
|
+
apiVersion: context.apiVersion ?? "2021-08-31-preview",
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
export function _updateSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
171
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}{?api%2Dversion}", {
|
|
172
|
+
subscriptionId: context.subscriptionId,
|
|
173
|
+
resourceGroupName: resourceGroupName,
|
|
174
|
+
resourceName: resourceName,
|
|
175
|
+
"api%2Dversion": context.apiVersion ?? "2021-08-31-preview",
|
|
176
|
+
}, {
|
|
177
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
178
|
+
});
|
|
179
|
+
return context.path(path).patch({
|
|
180
|
+
...operationOptionsToRequestParameters(options),
|
|
181
|
+
contentType: "application/json",
|
|
182
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
183
|
+
body: {
|
|
184
|
+
identity: !options?.identity ? options?.identity : identitySerializer(options?.identity),
|
|
185
|
+
properties: !options?.properties
|
|
186
|
+
? options?.properties
|
|
187
|
+
: customLocationPropertiesSerializer(options?.properties),
|
|
188
|
+
tags: options?.tags,
|
|
189
|
+
},
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
export async function _updateDeserialize(result) {
|
|
193
|
+
const expectedStatuses = ["200"];
|
|
194
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
195
|
+
const error = createRestError(result);
|
|
196
|
+
if (result.body) {
|
|
197
|
+
error.details = errorResponseDeserializer(result.body);
|
|
198
|
+
}
|
|
199
|
+
throw error;
|
|
200
|
+
}
|
|
201
|
+
return customLocationDeserializer(result.body);
|
|
202
|
+
}
|
|
203
|
+
/** Updates a Custom Location with the specified Resource Name in the specified Resource Group and Subscription. */
|
|
204
|
+
export async function update(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
205
|
+
const result = await _updateSend(context, resourceGroupName, resourceName, options);
|
|
206
|
+
return _updateDeserialize(result);
|
|
207
|
+
}
|
|
208
|
+
export function _createOrUpdateSend(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
|
|
209
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}{?api%2Dversion}", {
|
|
210
|
+
subscriptionId: context.subscriptionId,
|
|
211
|
+
resourceGroupName: resourceGroupName,
|
|
212
|
+
resourceName: resourceName,
|
|
213
|
+
"api%2Dversion": context.apiVersion ?? "2021-08-31-preview",
|
|
214
|
+
}, {
|
|
215
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
216
|
+
});
|
|
217
|
+
return context.path(path).put({
|
|
218
|
+
...operationOptionsToRequestParameters(options),
|
|
219
|
+
contentType: "application/json",
|
|
220
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
221
|
+
body: customLocationSerializer(parameters),
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
export async function _createOrUpdateDeserialize(result) {
|
|
225
|
+
const expectedStatuses = ["200", "201", "202"];
|
|
226
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
227
|
+
const error = createRestError(result);
|
|
228
|
+
if (result.body) {
|
|
229
|
+
error.details = errorResponseDeserializer(result.body);
|
|
230
|
+
}
|
|
231
|
+
throw error;
|
|
232
|
+
}
|
|
233
|
+
return customLocationDeserializer(result.body);
|
|
234
|
+
}
|
|
235
|
+
/** Creates or updates a Custom Location in the specified Subscription and Resource Group */
|
|
236
|
+
export function createOrUpdate(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
|
|
237
|
+
return getLongRunningPoller(context, _createOrUpdateDeserialize, ["200", "201", "202"], {
|
|
238
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
239
|
+
abortSignal: options?.abortSignal,
|
|
240
|
+
getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, resourceName, parameters, options),
|
|
241
|
+
resourceLocationConfig: "azure-async-operation",
|
|
242
|
+
apiVersion: context.apiVersion ?? "2021-08-31-preview",
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
export function _getSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
246
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}{?api%2Dversion}", {
|
|
247
|
+
subscriptionId: context.subscriptionId,
|
|
248
|
+
resourceGroupName: resourceGroupName,
|
|
249
|
+
resourceName: resourceName,
|
|
250
|
+
"api%2Dversion": context.apiVersion ?? "2021-08-31-preview",
|
|
251
|
+
}, {
|
|
252
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
253
|
+
});
|
|
254
|
+
return context.path(path).get({
|
|
255
|
+
...operationOptionsToRequestParameters(options),
|
|
256
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
export async function _getDeserialize(result) {
|
|
260
|
+
const expectedStatuses = ["200"];
|
|
261
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
262
|
+
const error = createRestError(result);
|
|
263
|
+
if (result.body) {
|
|
264
|
+
error.details = errorResponseDeserializer(result.body);
|
|
265
|
+
}
|
|
266
|
+
throw error;
|
|
267
|
+
}
|
|
268
|
+
return customLocationDeserializer(result.body);
|
|
269
|
+
}
|
|
270
|
+
/** Gets the details of the customLocation with a specified resource group and name. */
|
|
271
|
+
export async function get(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
272
|
+
const result = await _getSend(context, resourceGroupName, resourceName, options);
|
|
273
|
+
return _getDeserialize(result);
|
|
274
|
+
}
|
|
275
|
+
export function _listOperationsSend(context, options = { requestOptions: {} }) {
|
|
276
|
+
const path = expandUrlTemplate("/providers/Microsoft.ExtendedLocation/operations{?api%2Dversion}", {
|
|
277
|
+
"api%2Dversion": context.apiVersion ?? "2021-08-31-preview",
|
|
278
|
+
}, {
|
|
279
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
280
|
+
});
|
|
281
|
+
return context.path(path).get({
|
|
282
|
+
...operationOptionsToRequestParameters(options),
|
|
283
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
export async function _listOperationsDeserialize(result) {
|
|
287
|
+
const expectedStatuses = ["200"];
|
|
288
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
289
|
+
const error = createRestError(result);
|
|
290
|
+
if (result.body) {
|
|
291
|
+
error.details = errorResponseDeserializer(result.body);
|
|
292
|
+
}
|
|
293
|
+
throw error;
|
|
294
|
+
}
|
|
295
|
+
return _customLocationOperationsListDeserializer(result.body);
|
|
296
|
+
}
|
|
297
|
+
/** Lists all available Custom Locations operations. */
|
|
298
|
+
export function listOperations(context, options = { requestOptions: {} }) {
|
|
299
|
+
return buildPagedAsyncIterator(context, () => _listOperationsSend(context, options), _listOperationsDeserialize, ["200"], {
|
|
300
|
+
itemName: "value",
|
|
301
|
+
nextLinkName: "nextLink",
|
|
302
|
+
apiVersion: context.apiVersion ?? "2021-08-31-preview",
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/customLocations/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAalC,OAAO,EACL,yCAAyC,EACzC,yBAAyB,EACzB,wBAAwB,EACxB,0BAA0B,EAC1B,kCAAkC,EAClC,kBAAkB,EAClB,qCAAqC,EACrC,2CAA2C,EAC3C,yDAAyD,EACzD,uDAAuD,GACxD,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAaxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAG/F,MAAM,UAAU,4BAA4B,CAC1C,OAAe,EACf,iBAAyB,EACzB,YAAoB,EACpB,UAA2D,EAC3D,UAAgE,EAAE,cAAc,EAAE,EAAE,EAAE;IAEtF,MAAM,IAAI,GAAG,iBAAiB,CAC5B,gLAAgL,EAChL;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,iBAAiB,EAAE,iBAAiB;QACpC,YAAY,EAAE,YAAY;QAC1B,eAAe,EAAE,OAAO,CAAC,UAAU,IAAI,oBAAoB;KAC5D,EACD;QACE,aAAa,EAAE,OAAO,EAAE,c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,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YAChB,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACzD,CAAC;QAED,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,yCAAyC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAChE,CAAC;AAED,uDAAuD;AACvD,MAAM,UAAU,cAAc,CAC5B,OAAe,EACf,UAAuD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE7E,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,EAC3C,0BAA0B,EAC1B,CAAC,KAAK,CAAC,EACP;QACE,QAAQ,EAAE,OAAO;QACjB,YAAY,EAAE,UAAU;QACxB,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,oBAAoB;KACvD,CACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { CustomLocationsManagementContext as Client } from \"../index.js\";\nimport type {\n _CustomLocationOperationsList,\n CustomLocationOperation,\n CustomLocation,\n _CustomLocationListResult,\n _EnabledResourceTypesListResult,\n EnabledResourceType,\n CustomLocationFindTargetResourceGroupProperties,\n CustomLocationFindTargetResourceGroupResult,\n} from \"../../models/models.js\";\nimport {\n _customLocationOperationsListDeserializer,\n errorResponseDeserializer,\n customLocationSerializer,\n customLocationDeserializer,\n customLocationPropertiesSerializer,\n identitySerializer,\n _customLocationListResultDeserializer,\n _enabledResourceTypesListResultDeserializer,\n customLocationFindTargetResourceGroupPropertiesSerializer,\n customLocationFindTargetResourceGroupResultDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n CustomLocationsFindTargetResourceGroupOptionalParams,\n CustomLocationsListEnabledResourceTypesOptionalParams,\n CustomLocationsListBySubscriptionOptionalParams,\n CustomLocationsListByResourceGroupOptionalParams,\n CustomLocationsDeleteOptionalParams,\n CustomLocationsUpdateOptionalParams,\n CustomLocationsCreateOrUpdateOptionalParams,\n CustomLocationsGetOptionalParams,\n CustomLocationsListOperationsOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _findTargetResourceGroupSend(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n parameters: CustomLocationFindTargetResourceGroupProperties,\n options: CustomLocationsFindTargetResourceGroupOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/findTargetResourceGroup{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n resourceName: resourceName,\n \"api%2Dversion\": context.apiVersion ?? \"2021-08-31-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: customLocationFindTargetResourceGroupPropertiesSerializer(parameters),\n });\n}\n\nexport async function _findTargetResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<CustomLocationFindTargetResourceGroupResult | undefined> {\n const expectedStatuses = [\"200\", \"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return result.body\n ? customLocationFindTargetResourceGroupResultDeserializer(result.body)\n : undefined;\n}\n\n/** Returns the target resource group associated with the resource sync rules of the Custom Location that match the rules passed in with the Find Target Resource Group Request. */\nexport async function findTargetResourceGroup(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n parameters: CustomLocationFindTargetResourceGroupProperties,\n options: CustomLocationsFindTargetResourceGroupOptionalParams = { requestOptions: {} },\n): Promise<CustomLocationFindTargetResourceGroupResult | undefined> {\n const result = await _findTargetResourceGroupSend(\n context,\n resourceGroupName,\n resourceName,\n parameters,\n options,\n );\n return _findTargetResourceGroupDeserialize(result);\n}\n\nexport function _listEnabledResourceTypesSend(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n options: CustomLocationsListEnabledResourceTypesOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/enabledResourceTypes{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n resourceName: resourceName,\n \"api%2Dversion\": context.apiVersion ?? \"2021-08-31-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listEnabledResourceTypesDeserialize(\n result: PathUncheckedResponse,\n): Promise<_EnabledResourceTypesListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _enabledResourceTypesListResultDeserializer(result.body);\n}\n\n/** Gets the list of the Enabled Resource Types. */\nexport function listEnabledResourceTypes(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n options: CustomLocationsListEnabledResourceTypesOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<EnabledResourceType> {\n return buildPagedAsyncIterator(\n context,\n () => _listEnabledResourceTypesSend(context, resourceGroupName, resourceName, options),\n _listEnabledResourceTypesDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2021-08-31-preview\",\n },\n );\n}\n\nexport function _listBySubscriptionSend(\n context: Client,\n options: CustomLocationsListBySubscriptionOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ExtendedLocation/customLocations{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion ?? \"2021-08-31-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_CustomLocationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _customLocationListResultDeserializer(result.body);\n}\n\n/** Gets a list of Custom Locations in the specified subscription. The operation returns properties of each Custom Location */\nexport function listBySubscription(\n context: Client,\n options: CustomLocationsListBySubscriptionOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<CustomLocation> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2021-08-31-preview\",\n },\n );\n}\n\nexport function _listByResourceGroupSend(\n context: Client,\n resourceGroupName: string,\n options: CustomLocationsListByResourceGroupOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n \"api%2Dversion\": context.apiVersion ?? \"2021-08-31-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_CustomLocationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _customLocationListResultDeserializer(result.body);\n}\n\n/** Gets a list of Custom Locations in the specified subscription and resource group. The operation returns properties of each Custom Location. */\nexport function listByResourceGroup(\n context: Client,\n resourceGroupName: string,\n options: CustomLocationsListByResourceGroupOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<CustomLocation> {\n return buildPagedAsyncIterator(\n context,\n () => _listByResourceGroupSend(context, resourceGroupName, options),\n _listByResourceGroupDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2021-08-31-preview\",\n },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n options: CustomLocationsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n resourceName: resourceName,\n \"api%2Dversion\": context.apiVersion ?? \"2021-08-31-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return;\n}\n\n/** Deletes the Custom Location with the specified Resource Name, Resource Group, and Subscription Id. */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n options: CustomLocationsDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _$deleteSend(context, resourceGroupName, resourceName, options),\n resourceLocationConfig: \"azure-async-operation\",\n apiVersion: context.apiVersion ?? \"2021-08-31-preview\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n options: CustomLocationsUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n resourceName: resourceName,\n \"api%2Dversion\": context.apiVersion ?? \"2021-08-31-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: {\n identity: !options?.identity ? options?.identity : identitySerializer(options?.identity),\n properties: !options?.properties\n ? options?.properties\n : customLocationPropertiesSerializer(options?.properties),\n tags: options?.tags,\n },\n });\n}\n\nexport async function _updateDeserialize(result: PathUncheckedResponse): Promise<CustomLocation> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return customLocationDeserializer(result.body);\n}\n\n/** Updates a Custom Location with the specified Resource Name in the specified Resource Group and Subscription. */\nexport async function update(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n options: CustomLocationsUpdateOptionalParams = { requestOptions: {} },\n): Promise<CustomLocation> {\n const result = await _updateSend(context, resourceGroupName, resourceName, options);\n return _updateDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n parameters: CustomLocation,\n options: CustomLocationsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n resourceName: resourceName,\n \"api%2Dversion\": context.apiVersion ?? \"2021-08-31-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: customLocationSerializer(parameters),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<CustomLocation> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return customLocationDeserializer(result.body);\n}\n\n/** Creates or updates a Custom Location in the specified Subscription and Resource Group */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n parameters: CustomLocation,\n options: CustomLocationsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<CustomLocation>, CustomLocation> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(context, resourceGroupName, resourceName, parameters, options),\n resourceLocationConfig: \"azure-async-operation\",\n apiVersion: context.apiVersion ?? \"2021-08-31-preview\",\n }) as PollerLike<OperationState<CustomLocation>, CustomLocation>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n options: CustomLocationsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n resourceName: resourceName,\n \"api%2Dversion\": context.apiVersion ?? \"2021-08-31-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<CustomLocation> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return customLocationDeserializer(result.body);\n}\n\n/** Gets the details of the customLocation with a specified resource group and name. */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n options: CustomLocationsGetOptionalParams = { requestOptions: {} },\n): Promise<CustomLocation> {\n const result = await _getSend(context, resourceGroupName, resourceName, options);\n return _getDeserialize(result);\n}\n\nexport function _listOperationsSend(\n context: Client,\n options: CustomLocationsListOperationsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.ExtendedLocation/operations{?api%2Dversion}\",\n {\n \"api%2Dversion\": context.apiVersion ?? \"2021-08-31-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listOperationsDeserialize(\n result: PathUncheckedResponse,\n): Promise<_CustomLocationOperationsList> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _customLocationOperationsListDeserializer(result.body);\n}\n\n/** Lists all available Custom Locations operations. */\nexport function listOperations(\n context: Client,\n options: CustomLocationsListOperationsOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<CustomLocationOperation> {\n return buildPagedAsyncIterator(\n context,\n () => _listOperationsSend(context, options),\n _listOperationsDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2021-08-31-preview\",\n },\n );\n}\n"]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { CustomLocationProperties, Identity } from "../../models/models.js";
|
|
2
|
+
import type { OperationOptions } from "@azure-rest/core-client";
|
|
3
|
+
/** Optional parameters. */
|
|
4
|
+
export interface CustomLocationsFindTargetResourceGroupOptionalParams extends OperationOptions {
|
|
5
|
+
}
|
|
6
|
+
/** Optional parameters. */
|
|
7
|
+
export interface CustomLocationsListEnabledResourceTypesOptionalParams extends OperationOptions {
|
|
8
|
+
}
|
|
9
|
+
/** Optional parameters. */
|
|
10
|
+
export interface CustomLocationsListBySubscriptionOptionalParams extends OperationOptions {
|
|
11
|
+
}
|
|
12
|
+
/** Optional parameters. */
|
|
13
|
+
export interface CustomLocationsListByResourceGroupOptionalParams extends OperationOptions {
|
|
14
|
+
}
|
|
15
|
+
/** Optional parameters. */
|
|
16
|
+
export interface CustomLocationsDeleteOptionalParams extends OperationOptions {
|
|
17
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
18
|
+
updateIntervalInMs?: number;
|
|
19
|
+
}
|
|
20
|
+
/** Optional parameters. */
|
|
21
|
+
export interface CustomLocationsUpdateOptionalParams extends OperationOptions {
|
|
22
|
+
/** Identity for the resource. */
|
|
23
|
+
identity?: Identity;
|
|
24
|
+
properties?: CustomLocationProperties;
|
|
25
|
+
/** Resource tags */
|
|
26
|
+
tags?: Record<string, string>;
|
|
27
|
+
}
|
|
28
|
+
/** Optional parameters. */
|
|
29
|
+
export interface CustomLocationsCreateOrUpdateOptionalParams extends OperationOptions {
|
|
30
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
31
|
+
updateIntervalInMs?: number;
|
|
32
|
+
}
|
|
33
|
+
/** Optional parameters. */
|
|
34
|
+
export interface CustomLocationsGetOptionalParams extends OperationOptions {
|
|
35
|
+
}
|
|
36
|
+
/** Optional parameters. */
|
|
37
|
+
export interface CustomLocationsListOperationsOptionalParams extends OperationOptions {
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/customLocations/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { CustomLocationProperties, Identity } from \"../../models/models.js\";\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface CustomLocationsFindTargetResourceGroupOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface CustomLocationsListEnabledResourceTypesOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface CustomLocationsListBySubscriptionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface CustomLocationsListByResourceGroupOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface CustomLocationsDeleteOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface CustomLocationsUpdateOptionalParams extends OperationOptions {\n /** Identity for the resource. */\n identity?: Identity;\n properties?: CustomLocationProperties;\n /** Resource tags */\n tags?: Record<string, string>;\n}\n\n/** Optional parameters. */\nexport interface CustomLocationsCreateOrUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface CustomLocationsGetOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface CustomLocationsListOperationsOptionalParams extends OperationOptions {}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { AzureSupportedClouds } from "../static-helpers/cloudSettingHelpers.js";
|
|
2
|
+
import type { Client, ClientOptions } from "@azure-rest/core-client";
|
|
3
|
+
import type { TokenCredential } from "@azure/core-auth";
|
|
4
|
+
/** The customLocations Rest API spec. */
|
|
5
|
+
export interface CustomLocationsManagementContext extends Client {
|
|
6
|
+
/** The ID of the target subscription. The value must be an UUID. */
|
|
7
|
+
subscriptionId: string;
|
|
8
|
+
/** The API version to use for this operation. */
|
|
9
|
+
/** Known values of {@link KnownVersions} that the service accepts. */
|
|
10
|
+
apiVersion?: string;
|
|
11
|
+
}
|
|
12
|
+
/** Optional parameters for the client. */
|
|
13
|
+
export interface CustomLocationsManagementClientOptionalParams extends ClientOptions {
|
|
14
|
+
/** The API version to use for this operation. */
|
|
15
|
+
/** Known values of {@link KnownVersions} that the service accepts. */
|
|
16
|
+
apiVersion?: string;
|
|
17
|
+
/** Specifies the Azure cloud environment for the client. */
|
|
18
|
+
cloudSetting?: AzureSupportedClouds;
|
|
19
|
+
}
|
|
20
|
+
/** The customLocations Rest API spec. */
|
|
21
|
+
export declare function createCustomLocationsManagement(credential: TokenCredential, subscriptionId: string, options?: CustomLocationsManagementClientOptionalParams): CustomLocationsManagementContext;
|
|
22
|
+
//# sourceMappingURL=customLocationsManagementContext.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { logger } from "../logger.js";
|
|
4
|
+
import { getArmEndpoint } from "../static-helpers/cloudSettingHelpers.js";
|
|
5
|
+
import { getClient } from "@azure-rest/core-client";
|
|
6
|
+
/** The customLocations Rest API spec. */
|
|
7
|
+
export function createCustomLocationsManagement(credential, subscriptionId, options = {}) {
|
|
8
|
+
const endpointUrl = options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? "https://management.azure.com";
|
|
9
|
+
const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
|
|
10
|
+
const userAgentInfo = `azsdk-js-arm-extendedlocation/1.0.0-beta.5`;
|
|
11
|
+
const userAgentPrefix = prefixFromOptions
|
|
12
|
+
? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
|
|
13
|
+
: `azsdk-js-api ${userAgentInfo}`;
|
|
14
|
+
const { apiVersion: _, ...updatedOptions } = {
|
|
15
|
+
...options,
|
|
16
|
+
userAgentOptions: { userAgentPrefix },
|
|
17
|
+
loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },
|
|
18
|
+
credentials: {
|
|
19
|
+
scopes: options.credentials?.scopes ?? ["https://management.azure.com/.default"],
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
const clientContext = getClient(endpointUrl, credential, updatedOptions);
|
|
23
|
+
const apiVersion = options.apiVersion;
|
|
24
|
+
return { ...clientContext, apiVersion, subscriptionId };
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=customLocationsManagementContext.js.map
|