@azure/arm-extendedlocation 1.0.0-beta.2 → 1.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -3
- package/LICENSE +4 -4
- package/README.md +27 -18
- package/{dist-esm/src → dist/browser}/customLocationsManagementClient.d.ts +2 -2
- package/dist/browser/customLocationsManagementClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/customLocationsManagementClient.js +47 -38
- package/dist/browser/customLocationsManagementClient.js.map +1 -0
- package/dist/browser/index.d.ts +5 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/index.js +4 -3
- package/dist/browser/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/lroImpl.js +13 -9
- package/dist/browser/lroImpl.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/index.d.ts +20 -20
- package/{dist-esm/src → dist/browser}/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.js +55 -25
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
- package/dist/browser/models/parameters.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/customLocations.d.ts +3 -3
- package/dist/browser/operations/customLocations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/customLocations.js +186 -203
- package/dist/browser/operations/customLocations.js.map +1 -0
- package/dist/browser/operations/index.d.ts +3 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +2 -2
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/resourceSyncRules.d.ts +3 -3
- package/dist/browser/operations/resourceSyncRules.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/resourceSyncRules.js +114 -116
- package/dist/browser/operations/resourceSyncRules.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/customLocations.d.ts +1 -1
- package/dist/browser/operationsInterfaces/customLocations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/customLocations.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +3 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +2 -2
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/resourceSyncRules.d.ts +1 -1
- package/dist/browser/operationsInterfaces/resourceSyncRules.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/resourceSyncRules.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.d.ts +13 -0
- package/dist/browser/pagingHelper.d.ts.map +1 -0
- package/dist/browser/pagingHelper.js +30 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/customLocationsManagementClient.d.ts +21 -0
- package/dist/commonjs/customLocationsManagementClient.d.ts.map +1 -0
- package/dist/commonjs/customLocationsManagementClient.js +113 -0
- package/dist/commonjs/customLocationsManagementClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/lroImpl.d.ts +16 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +37 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/{types/arm-extendedlocation.d.ts → dist/commonjs/models/index.d.ts} +541 -781
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +37 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +26 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +810 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +27 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +188 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/customLocations.d.ts +155 -0
- package/dist/commonjs/operations/customLocations.d.ts.map +1 -0
- package/dist/commonjs/operations/customLocations.js +704 -0
- package/dist/commonjs/operations/customLocations.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +3 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +13 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/resourceSyncRules.d.ts +97 -0
- package/dist/commonjs/operations/resourceSyncRules.d.ts.map +1 -0
- package/dist/commonjs/operations/resourceSyncRules.js +403 -0
- package/dist/commonjs/operations/resourceSyncRules.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/customLocations.d.ts +86 -0
- package/dist/commonjs/operationsInterfaces/customLocations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/customLocations.js +10 -0
- package/dist/commonjs/operationsInterfaces/customLocations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +13 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/resourceSyncRules.d.ts +71 -0
- package/dist/commonjs/operationsInterfaces/resourceSyncRules.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/resourceSyncRules.js +10 -0
- package/dist/commonjs/operationsInterfaces/resourceSyncRules.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +34 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
- package/dist/esm/customLocationsManagementClient.d.ts +21 -0
- package/dist/esm/customLocationsManagementClient.d.ts.map +1 -0
- package/dist/esm/customLocationsManagementClient.js +108 -0
- package/dist/esm/customLocationsManagementClient.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -4
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lroImpl.d.ts +16 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +33 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +541 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +34 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +26 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +807 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +27 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +185 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/customLocations.d.ts +155 -0
- package/dist/esm/operations/customLocations.d.ts.map +1 -0
- package/dist/esm/operations/customLocations.js +699 -0
- package/dist/esm/operations/customLocations.js.map +1 -0
- package/dist/esm/operations/index.d.ts +3 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +10 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/resourceSyncRules.d.ts +97 -0
- package/dist/esm/operations/resourceSyncRules.d.ts.map +1 -0
- package/dist/esm/operations/resourceSyncRules.js +398 -0
- package/dist/esm/operations/resourceSyncRules.js.map +1 -0
- package/dist/esm/operationsInterfaces/customLocations.d.ts +86 -0
- package/dist/esm/operationsInterfaces/customLocations.d.ts.map +1 -0
- package/{src/operations/index.ts → dist/esm/operationsInterfaces/customLocations.js} +2 -3
- package/dist/esm/operationsInterfaces/customLocations.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +3 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +10 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/resourceSyncRules.d.ts +71 -0
- package/dist/esm/operationsInterfaces/resourceSyncRules.d.ts.map +1 -0
- package/{src/operationsInterfaces/index.ts → dist/esm/operationsInterfaces/resourceSyncRules.js} +2 -3
- package/dist/esm/operationsInterfaces/resourceSyncRules.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +30 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/react-native/customLocationsManagementClient.d.ts +21 -0
- package/dist/react-native/customLocationsManagementClient.d.ts.map +1 -0
- package/dist/react-native/customLocationsManagementClient.js +108 -0
- package/dist/react-native/customLocationsManagementClient.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/lroImpl.d.ts +16 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +33 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +541 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +34 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +26 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +807 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +27 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +185 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/customLocations.d.ts +155 -0
- package/dist/react-native/operations/customLocations.d.ts.map +1 -0
- package/dist/react-native/operations/customLocations.js +699 -0
- package/dist/react-native/operations/customLocations.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +3 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +10 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/resourceSyncRules.d.ts +97 -0
- package/dist/react-native/operations/resourceSyncRules.d.ts.map +1 -0
- package/dist/react-native/operations/resourceSyncRules.js +398 -0
- package/dist/react-native/operations/resourceSyncRules.js.map +1 -0
- package/dist/react-native/operationsInterfaces/customLocations.d.ts +86 -0
- package/dist/react-native/operationsInterfaces/customLocations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/customLocations.js +9 -0
- package/dist/react-native/operationsInterfaces/customLocations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +10 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/resourceSyncRules.d.ts +71 -0
- package/dist/react-native/operationsInterfaces/resourceSyncRules.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/resourceSyncRules.js +9 -0
- package/dist/react-native/operationsInterfaces/resourceSyncRules.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +30 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +88 -77
- package/review/{arm-extendedlocation.api.md → arm-extendedlocation-node.api.md} +3 -0
- package/dist/index.js +0 -2230
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/customLocationsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/customLocationsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/customLocationsCreateOrUpdateSample.js +0 -42
- package/dist-esm/samples-dev/customLocationsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/customLocationsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/customLocationsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/customLocationsDeleteSample.js +0 -31
- package/dist-esm/samples-dev/customLocationsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/customLocationsFindTargetResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/customLocationsFindTargetResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/customLocationsFindTargetResourceGroupSample.js +0 -34
- package/dist-esm/samples-dev/customLocationsFindTargetResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/customLocationsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/customLocationsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/customLocationsGetSample.js +0 -31
- package/dist-esm/samples-dev/customLocationsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/customLocationsListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/customLocationsListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/customLocationsListByResourceGroupSample.js +0 -44
- package/dist-esm/samples-dev/customLocationsListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/customLocationsListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/customLocationsListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/customLocationsListBySubscriptionSample.js +0 -43
- package/dist-esm/samples-dev/customLocationsListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/customLocationsListEnabledResourceTypesSample.d.ts +0 -2
- package/dist-esm/samples-dev/customLocationsListEnabledResourceTypesSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/customLocationsListEnabledResourceTypesSample.js +0 -45
- package/dist-esm/samples-dev/customLocationsListEnabledResourceTypesSample.js.map +0 -1
- package/dist-esm/samples-dev/customLocationsListOperationsSample.d.ts +0 -2
- package/dist-esm/samples-dev/customLocationsListOperationsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/customLocationsListOperationsSample.js +0 -43
- package/dist-esm/samples-dev/customLocationsListOperationsSample.js.map +0 -1
- package/dist-esm/samples-dev/customLocationsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/customLocationsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/customLocationsUpdateSample.js +0 -34
- package/dist-esm/samples-dev/customLocationsUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/resourceSyncRulesCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/resourceSyncRulesCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/resourceSyncRulesCreateOrUpdateSample.js +0 -41
- package/dist-esm/samples-dev/resourceSyncRulesCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/resourceSyncRulesDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/resourceSyncRulesDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/resourceSyncRulesDeleteSample.js +0 -32
- package/dist-esm/samples-dev/resourceSyncRulesDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/resourceSyncRulesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/resourceSyncRulesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/resourceSyncRulesGetSample.js +0 -32
- package/dist-esm/samples-dev/resourceSyncRulesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/resourceSyncRulesListByCustomLocationIdSample.d.ts +0 -2
- package/dist-esm/samples-dev/resourceSyncRulesListByCustomLocationIdSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/resourceSyncRulesListByCustomLocationIdSample.js +0 -45
- package/dist-esm/samples-dev/resourceSyncRulesListByCustomLocationIdSample.js.map +0 -1
- package/dist-esm/samples-dev/resourceSyncRulesUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/resourceSyncRulesUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/resourceSyncRulesUpdateSample.js +0 -34
- package/dist-esm/samples-dev/resourceSyncRulesUpdateSample.js.map +0 -1
- package/dist-esm/src/customLocationsManagementClient.d.ts.map +0 -1
- package/dist-esm/src/customLocationsManagementClient.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.d.ts.map +0 -1
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/lroImpl.js.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/customLocations.d.ts.map +0 -1
- package/dist-esm/src/operations/customLocations.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -3
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/resourceSyncRules.d.ts.map +0 -1
- package/dist-esm/src/operations/resourceSyncRules.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/customLocations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/customLocations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/resourceSyncRules.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/resourceSyncRules.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/rollup.config.js +0 -122
- package/src/customLocationsManagementClient.ts +0 -136
- package/src/lroImpl.ts +0 -34
- package/src/models/index.ts +0 -606
- package/src/models/mappers.ts +0 -832
- package/src/models/parameters.ts +0 -225
- package/src/operations/customLocations.ts +0 -927
- package/src/operations/resourceSyncRules.ts +0 -562
- package/src/operationsInterfaces/customLocations.ts +0 -160
- package/src/operationsInterfaces/resourceSyncRules.ts +0 -136
- package/tsconfig.json +0 -33
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/customLocations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/resourceSyncRules.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resourceSyncRules.js","sourceRoot":"","sources":["../../../src/operations/resourceSyncRules.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAgBxC,4CAA4C;AAC5C,qDAAqD;AACrD,MAAa,qBAAqB;IACf,MAAM,CAAkC;IAEzD;;;OAGG;IACH,YAAY,MAAuC;QACjD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,sBAAsB,CAC3B,iBAAyB,EACzB,YAAoB,EACpB,OAA+D;QAE/D,MAAM,IAAI,GAAG,IAAI,CAAC,+BAA+B,CAC/C,iBAAiB,EACjB,YAAY,EACZ,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACr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,CAAC,SAAS,EAAE,UAAU,CAAC;YACjC,QAAQ,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;YACjC,mBAAmB,EAAE,CAAC,SAAS,EAAE,qBAAqB,CAAC;SACxD;QACD,MAAM,EAAE,EAAE,GAAG,OAAO,CAAC,yBAAyB,EAAE,QAAQ,EAAE,IAAI,EAAE;KACjE;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,uCAAuC,GAA6B;IACxE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ResourceSyncRules } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CustomLocationsManagementClient } from \"../customLocationsManagementClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n ResourceSyncRule,\n ResourceSyncRulesListByCustomLocationIDNextOptionalParams,\n ResourceSyncRulesListByCustomLocationIDOptionalParams,\n ResourceSyncRulesListByCustomLocationIDResponse,\n ResourceSyncRulesGetOptionalParams,\n ResourceSyncRulesGetResponse,\n ResourceSyncRulesCreateOrUpdateOptionalParams,\n ResourceSyncRulesCreateOrUpdateResponse,\n ResourceSyncRulesDeleteOptionalParams,\n ResourceSyncRulesUpdateOptionalParams,\n ResourceSyncRulesUpdateResponse,\n ResourceSyncRulesListByCustomLocationIDNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ResourceSyncRules operations. */\nexport class ResourceSyncRulesImpl implements ResourceSyncRules {\n private readonly client: CustomLocationsManagementClient;\n\n /**\n * Initialize a new instance of the class ResourceSyncRules class.\n * @param client Reference to the service client\n */\n constructor(client: CustomLocationsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets a list of Resource Sync Rules in the specified subscription. The operation returns properties\n * of each Resource Sync Rule\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName Custom Locations name.\n * @param options The options parameters.\n */\n public listByCustomLocationID(\n resourceGroupName: string,\n resourceName: string,\n options?: ResourceSyncRulesListByCustomLocationIDOptionalParams\n ): PagedAsyncIterableIterator<ResourceSyncRule> {\n const iter = this.listByCustomLocationIDPagingAll(\n resourceGroupName,\n resourceName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByCustomLocationIDPagingPage(\n resourceGroupName,\n resourceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByCustomLocationIDPagingPage(\n resourceGroupName: string,\n resourceName: string,\n options?: ResourceSyncRulesListByCustomLocationIDOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ResourceSyncRule[]> {\n let result: ResourceSyncRulesListByCustomLocationIDResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByCustomLocationID(\n resourceGroupName,\n resourceName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByCustomLocationIDNext(\n resourceGroupName,\n resourceName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByCustomLocationIDPagingAll(\n resourceGroupName: string,\n resourceName: string,\n options?: ResourceSyncRulesListByCustomLocationIDOptionalParams\n ): AsyncIterableIterator<ResourceSyncRule> {\n for await (const page of this.listByCustomLocationIDPagingPage(\n resourceGroupName,\n resourceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of Resource Sync Rules in the specified subscription. The operation returns properties\n * of each Resource Sync Rule\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName Custom Locations name.\n * @param options The options parameters.\n */\n private _listByCustomLocationID(\n resourceGroupName: string,\n resourceName: string,\n options?: ResourceSyncRulesListByCustomLocationIDOptionalParams\n ): Promise<ResourceSyncRulesListByCustomLocationIDResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listByCustomLocationIDOperationSpec\n );\n }\n\n /**\n * Gets the details of the resourceSyncRule with a specified resource group, subscription id Custom\n * Location resource name and Resource Sync Rule name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName Custom Locations name.\n * @param childResourceName Resource Sync Rule name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n options?: ResourceSyncRulesGetOptionalParams\n ): Promise<ResourceSyncRulesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, childResourceName, options },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource\n * Group\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName Custom Locations name.\n * @param childResourceName Resource Sync Rule name.\n * @param parameters Parameters supplied to create or update a Resource Sync Rule.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n parameters: ResourceSyncRule,\n options?: ResourceSyncRulesCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ResourceSyncRulesCreateOrUpdateResponse>,\n ResourceSyncRulesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ResourceSyncRulesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n {\n resourceGroupName,\n resourceName,\n childResourceName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates or updates a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource\n * Group\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName Custom Locations name.\n * @param childResourceName Resource Sync Rule name.\n * @param parameters Parameters supplied to create or update a Resource Sync Rule.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n parameters: ResourceSyncRule,\n options?: ResourceSyncRulesCreateOrUpdateOptionalParams\n ): Promise<ResourceSyncRulesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n resourceName,\n childResourceName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes the Resource Sync Rule with the specified Resource Sync Rule Name, Custom Location Resource\n * Name, Resource Group, and Subscription Id.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName Custom Locations name.\n * @param childResourceName Resource Sync Rule name.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n options?: ResourceSyncRulesDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, childResourceName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource\n * Group, Subscription and Custom Location name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName Custom Locations name.\n * @param childResourceName Resource Sync Rule name.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n options?: ResourceSyncRulesUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ResourceSyncRulesUpdateResponse>,\n ResourceSyncRulesUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ResourceSyncRulesUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, resourceName, childResourceName, options },\n updateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource\n * Group, Subscription and Custom Location name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName Custom Locations name.\n * @param childResourceName Resource Sync Rule name.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n options?: ResourceSyncRulesUpdateOptionalParams\n ): Promise<ResourceSyncRulesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n resourceName,\n childResourceName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByCustomLocationIDNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName Custom Locations name.\n * @param nextLink The nextLink from the previous successful call to the ListByCustomLocationID method.\n * @param options The options parameters.\n */\n private _listByCustomLocationIDNext(\n resourceGroupName: string,\n resourceName: string,\n nextLink: string,\n options?: ResourceSyncRulesListByCustomLocationIDNextOptionalParams\n ): Promise<ResourceSyncRulesListByCustomLocationIDNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, nextLink, options },\n listByCustomLocationIDNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByCustomLocationIDOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceSyncRuleListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules/{childResourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceSyncRule\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.childResourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules/{childResourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceSyncRule\n },\n 201: {\n bodyMapper: Mappers.ResourceSyncRule\n },\n 202: {\n bodyMapper: Mappers.ResourceSyncRule\n },\n 204: {\n bodyMapper: Mappers.ResourceSyncRule\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.childResourceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules/{childResourceName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.childResourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules/{childResourceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceSyncRule\n },\n 201: {\n bodyMapper: Mappers.ResourceSyncRule\n },\n 202: {\n bodyMapper: Mappers.ResourceSyncRule\n },\n 204: {\n bodyMapper: Mappers.ResourceSyncRule\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: {\n parameterPath: {\n tags: [\"options\", \"tags\"],\n priority: [\"options\", \"priority\"],\n selector: [\"options\", \"selector\"],\n targetResourceGroup: [\"options\", \"targetResourceGroup\"]\n },\n mapper: { ...Mappers.PatchableResourceSyncRule, required: true }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.childResourceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByCustomLocationIDNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceSyncRuleListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
3
|
+
import { CustomLocationOperation, CustomLocationsListOperationsOptionalParams, CustomLocation, CustomLocationsListBySubscriptionOptionalParams, CustomLocationsListByResourceGroupOptionalParams, EnabledResourceType, CustomLocationsListEnabledResourceTypesOptionalParams, CustomLocationsGetOptionalParams, CustomLocationsGetResponse, CustomLocationsCreateOrUpdateOptionalParams, CustomLocationsCreateOrUpdateResponse, CustomLocationsDeleteOptionalParams, CustomLocationsUpdateOptionalParams, CustomLocationsUpdateResponse, CustomLocationFindTargetResourceGroupProperties, CustomLocationsFindTargetResourceGroupOptionalParams, CustomLocationsFindTargetResourceGroupResponse } from "../models/index.js";
|
|
4
|
+
/** Interface representing a CustomLocations. */
|
|
5
|
+
export interface CustomLocations {
|
|
6
|
+
/**
|
|
7
|
+
* Lists all available Custom Locations operations.
|
|
8
|
+
* @param options The options parameters.
|
|
9
|
+
*/
|
|
10
|
+
listOperations(options?: CustomLocationsListOperationsOptionalParams): PagedAsyncIterableIterator<CustomLocationOperation>;
|
|
11
|
+
/**
|
|
12
|
+
* Gets a list of Custom Locations in the specified subscription. The operation returns properties of
|
|
13
|
+
* each Custom Location
|
|
14
|
+
* @param options The options parameters.
|
|
15
|
+
*/
|
|
16
|
+
listBySubscription(options?: CustomLocationsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<CustomLocation>;
|
|
17
|
+
/**
|
|
18
|
+
* Gets a list of Custom Locations in the specified subscription and resource group. The operation
|
|
19
|
+
* returns properties of each Custom Location.
|
|
20
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
21
|
+
* @param options The options parameters.
|
|
22
|
+
*/
|
|
23
|
+
listByResourceGroup(resourceGroupName: string, options?: CustomLocationsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<CustomLocation>;
|
|
24
|
+
/**
|
|
25
|
+
* Gets the list of the Enabled Resource Types.
|
|
26
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
27
|
+
* @param resourceName Custom Locations name.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
listEnabledResourceTypes(resourceGroupName: string, resourceName: string, options?: CustomLocationsListEnabledResourceTypesOptionalParams): PagedAsyncIterableIterator<EnabledResourceType>;
|
|
31
|
+
/**
|
|
32
|
+
* Gets the details of the customLocation with a specified resource group and name.
|
|
33
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
34
|
+
* @param resourceName Custom Locations name.
|
|
35
|
+
* @param options The options parameters.
|
|
36
|
+
*/
|
|
37
|
+
get(resourceGroupName: string, resourceName: string, options?: CustomLocationsGetOptionalParams): Promise<CustomLocationsGetResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Creates or updates a Custom Location in the specified Subscription and Resource Group
|
|
40
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
41
|
+
* @param resourceName Custom Locations name.
|
|
42
|
+
* @param parameters Parameters supplied to create or update a Custom Location.
|
|
43
|
+
* @param options The options parameters.
|
|
44
|
+
*/
|
|
45
|
+
beginCreateOrUpdate(resourceGroupName: string, resourceName: string, parameters: CustomLocation, options?: CustomLocationsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<CustomLocationsCreateOrUpdateResponse>, CustomLocationsCreateOrUpdateResponse>>;
|
|
46
|
+
/**
|
|
47
|
+
* Creates or updates a Custom Location in the specified Subscription and Resource Group
|
|
48
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
49
|
+
* @param resourceName Custom Locations name.
|
|
50
|
+
* @param parameters Parameters supplied to create or update a Custom Location.
|
|
51
|
+
* @param options The options parameters.
|
|
52
|
+
*/
|
|
53
|
+
beginCreateOrUpdateAndWait(resourceGroupName: string, resourceName: string, parameters: CustomLocation, options?: CustomLocationsCreateOrUpdateOptionalParams): Promise<CustomLocationsCreateOrUpdateResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* Deletes the Custom Location with the specified Resource Name, Resource Group, and Subscription Id.
|
|
56
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
57
|
+
* @param resourceName Custom Locations name.
|
|
58
|
+
* @param options The options parameters.
|
|
59
|
+
*/
|
|
60
|
+
beginDelete(resourceGroupName: string, resourceName: string, options?: CustomLocationsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
61
|
+
/**
|
|
62
|
+
* Deletes the Custom Location with the specified Resource Name, Resource Group, and Subscription Id.
|
|
63
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
64
|
+
* @param resourceName Custom Locations name.
|
|
65
|
+
* @param options The options parameters.
|
|
66
|
+
*/
|
|
67
|
+
beginDeleteAndWait(resourceGroupName: string, resourceName: string, options?: CustomLocationsDeleteOptionalParams): Promise<void>;
|
|
68
|
+
/**
|
|
69
|
+
* Updates a Custom Location with the specified Resource Name in the specified Resource Group and
|
|
70
|
+
* Subscription.
|
|
71
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
72
|
+
* @param resourceName Custom Locations name.
|
|
73
|
+
* @param options The options parameters.
|
|
74
|
+
*/
|
|
75
|
+
update(resourceGroupName: string, resourceName: string, options?: CustomLocationsUpdateOptionalParams): Promise<CustomLocationsUpdateResponse>;
|
|
76
|
+
/**
|
|
77
|
+
* Returns the target resource group associated with the resource sync rules of the Custom Location
|
|
78
|
+
* that match the rules passed in with the Find Target Resource Group Request.
|
|
79
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
80
|
+
* @param resourceName Custom Locations name.
|
|
81
|
+
* @param parameters Parameters of the find target resource group request.
|
|
82
|
+
* @param options The options parameters.
|
|
83
|
+
*/
|
|
84
|
+
findTargetResourceGroup(resourceGroupName: string, resourceName: string, parameters: CustomLocationFindTargetResourceGroupProperties, options?: CustomLocationsFindTargetResourceGroupOptionalParams): Promise<CustomLocationsFindTargetResourceGroupResponse>;
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=customLocations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customLocations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/customLocations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,uBAAuB,EACvB,2CAA2C,EAC3C,cAAc,EACd,+CAA+C,EAC/C,gDAAgD,EAChD,mBAAmB,EACnB,qDAAqD,EACrD,gCAAgC,EAChC,0BAA0B,EAC1B,2CAA2C,EAC3C,qCAAqC,EACrC,mCAAmC,EACnC,mCAAmC,EACnC,6BAA6B,EAC7B,+CAA+C,EAC/C,oDAAoD,EACpD,8CAA8C,EAC/C,MAAM,oBAAoB,CAAC;AAG5B,gDAAgD;AAChD,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,cAAc,CACZ,OAAO,CAAC,EAAE,2CAA2C,GACpD,0BAA0B,CAAC,uBAAuB,CAAC,CAAC;IACvD;;;;OAI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C,GAC5C,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CAAC,6BAA6B,CAAC,CAAC;IAC1C;;;;;;;OAOG;IACH,uBAAuB,CACrB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,+CAA+C,EAC3D,OAAO,CAAC,EAAE,oDAAoD,GAC7D,OAAO,CAAC,8CAA8C,CAAC,CAAC;CAC5D"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
//# sourceMappingURL=customLocations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customLocations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/customLocations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { PollerLike, PollOperationState } from \"@azure/core-lro\";\nimport {\n CustomLocationOperation,\n CustomLocationsListOperationsOptionalParams,\n CustomLocation,\n CustomLocationsListBySubscriptionOptionalParams,\n CustomLocationsListByResourceGroupOptionalParams,\n EnabledResourceType,\n CustomLocationsListEnabledResourceTypesOptionalParams,\n CustomLocationsGetOptionalParams,\n CustomLocationsGetResponse,\n CustomLocationsCreateOrUpdateOptionalParams,\n CustomLocationsCreateOrUpdateResponse,\n CustomLocationsDeleteOptionalParams,\n CustomLocationsUpdateOptionalParams,\n CustomLocationsUpdateResponse,\n CustomLocationFindTargetResourceGroupProperties,\n CustomLocationsFindTargetResourceGroupOptionalParams,\n CustomLocationsFindTargetResourceGroupResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a CustomLocations. */\nexport interface CustomLocations {\n /**\n * Lists all available Custom Locations operations.\n * @param options The options parameters.\n */\n listOperations(\n options?: CustomLocationsListOperationsOptionalParams\n ): PagedAsyncIterableIterator<CustomLocationOperation>;\n /**\n * Gets a list of Custom Locations in the specified subscription. The operation returns properties of\n * each Custom Location\n * @param options The options parameters.\n */\n listBySubscription(\n options?: CustomLocationsListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<CustomLocation>;\n /**\n * Gets a list of Custom Locations in the specified subscription and resource group. The operation\n * returns properties of each Custom Location.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n options?: CustomLocationsListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<CustomLocation>;\n /**\n * Gets the list of the Enabled Resource Types.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName Custom Locations name.\n * @param options The options parameters.\n */\n listEnabledResourceTypes(\n resourceGroupName: string,\n resourceName: string,\n options?: CustomLocationsListEnabledResourceTypesOptionalParams\n ): PagedAsyncIterableIterator<EnabledResourceType>;\n /**\n * Gets the details of the customLocation with a specified resource group and name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName Custom Locations name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n options?: CustomLocationsGetOptionalParams\n ): Promise<CustomLocationsGetResponse>;\n /**\n * Creates or updates a Custom Location in the specified Subscription and Resource Group\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName Custom Locations name.\n * @param parameters Parameters supplied to create or update a Custom Location.\n * @param options The options parameters.\n */\n beginCreateOrUpdate(\n resourceGroupName: string,\n resourceName: string,\n parameters: CustomLocation,\n options?: CustomLocationsCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<CustomLocationsCreateOrUpdateResponse>,\n CustomLocationsCreateOrUpdateResponse\n >\n >;\n /**\n * Creates or updates a Custom Location in the specified Subscription and Resource Group\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName Custom Locations name.\n * @param parameters Parameters supplied to create or update a Custom Location.\n * @param options The options parameters.\n */\n beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n resourceName: string,\n parameters: CustomLocation,\n options?: CustomLocationsCreateOrUpdateOptionalParams\n ): Promise<CustomLocationsCreateOrUpdateResponse>;\n /**\n * Deletes the Custom Location with the specified Resource Name, Resource Group, and Subscription Id.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName Custom Locations name.\n * @param options The options parameters.\n */\n beginDelete(\n resourceGroupName: string,\n resourceName: string,\n options?: CustomLocationsDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>>;\n /**\n * Deletes the Custom Location with the specified Resource Name, Resource Group, and Subscription Id.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName Custom Locations name.\n * @param options The options parameters.\n */\n beginDeleteAndWait(\n resourceGroupName: string,\n resourceName: string,\n options?: CustomLocationsDeleteOptionalParams\n ): Promise<void>;\n /**\n * Updates a Custom Location with the specified Resource Name in the specified Resource Group and\n * Subscription.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName Custom Locations name.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n options?: CustomLocationsUpdateOptionalParams\n ): Promise<CustomLocationsUpdateResponse>;\n /**\n * Returns the target resource group associated with the resource sync rules of the Custom Location\n * that match the rules passed in with the Find Target Resource Group Request.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName Custom Locations name.\n * @param parameters Parameters of the find target resource group request.\n * @param options The options parameters.\n */\n findTargetResourceGroup(\n resourceGroupName: string,\n resourceName: string,\n parameters: CustomLocationFindTargetResourceGroupProperties,\n options?: CustomLocationsFindTargetResourceGroupOptionalParams\n ): Promise<CustomLocationsFindTargetResourceGroupResponse>;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
const tslib_1 = require("tslib");
|
|
11
|
+
tslib_1.__exportStar(require("./customLocations.js"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./resourceSyncRules.js"), exports);
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,+DAAqC;AACrC,iEAAuC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./customLocations.js\";\nexport * from \"./resourceSyncRules.js\";\n"]}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
3
|
+
import { ResourceSyncRule, ResourceSyncRulesListByCustomLocationIDOptionalParams, ResourceSyncRulesGetOptionalParams, ResourceSyncRulesGetResponse, ResourceSyncRulesCreateOrUpdateOptionalParams, ResourceSyncRulesCreateOrUpdateResponse, ResourceSyncRulesDeleteOptionalParams, ResourceSyncRulesUpdateOptionalParams, ResourceSyncRulesUpdateResponse } from "../models/index.js";
|
|
4
|
+
/** Interface representing a ResourceSyncRules. */
|
|
5
|
+
export interface ResourceSyncRules {
|
|
6
|
+
/**
|
|
7
|
+
* Gets a list of Resource Sync Rules in the specified subscription. The operation returns properties
|
|
8
|
+
* of each Resource Sync Rule
|
|
9
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
10
|
+
* @param resourceName Custom Locations name.
|
|
11
|
+
* @param options The options parameters.
|
|
12
|
+
*/
|
|
13
|
+
listByCustomLocationID(resourceGroupName: string, resourceName: string, options?: ResourceSyncRulesListByCustomLocationIDOptionalParams): PagedAsyncIterableIterator<ResourceSyncRule>;
|
|
14
|
+
/**
|
|
15
|
+
* Gets the details of the resourceSyncRule with a specified resource group, subscription id Custom
|
|
16
|
+
* Location resource name and Resource Sync Rule name.
|
|
17
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
18
|
+
* @param resourceName Custom Locations name.
|
|
19
|
+
* @param childResourceName Resource Sync Rule name.
|
|
20
|
+
* @param options The options parameters.
|
|
21
|
+
*/
|
|
22
|
+
get(resourceGroupName: string, resourceName: string, childResourceName: string, options?: ResourceSyncRulesGetOptionalParams): Promise<ResourceSyncRulesGetResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Creates or updates a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource
|
|
25
|
+
* Group
|
|
26
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
27
|
+
* @param resourceName Custom Locations name.
|
|
28
|
+
* @param childResourceName Resource Sync Rule name.
|
|
29
|
+
* @param parameters Parameters supplied to create or update a Resource Sync Rule.
|
|
30
|
+
* @param options The options parameters.
|
|
31
|
+
*/
|
|
32
|
+
beginCreateOrUpdate(resourceGroupName: string, resourceName: string, childResourceName: string, parameters: ResourceSyncRule, options?: ResourceSyncRulesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ResourceSyncRulesCreateOrUpdateResponse>, ResourceSyncRulesCreateOrUpdateResponse>>;
|
|
33
|
+
/**
|
|
34
|
+
* Creates or updates a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource
|
|
35
|
+
* Group
|
|
36
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
37
|
+
* @param resourceName Custom Locations name.
|
|
38
|
+
* @param childResourceName Resource Sync Rule name.
|
|
39
|
+
* @param parameters Parameters supplied to create or update a Resource Sync Rule.
|
|
40
|
+
* @param options The options parameters.
|
|
41
|
+
*/
|
|
42
|
+
beginCreateOrUpdateAndWait(resourceGroupName: string, resourceName: string, childResourceName: string, parameters: ResourceSyncRule, options?: ResourceSyncRulesCreateOrUpdateOptionalParams): Promise<ResourceSyncRulesCreateOrUpdateResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* Deletes the Resource Sync Rule with the specified Resource Sync Rule Name, Custom Location Resource
|
|
45
|
+
* Name, Resource Group, and Subscription Id.
|
|
46
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
47
|
+
* @param resourceName Custom Locations name.
|
|
48
|
+
* @param childResourceName Resource Sync Rule name.
|
|
49
|
+
* @param options The options parameters.
|
|
50
|
+
*/
|
|
51
|
+
delete(resourceGroupName: string, resourceName: string, childResourceName: string, options?: ResourceSyncRulesDeleteOptionalParams): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource
|
|
54
|
+
* Group, Subscription and Custom Location name.
|
|
55
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
56
|
+
* @param resourceName Custom Locations name.
|
|
57
|
+
* @param childResourceName Resource Sync Rule name.
|
|
58
|
+
* @param options The options parameters.
|
|
59
|
+
*/
|
|
60
|
+
beginUpdate(resourceGroupName: string, resourceName: string, childResourceName: string, options?: ResourceSyncRulesUpdateOptionalParams): Promise<PollerLike<PollOperationState<ResourceSyncRulesUpdateResponse>, ResourceSyncRulesUpdateResponse>>;
|
|
61
|
+
/**
|
|
62
|
+
* Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource
|
|
63
|
+
* Group, Subscription and Custom Location name.
|
|
64
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
65
|
+
* @param resourceName Custom Locations name.
|
|
66
|
+
* @param childResourceName Resource Sync Rule name.
|
|
67
|
+
* @param options The options parameters.
|
|
68
|
+
*/
|
|
69
|
+
beginUpdateAndWait(resourceGroupName: string, resourceName: string, childResourceName: string, options?: ResourceSyncRulesUpdateOptionalParams): Promise<ResourceSyncRulesUpdateResponse>;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=resourceSyncRules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resourceSyncRules.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/resourceSyncRules.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,gBAAgB,EAChB,qDAAqD,EACrD,kCAAkC,EAClC,4BAA4B,EAC5B,6CAA6C,EAC7C,uCAAuC,EACvC,qCAAqC,EACrC,qCAAqC,EACrC,+BAA+B,EAChC,MAAM,oBAAoB,CAAC;AAG5B,kDAAkD;AAClD,MAAM,WAAW,iBAAiB;IAChC;;;;;;OAMG;IACH,sBAAsB,CACpB,iBAAiB,EAAE,MAAM,EAC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B,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC,CAAC;CAC7C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
//# sourceMappingURL=resourceSyncRules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resourceSyncRules.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/resourceSyncRules.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { PollerLike, PollOperationState } from \"@azure/core-lro\";\nimport {\n ResourceSyncRule,\n ResourceSyncRulesListByCustomLocationIDOptionalParams,\n ResourceSyncRulesGetOptionalParams,\n ResourceSyncRulesGetResponse,\n ResourceSyncRulesCreateOrUpdateOptionalParams,\n ResourceSyncRulesCreateOrUpdateResponse,\n ResourceSyncRulesDeleteOptionalParams,\n ResourceSyncRulesUpdateOptionalParams,\n ResourceSyncRulesUpdateResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a ResourceSyncRules. */\nexport interface ResourceSyncRules {\n /**\n * Gets a list of Resource Sync Rules in the specified subscription. The operation returns properties\n * of each Resource Sync Rule\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName Custom Locations name.\n * @param options The options parameters.\n */\n listByCustomLocationID(\n resourceGroupName: string,\n resourceName: string,\n options?: ResourceSyncRulesListByCustomLocationIDOptionalParams\n ): PagedAsyncIterableIterator<ResourceSyncRule>;\n /**\n * Gets the details of the resourceSyncRule with a specified resource group, subscription id Custom\n * Location resource name and Resource Sync Rule name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName Custom Locations name.\n * @param childResourceName Resource Sync Rule name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n options?: ResourceSyncRulesGetOptionalParams\n ): Promise<ResourceSyncRulesGetResponse>;\n /**\n * Creates or updates a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource\n * Group\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName Custom Locations name.\n * @param childResourceName Resource Sync Rule name.\n * @param parameters Parameters supplied to create or update a Resource Sync Rule.\n * @param options The options parameters.\n */\n beginCreateOrUpdate(\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n parameters: ResourceSyncRule,\n options?: ResourceSyncRulesCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ResourceSyncRulesCreateOrUpdateResponse>,\n ResourceSyncRulesCreateOrUpdateResponse\n >\n >;\n /**\n * Creates or updates a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource\n * Group\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName Custom Locations name.\n * @param childResourceName Resource Sync Rule name.\n * @param parameters Parameters supplied to create or update a Resource Sync Rule.\n * @param options The options parameters.\n */\n beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n parameters: ResourceSyncRule,\n options?: ResourceSyncRulesCreateOrUpdateOptionalParams\n ): Promise<ResourceSyncRulesCreateOrUpdateResponse>;\n /**\n * Deletes the Resource Sync Rule with the specified Resource Sync Rule Name, Custom Location Resource\n * Name, Resource Group, and Subscription Id.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName Custom Locations name.\n * @param childResourceName Resource Sync Rule name.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n options?: ResourceSyncRulesDeleteOptionalParams\n ): Promise<void>;\n /**\n * Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource\n * Group, Subscription and Custom Location name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName Custom Locations name.\n * @param childResourceName Resource Sync Rule name.\n * @param options The options parameters.\n */\n beginUpdate(\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n options?: ResourceSyncRulesUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ResourceSyncRulesUpdateResponse>,\n ResourceSyncRulesUpdateResponse\n >\n >;\n /**\n * Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource\n * Group, Subscription and Custom Location name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName Custom Locations name.\n * @param childResourceName Resource Sync Rule name.\n * @param options The options parameters.\n */\n beginUpdateAndWait(\n resourceGroupName: string,\n resourceName: string,\n childResourceName: string,\n options?: ResourceSyncRulesUpdateOptionalParams\n ): Promise<ResourceSyncRulesUpdateResponse>;\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface PageInfo {
|
|
2
|
+
continuationToken?: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
6
|
+
* returns a continuation token that can be used to begin paging from
|
|
7
|
+
* that point later.
|
|
8
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
9
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
10
|
+
*/
|
|
11
|
+
export declare function getContinuationToken(page: unknown): string | undefined;
|
|
12
|
+
export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
|
|
13
|
+
//# sourceMappingURL=pagingHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.getContinuationToken = getContinuationToken;
|
|
11
|
+
exports.setContinuationToken = setContinuationToken;
|
|
12
|
+
const pageMap = new WeakMap();
|
|
13
|
+
/**
|
|
14
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
15
|
+
* returns a continuation token that can be used to begin paging from
|
|
16
|
+
* that point later.
|
|
17
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
18
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
19
|
+
*/
|
|
20
|
+
function getContinuationToken(page) {
|
|
21
|
+
if (typeof page !== "object" || page === null) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
return pageMap.get(page)?.continuationToken;
|
|
25
|
+
}
|
|
26
|
+
function setContinuationToken(page, continuationToken) {
|
|
27
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
31
|
+
pageInfo.continuationToken = continuationToken;
|
|
32
|
+
pageMap.set(page, pageInfo);
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=pagingHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,SAAgB,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
-
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
-
{
|
|
4
|
-
"tsdocVersion": "0.12",
|
|
5
|
-
"toolPackages": [
|
|
6
|
-
{
|
|
7
|
-
"packageName": "@microsoft/api-extractor",
|
|
8
|
-
"packageVersion": "7.
|
|
9
|
-
}
|
|
10
|
-
]
|
|
11
|
-
}
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "7.52.10"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
2
|
+
import * as coreAuth from "@azure/core-auth";
|
|
3
|
+
import { CustomLocations, ResourceSyncRules } from "./operationsInterfaces/index.js";
|
|
4
|
+
import { CustomLocationsManagementClientOptionalParams } from "./models/index.js";
|
|
5
|
+
export declare class CustomLocationsManagementClient extends coreClient.ServiceClient {
|
|
6
|
+
$host: string;
|
|
7
|
+
apiVersion: string;
|
|
8
|
+
subscriptionId: string;
|
|
9
|
+
/**
|
|
10
|
+
* Initializes a new instance of the CustomLocationsManagementClient class.
|
|
11
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
12
|
+
* @param subscriptionId The ID of the target subscription.
|
|
13
|
+
* @param options The parameter options
|
|
14
|
+
*/
|
|
15
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: CustomLocationsManagementClientOptionalParams);
|
|
16
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
17
|
+
private addCustomApiVersionPolicy;
|
|
18
|
+
customLocations: CustomLocations;
|
|
19
|
+
resourceSyncRules: ResourceSyncRules;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=customLocationsManagementClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customLocationsManagementClient.d.ts","sourceRoot":"","sources":["../../src/customLocationsManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACrF,OAAO,EAAE,6CAA6C,EAAE,MAAM,mBAAmB,CAAC;AAElF,qBAAa,+BAAgC,SAAQ,UAAU,CAAC,aAAa;IAC3E,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,6CAA6C;IA6EzD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,eAAe,EAAE,eAAe,CAAC;IACjC,iBAAiB,EAAE,iBAAiB,CAAC;CACtC"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import * as coreClient from "@azure/core-client";
|
|
9
|
+
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
|
+
import { CustomLocationsImpl, ResourceSyncRulesImpl } from "./operations/index.js";
|
|
11
|
+
export class CustomLocationsManagementClient extends coreClient.ServiceClient {
|
|
12
|
+
$host;
|
|
13
|
+
apiVersion;
|
|
14
|
+
subscriptionId;
|
|
15
|
+
/**
|
|
16
|
+
* Initializes a new instance of the CustomLocationsManagementClient class.
|
|
17
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
18
|
+
* @param subscriptionId The ID of the target subscription.
|
|
19
|
+
* @param options The parameter options
|
|
20
|
+
*/
|
|
21
|
+
constructor(credentials, subscriptionId, options) {
|
|
22
|
+
if (credentials === undefined) {
|
|
23
|
+
throw new Error("'credentials' cannot be null");
|
|
24
|
+
}
|
|
25
|
+
if (subscriptionId === undefined) {
|
|
26
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
27
|
+
}
|
|
28
|
+
// Initializing default values for options
|
|
29
|
+
if (!options) {
|
|
30
|
+
options = {};
|
|
31
|
+
}
|
|
32
|
+
const defaults = {
|
|
33
|
+
requestContentType: "application/json; charset=utf-8",
|
|
34
|
+
credential: credentials
|
|
35
|
+
};
|
|
36
|
+
const packageDetails = `azsdk-js-arm-extendedlocation/1.0.0-beta.4`;
|
|
37
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
38
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
39
|
+
: `${packageDetails}`;
|
|
40
|
+
const optionsWithDefaults = {
|
|
41
|
+
...defaults,
|
|
42
|
+
...options,
|
|
43
|
+
userAgentOptions: {
|
|
44
|
+
userAgentPrefix
|
|
45
|
+
},
|
|
46
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
47
|
+
};
|
|
48
|
+
super(optionsWithDefaults);
|
|
49
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
50
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
51
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
52
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
53
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
54
|
+
}
|
|
55
|
+
if (!options ||
|
|
56
|
+
!options.pipeline ||
|
|
57
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
58
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
59
|
+
this.pipeline.removePolicy({
|
|
60
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
61
|
+
});
|
|
62
|
+
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
63
|
+
credential: credentials,
|
|
64
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
65
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
66
|
+
challengeCallbacks: {
|
|
67
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
68
|
+
}
|
|
69
|
+
}));
|
|
70
|
+
}
|
|
71
|
+
// Parameter assignments
|
|
72
|
+
this.subscriptionId = subscriptionId;
|
|
73
|
+
// Assigning values to Constant parameters
|
|
74
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
75
|
+
this.apiVersion = options.apiVersion || "2021-08-31-preview";
|
|
76
|
+
this.customLocations = new CustomLocationsImpl(this);
|
|
77
|
+
this.resourceSyncRules = new ResourceSyncRulesImpl(this);
|
|
78
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
79
|
+
}
|
|
80
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
81
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
82
|
+
if (!apiVersion) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
const apiVersionPolicy = {
|
|
86
|
+
name: "CustomApiVersionPolicy",
|
|
87
|
+
async sendRequest(request, next) {
|
|
88
|
+
const param = request.url.split("?");
|
|
89
|
+
if (param.length > 1) {
|
|
90
|
+
const newParams = param[1].split("&").map((item) => {
|
|
91
|
+
if (item.indexOf("api-version") > -1) {
|
|
92
|
+
return "api-version=" + apiVersion;
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
return item;
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
99
|
+
}
|
|
100
|
+
return next(request);
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
104
|
+
}
|
|
105
|
+
customLocations;
|
|
106
|
+
resourceSyncRules;
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=customLocationsManagementClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customLocationsManagementClient.js","sourceRoot":"","sources":["../../src/customLocationsManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAInF,MAAM,OAAO,+BAAgC,SAAQ,UAAU,CAAC,aAAa;IAC3E,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAuD;QAEvD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IA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AG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,eAAe,CAAkB;IACjC,iBAAiB,CAAoB;CACtC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { CustomLocationsImpl, ResourceSyncRulesImpl } from \"./operations/index.js\";\nimport { CustomLocations, ResourceSyncRules } from \"./operationsInterfaces/index.js\";\nimport { CustomLocationsManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class CustomLocationsManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the CustomLocationsManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: CustomLocationsManagementClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: CustomLocationsManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-extendedlocation/1.0.0-beta.4`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2021-08-31-preview\";\n this.customLocations = new CustomLocationsImpl(this);\n this.resourceSyncRules = new ResourceSyncRulesImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n customLocations: CustomLocations;\n resourceSyncRules: ResourceSyncRules;\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { getContinuationToken } from "./pagingHelper.js";
|
|
2
|
+
export * from "./models/index.js";
|
|
3
|
+
export { CustomLocationsManagementClient } from "./customLocationsManagementClient.js";
|
|
4
|
+
export * from "./operationsInterfaces/index.js";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,cAAc,iCAAiC,CAAC"}
|
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
8
|
/// <reference lib="esnext.asynciterable" />
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
9
|
+
export { getContinuationToken } from "./pagingHelper.js";
|
|
10
|
+
export * from "./models/index.js";
|
|
11
|
+
export { CustomLocationsManagementClient } from "./customLocationsManagementClient.js";
|
|
12
|
+
export * from "./operationsInterfaces/index.js";
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,cAAc,iCAAiC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { CustomLocationsManagementClient } from \"./customLocationsManagementClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
|