@azure/arm-resourceconnector 1.0.0 → 2.0.0-alpha.20260116.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +3 -3
- package/README.md +29 -23
- package/dist/browser/api/appliances/index.d.ts +3 -0
- package/dist/browser/api/appliances/index.js +4 -0
- package/dist/browser/api/appliances/index.js.map +1 -0
- package/dist/browser/api/appliances/operations.d.ts +56 -0
- package/dist/browser/api/appliances/operations.js +321 -0
- package/dist/browser/api/appliances/operations.js.map +1 -0
- package/dist/browser/api/appliances/options.d.ts +43 -0
- package/dist/browser/api/appliances/options.js +4 -0
- package/dist/browser/api/appliances/options.js.map +1 -0
- package/dist/browser/api/index.d.ts +2 -0
- package/dist/browser/api/index.js +4 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/resourceConnectorManagementContext.d.ts +22 -0
- package/dist/browser/api/resourceConnectorManagementContext.js +37 -0
- package/dist/browser/api/resourceConnectorManagementContext.js.map +1 -0
- package/dist/browser/classic/appliances/index.d.ts +37 -0
- package/dist/browser/classic/appliances/index.js +24 -0
- package/dist/browser/classic/appliances/index.js.map +1 -0
- package/dist/browser/classic/index.d.ts +2 -0
- package/dist/browser/classic/index.js +4 -0
- package/dist/browser/classic/index.js.map +1 -0
- package/dist/browser/index.d.ts +11 -0
- package/dist/browser/index.js +8 -0
- package/dist/browser/index.js.map +1 -0
- 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 -0
- package/dist/browser/models/index.js +4 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/models.d.ts +651 -0
- package/dist/browser/models/models.js +600 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/resourceConnectorManagementClient.d.ts +15 -0
- package/dist/browser/resourceConnectorManagementClient.js +33 -0
- package/dist/browser/resourceConnectorManagementClient.js.map +1 -0
- package/dist/browser/restorePollerHelpers.d.ts +21 -0
- package/dist/browser/restorePollerHelpers.js +89 -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 +73 -0
- package/dist/browser/static-helpers/pagingHelpers.js +121 -0
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/browser/static-helpers/pollingHelpers.js +79 -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/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/appliances/index.d.ts +3 -0
- package/dist/commonjs/api/appliances/index.js +18 -0
- package/dist/commonjs/api/appliances/index.js.map +1 -0
- package/dist/commonjs/api/appliances/operations.d.ts +56 -0
- package/dist/commonjs/api/appliances/operations.js +356 -0
- package/dist/commonjs/api/appliances/operations.js.map +1 -0
- package/dist/commonjs/api/appliances/options.d.ts +43 -0
- package/dist/commonjs/api/appliances/options.js +5 -0
- package/dist/commonjs/api/appliances/options.js.map +1 -0
- package/dist/commonjs/api/index.d.ts +2 -0
- package/dist/commonjs/api/index.js +8 -0
- package/dist/commonjs/api/index.js.map +1 -0
- package/dist/commonjs/api/resourceConnectorManagementContext.d.ts +22 -0
- package/dist/commonjs/api/resourceConnectorManagementContext.js +40 -0
- package/dist/commonjs/api/resourceConnectorManagementContext.js.map +1 -0
- package/dist/commonjs/classic/appliances/index.d.ts +37 -0
- package/dist/commonjs/classic/appliances/index.js +27 -0
- package/dist/commonjs/classic/appliances/index.js.map +1 -0
- package/dist/commonjs/classic/index.d.ts +2 -0
- package/dist/commonjs/classic/index.js +5 -0
- package/dist/commonjs/classic/index.js.map +1 -0
- package/dist/commonjs/index.d.ts +11 -0
- package/dist/commonjs/index.js +22 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.js +8 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +2 -0
- package/dist/commonjs/models/index.js +16 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/models.d.ts +651 -0
- package/dist/commonjs/models/models.js +659 -0
- package/dist/commonjs/models/models.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/resourceConnectorManagementClient.d.ts +15 -0
- package/dist/commonjs/resourceConnectorManagementClient.js +37 -0
- package/dist/commonjs/resourceConnectorManagementClient.js.map +1 -0
- package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
- package/dist/commonjs/restorePollerHelpers.js +92 -0
- package/dist/commonjs/restorePollerHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js +42 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +73 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +124 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js +82 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
- package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js +20 -0
- package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js.map +1 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +203 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
- package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
- package/dist/esm/api/appliances/index.d.ts +3 -0
- package/dist/esm/api/appliances/index.js +4 -0
- package/dist/esm/api/appliances/index.js.map +1 -0
- package/dist/esm/api/appliances/operations.d.ts +56 -0
- package/dist/esm/api/appliances/operations.js +321 -0
- package/dist/esm/api/appliances/operations.js.map +1 -0
- package/dist/esm/api/appliances/options.d.ts +43 -0
- package/dist/esm/api/appliances/options.js +4 -0
- package/dist/esm/api/appliances/options.js.map +1 -0
- package/dist/esm/api/index.d.ts +2 -0
- package/dist/esm/api/index.js +4 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/resourceConnectorManagementContext.d.ts +22 -0
- package/dist/esm/api/resourceConnectorManagementContext.js +37 -0
- package/dist/esm/api/resourceConnectorManagementContext.js.map +1 -0
- package/dist/esm/classic/appliances/index.d.ts +37 -0
- package/dist/esm/classic/appliances/index.js +24 -0
- package/dist/esm/classic/appliances/index.js.map +1 -0
- package/dist/esm/classic/index.d.ts +2 -0
- package/dist/esm/classic/index.js +4 -0
- package/dist/esm/classic/index.js.map +1 -0
- package/dist/esm/index.d.ts +11 -0
- package/dist/esm/index.js +8 -0
- package/dist/esm/index.js.map +1 -0
- 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 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/models.d.ts +651 -0
- package/dist/esm/models/models.js +600 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/resourceConnectorManagementClient.d.ts +15 -0
- package/dist/esm/resourceConnectorManagementClient.js +33 -0
- package/dist/esm/resourceConnectorManagementClient.js.map +1 -0
- package/dist/esm/restorePollerHelpers.d.ts +21 -0
- package/dist/esm/restorePollerHelpers.js +89 -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 +73 -0
- package/dist/esm/static-helpers/pagingHelpers.js +121 -0
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/esm/static-helpers/pollingHelpers.js +79 -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/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/dist/react-native/api/appliances/index.d.ts +3 -0
- package/dist/react-native/api/appliances/index.js +4 -0
- package/dist/react-native/api/appliances/index.js.map +1 -0
- package/dist/react-native/api/appliances/operations.d.ts +56 -0
- package/dist/react-native/api/appliances/operations.js +321 -0
- package/dist/react-native/api/appliances/operations.js.map +1 -0
- package/dist/react-native/api/appliances/options.d.ts +43 -0
- package/dist/react-native/api/appliances/options.js +4 -0
- package/dist/react-native/api/appliances/options.js.map +1 -0
- package/dist/react-native/api/index.d.ts +2 -0
- package/dist/react-native/api/index.js +4 -0
- package/dist/react-native/api/index.js.map +1 -0
- package/dist/react-native/api/resourceConnectorManagementContext.d.ts +22 -0
- package/dist/react-native/api/resourceConnectorManagementContext.js +37 -0
- package/dist/react-native/api/resourceConnectorManagementContext.js.map +1 -0
- package/dist/react-native/classic/appliances/index.d.ts +37 -0
- package/dist/react-native/classic/appliances/index.js +24 -0
- package/dist/react-native/classic/appliances/index.js.map +1 -0
- package/dist/react-native/classic/index.d.ts +2 -0
- package/dist/react-native/classic/index.js +4 -0
- package/dist/react-native/classic/index.js.map +1 -0
- package/dist/react-native/index.d.ts +11 -0
- package/dist/react-native/index.js +8 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/logger.d.ts +2 -0
- package/dist/react-native/logger.js +5 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/models/index.d.ts +2 -0
- package/dist/react-native/models/index.js +4 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/models.d.ts +651 -0
- package/dist/react-native/models/models.js +600 -0
- package/dist/react-native/models/models.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/resourceConnectorManagementClient.d.ts +15 -0
- package/dist/react-native/resourceConnectorManagementClient.js +33 -0
- package/dist/react-native/resourceConnectorManagementClient.js.map +1 -0
- package/dist/react-native/restorePollerHelpers.d.ts +21 -0
- package/dist/react-native/restorePollerHelpers.js +89 -0
- package/dist/react-native/restorePollerHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/react-native/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/react-native/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/pagingHelpers.d.ts +73 -0
- package/dist/react-native/static-helpers/pagingHelpers.js +121 -0
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/react-native/static-helpers/pollingHelpers.js +79 -0
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
- package/dist/react-native/static-helpers/serialization/check-prop-undefined.js +17 -0
- package/dist/react-native/static-helpers/serialization/check-prop-undefined.js.map +1 -0
- package/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/react-native/static-helpers/urlTemplate.js +200 -0
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
- package/package.json +166 -92
- package/CHANGELOG.md +0 -5
- package/dist/index.js +0 -1958
- 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/appliancesCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/appliancesCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/appliancesCreateOrUpdateSample.js +0 -44
- package/dist-esm/samples-dev/appliancesCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/appliancesDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/appliancesDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/appliancesDeleteSample.js +0 -39
- package/dist-esm/samples-dev/appliancesDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/appliancesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/appliancesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/appliancesGetSample.js +0 -39
- package/dist-esm/samples-dev/appliancesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/appliancesGetTelemetryConfigSample.d.ts +0 -2
- package/dist-esm/samples-dev/appliancesGetTelemetryConfigSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/appliancesGetTelemetryConfigSample.js +0 -37
- package/dist-esm/samples-dev/appliancesGetTelemetryConfigSample.js.map +0 -1
- package/dist-esm/samples-dev/appliancesGetUpgradeGraphSample.d.ts +0 -2
- package/dist-esm/samples-dev/appliancesGetUpgradeGraphSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/appliancesGetUpgradeGraphSample.js +0 -40
- package/dist-esm/samples-dev/appliancesGetUpgradeGraphSample.js.map +0 -1
- package/dist-esm/samples-dev/appliancesListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/appliancesListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/appliancesListByResourceGroupSample.js +0 -59
- package/dist-esm/samples-dev/appliancesListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/appliancesListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/appliancesListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/appliancesListBySubscriptionSample.js +0 -58
- package/dist-esm/samples-dev/appliancesListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/appliancesListClusterUserCredentialSample.d.ts +0 -2
- package/dist-esm/samples-dev/appliancesListClusterUserCredentialSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/appliancesListClusterUserCredentialSample.js +0 -39
- package/dist-esm/samples-dev/appliancesListClusterUserCredentialSample.js.map +0 -1
- package/dist-esm/samples-dev/appliancesListKeysSample.d.ts +0 -2
- package/dist-esm/samples-dev/appliancesListKeysSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/appliancesListKeysSample.js +0 -39
- package/dist-esm/samples-dev/appliancesListKeysSample.js.map +0 -1
- package/dist-esm/samples-dev/appliancesListOperationsSample.d.ts +0 -2
- package/dist-esm/samples-dev/appliancesListOperationsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/appliancesListOperationsSample.js +0 -56
- package/dist-esm/samples-dev/appliancesListOperationsSample.js.map +0 -1
- package/dist-esm/samples-dev/appliancesUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/appliancesUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/appliancesUpdateSample.js +0 -41
- package/dist-esm/samples-dev/appliancesUpdateSample.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -6
- package/dist-esm/src/index.d.ts.map +0 -1
- package/dist-esm/src/index.js +0 -13
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/lroImpl.d.ts +0 -11
- package/dist-esm/src/lroImpl.d.ts.map +0 -1
- package/dist-esm/src/lroImpl.js +0 -21
- package/dist-esm/src/lroImpl.js.map +0 -1
- package/dist-esm/src/models/index.d.ts +0 -715
- package/dist-esm/src/models/index.d.ts.map +0 -1
- package/dist-esm/src/models/index.js +0 -132
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.d.ts +0 -28
- package/dist-esm/src/models/mappers.d.ts.map +0 -1
- package/dist-esm/src/models/mappers.js +0 -771
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.d.ts +0 -13
- package/dist-esm/src/models/parameters.d.ts.map +0 -1
- package/dist-esm/src/models/parameters.js +0 -124
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/appliances.d.ts +0 -149
- package/dist-esm/src/operations/appliances.d.ts.map +0 -1
- package/dist-esm/src/operations/appliances.js +0 -734
- package/dist-esm/src/operations/appliances.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -2
- package/dist-esm/src/operations/index.d.ts.map +0 -1
- package/dist-esm/src/operations/index.js +0 -9
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/appliances.d.ts +0 -98
- package/dist-esm/src/operationsInterfaces/appliances.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/appliances.js +0 -9
- package/dist-esm/src/operationsInterfaces/appliances.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -2
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.js +0 -9
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/pagingHelper.d.ts +0 -13
- package/dist-esm/src/pagingHelper.d.ts.map +0 -1
- package/dist-esm/src/pagingHelper.js +0 -32
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/src/resourceConnectorManagementClient.d.ts +0 -21
- package/dist-esm/src/resourceConnectorManagementClient.d.ts.map +0 -1
- package/dist-esm/src/resourceConnectorManagementClient.js +0 -98
- package/dist-esm/src/resourceConnectorManagementClient.js.map +0 -1
- package/dist-esm/test/resourceconnnector__operations_test.spec.d.ts +0 -4
- package/dist-esm/test/resourceconnnector__operations_test.spec.d.ts.map +0 -1
- package/dist-esm/test/resourceconnnector__operations_test.spec.js +0 -123
- package/dist-esm/test/resourceconnnector__operations_test.spec.js.map +0 -1
- package/review/arm-resourceconnector.api.md +0 -448
- package/rollup.config.js +0 -122
- package/src/index.ts +0 -13
- package/src/lroImpl.ts +0 -42
- package/src/models/index.ts +0 -786
- package/src/models/mappers.ts +0 -811
- package/src/models/parameters.ts +0 -145
- package/src/operations/appliances.ts +0 -916
- package/src/operations/index.ts +0 -9
- package/src/operationsInterfaces/appliances.ts +0 -181
- package/src/operationsInterfaces/index.ts +0 -9
- package/src/pagingHelper.ts +0 -39
- package/src/resourceConnectorManagementClient.ts +0 -156
- package/tsconfig.json +0 -33
- package/types/arm-resourceconnector.d.ts +0 -911
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAgClC,kDAeC;AAED,sDAiBC;AAsBD,sEAYC;AAED,0EAeC;AAuBD,8GAIC;AAED,kHAMC;AAuKD,wDAIC;AAkBD,8CASC;AAYD,4DAYC;AAED,gEAYC;AAQD,oEAEC;AAED,wEAIC;AAQD,gEAEC;AAED,oEAIC;AAQD,wEAEC;AAED,4EAIC;AAYD,gDAEC;AAED,oDAMC;AA4BD,8DAEC;AAED,kEAaC;AAcD,gDAEC;AAED,oDASC;AAkBD,wDAWC;AAgCD,8DAIC;AAgBD,0DAUC;AAED,oEAIC;AAED,oFAIC;AAUD,0EAKC;AAQD,oEAEC;AAUD,4EAKC;AAED,4DAIC;AAED,gEAIC;AAUD,gGAWC;AAcD,gFAOC;AAED,wGAMC;AAUD,8FAOC;AA8BD,oFAUC;AAED,8EAQC;A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AS;IAC9D,OAAO;QACL,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC;QAChC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC;QAC5B,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { areAllPropsUndefined } from \"../static-helpers/serialization/check-prop-undefined.js\";\n\n/**\n * This file contains only generated model types and their (de)serializers.\n * Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.\n */\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/** Appliances definition. */\nexport interface Appliance extends TrackedResource {\n /** Identity for the resource. */\n identity?: Identity;\n /** Represents a supported Fabric/Infra. (AKSEdge etc...). */\n distro?: Distro;\n /** Contains infrastructure information about the Appliance */\n infrastructureConfig?: AppliancePropertiesInfrastructureConfig;\n /** The current deployment or provisioning state, which only appears in the response. */\n readonly provisioningState?: string;\n /** Certificates pair used to download MSI certificate from HIS. Can only be set once. */\n publicKey?: string;\n /** Appliance’s health and state of connection to on-prem. This list of values is not exhaustive. */\n readonly status?: Status;\n /** Version of the Appliance */\n version?: string;\n /** A list of events that occurred on the Appliance to relay information to the user. */\n readonly events?: Event[];\n /** Contains network information about the Appliance */\n networkProfile?: NetworkProfile;\n}\n\nexport function applianceSerializer(item: Appliance): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n properties: areAllPropsUndefined(item, [\n \"distro\",\n \"infrastructureConfig\",\n \"publicKey\",\n \"version\",\n \"networkProfile\",\n ])\n ? undefined\n : _appliancePropertiesSerializer(item),\n identity: !item[\"identity\"] ? item[\"identity\"] : identitySerializer(item[\"identity\"]),\n };\n}\n\nexport function applianceDeserializer(item: any): Appliance {\n return {\n tags: !item[\"tags\"]\n ? item[\"tags\"]\n : Object.fromEntries(Object.entries(item[\"tags\"]).map(([k, p]: [string, any]) => [k, p])),\n location: item[\"location\"],\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n ...(!item[\"properties\"]\n ? item[\"properties\"]\n : _appliancePropertiesDeserializer(item[\"properties\"])),\n identity: !item[\"identity\"] ? item[\"identity\"] : identityDeserializer(item[\"identity\"]),\n };\n}\n\n/** Properties for an appliance. */\nexport interface ApplianceProperties {\n /** Represents a supported Fabric/Infra. (AKSEdge etc...). */\n distro?: Distro;\n /** Contains infrastructure information about the Appliance */\n infrastructureConfig?: AppliancePropertiesInfrastructureConfig;\n /** The current deployment or provisioning state, which only appears in the response. */\n readonly provisioningState?: string;\n /** Certificates pair used to download MSI certificate from HIS. Can only be set once. */\n publicKey?: string;\n /** Appliance’s health and state of connection to on-prem. This list of values is not exhaustive. */\n readonly status?: Status;\n /** Version of the Appliance */\n version?: string;\n /** A list of events that occurred on the Appliance to relay information to the user. */\n readonly events?: Event[];\n /** Contains network information about the Appliance */\n networkProfile?: NetworkProfile;\n}\n\nexport function appliancePropertiesSerializer(item: ApplianceProperties): any {\n return {\n distro: item[\"distro\"],\n infrastructureConfig: !item[\"infrastructureConfig\"]\n ? item[\"infrastructureConfig\"]\n : appliancePropertiesInfrastructureConfigSerializer(item[\"infrastructureConfig\"]),\n publicKey: item[\"publicKey\"],\n version: item[\"version\"],\n networkProfile: !item[\"networkProfile\"]\n ? item[\"networkProfile\"]\n : networkProfileSerializer(item[\"networkProfile\"]),\n };\n}\n\nexport function appliancePropertiesDeserializer(item: any): ApplianceProperties {\n return {\n distro: item[\"distro\"],\n infrastructureConfig: !item[\"infrastructureConfig\"]\n ? item[\"infrastructureConfig\"]\n : appliancePropertiesInfrastructureConfigDeserializer(item[\"infrastructureConfig\"]),\n provisioningState: item[\"provisioningState\"],\n publicKey: item[\"publicKey\"],\n status: item[\"status\"],\n version: item[\"version\"],\n events: !item[\"events\"] ? item[\"events\"] : eventArrayDeserializer(item[\"events\"]),\n networkProfile: !item[\"networkProfile\"]\n ? item[\"networkProfile\"]\n : networkProfileDeserializer(item[\"networkProfile\"]),\n };\n}\n\n/** Represents a supported Fabric/Infra. (AKSEdge etc...). */\nexport enum KnownDistro {\n /** AKSEdge */\n AKSEdge = \"AKSEdge\",\n}\n\n/**\n * Represents a supported Fabric/Infra. (AKSEdge etc...). \\\n * {@link KnownDistro} can be used interchangeably with Distro,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **AKSEdge**\n */\nexport type Distro = string;\n\n/** Contains infrastructure information about the Appliance */\nexport interface AppliancePropertiesInfrastructureConfig {\n /** Information about the connected appliance. */\n provider?: Provider;\n}\n\nexport function appliancePropertiesInfrastructureConfigSerializer(\n item: AppliancePropertiesInfrastructureConfig,\n): any {\n return { provider: item[\"provider\"] };\n}\n\nexport function appliancePropertiesInfrastructureConfigDeserializer(\n item: any,\n): AppliancePropertiesInfrastructureConfig {\n return {\n provider: item[\"provider\"],\n };\n}\n\n/** Information about the connected appliance. */\nexport enum KnownProvider {\n /** VMWare */\n VMWare = \"VMWare\",\n /** HCI */\n HCI = \"HCI\",\n /** SCVMM */\n Scvmm = \"SCVMM\",\n}\n\n/**\n * Information about the connected appliance. \\\n * {@link KnownProvider} can be used interchangeably with Provider,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **VMWare** \\\n * **HCI** \\\n * **SCVMM**\n */\nexport type Provider = string;\n\n/** Appliance’s health and state of connection to on-prem. This list of values is not exhaustive. */\nexport enum KnownStatus {\n /** WaitingForHeartbeat */\n WaitingForHeartbeat = \"WaitingForHeartbeat\",\n /** Validating */\n Validating = \"Validating\",\n /** Connecting */\n Connecting = \"Connecting\",\n /** Connected */\n Connected = \"Connected\",\n /** Running */\n Running = \"Running\",\n /** PreparingForUpgrade */\n PreparingForUpgrade = \"PreparingForUpgrade\",\n /** ETCDSnapshotFailed */\n EtcdSnapshotFailed = \"ETCDSnapshotFailed\",\n /** UpgradePrerequisitesCompleted */\n UpgradePrerequisitesCompleted = \"UpgradePrerequisitesCompleted\",\n /** ValidatingSFSConnectivity */\n ValidatingSFSConnectivity = \"ValidatingSFSConnectivity\",\n /** ValidatingImageDownload */\n ValidatingImageDownload = \"ValidatingImageDownload\",\n /** ValidatingImageUpload */\n ValidatingImageUpload = \"ValidatingImageUpload\",\n /** ValidatingETCDHealth */\n ValidatingEtcdHealth = \"ValidatingETCDHealth\",\n /** PreUpgrade */\n PreUpgrade = \"PreUpgrade\",\n /** UpgradingKVAIO */\n UpgradingKvaio = \"UpgradingKVAIO\",\n /** WaitingForKVAIO */\n WaitingForKvaio = \"WaitingForKVAIO\",\n /** ImagePending */\n ImagePending = \"ImagePending\",\n /** ImageProvisioning */\n ImageProvisioning = \"ImageProvisioning\",\n /** ImageProvisioned */\n ImageProvisioned = \"ImageProvisioned\",\n /** ImageDownloading */\n ImageDownloading = \"ImageDownloading\",\n /** ImageDownloaded */\n ImageDownloaded = \"ImageDownloaded\",\n /** ImageDeprovisioning */\n ImageDeprovisioning = \"ImageDeprovisioning\",\n /** ImageUnknown */\n ImageUnknown = \"ImageUnknown\",\n /** UpdatingCloudOperator */\n UpdatingCloudOperator = \"UpdatingCloudOperator\",\n /** WaitingForCloudOperator */\n WaitingForCloudOperator = \"WaitingForCloudOperator\",\n /** UpdatingCAPI */\n UpdatingCapi = \"UpdatingCAPI\",\n /** UpdatingCluster */\n UpdatingCluster = \"UpdatingCluster\",\n /** PostUpgrade */\n PostUpgrade = \"PostUpgrade\",\n /** UpgradeComplete */\n UpgradeComplete = \"UpgradeComplete\",\n /** UpgradeClusterExtensionFailedToDelete */\n UpgradeClusterExtensionFailedToDelete = \"UpgradeClusterExtensionFailedToDelete\",\n /** UpgradeFailed */\n UpgradeFailed = \"UpgradeFailed\",\n /** Offline */\n Offline = \"Offline\",\n /** None */\n None = \"None\",\n /** NetworkProxyUpdatePreparing */\n NetworkProxyUpdatePreparing = \"NetworkProxyUpdatePreparing\",\n /** NetworkProxyUpdating */\n NetworkProxyUpdating = \"NetworkProxyUpdating\",\n /** NetworkProxyUpdateComplete */\n NetworkProxyUpdateComplete = \"NetworkProxyUpdateComplete\",\n /** NetworkProxyUpdateFailed */\n NetworkProxyUpdateFailed = \"NetworkProxyUpdateFailed\",\n /** NetworkDNSUpdatePreparing */\n NetworkDNSUpdatePreparing = \"NetworkDNSUpdatePreparing\",\n /** NetworkDNSUpdating */\n NetworkDNSUpdating = \"NetworkDNSUpdating\",\n /** NetworkDNSUpdateComplete */\n NetworkDNSUpdateComplete = \"NetworkDNSUpdateComplete\",\n /** NetworkDNSUpdateFailed */\n NetworkDNSUpdateFailed = \"NetworkDNSUpdateFailed\",\n /** ArcGatewayUpdatePreparing */\n ArcGatewayUpdatePreparing = \"ArcGatewayUpdatePreparing\",\n /** ArcGatewayUpdating */\n ArcGatewayUpdating = \"ArcGatewayUpdating\",\n /** ArcGatewayUpdateComplete */\n ArcGatewayUpdateComplete = \"ArcGatewayUpdateComplete\",\n /** ArcGatewayUpdateFailed */\n ArcGatewayUpdateFailed = \"ArcGatewayUpdateFailed\",\n}\n\n/**\n * Appliance’s health and state of connection to on-prem. This list of values is not exhaustive. \\\n * {@link KnownStatus} can be used interchangeably with Status,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **WaitingForHeartbeat** \\\n * **Validating** \\\n * **Connecting** \\\n * **Connected** \\\n * **Running** \\\n * **PreparingForUpgrade** \\\n * **ETCDSnapshotFailed** \\\n * **UpgradePrerequisitesCompleted** \\\n * **ValidatingSFSConnectivity** \\\n * **ValidatingImageDownload** \\\n * **ValidatingImageUpload** \\\n * **ValidatingETCDHealth** \\\n * **PreUpgrade** \\\n * **UpgradingKVAIO** \\\n * **WaitingForKVAIO** \\\n * **ImagePending** \\\n * **ImageProvisioning** \\\n * **ImageProvisioned** \\\n * **ImageDownloading** \\\n * **ImageDownloaded** \\\n * **ImageDeprovisioning** \\\n * **ImageUnknown** \\\n * **UpdatingCloudOperator** \\\n * **WaitingForCloudOperator** \\\n * **UpdatingCAPI** \\\n * **UpdatingCluster** \\\n * **PostUpgrade** \\\n * **UpgradeComplete** \\\n * **UpgradeClusterExtensionFailedToDelete** \\\n * **UpgradeFailed** \\\n * **Offline** \\\n * **None** \\\n * **NetworkProxyUpdatePreparing** \\\n * **NetworkProxyUpdating** \\\n * **NetworkProxyUpdateComplete** \\\n * **NetworkProxyUpdateFailed** \\\n * **NetworkDNSUpdatePreparing** \\\n * **NetworkDNSUpdating** \\\n * **NetworkDNSUpdateComplete** \\\n * **NetworkDNSUpdateFailed** \\\n * **ArcGatewayUpdatePreparing** \\\n * **ArcGatewayUpdating** \\\n * **ArcGatewayUpdateComplete** \\\n * **ArcGatewayUpdateFailed**\n */\nexport type Status = string;\n\nexport function eventArrayDeserializer(result: Array<Event>): any[] {\n return result.map((item) => {\n return eventDeserializer(item);\n });\n}\n\n/** Event contains information about customer driven, platform driven, or unplanned events that occurred on the Appliance */\nexport interface Event {\n /** The type of event is used to classify how the event was initiated. */\n type?: string;\n /** Code is used to break down the event further to identify why it occurred. */\n code?: string;\n /** Status is used to represent the outcome of the event. */\n status?: string;\n /** Message is intended to be actionable and should be used to inform the user of the event. */\n message?: string;\n /** Severity is the classification of the event to relay the importance of the event. */\n severity?: string;\n /** Timestamp is the time the event occurred. */\n timestamp?: Date;\n}\n\nexport function eventDeserializer(item: any): Event {\n return {\n type: item[\"type\"],\n code: item[\"code\"],\n status: item[\"status\"],\n message: item[\"message\"],\n severity: item[\"severity\"],\n timestamp: !item[\"timestamp\"] ? item[\"timestamp\"] : new Date(item[\"timestamp\"]),\n };\n}\n\n/** Contains network information about the Appliance */\nexport interface NetworkProfile {\n /** Contains proxy information about the Appliance */\n proxyConfiguration?: ProxyConfiguration;\n /** Contains DNS information about the Appliance */\n dnsConfiguration?: DnsConfiguration;\n /** Contains Arc Gateway information about the Appliance */\n gatewayConfiguration?: GatewayConfiguration;\n}\n\nexport function networkProfileSerializer(item: NetworkProfile): any {\n return {\n proxyConfiguration: !item[\"proxyConfiguration\"]\n ? item[\"proxyConfiguration\"]\n : proxyConfigurationSerializer(item[\"proxyConfiguration\"]),\n dnsConfiguration: !item[\"dnsConfiguration\"]\n ? item[\"dnsConfiguration\"]\n : dnsConfigurationSerializer(item[\"dnsConfiguration\"]),\n gatewayConfiguration: !item[\"gatewayConfiguration\"]\n ? item[\"gatewayConfiguration\"]\n : gatewayConfigurationSerializer(item[\"gatewayConfiguration\"]),\n };\n}\n\nexport function networkProfileDeserializer(item: any): NetworkProfile {\n return {\n proxyConfiguration: !item[\"proxyConfiguration\"]\n ? item[\"proxyConfiguration\"]\n : proxyConfigurationDeserializer(item[\"proxyConfiguration\"]),\n dnsConfiguration: !item[\"dnsConfiguration\"]\n ? item[\"dnsConfiguration\"]\n : dnsConfigurationDeserializer(item[\"dnsConfiguration\"]),\n gatewayConfiguration: !item[\"gatewayConfiguration\"]\n ? item[\"gatewayConfiguration\"]\n : gatewayConfigurationDeserializer(item[\"gatewayConfiguration\"]),\n };\n}\n\n/** Contains proxy information about the Appliance */\nexport interface ProxyConfiguration {\n /** Version of the proxy configuration. */\n version?: string;\n}\n\nexport function proxyConfigurationSerializer(item: ProxyConfiguration): any {\n return { version: item[\"version\"] };\n}\n\nexport function proxyConfigurationDeserializer(item: any): ProxyConfiguration {\n return {\n version: item[\"version\"],\n };\n}\n\n/** Contains DNS information about the Appliance */\nexport interface DnsConfiguration {\n /** Version of the DNS configuration. */\n version?: string;\n}\n\nexport function dnsConfigurationSerializer(item: DnsConfiguration): any {\n return { version: item[\"version\"] };\n}\n\nexport function dnsConfigurationDeserializer(item: any): DnsConfiguration {\n return {\n version: item[\"version\"],\n };\n}\n\n/** Contains Arc Gateway information about the Appliance */\nexport interface GatewayConfiguration {\n /** Version of the Arc Gateway configuration. */\n version?: string;\n}\n\nexport function gatewayConfigurationSerializer(item: GatewayConfiguration): any {\n return { version: item[\"version\"] };\n}\n\nexport function gatewayConfigurationDeserializer(item: any): GatewayConfiguration {\n return {\n version: item[\"version\"],\n };\n}\n\n/** Identity for the resource. */\nexport interface Identity {\n /** The principal ID of resource identity. */\n readonly principalId?: string;\n /** The tenant ID of resource. */\n readonly tenantId?: string;\n /** The identity type. */\n type?: ResourceIdentityType;\n}\n\nexport function identitySerializer(item: Identity): any {\n return { type: item[\"type\"] };\n}\n\nexport function identityDeserializer(item: any): Identity {\n return {\n principalId: item[\"principalId\"],\n tenantId: item[\"tenantId\"],\n type: item[\"type\"],\n };\n}\n\n/** The identity type. */\nexport enum KnownResourceIdentityType {\n /** SystemAssigned */\n SystemAssigned = \"SystemAssigned\",\n /** None */\n None = \"None\",\n}\n\n/**\n * The identity type. \\\n * {@link KnownResourceIdentityType} can be used interchangeably with ResourceIdentityType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **SystemAssigned** \\\n * **None**\n */\nexport type ResourceIdentityType = string;\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResource extends Resource {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The geo-location where the resource lives */\n location: string;\n}\n\nexport function trackedResourceSerializer(item: TrackedResource): any {\n return { tags: item[\"tags\"], location: item[\"location\"] };\n}\n\nexport function trackedResourceDeserializer(item: any): TrackedResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n tags: !item[\"tags\"]\n ? item[\"tags\"]\n : Object.fromEntries(Object.entries(item[\"tags\"]).map(([k, p]: [string, any]) => [k, p])),\n location: item[\"location\"],\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(item: Resource): any {\n return item;\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: any;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: item[\"info\"],\n };\n}\n\n/** The Appliances patchable resource definition. */\nexport interface PatchableAppliance {\n /** Resource tags */\n tags?: Record<string, string>;\n}\n\nexport function patchableApplianceSerializer(item: PatchableAppliance): any {\n return { tags: item[\"tags\"] };\n}\n\n/** Paged collection of Appliance items */\nexport interface _ApplianceListResult {\n /** The Appliance items on this page */\n readonly value: Appliance[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _applianceListResultDeserializer(item: any): _ApplianceListResult {\n return {\n value: applianceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function applianceArraySerializer(result: Array<Appliance>): any[] {\n return result.map((item) => {\n return applianceSerializer(item);\n });\n}\n\nexport function applianceArrayDeserializer(result: Array<Appliance>): any[] {\n return result.map((item) => {\n return applianceDeserializer(item);\n });\n}\n\n/** The List Cluster User Credential appliance. */\nexport interface ApplianceListCredentialResults {\n /** Contains the REP (rendezvous endpoint) and “Listener” access token from notification service (NS). */\n readonly hybridConnectionConfig?: HybridConnectionConfig;\n /** The list of appliance kubeconfigs. */\n readonly kubeconfigs?: ApplianceCredentialKubeconfig[];\n}\n\nexport function applianceListCredentialResultsDeserializer(\n item: any,\n): ApplianceListCredentialResults {\n return {\n hybridConnectionConfig: !item[\"hybridConnectionConfig\"]\n ? item[\"hybridConnectionConfig\"]\n : hybridConnectionConfigDeserializer(item[\"hybridConnectionConfig\"]),\n kubeconfigs: !item[\"kubeconfigs\"]\n ? item[\"kubeconfigs\"]\n : applianceCredentialKubeconfigArrayDeserializer(item[\"kubeconfigs\"]),\n };\n}\n\n/** Contains the REP (rendezvous endpoint) and “Listener” access token from notification service (NS). */\nexport interface HybridConnectionConfig {\n /** Timestamp when this token will be expired. */\n readonly expirationTime?: number;\n /** Name of the connection */\n readonly hybridConnectionName?: string;\n /** Name of the notification service. */\n readonly relay?: string;\n /** Listener access token */\n readonly token?: string;\n}\n\nexport function hybridConnectionConfigDeserializer(item: any): HybridConnectionConfig {\n return {\n expirationTime: item[\"expirationTime\"],\n hybridConnectionName: item[\"hybridConnectionName\"],\n relay: item[\"relay\"],\n token: item[\"token\"],\n };\n}\n\nexport function applianceCredentialKubeconfigArrayDeserializer(\n result: Array<ApplianceCredentialKubeconfig>,\n): any[] {\n return result.map((item) => {\n return applianceCredentialKubeconfigDeserializer(item);\n });\n}\n\n/** Cluster User Credential appliance. */\nexport interface ApplianceCredentialKubeconfig {\n /** Name which contains the role of the kubeconfig. */\n readonly name?: AccessProfileType;\n /** Contains the kubeconfig value. */\n readonly value?: string;\n}\n\nexport function applianceCredentialKubeconfigDeserializer(\n item: any,\n): ApplianceCredentialKubeconfig {\n return {\n name: item[\"name\"],\n value: item[\"value\"],\n };\n}\n\n/** Name which contains the role of the kubeconfig. */\nexport enum KnownAccessProfileType {\n /** clusterUser */\n ClusterUser = \"clusterUser\",\n /** clusterCustomerUser */\n ClusterCustomerUser = \"clusterCustomerUser\",\n}\n\n/**\n * Name which contains the role of the kubeconfig. \\\n * {@link KnownAccessProfileType} can be used interchangeably with AccessProfileType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **clusterUser** \\\n * **clusterCustomerUser**\n */\nexport type AccessProfileType = string;\n\n/** The List Cluster Keys Results appliance. */\nexport interface ApplianceListKeysResults {\n /** Map of artifacts that contains a list of ArtifactProfile used to upload artifacts such as logs. */\n readonly artifactProfiles?: Record<string, ArtifactProfile>;\n /** The list of appliance kubeconfigs. */\n readonly kubeconfigs?: ApplianceCredentialKubeconfig[];\n /** Map of Customer User Public, Private SSH Keys and Certificate when available. */\n readonly sshKeys?: Record<string, SSHKey>;\n}\n\nexport function applianceListKeysResultsDeserializer(item: any): ApplianceListKeysResults {\n return {\n artifactProfiles: !item[\"artifactProfiles\"]\n ? item[\"artifactProfiles\"]\n : artifactProfileRecordDeserializer(item[\"artifactProfiles\"]),\n kubeconfigs: !item[\"kubeconfigs\"]\n ? item[\"kubeconfigs\"]\n : applianceCredentialKubeconfigArrayDeserializer(item[\"kubeconfigs\"]),\n sshKeys: !item[\"sshKeys\"] ? item[\"sshKeys\"] : sshKeyRecordDeserializer(item[\"sshKeys\"]),\n };\n}\n\nexport function artifactProfileRecordDeserializer(\n item: Record<string, any>,\n): Record<string, ArtifactProfile> {\n const result: Record<string, any> = {};\n Object.keys(item).map((key) => {\n result[key] = !item[key] ? item[key] : artifactProfileDeserializer(item[key]);\n });\n return result;\n}\n\n/** Appliance ArtifactProfile definition. */\nexport interface ArtifactProfile {\n /** Endpoint is the URL to upload artifacts to. */\n readonly endpoint?: string;\n}\n\nexport function artifactProfileDeserializer(item: any): ArtifactProfile {\n return {\n endpoint: item[\"endpoint\"],\n };\n}\n\nexport function sshKeyRecordDeserializer(item: Record<string, any>): Record<string, SSHKey> {\n const result: Record<string, any> = {};\n Object.keys(item).map((key) => {\n result[key] = !item[key] ? item[key] : sshKeyDeserializer(item[key]);\n });\n return result;\n}\n\n/** Appliance SSHKey definition. */\nexport interface SSHKey {\n /** Certificate associated with the public key if the key is signed. */\n readonly certificate?: string;\n /** Certificate creation timestamp (Unix). */\n readonly creationTimeStamp?: number;\n /** Certificate expiration timestamp (Unix). */\n readonly expirationTimeStamp?: number;\n /** Private Key. */\n readonly privateKey?: string;\n /** Public Key. */\n readonly publicKey?: string;\n}\n\nexport function sshKeyDeserializer(item: any): SSHKey {\n return {\n certificate: item[\"certificate\"],\n creationTimeStamp: item[\"creationTimeStamp\"],\n expirationTimeStamp: item[\"expirationTimeStamp\"],\n privateKey: item[\"privateKey\"],\n publicKey: item[\"publicKey\"],\n };\n}\n\n/** The Upgrade Graph for appliance. */\nexport interface UpgradeGraph {\n /** The appliance resource path */\n readonly id?: string;\n /** The release train name. */\n readonly name?: string;\n /** The properties of supported version */\n properties?: UpgradeGraphProperties;\n}\n\nexport function upgradeGraphDeserializer(item: any): UpgradeGraph {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : upgradeGraphPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** The Upgrade Graph Properties for appliance. */\nexport interface UpgradeGraphProperties {\n /** The current appliance version */\n readonly applianceVersion?: string;\n /** This contains the current version and supported upgrade versions. */\n readonly supportedVersions?: SupportedVersion[];\n}\n\nexport function upgradeGraphPropertiesDeserializer(item: any): UpgradeGraphProperties {\n return {\n applianceVersion: item[\"applianceVersion\"],\n supportedVersions: !item[\"supportedVersions\"]\n ? item[\"supportedVersions\"]\n : supportedVersionArrayDeserializer(item[\"supportedVersions\"]),\n };\n}\n\nexport function supportedVersionArrayDeserializer(result: Array<SupportedVersion>): any[] {\n return result.map((item) => {\n return supportedVersionDeserializer(item);\n });\n}\n\n/** The SupportedVersion object for appliance. */\nexport interface SupportedVersion {\n /** This is the metadata of the supported newer version. */\n readonly metadata?: SupportedVersionMetadata;\n /** The newer version available for upgrade. */\n readonly version?: string;\n}\n\nexport function supportedVersionDeserializer(item: any): SupportedVersion {\n return {\n metadata: !item[\"metadata\"]\n ? item[\"metadata\"]\n : supportedVersionMetadataDeserializer(item[\"metadata\"]),\n version: item[\"version\"],\n };\n}\n\n/** The SupportedVersionMetadata object for appliance. */\nexport interface SupportedVersionMetadata {\n /** The newer supported version catalog version. */\n readonly catalogVersion?: SupportedVersionCatalogVersion;\n}\n\nexport function supportedVersionMetadataDeserializer(item: any): SupportedVersionMetadata {\n return {\n catalogVersion: !item[\"catalogVersion\"]\n ? item[\"catalogVersion\"]\n : supportedVersionCatalogVersionDeserializer(item[\"catalogVersion\"]),\n };\n}\n\n/** The SupportedVersionCatalogVersion object for appliance. */\nexport interface SupportedVersionCatalogVersion {\n /** The newer supported version catalog version data. */\n readonly data?: SupportedVersionCatalogVersionData;\n /** The catalog version name for the version available for upgrade. */\n readonly name?: string;\n /** The catalog version namespace for the version available for upgrade. */\n readonly namespace?: string;\n}\n\nexport function supportedVersionCatalogVersionDeserializer(\n item: any,\n): SupportedVersionCatalogVersion {\n return {\n data: !item[\"data\"]\n ? item[\"data\"]\n : supportedVersionCatalogVersionDataDeserializer(item[\"data\"]),\n name: item[\"name\"],\n namespace: item[\"namespace\"],\n };\n}\n\n/** The SupportedVersionCatalogVersionData object for appliance. */\nexport interface SupportedVersionCatalogVersionData {\n /** The image audience name for the version available for upgrade. */\n readonly audience?: string;\n /** The image catalog name for the version available for upgrade. */\n readonly catalog?: string;\n /** The image offer name for the version available for upgrade. */\n readonly offer?: string;\n /** The image version for the version available for upgrade. */\n readonly version?: string;\n}\n\nexport function supportedVersionCatalogVersionDataDeserializer(\n item: any,\n): SupportedVersionCatalogVersionData {\n return {\n audience: item[\"audience\"],\n catalog: item[\"catalog\"],\n offer: item[\"offer\"],\n version: item[\"version\"],\n };\n}\n\n/** Paged collection of ApplianceOperation items */\nexport interface _ApplianceOperationsList {\n /** The ApplianceOperation items on this page */\n value: ApplianceOperation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _applianceOperationsListDeserializer(item: any): _ApplianceOperationsList {\n return {\n value: applianceOperationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function applianceOperationArrayDeserializer(result: Array<ApplianceOperation>): any[] {\n return result.map((item) => {\n return applianceOperationDeserializer(item);\n });\n}\n\n/** Appliances operation. */\nexport interface ApplianceOperation {\n /** Is this Operation a data plane operation */\n readonly isDataAction?: boolean;\n /** The name of the compute operation. */\n readonly name?: string;\n /** The origin of the compute operation. */\n readonly origin?: string;\n /** The description of the operation. */\n readonly description?: string;\n /** The display name of the compute operation. */\n readonly operation?: string;\n /** The resource provider for the operation. */\n readonly provider?: string;\n /** The display name of the resource the operation applies to. */\n readonly resource?: string;\n}\n\nexport function applianceOperationDeserializer(item: any): ApplianceOperation {\n return {\n ...(!item[\"display\"]\n ? item[\"display\"]\n : _applianceOperationDisplayDeserializer(item[\"display\"])),\n isDataAction: item[\"isDataAction\"],\n name: item[\"name\"],\n origin: item[\"origin\"],\n };\n}\n\n/** Describes the properties of an Appliances Operation Value Display. */\nexport interface ApplianceOperationValueDisplay {\n /** The description of the operation. */\n readonly description?: string;\n /** The display name of the compute operation. */\n readonly operation?: string;\n /** The resource provider for the operation. */\n readonly provider?: string;\n /** The display name of the resource the operation applies to. */\n readonly resource?: string;\n}\n\nexport function applianceOperationValueDisplayDeserializer(\n item: any,\n): ApplianceOperationValueDisplay {\n return {\n description: item[\"description\"],\n operation: item[\"operation\"],\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n };\n}\n\n/** The Get Telemetry Config Result appliance. */\nexport interface ApplianceGetTelemetryConfigResult {\n /** Telemetry instrumentation key. */\n readonly telemetryInstrumentationKey?: string;\n}\n\nexport function applianceGetTelemetryConfigResultDeserializer(\n item: any,\n): ApplianceGetTelemetryConfigResult {\n return {\n telemetryInstrumentationKey: item[\"telemetryInstrumentationKey\"],\n };\n}\n\n/** The available API versions. */\nexport enum KnownVersions {\n /** The 2022-10-27 API version. */\n V20221027 = \"2022-10-27\",\n /** The 2025-03-01-preview API version. */\n V20250301Preview = \"2025-03-01-preview\",\n}\n\n/** Appliance ArtifactType definition. */\nexport enum KnownArtifactType {\n /** LogsArtifactType */\n LogsArtifactType = \"LogsArtifactType\",\n}\n\n/**\n * Appliance ArtifactType definition. \\\n * {@link KnownArtifactType} can be used interchangeably with ArtifactType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **LogsArtifactType**\n */\nexport type ArtifactType = string;\n\n/** Appliance SSHKeyType definition. */\nexport enum KnownSSHKeyType {\n /** SSHCustomerUser */\n SSHCustomerUser = \"SSHCustomerUser\",\n /** ManagementCAKey */\n ManagementCAKey = \"ManagementCAKey\",\n /** LogsKey */\n LogsKey = \"LogsKey\",\n /** ScopedAccessKey */\n ScopedAccessKey = \"ScopedAccessKey\",\n /** UserManagementKey */\n UserManagementKey = \"UserManagementKey\",\n}\n\n/**\n * Appliance SSHKeyType definition. \\\n * {@link KnownSSHKeyType} can be used interchangeably with SSHKeyType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **SSHCustomerUser** \\\n * **ManagementCAKey** \\\n * **LogsKey** \\\n * **ScopedAccessKey** \\\n * **UserManagementKey**\n */\nexport type SSHKeyType = string;\n\nexport function _appliancePropertiesSerializer(item: Appliance): any {\n return {\n distro: item[\"distro\"],\n infrastructureConfig: !item[\"infrastructureConfig\"]\n ? item[\"infrastructureConfig\"]\n : appliancePropertiesInfrastructureConfigSerializer(item[\"infrastructureConfig\"]),\n publicKey: item[\"publicKey\"],\n version: item[\"version\"],\n networkProfile: !item[\"networkProfile\"]\n ? item[\"networkProfile\"]\n : networkProfileSerializer(item[\"networkProfile\"]),\n };\n}\n\nexport function _appliancePropertiesDeserializer(item: any) {\n return {\n distro: item[\"distro\"],\n infrastructureConfig: !item[\"infrastructureConfig\"]\n ? item[\"infrastructureConfig\"]\n : appliancePropertiesInfrastructureConfigDeserializer(item[\"infrastructureConfig\"]),\n provisioningState: item[\"provisioningState\"],\n publicKey: item[\"publicKey\"],\n status: item[\"status\"],\n version: item[\"version\"],\n events: !item[\"events\"] ? item[\"events\"] : eventArrayDeserializer(item[\"events\"]),\n networkProfile: !item[\"networkProfile\"]\n ? item[\"networkProfile\"]\n : networkProfileDeserializer(item[\"networkProfile\"]),\n };\n}\n\nexport function _applianceOperationDisplayDeserializer(item: any) {\n return {\n description: item[\"description\"],\n operation: item[\"operation\"],\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n };\n}\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ResourceConnectorManagementClientOptionalParams } from "./api/index.js";
|
|
2
|
+
import type { AppliancesOperations } from "./classic/appliances/index.js";
|
|
3
|
+
import type { TokenCredential } from "@azure/core-auth";
|
|
4
|
+
import type { Pipeline } from "@azure/core-rest-pipeline";
|
|
5
|
+
export { ResourceConnectorManagementClientOptionalParams } from "./api/resourceConnectorManagementContext.js";
|
|
6
|
+
export declare class ResourceConnectorManagementClient {
|
|
7
|
+
private _client;
|
|
8
|
+
/** The pipeline used by this client to make requests */
|
|
9
|
+
readonly pipeline: Pipeline;
|
|
10
|
+
constructor(credential: TokenCredential, options?: ResourceConnectorManagementClientOptionalParams);
|
|
11
|
+
constructor(credential: TokenCredential, subscriptionId: string, options?: ResourceConnectorManagementClientOptionalParams);
|
|
12
|
+
/** The operation groups for appliances */
|
|
13
|
+
readonly appliances: AppliancesOperations;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=resourceConnectorManagementClient.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.ResourceConnectorManagementClient = void 0;
|
|
6
|
+
const index_js_1 = require("./api/index.js");
|
|
7
|
+
const index_js_2 = require("./classic/appliances/index.js");
|
|
8
|
+
class ResourceConnectorManagementClient {
|
|
9
|
+
_client;
|
|
10
|
+
/** The pipeline used by this client to make requests */
|
|
11
|
+
pipeline;
|
|
12
|
+
/** The appliances Rest API spec. */
|
|
13
|
+
constructor(credential, subscriptionIdOrOptions, options) {
|
|
14
|
+
let subscriptionId;
|
|
15
|
+
if (typeof subscriptionIdOrOptions === "string") {
|
|
16
|
+
subscriptionId = subscriptionIdOrOptions;
|
|
17
|
+
}
|
|
18
|
+
else if (typeof subscriptionIdOrOptions === "object") {
|
|
19
|
+
options = subscriptionIdOrOptions;
|
|
20
|
+
}
|
|
21
|
+
options = options ?? {};
|
|
22
|
+
const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
|
|
23
|
+
const userAgentPrefix = prefixFromOptions
|
|
24
|
+
? `${prefixFromOptions} azsdk-js-client`
|
|
25
|
+
: `azsdk-js-client`;
|
|
26
|
+
this._client = (0, index_js_1.createResourceConnectorManagement)(credential, subscriptionId ?? "", {
|
|
27
|
+
...options,
|
|
28
|
+
userAgentOptions: { userAgentPrefix },
|
|
29
|
+
});
|
|
30
|
+
this.pipeline = this._client.pipeline;
|
|
31
|
+
this.appliances = (0, index_js_2._getAppliancesOperations)(this._client);
|
|
32
|
+
}
|
|
33
|
+
/** The operation groups for appliances */
|
|
34
|
+
appliances;
|
|
35
|
+
}
|
|
36
|
+
exports.ResourceConnectorManagementClient = ResourceConnectorManagementClient;
|
|
37
|
+
//# sourceMappingURL=resourceConnectorManagementClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resourceConnectorManagementClient.js","sourceRoot":"","sources":["../../src/resourceConnectorManagementClient.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAMlC,6CAAmE;AAEnE,4DAAyE;AAMzE,MAAa,iCAAiC;IACpC,OAAO,CAAqC;IACpD,wDAAwD;IACxC,QAAQ,CAAW;IAWnC,oCAAoC;IACpC,YACE,UAA2B,EAC3B,uBAAkF,EAClF,OAAyD;QAEzD,IAAI,cAAkC,CAAC;QAEvC,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YAChD,cAAc,GAAG,uBAAuB,CAAC;QAC3C,CAAC;aAAM,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YACvD,OAAO,GAAG,uBAAuB,CAAC;QACpC,CAAC;QAED,OAAO,GAAG,OAAO,IAAI,EAAE,CAAC;QACxB,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;QACrE,MAAM,eAAe,GAAG,iBAAiB;YACvC,CAAC,CAAC,GAAG,iBAAiB,kBAAkB;YACxC,CAAC,CAAC,iBAAiB,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,IAAA,4CAAiC,EAAC,UAAU,EAAE,cAAc,IAAI,EAAE,EAAE;YACjF,GAAG,OAAO;YACV,gBAAgB,EAAE,EAAE,eAAe,EAAE;SACtC,CAAC,CAAC;QACH,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;QACtC,IAAI,CAAC,UAAU,GAAG,IAAA,mCAAwB,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED,0CAA0C;IAC1B,UAAU,CAAuB;CAClD;AA3CD,8EA2CC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n ResourceConnectorManagementContext,\n ResourceConnectorManagementClientOptionalParams,\n} from \"./api/index.js\";\nimport { createResourceConnectorManagement } from \"./api/index.js\";\nimport type { AppliancesOperations } from \"./classic/appliances/index.js\";\nimport { _getAppliancesOperations } from \"./classic/appliances/index.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { Pipeline } from \"@azure/core-rest-pipeline\";\n\nexport { ResourceConnectorManagementClientOptionalParams } from \"./api/resourceConnectorManagementContext.js\";\n\nexport class ResourceConnectorManagementClient {\n private _client: ResourceConnectorManagementContext;\n /** The pipeline used by this client to make requests */\n public readonly pipeline: Pipeline;\n\n constructor(\n credential: TokenCredential,\n options?: ResourceConnectorManagementClientOptionalParams,\n );\n constructor(\n credential: TokenCredential,\n subscriptionId: string,\n options?: ResourceConnectorManagementClientOptionalParams,\n );\n /** The appliances Rest API spec. */\n constructor(\n credential: TokenCredential,\n subscriptionIdOrOptions?: string | ResourceConnectorManagementClientOptionalParams,\n options?: ResourceConnectorManagementClientOptionalParams,\n ) {\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n options = options ?? {};\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-client`\n : `azsdk-js-client`;\n this._client = createResourceConnectorManagement(credential, subscriptionId ?? \"\", {\n ...options,\n userAgentOptions: { userAgentPrefix },\n });\n this.pipeline = this._client.pipeline;\n this.appliances = _getAppliancesOperations(this._client);\n }\n\n /** The operation groups for appliances */\n public readonly appliances: AppliancesOperations;\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ResourceConnectorManagementClient } from "./resourceConnectorManagementClient.js";
|
|
2
|
+
import type { OperationOptions, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
3
|
+
import type { AbortSignalLike } from "@azure/abort-controller";
|
|
4
|
+
import type { PollerLike, OperationState } from "@azure/core-lro";
|
|
5
|
+
export interface RestorePollerOptions<TResult, TResponse extends PathUncheckedResponse = PathUncheckedResponse> extends OperationOptions {
|
|
6
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
7
|
+
updateIntervalInMs?: number;
|
|
8
|
+
/**
|
|
9
|
+
* The signal which can be used to abort requests.
|
|
10
|
+
*/
|
|
11
|
+
abortSignal?: AbortSignalLike;
|
|
12
|
+
/** Deserialization function for raw response body */
|
|
13
|
+
processResponseBody?: (result: TResponse) => Promise<TResult>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Creates a poller from the serialized state of another poller. This can be
|
|
17
|
+
* useful when you want to create pollers on a different host or a poller
|
|
18
|
+
* needs to be constructed after the original one is not in scope.
|
|
19
|
+
*/
|
|
20
|
+
export declare function restorePoller<TResponse extends PathUncheckedResponse, TResult>(client: ResourceConnectorManagementClient, serializedState: string, sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>, options?: RestorePollerOptions<TResult>): PollerLike<OperationState<TResult>, TResult>;
|
|
21
|
+
//# sourceMappingURL=restorePollerHelpers.d.ts.map
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.restorePoller = restorePoller;
|
|
6
|
+
const operations_js_1 = require("./api/appliances/operations.js");
|
|
7
|
+
const pollingHelpers_js_1 = require("./static-helpers/pollingHelpers.js");
|
|
8
|
+
const core_lro_1 = require("@azure/core-lro");
|
|
9
|
+
/**
|
|
10
|
+
* Creates a poller from the serialized state of another poller. This can be
|
|
11
|
+
* useful when you want to create pollers on a different host or a poller
|
|
12
|
+
* needs to be constructed after the original one is not in scope.
|
|
13
|
+
*/
|
|
14
|
+
function restorePoller(client, serializedState, sourceOperation, options) {
|
|
15
|
+
const pollerConfig = (0, core_lro_1.deserializeState)(serializedState).config;
|
|
16
|
+
const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
|
|
17
|
+
if (!initialRequestUrl || !requestMethod) {
|
|
18
|
+
throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`);
|
|
19
|
+
}
|
|
20
|
+
const resourceLocationConfig = metadata?.["resourceLocationConfig"];
|
|
21
|
+
const { deserializer, expectedStatuses = [] } = getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};
|
|
22
|
+
const deserializeHelper = options?.processResponseBody ?? deserializer;
|
|
23
|
+
if (!deserializeHelper) {
|
|
24
|
+
throw new Error(`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`);
|
|
25
|
+
}
|
|
26
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(client["_client"] ?? client, deserializeHelper, expectedStatuses, {
|
|
27
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
28
|
+
abortSignal: options?.abortSignal,
|
|
29
|
+
resourceLocationConfig,
|
|
30
|
+
restoreFrom: serializedState,
|
|
31
|
+
initialRequestUrl,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
const deserializeMap = {
|
|
35
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}": { deserializer: operations_js_1._$deleteDeserialize, expectedStatuses: ["202", "204", "200", "201"] },
|
|
36
|
+
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}": { deserializer: operations_js_1._createOrUpdateDeserialize, expectedStatuses: ["200", "201", "202"] },
|
|
37
|
+
};
|
|
38
|
+
function getDeserializationHelper(urlStr, method) {
|
|
39
|
+
const path = new URL(urlStr).pathname;
|
|
40
|
+
const pathParts = path.split("/");
|
|
41
|
+
// Traverse list to match the longest candidate
|
|
42
|
+
// matchedLen: the length of candidate path
|
|
43
|
+
// matchedValue: the matched status code array
|
|
44
|
+
let matchedLen = -1, matchedValue;
|
|
45
|
+
// Iterate the responseMap to find a match
|
|
46
|
+
for (const [key, value] of Object.entries(deserializeMap)) {
|
|
47
|
+
// Extracting the path from the map key which is in format
|
|
48
|
+
// GET /path/foo
|
|
49
|
+
if (!key.startsWith(method)) {
|
|
50
|
+
continue;
|
|
51
|
+
}
|
|
52
|
+
const candidatePath = getPathFromMapKey(key);
|
|
53
|
+
// Get each part of the url path
|
|
54
|
+
const candidateParts = candidatePath.split("/");
|
|
55
|
+
// track if we have found a match to return the values found.
|
|
56
|
+
let found = true;
|
|
57
|
+
for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
|
|
58
|
+
if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) {
|
|
59
|
+
const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length;
|
|
60
|
+
// If the current part of the candidate is a "template" part
|
|
61
|
+
// Try to use the suffix of pattern to match the path
|
|
62
|
+
// {guid} ==> $
|
|
63
|
+
// {guid}:export ==> :export$
|
|
64
|
+
const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(pathParts[j] || "");
|
|
65
|
+
if (!isMatched) {
|
|
66
|
+
found = false;
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
continue;
|
|
70
|
+
}
|
|
71
|
+
// If the candidate part is not a template and
|
|
72
|
+
// the parts don't match mark the candidate as not found
|
|
73
|
+
// to move on with the next candidate path.
|
|
74
|
+
if (candidateParts[i] !== pathParts[j]) {
|
|
75
|
+
found = false;
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
// We finished evaluating the current candidate parts
|
|
80
|
+
// Update the matched value if and only if we found the longer pattern
|
|
81
|
+
if (found && candidatePath.length > matchedLen) {
|
|
82
|
+
matchedLen = candidatePath.length;
|
|
83
|
+
matchedValue = value;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return matchedValue;
|
|
87
|
+
}
|
|
88
|
+
function getPathFromMapKey(mapKey) {
|
|
89
|
+
const pathStart = mapKey.indexOf("/");
|
|
90
|
+
return mapKey.slice(pathStart);
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=restorePollerHelpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA6BlC,sCAoCC;AA9DD,kEAAiG;AACjG,0EAA0E;AAI1E,8CAAmD;AAgBnD;;;;GAIG;AACH,SAAgB,aAAa,CAC3B,MAAyC,EACzC,eAAuB,EACvB,eAAiF,EACjF,OAAuC;IAEvC,MAAM,YAAY,GAAG,IAAA,2BAAgB,EAAC,eAAe,CAAC,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,iBAAiB,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,YAAY,CAAC;IACpE,IAAI,CAAC,iBAAiB,IAAI,CAAC,aAAa,EAAE,CAAC;QACzC,MAAM,IAAI,KAAK,CACb,6BAA6B,eAAe,wBAAwB,eAAe,EAAE,IAAI,EAAE,CAC5F,CAAC;IACJ,CAAC;IACD,MAAM,sBAAsB,GAAG,QAAQ,EAAE,CAAC,wBAAwB,CAErD,CAAC;IACd,MAAM,EAAE,YAAY,EAAE,gBAAgB,GAAG,EAAE,EAAE,GAC3C,wBAAwB,CAAC,iBAAiB,EAAE,aAAa,CAAC,IAAI,EAAE,CAAC;IACnE,MAAM,iBAAiB,GAAG,OAAO,EAAE,mBAAmB,IAAI,YAAY,CAAC;IACvE,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CACb,0FAA0F,eAAe,EAAE,IAAI,GAAG,CACnH,CAAC;IACJ,CAAC;IACD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AC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ResourceConnectorManagementClient } from \"./resourceConnectorManagementClient.js\";\nimport { _$deleteDeserialize, _createOrUpdateDeserialize } from \"./api/appliances/operations.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport type { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type { PollerLike, OperationState, ResourceLocationConfig } from \"@azure/core-lro\";\nimport { deserializeState } from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: ResourceConnectorManagementClient,\n serializedState: string,\n sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>,\n options?: RestorePollerOptions<TResult>,\n): PollerLike<OperationState<TResult>, TResult> {\n const pollerConfig = deserializeState(serializedState).config;\n const { initialRequestUrl, requestMethod, metadata } = pollerConfig;\n if (!initialRequestUrl || !requestMethod) {\n throw new Error(\n `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`,\n );\n }\n const resourceLocationConfig = metadata?.[\"resourceLocationConfig\"] as\n | ResourceLocationConfig\n | undefined;\n const { deserializer, expectedStatuses = [] } =\n getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};\n const deserializeHelper = options?.processResponseBody ?? deserializer;\n if (!deserializeHelper) {\n throw new Error(\n `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`,\n );\n }\n return getLongRunningPoller(\n (client as any)[\"_client\"] ?? client,\n deserializeHelper as (result: TResponse) => Promise<TResult>,\n expectedStatuses,\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n resourceLocationConfig,\n restoreFrom: serializedState,\n initialRequestUrl,\n },\n );\n}\n\ninterface DeserializationHelper {\n deserializer: (result: PathUncheckedResponse) => Promise<any>;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}\":\n { deserializer: _$deleteDeserialize, expectedStatuses: [\"202\", \"204\", \"200\", \"201\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}\":\n { deserializer: _createOrUpdateDeserialize, expectedStatuses: [\"200\", \"201\", \"202\"] },\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): DeserializationHelper | undefined {\n const path = new URL(urlStr).pathname;\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: DeserializationHelper | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An enum to describe Azure Cloud environments.
|
|
3
|
+
* @enum {string}
|
|
4
|
+
*/
|
|
5
|
+
export declare enum AzureClouds {
|
|
6
|
+
/** Azure public cloud, which is the default cloud for Azure SDKs. */
|
|
7
|
+
AZURE_PUBLIC_CLOUD = "AZURE_PUBLIC_CLOUD",
|
|
8
|
+
/** Azure China cloud */
|
|
9
|
+
AZURE_CHINA_CLOUD = "AZURE_CHINA_CLOUD",
|
|
10
|
+
/** Azure US government cloud */
|
|
11
|
+
AZURE_US_GOVERNMENT = "AZURE_US_GOVERNMENT"
|
|
12
|
+
}
|
|
13
|
+
/** The supported values for cloud setting as a string literal type */
|
|
14
|
+
export type AzureSupportedClouds = `${AzureClouds}`;
|
|
15
|
+
/**
|
|
16
|
+
* Gets the Azure Resource Manager endpoint URL for the specified cloud setting.
|
|
17
|
+
* @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.
|
|
18
|
+
* @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.
|
|
19
|
+
* @throws {Error} Throws an error if an unknown cloud setting is provided.
|
|
20
|
+
*/
|
|
21
|
+
export declare function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined;
|
|
22
|
+
//# sourceMappingURL=cloudSettingHelpers.d.ts.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.AzureClouds = void 0;
|
|
6
|
+
exports.getArmEndpoint = getArmEndpoint;
|
|
7
|
+
/**
|
|
8
|
+
* An enum to describe Azure Cloud environments.
|
|
9
|
+
* @enum {string}
|
|
10
|
+
*/
|
|
11
|
+
var AzureClouds;
|
|
12
|
+
(function (AzureClouds) {
|
|
13
|
+
/** Azure public cloud, which is the default cloud for Azure SDKs. */
|
|
14
|
+
AzureClouds["AZURE_PUBLIC_CLOUD"] = "AZURE_PUBLIC_CLOUD";
|
|
15
|
+
/** Azure China cloud */
|
|
16
|
+
AzureClouds["AZURE_CHINA_CLOUD"] = "AZURE_CHINA_CLOUD";
|
|
17
|
+
/** Azure US government cloud */
|
|
18
|
+
AzureClouds["AZURE_US_GOVERNMENT"] = "AZURE_US_GOVERNMENT";
|
|
19
|
+
})(AzureClouds || (exports.AzureClouds = AzureClouds = {}));
|
|
20
|
+
/**
|
|
21
|
+
* Gets the Azure Resource Manager endpoint URL for the specified cloud setting.
|
|
22
|
+
* @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.
|
|
23
|
+
* @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.
|
|
24
|
+
* @throws {Error} Throws an error if an unknown cloud setting is provided.
|
|
25
|
+
*/
|
|
26
|
+
function getArmEndpoint(cloudSetting) {
|
|
27
|
+
if (cloudSetting === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
const cloudEndpoints = {
|
|
31
|
+
AZURE_CHINA_CLOUD: "https://management.chinacloudapi.cn/",
|
|
32
|
+
AZURE_US_GOVERNMENT: "https://management.usgovcloudapi.net/",
|
|
33
|
+
AZURE_PUBLIC_CLOUD: "https://management.azure.com/",
|
|
34
|
+
};
|
|
35
|
+
if (cloudSetting in cloudEndpoints) {
|
|
36
|
+
return cloudEndpoints[cloudSetting];
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
throw new Error(`Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=cloudSettingHelpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloudSettingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/cloudSettingHelpers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAwBlC,wCAgBC;AAtCD;;;GAGG;AACH,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,qEAAqE;IACrE,wDAAyC,CAAA;IACzC,wBAAwB;IACxB,sDAAuC,CAAA;IACvC,gCAAgC;IAChC,0DAA2C,CAAA;AAC7C,CAAC,EAPW,WAAW,2BAAX,WAAW,QAOtB;AAKD;;;;;GAKG;AACH,SAAgB,cAAc,CAAC,YAAmC;IAChE,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;QAC/B,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,cAAc,GAA6C;QAC/D,iBAAiB,EAAE,sCAAsC;QACzD,mBAAmB,EAAE,uCAAuC;QAC5D,kBAAkB,EAAE,+BAA+B;KACpD,CAAC;IACF,IAAI,YAAY,IAAI,cAAc,EAAE,CAAC;QACnC,OAAO,cAAc,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,KAAK,CACb,0BAA0B,YAAY,6DAA6D,CACpG,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * An enum to describe Azure Cloud environments.\n * @enum {string}\n */\nexport enum AzureClouds {\n /** Azure public cloud, which is the default cloud for Azure SDKs. */\n AZURE_PUBLIC_CLOUD = \"AZURE_PUBLIC_CLOUD\",\n /** Azure China cloud */\n AZURE_CHINA_CLOUD = \"AZURE_CHINA_CLOUD\",\n /** Azure US government cloud */\n AZURE_US_GOVERNMENT = \"AZURE_US_GOVERNMENT\",\n}\n\n/** The supported values for cloud setting as a string literal type */\nexport type AzureSupportedClouds = `${AzureClouds}`;\n\n/**\n * Gets the Azure Resource Manager endpoint URL for the specified cloud setting.\n * @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.\n * @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.\n * @throws {Error} Throws an error if an unknown cloud setting is provided.\n */\nexport function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined {\n if (cloudSetting === undefined) {\n return undefined;\n }\n const cloudEndpoints: Record<keyof typeof AzureClouds, string> = {\n AZURE_CHINA_CLOUD: \"https://management.chinacloudapi.cn/\",\n AZURE_US_GOVERNMENT: \"https://management.usgovcloudapi.net/\",\n AZURE_PUBLIC_CLOUD: \"https://management.azure.com/\",\n };\n if (cloudSetting in cloudEndpoints) {\n return cloudEndpoints[cloudSetting];\n } else {\n throw new Error(\n `Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`,\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { Client, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
2
|
+
/**
|
|
3
|
+
* Options for the byPage method
|
|
4
|
+
*/
|
|
5
|
+
export interface PageSettings {
|
|
6
|
+
/**
|
|
7
|
+
* A reference to a specific page to start iterating from.
|
|
8
|
+
*/
|
|
9
|
+
continuationToken?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* An interface that describes a page of results.
|
|
13
|
+
*/
|
|
14
|
+
export type ContinuablePage<TElement, TPage = TElement[]> = TPage & {
|
|
15
|
+
/**
|
|
16
|
+
* The token that keeps track of where to continue the iterator
|
|
17
|
+
*/
|
|
18
|
+
continuationToken?: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* An interface that allows async iterable iteration both to completion and by page.
|
|
22
|
+
*/
|
|
23
|
+
export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
|
|
24
|
+
/**
|
|
25
|
+
* The next method, part of the iteration protocol
|
|
26
|
+
*/
|
|
27
|
+
next(): Promise<IteratorResult<TElement>>;
|
|
28
|
+
/**
|
|
29
|
+
* The connection to the async iterator, part of the iteration protocol
|
|
30
|
+
*/
|
|
31
|
+
[Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
|
|
32
|
+
/**
|
|
33
|
+
* Return an AsyncIterableIterator that works a page at a time
|
|
34
|
+
*/
|
|
35
|
+
byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* An interface that describes how to communicate with the service.
|
|
39
|
+
*/
|
|
40
|
+
export interface PagedResult<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
|
|
41
|
+
/**
|
|
42
|
+
* Link to the first page of results.
|
|
43
|
+
*/
|
|
44
|
+
firstPageLink?: string;
|
|
45
|
+
/**
|
|
46
|
+
* A method that returns a page of results.
|
|
47
|
+
*/
|
|
48
|
+
getPage: (pageLink?: string) => Promise<{
|
|
49
|
+
page: TPage;
|
|
50
|
+
nextPageLink?: string;
|
|
51
|
+
} | undefined>;
|
|
52
|
+
/**
|
|
53
|
+
* a function to implement the `byPage` method on the paged async iterator.
|
|
54
|
+
*/
|
|
55
|
+
byPage?: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
|
|
56
|
+
/**
|
|
57
|
+
* A function to extract elements from a page.
|
|
58
|
+
*/
|
|
59
|
+
toElements?: (page: TPage) => TElement[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Options for the paging helper
|
|
63
|
+
*/
|
|
64
|
+
export interface BuildPagedAsyncIteratorOptions {
|
|
65
|
+
itemName?: string;
|
|
66
|
+
nextLinkName?: string;
|
|
67
|
+
nextLinkMethod?: "GET" | "POST";
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
|
|
71
|
+
*/
|
|
72
|
+
export declare function buildPagedAsyncIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings, TResponse extends PathUncheckedResponse = PathUncheckedResponse>(client: Client, getInitialResponse: () => PromiseLike<TResponse>, processResponseBody: (result: TResponse) => PromiseLike<unknown>, expectedStatuses: string[], options?: BuildPagedAsyncIteratorOptions): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
|
|
73
|
+
//# sourceMappingURL=pagingHelpers.d.ts.map
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.buildPagedAsyncIterator = buildPagedAsyncIterator;
|
|
6
|
+
const core_client_1 = require("@azure-rest/core-client");
|
|
7
|
+
const core_rest_pipeline_1 = require("@azure/core-rest-pipeline");
|
|
8
|
+
/**
|
|
9
|
+
* Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
|
|
10
|
+
*/
|
|
11
|
+
function buildPagedAsyncIterator(client, getInitialResponse, processResponseBody, expectedStatuses, options = {}) {
|
|
12
|
+
const itemName = options.itemName ?? "value";
|
|
13
|
+
const nextLinkName = options.nextLinkName ?? "nextLink";
|
|
14
|
+
const nextLinkMethod = options.nextLinkMethod ?? "GET";
|
|
15
|
+
const pagedResult = {
|
|
16
|
+
getPage: async (pageLink) => {
|
|
17
|
+
const result = pageLink === undefined
|
|
18
|
+
? await getInitialResponse()
|
|
19
|
+
: nextLinkMethod === "POST"
|
|
20
|
+
? await client.pathUnchecked(pageLink).post()
|
|
21
|
+
: await client.pathUnchecked(pageLink).get();
|
|
22
|
+
checkPagingRequest(result, expectedStatuses);
|
|
23
|
+
const results = await processResponseBody(result);
|
|
24
|
+
const nextLink = getNextLink(results, nextLinkName);
|
|
25
|
+
const values = getElements(results, itemName);
|
|
26
|
+
return {
|
|
27
|
+
page: values,
|
|
28
|
+
nextPageLink: nextLink,
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
byPage: (settings) => {
|
|
32
|
+
const { continuationToken } = settings ?? {};
|
|
33
|
+
return getPageAsyncIterator(pagedResult, {
|
|
34
|
+
pageLink: continuationToken,
|
|
35
|
+
});
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
return getPagedAsyncIterator(pagedResult);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* returns an async iterator that iterates over results. It also has a `byPage`
|
|
42
|
+
* method that returns pages of items at once.
|
|
43
|
+
*
|
|
44
|
+
* @param pagedResult - an object that specifies how to get pages.
|
|
45
|
+
* @returns a paged async iterator that iterates over results.
|
|
46
|
+
*/
|
|
47
|
+
function getPagedAsyncIterator(pagedResult) {
|
|
48
|
+
const iter = getItemAsyncIterator(pagedResult);
|
|
49
|
+
return {
|
|
50
|
+
next() {
|
|
51
|
+
return iter.next();
|
|
52
|
+
},
|
|
53
|
+
[Symbol.asyncIterator]() {
|
|
54
|
+
return this;
|
|
55
|
+
},
|
|
56
|
+
byPage: pagedResult?.byPage ??
|
|
57
|
+
((settings) => {
|
|
58
|
+
const { continuationToken } = settings ?? {};
|
|
59
|
+
return getPageAsyncIterator(pagedResult, {
|
|
60
|
+
pageLink: continuationToken,
|
|
61
|
+
});
|
|
62
|
+
}),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
async function* getItemAsyncIterator(pagedResult) {
|
|
66
|
+
const pages = getPageAsyncIterator(pagedResult);
|
|
67
|
+
for await (const page of pages) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
async function* getPageAsyncIterator(pagedResult, options = {}) {
|
|
72
|
+
const { pageLink } = options;
|
|
73
|
+
let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink);
|
|
74
|
+
if (!response) {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
let result = response.page;
|
|
78
|
+
result.continuationToken = response.nextPageLink;
|
|
79
|
+
yield result;
|
|
80
|
+
while (response.nextPageLink) {
|
|
81
|
+
response = await pagedResult.getPage(response.nextPageLink);
|
|
82
|
+
if (!response) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
result = response.page;
|
|
86
|
+
result.continuationToken = response.nextPageLink;
|
|
87
|
+
yield result;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Gets for the value of nextLink in the body
|
|
92
|
+
*/
|
|
93
|
+
function getNextLink(body, nextLinkName) {
|
|
94
|
+
if (!nextLinkName) {
|
|
95
|
+
return undefined;
|
|
96
|
+
}
|
|
97
|
+
const nextLink = body[nextLinkName];
|
|
98
|
+
if (typeof nextLink !== "string" && typeof nextLink !== "undefined" && nextLink !== null) {
|
|
99
|
+
throw new core_rest_pipeline_1.RestError(`Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`);
|
|
100
|
+
}
|
|
101
|
+
if (nextLink === null) {
|
|
102
|
+
return undefined;
|
|
103
|
+
}
|
|
104
|
+
return nextLink;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Gets the elements of the current request in the body.
|
|
108
|
+
*/
|
|
109
|
+
function getElements(body, itemName) {
|
|
110
|
+
const value = body[itemName];
|
|
111
|
+
if (!Array.isArray(value)) {
|
|
112
|
+
throw new core_rest_pipeline_1.RestError(`Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`);
|
|
113
|
+
}
|
|
114
|
+
return value ?? [];
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Checks if a request failed
|
|
118
|
+
*/
|
|
119
|
+
function checkPagingRequest(response, expectedStatuses) {
|
|
120
|
+
if (!expectedStatuses.includes(response.status)) {
|
|
121
|
+
throw (0, core_client_1.createRestError)(`Pagination failed with unexpected statusCode ${response.status}`, response);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
//# sourceMappingURL=pagingHelpers.js.map
|