@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customLocationsManagementContext.js","sourceRoot":"","sources":["../../../src/api/customLocationsManagementContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAqBpD,yCAAyC;AACzC,MAAM,UAAU,+BAA+B,CAC7C,UAA2B,EAC3B,cAAsB,EACtB,UAAyD,EAAE;IAE3D,MAAM,WAAW,GACf,OAAO,CAAC,QAAQ,IAAI,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,8BAA8B,CAAC;IAC7F,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,4CAA4C,CAAC;IACnE,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,iBAAiB,iBAAiB,aAAa,EAAE;QACtD,CAAC,CAAC,gBAAgB,aAAa,EAAE,CAAC;IACpC,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,GAAG;QAC3C,GAAG,OAAO;QACV,gBAAgB,EAAE,EAAE,eAAe,EAAE;QACrC,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,cAAc,EAAE,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE;QACzE,WAAW,EAAE;YACX,MAAM,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC,uCAAuC,CAAC;SACjF;KACF,CAAC;IACF,MAAM,aAAa,GAAG,SAAS,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;IACtC,OAAO,EAAE,GAAG,aAAa,EAAE,UAAU,EAAE,cAAc,EAAsC,CAAC;AAC9F,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport type { AzureSupportedClouds } from \"../static-helpers/cloudSettingHelpers.js\";\nimport { getArmEndpoint } from \"../static-helpers/cloudSettingHelpers.js\";\nimport type { Client, ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport type { TokenCredential } from \"@azure/core-auth\";\n\n/** The customLocations Rest API spec. */\nexport interface CustomLocationsManagementContext extends Client {\n /** The ID of the target subscription. The value must be an UUID. */\n subscriptionId: string;\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n}\n\n/** Optional parameters for the client. */\nexport interface CustomLocationsManagementClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n /** Specifies the Azure cloud environment for the client. */\n cloudSetting?: AzureSupportedClouds;\n}\n\n/** The customLocations Rest API spec. */\nexport function createCustomLocationsManagement(\n credential: TokenCredential,\n subscriptionId: string,\n options: CustomLocationsManagementClientOptionalParams = {},\n): CustomLocationsManagementContext {\n const endpointUrl =\n options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? \"https://management.azure.com\";\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-extendedlocation/1.0.0-beta.5`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [\"https://management.azure.com/.default\"],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n const apiVersion = options.apiVersion;\n return { ...clientContext, apiVersion, subscriptionId } as CustomLocationsManagementContext;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport type {\n CustomLocationsManagementContext,\n CustomLocationsManagementClientOptionalParams,\n} from \"./customLocationsManagementContext.js\";\nexport { createCustomLocationsManagement } from \"./customLocationsManagementContext.js\";\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { listByCustomLocationID, $delete, update, createOrUpdate, get } from "./operations.js";
|
|
2
|
+
export type { ResourceSyncRulesListByCustomLocationIDOptionalParams, ResourceSyncRulesDeleteOptionalParams, ResourceSyncRulesUpdateOptionalParams, ResourceSyncRulesCreateOrUpdateOptionalParams, ResourceSyncRulesGetOptionalParams, } from "./options.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/resourceSyncRules/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,sBAAsB,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { listByCustomLocationID, $delete, update, createOrUpdate, get } from \"./operations.js\";\nexport type {\n ResourceSyncRulesListByCustomLocationIDOptionalParams,\n ResourceSyncRulesDeleteOptionalParams,\n ResourceSyncRulesUpdateOptionalParams,\n ResourceSyncRulesCreateOrUpdateOptionalParams,\n ResourceSyncRulesGetOptionalParams,\n} from \"./options.js\";\n"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { CustomLocationsManagementContext as Client } from "../index.js";
|
|
2
|
+
import type { ResourceSyncRule, _ResourceSyncRuleListResult } from "../../models/models.js";
|
|
3
|
+
import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
|
+
import type { ResourceSyncRulesListByCustomLocationIDOptionalParams, ResourceSyncRulesDeleteOptionalParams, ResourceSyncRulesUpdateOptionalParams, ResourceSyncRulesCreateOrUpdateOptionalParams, ResourceSyncRulesGetOptionalParams } 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 _listByCustomLocationIDSend(context: Client, resourceGroupName: string, resourceName: string, options?: ResourceSyncRulesListByCustomLocationIDOptionalParams): StreamableMethod;
|
|
8
|
+
export declare function _listByCustomLocationIDDeserialize(result: PathUncheckedResponse): Promise<_ResourceSyncRuleListResult>;
|
|
9
|
+
/** Gets a list of Resource Sync Rules in the specified subscription. The operation returns properties of each Resource Sync Rule */
|
|
10
|
+
export declare function listByCustomLocationID(context: Client, resourceGroupName: string, resourceName: string, options?: ResourceSyncRulesListByCustomLocationIDOptionalParams): PagedAsyncIterableIterator<ResourceSyncRule>;
|
|
11
|
+
export declare function _$deleteSend(context: Client, resourceGroupName: string, resourceName: string, childResourceName: string, options?: ResourceSyncRulesDeleteOptionalParams): StreamableMethod;
|
|
12
|
+
export declare function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void>;
|
|
13
|
+
/** Deletes the Resource Sync Rule with the specified Resource Sync Rule Name, Custom Location Resource Name, Resource Group, and Subscription Id. */
|
|
14
|
+
export declare function $delete(context: Client, resourceGroupName: string, resourceName: string, childResourceName: string, options?: ResourceSyncRulesDeleteOptionalParams): Promise<void>;
|
|
15
|
+
export declare function _updateSend(context: Client, resourceGroupName: string, resourceName: string, childResourceName: string, options?: ResourceSyncRulesUpdateOptionalParams): StreamableMethod;
|
|
16
|
+
export declare function _updateDeserialize(result: PathUncheckedResponse): Promise<ResourceSyncRule>;
|
|
17
|
+
/** Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription and Custom Location name. */
|
|
18
|
+
export declare function update(context: Client, resourceGroupName: string, resourceName: string, childResourceName: string, options?: ResourceSyncRulesUpdateOptionalParams): PollerLike<OperationState<ResourceSyncRule>, ResourceSyncRule>;
|
|
19
|
+
export declare function _createOrUpdateSend(context: Client, resourceGroupName: string, resourceName: string, childResourceName: string, parameters: ResourceSyncRule, options?: ResourceSyncRulesCreateOrUpdateOptionalParams): StreamableMethod;
|
|
20
|
+
export declare function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<ResourceSyncRule>;
|
|
21
|
+
/** Creates or updates a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource Group */
|
|
22
|
+
export declare function createOrUpdate(context: Client, resourceGroupName: string, resourceName: string, childResourceName: string, parameters: ResourceSyncRule, options?: ResourceSyncRulesCreateOrUpdateOptionalParams): PollerLike<OperationState<ResourceSyncRule>, ResourceSyncRule>;
|
|
23
|
+
export declare function _getSend(context: Client, resourceGroupName: string, resourceName: string, childResourceName: string, options?: ResourceSyncRulesGetOptionalParams): StreamableMethod;
|
|
24
|
+
export declare function _getDeserialize(result: PathUncheckedResponse): Promise<ResourceSyncRule>;
|
|
25
|
+
/** Gets the details of the resourceSyncRule with a specified resource group, subscription id Custom Location resource name and Resource Sync Rule name. */
|
|
26
|
+
export declare function get(context: Client, resourceGroupName: string, resourceName: string, childResourceName: string, options?: ResourceSyncRulesGetOptionalParams): Promise<ResourceSyncRule>;
|
|
27
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { errorResponseDeserializer, resourceSyncRuleSerializer, resourceSyncRuleDeserializer, resourceSyncRulePropertiesSerializer, _resourceSyncRuleListResultDeserializer, } 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 _listByCustomLocationIDSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
9
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules{?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).get({
|
|
18
|
+
...operationOptionsToRequestParameters(options),
|
|
19
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
export async function _listByCustomLocationIDDeserialize(result) {
|
|
23
|
+
const expectedStatuses = ["200"];
|
|
24
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
25
|
+
const error = createRestError(result);
|
|
26
|
+
if (result.body) {
|
|
27
|
+
error.details = errorResponseDeserializer(result.body);
|
|
28
|
+
}
|
|
29
|
+
throw error;
|
|
30
|
+
}
|
|
31
|
+
return _resourceSyncRuleListResultDeserializer(result.body);
|
|
32
|
+
}
|
|
33
|
+
/** Gets a list of Resource Sync Rules in the specified subscription. The operation returns properties of each Resource Sync Rule */
|
|
34
|
+
export function listByCustomLocationID(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
35
|
+
return buildPagedAsyncIterator(context, () => _listByCustomLocationIDSend(context, resourceGroupName, resourceName, options), _listByCustomLocationIDDeserialize, ["200"], {
|
|
36
|
+
itemName: "value",
|
|
37
|
+
nextLinkName: "nextLink",
|
|
38
|
+
apiVersion: context.apiVersion ?? "2021-08-31-preview",
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
export function _$deleteSend(context, resourceGroupName, resourceName, childResourceName, options = { requestOptions: {} }) {
|
|
42
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules/{childResourceName}{?api%2Dversion}", {
|
|
43
|
+
subscriptionId: context.subscriptionId,
|
|
44
|
+
resourceGroupName: resourceGroupName,
|
|
45
|
+
resourceName: resourceName,
|
|
46
|
+
childResourceName: childResourceName,
|
|
47
|
+
"api%2Dversion": context.apiVersion ?? "2021-08-31-preview",
|
|
48
|
+
}, {
|
|
49
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
50
|
+
});
|
|
51
|
+
return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });
|
|
52
|
+
}
|
|
53
|
+
export async function _$deleteDeserialize(result) {
|
|
54
|
+
const expectedStatuses = ["200", "204"];
|
|
55
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
56
|
+
const error = createRestError(result);
|
|
57
|
+
if (result.body) {
|
|
58
|
+
error.details = errorResponseDeserializer(result.body);
|
|
59
|
+
}
|
|
60
|
+
throw error;
|
|
61
|
+
}
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
/** Deletes the Resource Sync Rule with the specified Resource Sync Rule Name, Custom Location Resource Name, Resource Group, and Subscription Id. */
|
|
65
|
+
export async function $delete(context, resourceGroupName, resourceName, childResourceName, options = { requestOptions: {} }) {
|
|
66
|
+
const result = await _$deleteSend(context, resourceGroupName, resourceName, childResourceName, options);
|
|
67
|
+
return _$deleteDeserialize(result);
|
|
68
|
+
}
|
|
69
|
+
export function _updateSend(context, resourceGroupName, resourceName, childResourceName, options = { requestOptions: {} }) {
|
|
70
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules/{childResourceName}{?api%2Dversion}", {
|
|
71
|
+
subscriptionId: context.subscriptionId,
|
|
72
|
+
resourceGroupName: resourceGroupName,
|
|
73
|
+
resourceName: resourceName,
|
|
74
|
+
childResourceName: childResourceName,
|
|
75
|
+
"api%2Dversion": context.apiVersion ?? "2021-08-31-preview",
|
|
76
|
+
}, {
|
|
77
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
78
|
+
});
|
|
79
|
+
return context.path(path).patch({
|
|
80
|
+
...operationOptionsToRequestParameters(options),
|
|
81
|
+
contentType: "application/json",
|
|
82
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
83
|
+
body: {
|
|
84
|
+
properties: !options?.properties
|
|
85
|
+
? options?.properties
|
|
86
|
+
: resourceSyncRulePropertiesSerializer(options?.properties),
|
|
87
|
+
tags: options?.tags,
|
|
88
|
+
},
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
export async function _updateDeserialize(result) {
|
|
92
|
+
const expectedStatuses = ["200", "201", "202"];
|
|
93
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
94
|
+
const error = createRestError(result);
|
|
95
|
+
if (result.body) {
|
|
96
|
+
error.details = errorResponseDeserializer(result.body);
|
|
97
|
+
}
|
|
98
|
+
throw error;
|
|
99
|
+
}
|
|
100
|
+
return resourceSyncRuleDeserializer(result.body);
|
|
101
|
+
}
|
|
102
|
+
/** Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription and Custom Location name. */
|
|
103
|
+
export function update(context, resourceGroupName, resourceName, childResourceName, options = { requestOptions: {} }) {
|
|
104
|
+
return getLongRunningPoller(context, _updateDeserialize, ["200", "201", "202"], {
|
|
105
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
106
|
+
abortSignal: options?.abortSignal,
|
|
107
|
+
getInitialResponse: () => _updateSend(context, resourceGroupName, resourceName, childResourceName, options),
|
|
108
|
+
resourceLocationConfig: "azure-async-operation",
|
|
109
|
+
apiVersion: context.apiVersion ?? "2021-08-31-preview",
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
export function _createOrUpdateSend(context, resourceGroupName, resourceName, childResourceName, parameters, options = { requestOptions: {} }) {
|
|
113
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules/{childResourceName}{?api%2Dversion}", {
|
|
114
|
+
subscriptionId: context.subscriptionId,
|
|
115
|
+
resourceGroupName: resourceGroupName,
|
|
116
|
+
resourceName: resourceName,
|
|
117
|
+
childResourceName: childResourceName,
|
|
118
|
+
"api%2Dversion": context.apiVersion ?? "2021-08-31-preview",
|
|
119
|
+
}, {
|
|
120
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
121
|
+
});
|
|
122
|
+
return context.path(path).put({
|
|
123
|
+
...operationOptionsToRequestParameters(options),
|
|
124
|
+
contentType: "application/json",
|
|
125
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
126
|
+
body: resourceSyncRuleSerializer(parameters),
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
export async function _createOrUpdateDeserialize(result) {
|
|
130
|
+
const expectedStatuses = ["200", "201", "202"];
|
|
131
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
132
|
+
const error = createRestError(result);
|
|
133
|
+
if (result.body) {
|
|
134
|
+
error.details = errorResponseDeserializer(result.body);
|
|
135
|
+
}
|
|
136
|
+
throw error;
|
|
137
|
+
}
|
|
138
|
+
return resourceSyncRuleDeserializer(result.body);
|
|
139
|
+
}
|
|
140
|
+
/** Creates or updates a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource Group */
|
|
141
|
+
export function createOrUpdate(context, resourceGroupName, resourceName, childResourceName, parameters, options = { requestOptions: {} }) {
|
|
142
|
+
return getLongRunningPoller(context, _createOrUpdateDeserialize, ["200", "201", "202"], {
|
|
143
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
144
|
+
abortSignal: options?.abortSignal,
|
|
145
|
+
getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, resourceName, childResourceName, parameters, options),
|
|
146
|
+
resourceLocationConfig: "azure-async-operation",
|
|
147
|
+
apiVersion: context.apiVersion ?? "2021-08-31-preview",
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
export function _getSend(context, resourceGroupName, resourceName, childResourceName, options = { requestOptions: {} }) {
|
|
151
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules/{childResourceName}{?api%2Dversion}", {
|
|
152
|
+
subscriptionId: context.subscriptionId,
|
|
153
|
+
resourceGroupName: resourceGroupName,
|
|
154
|
+
resourceName: resourceName,
|
|
155
|
+
childResourceName: childResourceName,
|
|
156
|
+
"api%2Dversion": context.apiVersion ?? "2021-08-31-preview",
|
|
157
|
+
}, {
|
|
158
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
159
|
+
});
|
|
160
|
+
return context.path(path).get({
|
|
161
|
+
...operationOptionsToRequestParameters(options),
|
|
162
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
export async function _getDeserialize(result) {
|
|
166
|
+
const expectedStatuses = ["200"];
|
|
167
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
168
|
+
const error = createRestError(result);
|
|
169
|
+
if (result.body) {
|
|
170
|
+
error.details = errorResponseDeserializer(result.body);
|
|
171
|
+
}
|
|
172
|
+
throw error;
|
|
173
|
+
}
|
|
174
|
+
return resourceSyncRuleDeserializer(result.body);
|
|
175
|
+
}
|
|
176
|
+
/** Gets the details of the resourceSyncRule with a specified resource group, subscription id Custom Location resource name and Resource Sync Rule name. */
|
|
177
|
+
export async function get(context, resourceGroupName, resourceName, childResourceName, options = { requestOptions: {} }) {
|
|
178
|
+
const result = await _getSend(context, resourceGroupName, resourceName, childResourceName, options);
|
|
179
|
+
return _getDeserialize(result);
|
|
180
|
+
}
|
|
181
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/resourceSyncRules/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EACL,yBAAyB,EACzB,0BAA0B,EAC1B,4BAA4B,EAC5B,oCAAoC,EACpC,uCAAuC,GACxC,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;AASxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAG/F,MAAM,UAAU,2BAA2B,CACzC,OAAe,EACf,iBAAyB,EACzB,YAAoB,EACpB,UAAiE,EAAE,cAAc,EAAE,EAAE,EAAE;IAEvF,MAAM,IAAI,GAAG,iBAAiB,CAC5B,0KAA0K,EAC1K;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,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,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,GAAG,MAAM,QAAQ,CAC3B,OAAO,EACP,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,EACjB,OAAO,CACR,CAAC;IACF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { CustomLocationsManagementContext as Client } from \"../index.js\";\nimport type { ResourceSyncRule, _ResourceSyncRuleListResult } from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n resourceSyncRuleSerializer,\n resourceSyncRuleDeserializer,\n resourceSyncRulePropertiesSerializer,\n _resourceSyncRuleListResultDeserializer,\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 ResourceSyncRulesListByCustomLocationIDOptionalParams,\n ResourceSyncRulesDeleteOptionalParams,\n ResourceSyncRulesUpdateOptionalParams,\n ResourceSyncRulesCreateOrUpdateOptionalParams,\n ResourceSyncRulesGetOptionalParams,\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 _listByCustomLocationIDSend(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n options: ResourceSyncRulesListByCustomLocationIDOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules{?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 _listByCustomLocationIDDeserialize(\n result: PathUncheckedResponse,\n): Promise<_ResourceSyncRuleListResult> {\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 _resourceSyncRuleListResultDeserializer(result.body);\n}\n\n/** Gets a list of Resource Sync Rules in the specified subscription. The operation returns properties of each Resource Sync Rule */\nexport function listByCustomLocationID(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n options: ResourceSyncRulesListByCustomLocationIDOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<ResourceSyncRule> {\n return buildPagedAsyncIterator(\n context,\n () => _listByCustomLocationIDSend(context, resourceGroupName, resourceName, options),\n _listByCustomLocationIDDeserialize,\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 childResourceName: string,\n options: ResourceSyncRulesDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules/{childResourceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n resourceName: resourceName,\n childResourceName: childResourceName,\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 = [\"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;\n}\n\n/** Deletes the Resource Sync Rule with the specified Resource Sync Rule Name, Custom Location Resource Name, Resource Group, and Subscription Id. */\nexport async function $delete(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n options: ResourceSyncRulesDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _$deleteSend(\n context,\n resourceGroupName,\n resourceName,\n childResourceName,\n options,\n );\n return _$deleteDeserialize(result);\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n options: ResourceSyncRulesUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules/{childResourceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n resourceName: resourceName,\n childResourceName: childResourceName,\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 properties: !options?.properties\n ? options?.properties\n : resourceSyncRulePropertiesSerializer(options?.properties),\n tags: options?.tags,\n },\n });\n}\n\nexport async function _updateDeserialize(result: PathUncheckedResponse): Promise<ResourceSyncRule> {\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 resourceSyncRuleDeserializer(result.body);\n}\n\n/** Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription and Custom Location name. */\nexport function update(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n options: ResourceSyncRulesUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<ResourceSyncRule>, ResourceSyncRule> {\n return getLongRunningPoller(context, _updateDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _updateSend(context, resourceGroupName, resourceName, childResourceName, options),\n resourceLocationConfig: \"azure-async-operation\",\n apiVersion: context.apiVersion ?? \"2021-08-31-preview\",\n }) as PollerLike<OperationState<ResourceSyncRule>, ResourceSyncRule>;\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n parameters: ResourceSyncRule,\n options: ResourceSyncRulesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules/{childResourceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n resourceName: resourceName,\n childResourceName: childResourceName,\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: resourceSyncRuleSerializer(parameters),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<ResourceSyncRule> {\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 resourceSyncRuleDeserializer(result.body);\n}\n\n/** Creates or updates a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource Group */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n parameters: ResourceSyncRule,\n options: ResourceSyncRulesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<ResourceSyncRule>, ResourceSyncRule> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(\n context,\n resourceGroupName,\n resourceName,\n childResourceName,\n parameters,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n apiVersion: context.apiVersion ?? \"2021-08-31-preview\",\n }) as PollerLike<OperationState<ResourceSyncRule>, ResourceSyncRule>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n options: ResourceSyncRulesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules/{childResourceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n resourceName: resourceName,\n childResourceName: childResourceName,\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<ResourceSyncRule> {\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 resourceSyncRuleDeserializer(result.body);\n}\n\n/** Gets the details of the resourceSyncRule with a specified resource group, subscription id Custom Location resource name and Resource Sync Rule name. */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n options: ResourceSyncRulesGetOptionalParams = { requestOptions: {} },\n): Promise<ResourceSyncRule> {\n const result = await _getSend(\n context,\n resourceGroupName,\n resourceName,\n childResourceName,\n options,\n );\n return _getDeserialize(result);\n}\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ResourceSyncRuleProperties } from "../../models/models.js";
|
|
2
|
+
import type { OperationOptions } from "@azure-rest/core-client";
|
|
3
|
+
/** Optional parameters. */
|
|
4
|
+
export interface ResourceSyncRulesListByCustomLocationIDOptionalParams extends OperationOptions {
|
|
5
|
+
}
|
|
6
|
+
/** Optional parameters. */
|
|
7
|
+
export interface ResourceSyncRulesDeleteOptionalParams extends OperationOptions {
|
|
8
|
+
}
|
|
9
|
+
/** Optional parameters. */
|
|
10
|
+
export interface ResourceSyncRulesUpdateOptionalParams extends OperationOptions {
|
|
11
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
12
|
+
updateIntervalInMs?: number;
|
|
13
|
+
properties?: ResourceSyncRuleProperties;
|
|
14
|
+
/** Resource tags */
|
|
15
|
+
tags?: Record<string, string>;
|
|
16
|
+
}
|
|
17
|
+
/** Optional parameters. */
|
|
18
|
+
export interface ResourceSyncRulesCreateOrUpdateOptionalParams extends OperationOptions {
|
|
19
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
20
|
+
updateIntervalInMs?: number;
|
|
21
|
+
}
|
|
22
|
+
/** Optional parameters. */
|
|
23
|
+
export interface ResourceSyncRulesGetOptionalParams extends OperationOptions {
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/resourceSyncRules/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ResourceSyncRuleProperties } from \"../../models/models.js\";\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface ResourceSyncRulesListByCustomLocationIDOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ResourceSyncRulesDeleteOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ResourceSyncRulesUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n properties?: ResourceSyncRuleProperties;\n /** Resource tags */\n tags?: Record<string, string>;\n}\n\n/** Optional parameters. */\nexport interface ResourceSyncRulesCreateOrUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface ResourceSyncRulesGetOptionalParams extends OperationOptions {}\n"]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { CustomLocationsManagementContext } from "../../api/customLocationsManagementContext.js";
|
|
2
|
+
import type { CustomLocationsFindTargetResourceGroupOptionalParams, CustomLocationsListEnabledResourceTypesOptionalParams, CustomLocationsListBySubscriptionOptionalParams, CustomLocationsListByResourceGroupOptionalParams, CustomLocationsDeleteOptionalParams, CustomLocationsUpdateOptionalParams, CustomLocationsCreateOrUpdateOptionalParams, CustomLocationsGetOptionalParams, CustomLocationsListOperationsOptionalParams } from "../../api/customLocations/options.js";
|
|
3
|
+
import type { CustomLocationOperation, CustomLocation, EnabledResourceType, CustomLocationFindTargetResourceGroupProperties, CustomLocationFindTargetResourceGroupResult } from "../../models/models.js";
|
|
4
|
+
import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
import type { SimplePollerLike } from "../../static-helpers/simplePollerHelpers.js";
|
|
6
|
+
import type { PollerLike, OperationState } from "@azure/core-lro";
|
|
7
|
+
/** Interface representing a CustomLocations operations. */
|
|
8
|
+
export interface CustomLocationsOperations {
|
|
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
|
+
findTargetResourceGroup: (resourceGroupName: string, resourceName: string, parameters: CustomLocationFindTargetResourceGroupProperties, options?: CustomLocationsFindTargetResourceGroupOptionalParams) => Promise<CustomLocationFindTargetResourceGroupResult | undefined>;
|
|
11
|
+
/** Gets the list of the Enabled Resource Types. */
|
|
12
|
+
listEnabledResourceTypes: (resourceGroupName: string, resourceName: string, options?: CustomLocationsListEnabledResourceTypesOptionalParams) => PagedAsyncIterableIterator<EnabledResourceType>;
|
|
13
|
+
/** Gets a list of Custom Locations in the specified subscription. The operation returns properties of each Custom Location */
|
|
14
|
+
listBySubscription: (options?: CustomLocationsListBySubscriptionOptionalParams) => PagedAsyncIterableIterator<CustomLocation>;
|
|
15
|
+
/** Gets a list of Custom Locations in the specified subscription and resource group. The operation returns properties of each Custom Location. */
|
|
16
|
+
listByResourceGroup: (resourceGroupName: string, options?: CustomLocationsListByResourceGroupOptionalParams) => PagedAsyncIterableIterator<CustomLocation>;
|
|
17
|
+
/** Deletes the Custom Location with the specified Resource Name, Resource Group, and Subscription Id. */
|
|
18
|
+
delete: (resourceGroupName: string, resourceName: string, options?: CustomLocationsDeleteOptionalParams) => PollerLike<OperationState<void>, void>;
|
|
19
|
+
/** @deprecated use delete instead */
|
|
20
|
+
beginDelete: (resourceGroupName: string, resourceName: string, options?: CustomLocationsDeleteOptionalParams) => Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
21
|
+
/** @deprecated use delete instead */
|
|
22
|
+
beginDeleteAndWait: (resourceGroupName: string, resourceName: string, options?: CustomLocationsDeleteOptionalParams) => Promise<void>;
|
|
23
|
+
/** Updates a Custom Location with the specified Resource Name in the specified Resource Group and Subscription. */
|
|
24
|
+
update: (resourceGroupName: string, resourceName: string, options?: CustomLocationsUpdateOptionalParams) => Promise<CustomLocation>;
|
|
25
|
+
/** Creates or updates a Custom Location in the specified Subscription and Resource Group */
|
|
26
|
+
createOrUpdate: (resourceGroupName: string, resourceName: string, parameters: CustomLocation, options?: CustomLocationsCreateOrUpdateOptionalParams) => PollerLike<OperationState<CustomLocation>, CustomLocation>;
|
|
27
|
+
/** @deprecated use createOrUpdate instead */
|
|
28
|
+
beginCreateOrUpdate: (resourceGroupName: string, resourceName: string, parameters: CustomLocation, options?: CustomLocationsCreateOrUpdateOptionalParams) => Promise<SimplePollerLike<OperationState<CustomLocation>, CustomLocation>>;
|
|
29
|
+
/** @deprecated use createOrUpdate instead */
|
|
30
|
+
beginCreateOrUpdateAndWait: (resourceGroupName: string, resourceName: string, parameters: CustomLocation, options?: CustomLocationsCreateOrUpdateOptionalParams) => Promise<CustomLocation>;
|
|
31
|
+
/** Gets the details of the customLocation with a specified resource group and name. */
|
|
32
|
+
get: (resourceGroupName: string, resourceName: string, options?: CustomLocationsGetOptionalParams) => Promise<CustomLocation>;
|
|
33
|
+
/** Lists all available Custom Locations operations. */
|
|
34
|
+
listOperations: (options?: CustomLocationsListOperationsOptionalParams) => PagedAsyncIterableIterator<CustomLocationOperation>;
|
|
35
|
+
}
|
|
36
|
+
export declare function _getCustomLocationsOperations(context: CustomLocationsManagementContext): CustomLocationsOperations;
|
|
37
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { findTargetResourceGroup, listEnabledResourceTypes, listBySubscription, listByResourceGroup, $delete, update, createOrUpdate, get, listOperations, } from "../../api/customLocations/operations.js";
|
|
4
|
+
import { getSimplePoller } from "../../static-helpers/simplePollerHelpers.js";
|
|
5
|
+
function _getCustomLocations(context) {
|
|
6
|
+
return {
|
|
7
|
+
findTargetResourceGroup: (resourceGroupName, resourceName, parameters, options) => findTargetResourceGroup(context, resourceGroupName, resourceName, parameters, options),
|
|
8
|
+
listEnabledResourceTypes: (resourceGroupName, resourceName, options) => listEnabledResourceTypes(context, resourceGroupName, resourceName, options),
|
|
9
|
+
listBySubscription: (options) => listBySubscription(context, options),
|
|
10
|
+
listByResourceGroup: (resourceGroupName, options) => listByResourceGroup(context, resourceGroupName, options),
|
|
11
|
+
delete: (resourceGroupName, resourceName, options) => $delete(context, resourceGroupName, resourceName, options),
|
|
12
|
+
beginDelete: async (resourceGroupName, resourceName, options) => {
|
|
13
|
+
const poller = $delete(context, resourceGroupName, resourceName, options);
|
|
14
|
+
await poller.submitted();
|
|
15
|
+
return getSimplePoller(poller);
|
|
16
|
+
},
|
|
17
|
+
beginDeleteAndWait: async (resourceGroupName, resourceName, options) => {
|
|
18
|
+
return await $delete(context, resourceGroupName, resourceName, options);
|
|
19
|
+
},
|
|
20
|
+
update: (resourceGroupName, resourceName, options) => update(context, resourceGroupName, resourceName, options),
|
|
21
|
+
createOrUpdate: (resourceGroupName, resourceName, parameters, options) => createOrUpdate(context, resourceGroupName, resourceName, parameters, options),
|
|
22
|
+
beginCreateOrUpdate: async (resourceGroupName, resourceName, parameters, options) => {
|
|
23
|
+
const poller = createOrUpdate(context, resourceGroupName, resourceName, parameters, options);
|
|
24
|
+
await poller.submitted();
|
|
25
|
+
return getSimplePoller(poller);
|
|
26
|
+
},
|
|
27
|
+
beginCreateOrUpdateAndWait: async (resourceGroupName, resourceName, parameters, options) => {
|
|
28
|
+
return await createOrUpdate(context, resourceGroupName, resourceName, parameters, options);
|
|
29
|
+
},
|
|
30
|
+
get: (resourceGroupName, resourceName, options) => get(context, resourceGroupName, resourceName, options),
|
|
31
|
+
listOperations: (options) => listOperations(context, options),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function _getCustomLocationsOperations(context) {
|
|
35
|
+
return {
|
|
36
|
+
..._getCustomLocations(context),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/customLocations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,kBAAkB,EAClB,mBAAmB,EACnB,OAAO,EACP,MAAM,EACN,cAAc,EACd,GAAG,EACH,cAAc,GACf,MAAM,yCAAyC,CAAC;AAqBjD,OAAO,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAoF9E,SAAS,mBAAmB,CAAC,OAAyC;IACpE,OAAO;QACL,uBAAuB,EAAE,CACvB,iBAAyB,EACzB,YAAoB,EACpB,UAA2D,EAC3D,OAA8D,EAC9D,EAAE,CAAC,uBAAuB,CAAC,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,CAAC;QAC3F,wBAAwB,EAAE,CACxB,iBAAyB,EACzB,YAAoB,EACpB,OAA+D,EAC/D,EAAE,CAAC,wBAAwB,CAAC,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,CAAC;QAChF,kBAAkB,EAAE,CAAC,OAAyD,EAAE,EAAE,CAChF,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC;QACtC,mBAAmB,EAAE,CACnB,iBAAyB,EACzB,OAA0D,EAC1D,EAAE,CAAC,mBAAmB,CAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,CAAC;QAC7D,MAAM,EAAE,CACN,iBAAyB,EACzB,YAAoB,EACpB,OAA6C,EAC7C,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,CAAC;QAC/D,WAAW,EAAE,KAAK,EAChB,iBAAyB,EACzB,YAAoB,EACpB,OAA6C,EAC7C,EAAE;YACF,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,CAAC,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AAc,EAAE,CAAC,OAAqD,EAAE,EAAE,CACxE,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC;KACnC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,6BAA6B,CAC3C,OAAyC;IAEzC,OAAO;QACL,GAAG,mBAAmB,CAAC,OAAO,CAAC;KAChC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { CustomLocationsManagementContext } from \"../../api/customLocationsManagementContext.js\";\nimport {\n findTargetResourceGroup,\n listEnabledResourceTypes,\n listBySubscription,\n listByResourceGroup,\n $delete,\n update,\n createOrUpdate,\n get,\n listOperations,\n} from \"../../api/customLocations/operations.js\";\nimport type {\n CustomLocationsFindTargetResourceGroupOptionalParams,\n CustomLocationsListEnabledResourceTypesOptionalParams,\n CustomLocationsListBySubscriptionOptionalParams,\n CustomLocationsListByResourceGroupOptionalParams,\n CustomLocationsDeleteOptionalParams,\n CustomLocationsUpdateOptionalParams,\n CustomLocationsCreateOrUpdateOptionalParams,\n CustomLocationsGetOptionalParams,\n CustomLocationsListOperationsOptionalParams,\n} from \"../../api/customLocations/options.js\";\nimport type {\n CustomLocationOperation,\n CustomLocation,\n EnabledResourceType,\n CustomLocationFindTargetResourceGroupProperties,\n CustomLocationFindTargetResourceGroupResult,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport type { SimplePollerLike } from \"../../static-helpers/simplePollerHelpers.js\";\nimport { getSimplePoller } from \"../../static-helpers/simplePollerHelpers.js\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/** Interface representing a CustomLocations operations. */\nexport interface CustomLocationsOperations {\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. */\n findTargetResourceGroup: (\n resourceGroupName: string,\n resourceName: string,\n parameters: CustomLocationFindTargetResourceGroupProperties,\n options?: CustomLocationsFindTargetResourceGroupOptionalParams,\n ) => Promise<CustomLocationFindTargetResourceGroupResult | undefined>;\n /** Gets the list of the Enabled Resource Types. */\n listEnabledResourceTypes: (\n resourceGroupName: string,\n resourceName: string,\n options?: CustomLocationsListEnabledResourceTypesOptionalParams,\n ) => PagedAsyncIterableIterator<EnabledResourceType>;\n /** Gets a list of Custom Locations in the specified subscription. The operation returns properties of each Custom Location */\n listBySubscription: (\n options?: CustomLocationsListBySubscriptionOptionalParams,\n ) => PagedAsyncIterableIterator<CustomLocation>;\n /** Gets a list of Custom Locations in the specified subscription and resource group. The operation returns properties of each Custom Location. */\n listByResourceGroup: (\n resourceGroupName: string,\n options?: CustomLocationsListByResourceGroupOptionalParams,\n ) => PagedAsyncIterableIterator<CustomLocation>;\n /** Deletes the Custom Location with the specified Resource Name, Resource Group, and Subscription Id. */\n delete: (\n resourceGroupName: string,\n resourceName: string,\n options?: CustomLocationsDeleteOptionalParams,\n ) => PollerLike<OperationState<void>, void>;\n /** @deprecated use delete instead */\n beginDelete: (\n resourceGroupName: string,\n resourceName: string,\n options?: CustomLocationsDeleteOptionalParams,\n ) => Promise<SimplePollerLike<OperationState<void>, void>>;\n /** @deprecated use delete instead */\n beginDeleteAndWait: (\n resourceGroupName: string,\n resourceName: string,\n options?: CustomLocationsDeleteOptionalParams,\n ) => Promise<void>;\n /** Updates a Custom Location with the specified Resource Name in the specified Resource Group and Subscription. */\n update: (\n resourceGroupName: string,\n resourceName: string,\n options?: CustomLocationsUpdateOptionalParams,\n ) => Promise<CustomLocation>;\n /** Creates or updates a Custom Location in the specified Subscription and Resource Group */\n createOrUpdate: (\n resourceGroupName: string,\n resourceName: string,\n parameters: CustomLocation,\n options?: CustomLocationsCreateOrUpdateOptionalParams,\n ) => PollerLike<OperationState<CustomLocation>, CustomLocation>;\n /** @deprecated use createOrUpdate instead */\n beginCreateOrUpdate: (\n resourceGroupName: string,\n resourceName: string,\n parameters: CustomLocation,\n options?: CustomLocationsCreateOrUpdateOptionalParams,\n ) => Promise<SimplePollerLike<OperationState<CustomLocation>, CustomLocation>>;\n /** @deprecated use createOrUpdate instead */\n beginCreateOrUpdateAndWait: (\n resourceGroupName: string,\n resourceName: string,\n parameters: CustomLocation,\n options?: CustomLocationsCreateOrUpdateOptionalParams,\n ) => Promise<CustomLocation>;\n /** Gets the details of the customLocation with a specified resource group and name. */\n get: (\n resourceGroupName: string,\n resourceName: string,\n options?: CustomLocationsGetOptionalParams,\n ) => Promise<CustomLocation>;\n /** Lists all available Custom Locations operations. */\n listOperations: (\n options?: CustomLocationsListOperationsOptionalParams,\n ) => PagedAsyncIterableIterator<CustomLocationOperation>;\n}\n\nfunction _getCustomLocations(context: CustomLocationsManagementContext) {\n return {\n findTargetResourceGroup: (\n resourceGroupName: string,\n resourceName: string,\n parameters: CustomLocationFindTargetResourceGroupProperties,\n options?: CustomLocationsFindTargetResourceGroupOptionalParams,\n ) => findTargetResourceGroup(context, resourceGroupName, resourceName, parameters, options),\n listEnabledResourceTypes: (\n resourceGroupName: string,\n resourceName: string,\n options?: CustomLocationsListEnabledResourceTypesOptionalParams,\n ) => listEnabledResourceTypes(context, resourceGroupName, resourceName, options),\n listBySubscription: (options?: CustomLocationsListBySubscriptionOptionalParams) =>\n listBySubscription(context, options),\n listByResourceGroup: (\n resourceGroupName: string,\n options?: CustomLocationsListByResourceGroupOptionalParams,\n ) => listByResourceGroup(context, resourceGroupName, options),\n delete: (\n resourceGroupName: string,\n resourceName: string,\n options?: CustomLocationsDeleteOptionalParams,\n ) => $delete(context, resourceGroupName, resourceName, options),\n beginDelete: async (\n resourceGroupName: string,\n resourceName: string,\n options?: CustomLocationsDeleteOptionalParams,\n ) => {\n const poller = $delete(context, resourceGroupName, resourceName, options);\n await poller.submitted();\n return getSimplePoller(poller);\n },\n beginDeleteAndWait: async (\n resourceGroupName: string,\n resourceName: string,\n options?: CustomLocationsDeleteOptionalParams,\n ) => {\n return await $delete(context, resourceGroupName, resourceName, options);\n },\n update: (\n resourceGroupName: string,\n resourceName: string,\n options?: CustomLocationsUpdateOptionalParams,\n ) => update(context, resourceGroupName, resourceName, options),\n createOrUpdate: (\n resourceGroupName: string,\n resourceName: string,\n parameters: CustomLocation,\n options?: CustomLocationsCreateOrUpdateOptionalParams,\n ) => createOrUpdate(context, resourceGroupName, resourceName, parameters, options),\n beginCreateOrUpdate: async (\n resourceGroupName: string,\n resourceName: string,\n parameters: CustomLocation,\n options?: CustomLocationsCreateOrUpdateOptionalParams,\n ) => {\n const poller = createOrUpdate(context, resourceGroupName, resourceName, parameters, options);\n await poller.submitted();\n return getSimplePoller(poller);\n },\n beginCreateOrUpdateAndWait: async (\n resourceGroupName: string,\n resourceName: string,\n parameters: CustomLocation,\n options?: CustomLocationsCreateOrUpdateOptionalParams,\n ) => {\n return await createOrUpdate(context, resourceGroupName, resourceName, parameters, options);\n },\n get: (\n resourceGroupName: string,\n resourceName: string,\n options?: CustomLocationsGetOptionalParams,\n ) => get(context, resourceGroupName, resourceName, options),\n listOperations: (options?: CustomLocationsListOperationsOptionalParams) =>\n listOperations(context, options),\n };\n}\n\nexport function _getCustomLocationsOperations(\n context: CustomLocationsManagementContext,\n): CustomLocationsOperations {\n return {\n ..._getCustomLocations(context),\n };\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/classic/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport type { CustomLocationsOperations } from \"./customLocations/index.js\";\nexport type { ResourceSyncRulesOperations } from \"./resourceSyncRules/index.js\";\n"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { CustomLocationsManagementContext } from "../../api/customLocationsManagementContext.js";
|
|
2
|
+
import type { ResourceSyncRulesListByCustomLocationIDOptionalParams, ResourceSyncRulesDeleteOptionalParams, ResourceSyncRulesUpdateOptionalParams, ResourceSyncRulesCreateOrUpdateOptionalParams, ResourceSyncRulesGetOptionalParams } from "../../api/resourceSyncRules/options.js";
|
|
3
|
+
import type { ResourceSyncRule } from "../../models/models.js";
|
|
4
|
+
import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
import type { SimplePollerLike } from "../../static-helpers/simplePollerHelpers.js";
|
|
6
|
+
import type { PollerLike, OperationState } from "@azure/core-lro";
|
|
7
|
+
/** Interface representing a ResourceSyncRules operations. */
|
|
8
|
+
export interface ResourceSyncRulesOperations {
|
|
9
|
+
/** Gets a list of Resource Sync Rules in the specified subscription. The operation returns properties of each Resource Sync Rule */
|
|
10
|
+
listByCustomLocationID: (resourceGroupName: string, resourceName: string, options?: ResourceSyncRulesListByCustomLocationIDOptionalParams) => PagedAsyncIterableIterator<ResourceSyncRule>;
|
|
11
|
+
/** Deletes the Resource Sync Rule with the specified Resource Sync Rule Name, Custom Location Resource Name, Resource Group, and Subscription Id. */
|
|
12
|
+
delete: (resourceGroupName: string, resourceName: string, childResourceName: string, options?: ResourceSyncRulesDeleteOptionalParams) => Promise<void>;
|
|
13
|
+
/** Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription and Custom Location name. */
|
|
14
|
+
update: (resourceGroupName: string, resourceName: string, childResourceName: string, options?: ResourceSyncRulesUpdateOptionalParams) => PollerLike<OperationState<ResourceSyncRule>, ResourceSyncRule>;
|
|
15
|
+
/** @deprecated use update instead */
|
|
16
|
+
beginUpdate: (resourceGroupName: string, resourceName: string, childResourceName: string, options?: ResourceSyncRulesUpdateOptionalParams) => Promise<SimplePollerLike<OperationState<ResourceSyncRule>, ResourceSyncRule>>;
|
|
17
|
+
/** @deprecated use update instead */
|
|
18
|
+
beginUpdateAndWait: (resourceGroupName: string, resourceName: string, childResourceName: string, options?: ResourceSyncRulesUpdateOptionalParams) => Promise<ResourceSyncRule>;
|
|
19
|
+
/** Creates or updates a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource Group */
|
|
20
|
+
createOrUpdate: (resourceGroupName: string, resourceName: string, childResourceName: string, parameters: ResourceSyncRule, options?: ResourceSyncRulesCreateOrUpdateOptionalParams) => PollerLike<OperationState<ResourceSyncRule>, ResourceSyncRule>;
|
|
21
|
+
/** @deprecated use createOrUpdate instead */
|
|
22
|
+
beginCreateOrUpdate: (resourceGroupName: string, resourceName: string, childResourceName: string, parameters: ResourceSyncRule, options?: ResourceSyncRulesCreateOrUpdateOptionalParams) => Promise<SimplePollerLike<OperationState<ResourceSyncRule>, ResourceSyncRule>>;
|
|
23
|
+
/** @deprecated use createOrUpdate instead */
|
|
24
|
+
beginCreateOrUpdateAndWait: (resourceGroupName: string, resourceName: string, childResourceName: string, parameters: ResourceSyncRule, options?: ResourceSyncRulesCreateOrUpdateOptionalParams) => Promise<ResourceSyncRule>;
|
|
25
|
+
/** Gets the details of the resourceSyncRule with a specified resource group, subscription id Custom Location resource name and Resource Sync Rule name. */
|
|
26
|
+
get: (resourceGroupName: string, resourceName: string, childResourceName: string, options?: ResourceSyncRulesGetOptionalParams) => Promise<ResourceSyncRule>;
|
|
27
|
+
}
|
|
28
|
+
export declare function _getResourceSyncRulesOperations(context: CustomLocationsManagementContext): ResourceSyncRulesOperations;
|
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { listByCustomLocationID, $delete, update, createOrUpdate, get, } from "../../api/resourceSyncRules/operations.js";
|
|
4
|
+
import { getSimplePoller } from "../../static-helpers/simplePollerHelpers.js";
|
|
5
|
+
function _getResourceSyncRules(context) {
|
|
6
|
+
return {
|
|
7
|
+
listByCustomLocationID: (resourceGroupName, resourceName, options) => listByCustomLocationID(context, resourceGroupName, resourceName, options),
|
|
8
|
+
delete: (resourceGroupName, resourceName, childResourceName, options) => $delete(context, resourceGroupName, resourceName, childResourceName, options),
|
|
9
|
+
update: (resourceGroupName, resourceName, childResourceName, options) => update(context, resourceGroupName, resourceName, childResourceName, options),
|
|
10
|
+
beginUpdate: async (resourceGroupName, resourceName, childResourceName, options) => {
|
|
11
|
+
const poller = update(context, resourceGroupName, resourceName, childResourceName, options);
|
|
12
|
+
await poller.submitted();
|
|
13
|
+
return getSimplePoller(poller);
|
|
14
|
+
},
|
|
15
|
+
beginUpdateAndWait: async (resourceGroupName, resourceName, childResourceName, options) => {
|
|
16
|
+
return await update(context, resourceGroupName, resourceName, childResourceName, options);
|
|
17
|
+
},
|
|
18
|
+
createOrUpdate: (resourceGroupName, resourceName, childResourceName, parameters, options) => createOrUpdate(context, resourceGroupName, resourceName, childResourceName, parameters, options),
|
|
19
|
+
beginCreateOrUpdate: async (resourceGroupName, resourceName, childResourceName, parameters, options) => {
|
|
20
|
+
const poller = createOrUpdate(context, resourceGroupName, resourceName, childResourceName, parameters, options);
|
|
21
|
+
await poller.submitted();
|
|
22
|
+
return getSimplePoller(poller);
|
|
23
|
+
},
|
|
24
|
+
beginCreateOrUpdateAndWait: async (resourceGroupName, resourceName, childResourceName, parameters, options) => {
|
|
25
|
+
return await createOrUpdate(context, resourceGroupName, resourceName, childResourceName, parameters, options);
|
|
26
|
+
},
|
|
27
|
+
get: (resourceGroupName, resourceName, childResourceName, options) => get(context, resourceGroupName, resourceName, childResourceName, options),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export function _getResourceSyncRulesOperations(context) {
|
|
31
|
+
return {
|
|
32
|
+
..._getResourceSyncRules(context),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/resourceSyncRules/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,sBAAsB,EACtB,OAAO,EACP,MAAM,EACN,cAAc,EACd,GAAG,GACJ,MAAM,2CAA2C,CAAC;AAWnD,O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AiB,EACjB,UAAU,EACV,OAAO,CACR;QACH,mBAAmB,EAAE,KAAK,EACxB,iBAAyB,EACzB,YAAoB,EACpB,iBAAyB,EACzB,UAA4B,EAC5B,OAAuD,EACvD,EAAE;YACF,MAAM,MAAM,GAAG,cAAc,CAC3B,OAAO,EACP,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,EACjB,UAAU,EACV,OAAO,CACR,CAAC;YACF,MAAM,MAAM,CAAC,SAAS,EAAE,CAAC;YACzB,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;QACjC,CAAC;QACD,0BAA0B,EAAE,KAAK,EAC/B,iBAAyB,EACzB,YAAoB,EACpB,iBAAyB,EACzB,UAA4B,EAC5B,OAAuD,EACvD,EAAE;YACF,OAAO,MAAM,cAAc,CACzB,OAAO,EACP,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,EACjB,UAAU,EACV,OAAO,CACR,CAAC;QACJ,CAAC;QACD,GAAG,EAAE,CACH,iBAAyB,EACzB,YAAoB,EACpB,iBAAyB,EACzB,OAA4C,EAC5C,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,iBAAiB,EAAE,OAAO,CAAC;KAC/E,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,+BAA+B,CAC7C,OAAyC;IAEzC,OAAO;QACL,GAAG,qBAAqB,CAAC,OAAO,CAAC;KAClC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { CustomLocationsManagementContext } from \"../../api/customLocationsManagementContext.js\";\nimport {\n listByCustomLocationID,\n $delete,\n update,\n createOrUpdate,\n get,\n} from \"../../api/resourceSyncRules/operations.js\";\nimport type {\n ResourceSyncRulesListByCustomLocationIDOptionalParams,\n ResourceSyncRulesDeleteOptionalParams,\n ResourceSyncRulesUpdateOptionalParams,\n ResourceSyncRulesCreateOrUpdateOptionalParams,\n ResourceSyncRulesGetOptionalParams,\n} from \"../../api/resourceSyncRules/options.js\";\nimport type { ResourceSyncRule } from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport type { SimplePollerLike } from \"../../static-helpers/simplePollerHelpers.js\";\nimport { getSimplePoller } from \"../../static-helpers/simplePollerHelpers.js\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/** Interface representing a ResourceSyncRules operations. */\nexport interface ResourceSyncRulesOperations {\n /** Gets a list of Resource Sync Rules in the specified subscription. The operation returns properties of each Resource Sync Rule */\n listByCustomLocationID: (\n resourceGroupName: string,\n resourceName: string,\n options?: ResourceSyncRulesListByCustomLocationIDOptionalParams,\n ) => PagedAsyncIterableIterator<ResourceSyncRule>;\n /** Deletes the Resource Sync Rule with the specified Resource Sync Rule Name, Custom Location Resource Name, Resource Group, and Subscription Id. */\n delete: (\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n options?: ResourceSyncRulesDeleteOptionalParams,\n ) => Promise<void>;\n /** Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription and Custom Location name. */\n update: (\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n options?: ResourceSyncRulesUpdateOptionalParams,\n ) => PollerLike<OperationState<ResourceSyncRule>, ResourceSyncRule>;\n /** @deprecated use update instead */\n beginUpdate: (\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n options?: ResourceSyncRulesUpdateOptionalParams,\n ) => Promise<SimplePollerLike<OperationState<ResourceSyncRule>, ResourceSyncRule>>;\n /** @deprecated use update instead */\n beginUpdateAndWait: (\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n options?: ResourceSyncRulesUpdateOptionalParams,\n ) => Promise<ResourceSyncRule>;\n /** Creates or updates a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource Group */\n createOrUpdate: (\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n parameters: ResourceSyncRule,\n options?: ResourceSyncRulesCreateOrUpdateOptionalParams,\n ) => PollerLike<OperationState<ResourceSyncRule>, ResourceSyncRule>;\n /** @deprecated use createOrUpdate instead */\n beginCreateOrUpdate: (\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n parameters: ResourceSyncRule,\n options?: ResourceSyncRulesCreateOrUpdateOptionalParams,\n ) => Promise<SimplePollerLike<OperationState<ResourceSyncRule>, ResourceSyncRule>>;\n /** @deprecated use createOrUpdate instead */\n beginCreateOrUpdateAndWait: (\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n parameters: ResourceSyncRule,\n options?: ResourceSyncRulesCreateOrUpdateOptionalParams,\n ) => Promise<ResourceSyncRule>;\n /** Gets the details of the resourceSyncRule with a specified resource group, subscription id Custom Location resource name and Resource Sync Rule name. */\n get: (\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n options?: ResourceSyncRulesGetOptionalParams,\n ) => Promise<ResourceSyncRule>;\n}\n\nfunction _getResourceSyncRules(context: CustomLocationsManagementContext) {\n return {\n listByCustomLocationID: (\n resourceGroupName: string,\n resourceName: string,\n options?: ResourceSyncRulesListByCustomLocationIDOptionalParams,\n ) => listByCustomLocationID(context, resourceGroupName, resourceName, options),\n delete: (\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n options?: ResourceSyncRulesDeleteOptionalParams,\n ) => $delete(context, resourceGroupName, resourceName, childResourceName, options),\n update: (\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n options?: ResourceSyncRulesUpdateOptionalParams,\n ) => update(context, resourceGroupName, resourceName, childResourceName, options),\n beginUpdate: async (\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n options?: ResourceSyncRulesUpdateOptionalParams,\n ) => {\n const poller = update(context, resourceGroupName, resourceName, childResourceName, options);\n await poller.submitted();\n return getSimplePoller(poller);\n },\n beginUpdateAndWait: async (\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n options?: ResourceSyncRulesUpdateOptionalParams,\n ) => {\n return await update(context, resourceGroupName, resourceName, childResourceName, options);\n },\n createOrUpdate: (\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n parameters: ResourceSyncRule,\n options?: ResourceSyncRulesCreateOrUpdateOptionalParams,\n ) =>\n createOrUpdate(\n context,\n resourceGroupName,\n resourceName,\n childResourceName,\n parameters,\n options,\n ),\n beginCreateOrUpdate: async (\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n parameters: ResourceSyncRule,\n options?: ResourceSyncRulesCreateOrUpdateOptionalParams,\n ) => {\n const poller = createOrUpdate(\n context,\n resourceGroupName,\n resourceName,\n childResourceName,\n parameters,\n options,\n );\n await poller.submitted();\n return getSimplePoller(poller);\n },\n beginCreateOrUpdateAndWait: async (\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n parameters: ResourceSyncRule,\n options?: ResourceSyncRulesCreateOrUpdateOptionalParams,\n ) => {\n return await createOrUpdate(\n context,\n resourceGroupName,\n resourceName,\n childResourceName,\n parameters,\n options,\n );\n },\n get: (\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n options?: ResourceSyncRulesGetOptionalParams,\n ) => get(context, resourceGroupName, resourceName, childResourceName, options),\n };\n}\n\nexport function _getResourceSyncRulesOperations(\n context: CustomLocationsManagementContext,\n): ResourceSyncRulesOperations {\n return {\n ..._getResourceSyncRules(context),\n };\n}\n"]}
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
private addCustomApiVersionPolicy;
|
|
18
|
-
customLocations: CustomLocations;
|
|
19
|
-
resourceSyncRules: ResourceSyncRules;
|
|
1
|
+
import type { CustomLocationsManagementClientOptionalParams } from "./api/index.js";
|
|
2
|
+
import type { CustomLocationsOperations } from "./classic/customLocations/index.js";
|
|
3
|
+
import type { ResourceSyncRulesOperations } from "./classic/resourceSyncRules/index.js";
|
|
4
|
+
import type { TokenCredential } from "@azure/core-auth";
|
|
5
|
+
import type { Pipeline } from "@azure/core-rest-pipeline";
|
|
6
|
+
export type { CustomLocationsManagementClientOptionalParams } from "./api/customLocationsManagementContext.js";
|
|
7
|
+
export declare class CustomLocationsManagementClient {
|
|
8
|
+
private _client;
|
|
9
|
+
/** The pipeline used by this client to make requests */
|
|
10
|
+
readonly pipeline: Pipeline;
|
|
11
|
+
constructor(credential: TokenCredential, options?: CustomLocationsManagementClientOptionalParams);
|
|
12
|
+
constructor(credential: TokenCredential, subscriptionId: string, options?: CustomLocationsManagementClientOptionalParams);
|
|
13
|
+
/** The operation groups for resourceSyncRules */
|
|
14
|
+
readonly resourceSyncRules: ResourceSyncRulesOperations;
|
|
15
|
+
/** The operation groups for customLocations */
|
|
16
|
+
readonly customLocations: CustomLocationsOperations;
|
|
20
17
|
}
|
|
21
18
|
//# sourceMappingURL=customLocationsManagementClient.d.ts.map
|