@azure/arm-horizondb 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +115 -0
- package/dist/browser/api/horizonDbClusters/index.d.ts +3 -0
- package/dist/browser/api/horizonDbClusters/index.js +4 -0
- package/dist/browser/api/horizonDbClusters/index.js.map +1 -0
- package/dist/browser/api/horizonDbClusters/operations.d.ts +36 -0
- package/dist/browser/api/horizonDbClusters/operations.js +200 -0
- package/dist/browser/api/horizonDbClusters/operations.js.map +1 -0
- package/dist/browser/api/horizonDbClusters/options.d.ts +26 -0
- package/dist/browser/api/horizonDbClusters/options.js +4 -0
- package/dist/browser/api/horizonDbClusters/options.js.map +1 -0
- package/dist/browser/api/horizonDbContext.d.ts +22 -0
- package/dist/browser/api/horizonDbContext.js +24 -0
- package/dist/browser/api/horizonDbContext.js.map +1 -0
- package/dist/browser/api/horizonDbFirewallRules/index.d.ts +3 -0
- package/dist/browser/api/horizonDbFirewallRules/index.js +4 -0
- package/dist/browser/api/horizonDbFirewallRules/index.js.map +1 -0
- package/dist/browser/api/horizonDbFirewallRules/operations.d.ts +28 -0
- package/dist/browser/api/horizonDbFirewallRules/operations.js +144 -0
- package/dist/browser/api/horizonDbFirewallRules/operations.js.map +1 -0
- package/dist/browser/api/horizonDbFirewallRules/options.d.ts +18 -0
- package/dist/browser/api/horizonDbFirewallRules/options.js +4 -0
- package/dist/browser/api/horizonDbFirewallRules/options.js.map +1 -0
- package/dist/browser/api/horizonDbParameterGroups/index.d.ts +3 -0
- package/dist/browser/api/horizonDbParameterGroups/index.js +4 -0
- package/dist/browser/api/horizonDbParameterGroups/index.js.map +1 -0
- package/dist/browser/api/horizonDbParameterGroups/operations.d.ts +44 -0
- package/dist/browser/api/horizonDbParameterGroups/operations.js +263 -0
- package/dist/browser/api/horizonDbParameterGroups/operations.js.map +1 -0
- package/dist/browser/api/horizonDbParameterGroups/options.d.ts +34 -0
- package/dist/browser/api/horizonDbParameterGroups/options.js +4 -0
- package/dist/browser/api/horizonDbParameterGroups/options.js.map +1 -0
- package/dist/browser/api/horizonDbPools/index.d.ts +3 -0
- package/dist/browser/api/horizonDbPools/index.js +4 -0
- package/dist/browser/api/horizonDbPools/index.js.map +1 -0
- package/dist/browser/api/horizonDbPools/operations.d.ts +14 -0
- package/dist/browser/api/horizonDbPools/operations.js +67 -0
- package/dist/browser/api/horizonDbPools/operations.js.map +1 -0
- package/dist/browser/api/horizonDbPools/options.d.ts +8 -0
- package/dist/browser/api/horizonDbPools/options.js +4 -0
- package/dist/browser/api/horizonDbPools/options.js.map +1 -0
- package/dist/browser/api/horizonDbPrivateEndpointConnections/index.d.ts +3 -0
- package/dist/browser/api/horizonDbPrivateEndpointConnections/index.js +4 -0
- package/dist/browser/api/horizonDbPrivateEndpointConnections/index.js.map +1 -0
- package/dist/browser/api/horizonDbPrivateEndpointConnections/operations.d.ts +28 -0
- package/dist/browser/api/horizonDbPrivateEndpointConnections/operations.js +138 -0
- package/dist/browser/api/horizonDbPrivateEndpointConnections/operations.js.map +1 -0
- package/dist/browser/api/horizonDbPrivateEndpointConnections/options.d.ts +18 -0
- package/dist/browser/api/horizonDbPrivateEndpointConnections/options.js +4 -0
- package/dist/browser/api/horizonDbPrivateEndpointConnections/options.js.map +1 -0
- package/dist/browser/api/horizonDbPrivateLinkResources/index.d.ts +3 -0
- package/dist/browser/api/horizonDbPrivateLinkResources/index.js +4 -0
- package/dist/browser/api/horizonDbPrivateLinkResources/index.js.map +1 -0
- package/dist/browser/api/horizonDbPrivateLinkResources/operations.d.ts +14 -0
- package/dist/browser/api/horizonDbPrivateLinkResources/operations.js +67 -0
- package/dist/browser/api/horizonDbPrivateLinkResources/operations.js.map +1 -0
- package/dist/browser/api/horizonDbPrivateLinkResources/options.d.ts +8 -0
- package/dist/browser/api/horizonDbPrivateLinkResources/options.js +4 -0
- package/dist/browser/api/horizonDbPrivateLinkResources/options.js.map +1 -0
- package/dist/browser/api/horizonDbReplicas/index.d.ts +3 -0
- package/dist/browser/api/horizonDbReplicas/index.js +4 -0
- package/dist/browser/api/horizonDbReplicas/index.js.map +1 -0
- package/dist/browser/api/horizonDbReplicas/operations.d.ts +32 -0
- package/dist/browser/api/horizonDbReplicas/operations.js +181 -0
- package/dist/browser/api/horizonDbReplicas/operations.js.map +1 -0
- package/dist/browser/api/horizonDbReplicas/options.d.ts +23 -0
- package/dist/browser/api/horizonDbReplicas/options.js +4 -0
- package/dist/browser/api/horizonDbReplicas/options.js.map +1 -0
- package/dist/browser/api/index.d.ts +3 -0
- package/dist/browser/api/index.js +4 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/operations/index.d.ts +3 -0
- package/dist/browser/api/operations/index.js +4 -0
- package/dist/browser/api/operations/index.js.map +1 -0
- package/dist/browser/api/operations/operations.d.ts +10 -0
- package/dist/browser/api/operations/operations.js +35 -0
- package/dist/browser/api/operations/operations.js.map +1 -0
- package/dist/browser/api/operations/options.d.ts +5 -0
- package/dist/browser/api/operations/options.js +4 -0
- package/dist/browser/api/operations/options.js.map +1 -0
- package/dist/browser/classic/horizonDbClusters/index.d.ts +40 -0
- package/dist/browser/classic/horizonDbClusters/index.js +44 -0
- package/dist/browser/classic/horizonDbClusters/index.js.map +1 -0
- package/dist/browser/classic/horizonDbFirewallRules/index.d.ts +32 -0
- package/dist/browser/classic/horizonDbFirewallRules/index.js +34 -0
- package/dist/browser/classic/horizonDbFirewallRules/index.js.map +1 -0
- package/dist/browser/classic/horizonDbParameterGroups/index.d.ts +44 -0
- package/dist/browser/classic/horizonDbParameterGroups/index.js +46 -0
- package/dist/browser/classic/horizonDbParameterGroups/index.js.map +1 -0
- package/dist/browser/classic/horizonDbPools/index.d.ts +13 -0
- package/dist/browser/classic/horizonDbPools/index.js +15 -0
- package/dist/browser/classic/horizonDbPools/index.js.map +1 -0
- package/dist/browser/classic/horizonDbPrivateEndpointConnections/index.d.ts +32 -0
- package/dist/browser/classic/horizonDbPrivateEndpointConnections/index.js +34 -0
- package/dist/browser/classic/horizonDbPrivateEndpointConnections/index.js.map +1 -0
- package/dist/browser/classic/horizonDbPrivateLinkResources/index.d.ts +13 -0
- package/dist/browser/classic/horizonDbPrivateLinkResources/index.js +15 -0
- package/dist/browser/classic/horizonDbPrivateLinkResources/index.js.map +1 -0
- package/dist/browser/classic/horizonDbReplicas/index.d.ts +38 -0
- package/dist/browser/classic/horizonDbReplicas/index.js +43 -0
- package/dist/browser/classic/horizonDbReplicas/index.js.map +1 -0
- package/dist/browser/classic/index.d.ts +9 -0
- package/dist/browser/classic/index.js +4 -0
- package/dist/browser/classic/index.js.map +1 -0
- package/dist/browser/classic/operations/index.d.ts +11 -0
- package/dist/browser/classic/operations/index.js +14 -0
- package/dist/browser/classic/operations/index.js.map +1 -0
- package/dist/browser/horizonDbClient.d.ts +36 -0
- package/dist/browser/horizonDbClient.js +53 -0
- package/dist/browser/horizonDbClient.js.map +1 -0
- package/dist/browser/index.d.ts +23 -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 +3 -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 +740 -0
- package/dist/browser/models/models.js +773 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/restorePollerHelpers.d.ts +21 -0
- package/dist/browser/restorePollerHelpers.js +128 -0
- package/dist/browser/restorePollerHelpers.js.map +1 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/browser/static-helpers/pagingHelpers.js +143 -0
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pollingHelpers.d.ts +34 -0
- package/dist/browser/static-helpers/pollingHelpers.js +95 -0
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/simplePollerHelpers.d.ts +73 -0
- package/dist/browser/static-helpers/simplePollerHelpers.js +44 -0
- package/dist/browser/static-helpers/simplePollerHelpers.js.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/browser/static-helpers/urlTemplate.js +200 -0
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/api/horizonDbClusters/index.d.ts +3 -0
- package/dist/commonjs/api/horizonDbClusters/index.js +38 -0
- package/dist/commonjs/api/horizonDbClusters/index.js.map +7 -0
- package/dist/commonjs/api/horizonDbClusters/operations.d.ts +36 -0
- package/dist/commonjs/api/horizonDbClusters/operations.js +283 -0
- package/dist/commonjs/api/horizonDbClusters/operations.js.map +7 -0
- package/dist/commonjs/api/horizonDbClusters/options.d.ts +26 -0
- package/dist/commonjs/api/horizonDbClusters/options.js +16 -0
- package/dist/commonjs/api/horizonDbClusters/options.js.map +7 -0
- package/dist/commonjs/api/horizonDbContext.d.ts +22 -0
- package/dist/commonjs/api/horizonDbContext.js +45 -0
- package/dist/commonjs/api/horizonDbContext.js.map +7 -0
- package/dist/commonjs/api/horizonDbFirewallRules/index.d.ts +3 -0
- package/dist/commonjs/api/horizonDbFirewallRules/index.js +34 -0
- package/dist/commonjs/api/horizonDbFirewallRules/index.js.map +7 -0
- package/dist/commonjs/api/horizonDbFirewallRules/operations.d.ts +28 -0
- package/dist/commonjs/api/horizonDbFirewallRules/operations.js +218 -0
- package/dist/commonjs/api/horizonDbFirewallRules/operations.js.map +7 -0
- package/dist/commonjs/api/horizonDbFirewallRules/options.d.ts +18 -0
- package/dist/commonjs/api/horizonDbFirewallRules/options.js +16 -0
- package/dist/commonjs/api/horizonDbFirewallRules/options.js.map +7 -0
- package/dist/commonjs/api/horizonDbParameterGroups/index.d.ts +3 -0
- package/dist/commonjs/api/horizonDbParameterGroups/index.js +42 -0
- package/dist/commonjs/api/horizonDbParameterGroups/index.js.map +7 -0
- package/dist/commonjs/api/horizonDbParameterGroups/operations.d.ts +44 -0
- package/dist/commonjs/api/horizonDbParameterGroups/operations.js +376 -0
- package/dist/commonjs/api/horizonDbParameterGroups/operations.js.map +7 -0
- package/dist/commonjs/api/horizonDbParameterGroups/options.d.ts +34 -0
- package/dist/commonjs/api/horizonDbParameterGroups/options.js +16 -0
- package/dist/commonjs/api/horizonDbParameterGroups/options.js.map +7 -0
- package/dist/commonjs/api/horizonDbPools/index.d.ts +3 -0
- package/dist/commonjs/api/horizonDbPools/index.js +30 -0
- package/dist/commonjs/api/horizonDbPools/index.js.map +7 -0
- package/dist/commonjs/api/horizonDbPools/operations.d.ts +14 -0
- package/dist/commonjs/api/horizonDbPools/operations.js +113 -0
- package/dist/commonjs/api/horizonDbPools/operations.js.map +7 -0
- package/dist/commonjs/api/horizonDbPools/options.d.ts +8 -0
- package/dist/commonjs/api/horizonDbPools/options.js +16 -0
- package/dist/commonjs/api/horizonDbPools/options.js.map +7 -0
- package/dist/commonjs/api/horizonDbPrivateEndpointConnections/index.d.ts +3 -0
- package/dist/commonjs/api/horizonDbPrivateEndpointConnections/index.js +34 -0
- package/dist/commonjs/api/horizonDbPrivateEndpointConnections/index.js.map +7 -0
- package/dist/commonjs/api/horizonDbPrivateEndpointConnections/operations.d.ts +28 -0
- package/dist/commonjs/api/horizonDbPrivateEndpointConnections/operations.js +203 -0
- package/dist/commonjs/api/horizonDbPrivateEndpointConnections/operations.js.map +7 -0
- package/dist/commonjs/api/horizonDbPrivateEndpointConnections/options.d.ts +18 -0
- package/dist/commonjs/api/horizonDbPrivateEndpointConnections/options.js +16 -0
- package/dist/commonjs/api/horizonDbPrivateEndpointConnections/options.js.map +7 -0
- package/dist/commonjs/api/horizonDbPrivateLinkResources/index.d.ts +3 -0
- package/dist/commonjs/api/horizonDbPrivateLinkResources/index.js +30 -0
- package/dist/commonjs/api/horizonDbPrivateLinkResources/index.js.map +7 -0
- package/dist/commonjs/api/horizonDbPrivateLinkResources/operations.d.ts +14 -0
- package/dist/commonjs/api/horizonDbPrivateLinkResources/operations.js +113 -0
- package/dist/commonjs/api/horizonDbPrivateLinkResources/operations.js.map +7 -0
- package/dist/commonjs/api/horizonDbPrivateLinkResources/options.d.ts +8 -0
- package/dist/commonjs/api/horizonDbPrivateLinkResources/options.js +16 -0
- package/dist/commonjs/api/horizonDbPrivateLinkResources/options.js.map +7 -0
- package/dist/commonjs/api/horizonDbReplicas/index.d.ts +3 -0
- package/dist/commonjs/api/horizonDbReplicas/index.js +36 -0
- package/dist/commonjs/api/horizonDbReplicas/index.js.map +7 -0
- package/dist/commonjs/api/horizonDbReplicas/operations.d.ts +32 -0
- package/dist/commonjs/api/horizonDbReplicas/operations.js +272 -0
- package/dist/commonjs/api/horizonDbReplicas/operations.js.map +7 -0
- package/dist/commonjs/api/horizonDbReplicas/options.d.ts +23 -0
- package/dist/commonjs/api/horizonDbReplicas/options.js +16 -0
- package/dist/commonjs/api/horizonDbReplicas/options.js.map +7 -0
- package/dist/commonjs/api/index.d.ts +3 -0
- package/dist/commonjs/api/index.js +28 -0
- package/dist/commonjs/api/index.js.map +7 -0
- package/dist/commonjs/api/operations/index.d.ts +3 -0
- package/dist/commonjs/api/operations/index.js +28 -0
- package/dist/commonjs/api/operations/index.js.map +7 -0
- package/dist/commonjs/api/operations/operations.d.ts +10 -0
- package/dist/commonjs/api/operations/operations.js +72 -0
- package/dist/commonjs/api/operations/operations.js.map +7 -0
- package/dist/commonjs/api/operations/options.d.ts +5 -0
- package/dist/commonjs/api/operations/options.js +16 -0
- package/dist/commonjs/api/operations/options.js.map +7 -0
- package/dist/commonjs/classic/horizonDbClusters/index.d.ts +40 -0
- package/dist/commonjs/classic/horizonDbClusters/index.js +68 -0
- package/dist/commonjs/classic/horizonDbClusters/index.js.map +7 -0
- package/dist/commonjs/classic/horizonDbFirewallRules/index.d.ts +32 -0
- package/dist/commonjs/classic/horizonDbFirewallRules/index.js +96 -0
- package/dist/commonjs/classic/horizonDbFirewallRules/index.js.map +7 -0
- package/dist/commonjs/classic/horizonDbParameterGroups/index.d.ts +44 -0
- package/dist/commonjs/classic/horizonDbParameterGroups/index.js +82 -0
- package/dist/commonjs/classic/horizonDbParameterGroups/index.js.map +7 -0
- package/dist/commonjs/classic/horizonDbPools/index.d.ts +13 -0
- package/dist/commonjs/classic/horizonDbPools/index.js +39 -0
- package/dist/commonjs/classic/horizonDbPools/index.js.map +7 -0
- package/dist/commonjs/classic/horizonDbPrivateEndpointConnections/index.d.ts +32 -0
- package/dist/commonjs/classic/horizonDbPrivateEndpointConnections/index.js +70 -0
- package/dist/commonjs/classic/horizonDbPrivateEndpointConnections/index.js.map +7 -0
- package/dist/commonjs/classic/horizonDbPrivateLinkResources/index.d.ts +13 -0
- package/dist/commonjs/classic/horizonDbPrivateLinkResources/index.js +39 -0
- package/dist/commonjs/classic/horizonDbPrivateLinkResources/index.js.map +7 -0
- package/dist/commonjs/classic/horizonDbReplicas/index.d.ts +38 -0
- package/dist/commonjs/classic/horizonDbReplicas/index.js +114 -0
- package/dist/commonjs/classic/horizonDbReplicas/index.js.map +7 -0
- package/dist/commonjs/classic/index.d.ts +9 -0
- package/dist/commonjs/classic/index.js +16 -0
- package/dist/commonjs/classic/index.js.map +7 -0
- package/dist/commonjs/classic/operations/index.d.ts +11 -0
- package/dist/commonjs/classic/operations/index.js +38 -0
- package/dist/commonjs/classic/operations/index.js.map +7 -0
- package/dist/commonjs/horizonDbClient.d.ts +36 -0
- package/dist/commonjs/horizonDbClient.js +77 -0
- package/dist/commonjs/horizonDbClient.js.map +7 -0
- package/dist/commonjs/index.d.ts +23 -0
- package/dist/commonjs/index.js +61 -0
- package/dist/commonjs/index.js.map +7 -0
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.js +29 -0
- package/dist/commonjs/logger.js.map +7 -0
- package/dist/commonjs/models/index.d.ts +3 -0
- package/dist/commonjs/models/index.js +52 -0
- package/dist/commonjs/models/index.js.map +7 -0
- package/dist/commonjs/models/models.d.ts +740 -0
- package/dist/commonjs/models/models.js +836 -0
- package/dist/commonjs/models/models.js.map +7 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
- package/dist/commonjs/restorePollerHelpers.js +141 -0
- package/dist/commonjs/restorePollerHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js +52 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +143 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +34 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js +101 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/simplePollerHelpers.d.ts +73 -0
- package/dist/commonjs/static-helpers/simplePollerHelpers.js +67 -0
- package/dist/commonjs/static-helpers/simplePollerHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +197 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +7 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/api/horizonDbClusters/index.d.ts +3 -0
- package/dist/esm/api/horizonDbClusters/index.js +4 -0
- package/dist/esm/api/horizonDbClusters/index.js.map +1 -0
- package/dist/esm/api/horizonDbClusters/operations.d.ts +36 -0
- package/dist/esm/api/horizonDbClusters/operations.js +200 -0
- package/dist/esm/api/horizonDbClusters/operations.js.map +1 -0
- package/dist/esm/api/horizonDbClusters/options.d.ts +26 -0
- package/dist/esm/api/horizonDbClusters/options.js +4 -0
- package/dist/esm/api/horizonDbClusters/options.js.map +1 -0
- package/dist/esm/api/horizonDbContext.d.ts +22 -0
- package/dist/esm/api/horizonDbContext.js +24 -0
- package/dist/esm/api/horizonDbContext.js.map +1 -0
- package/dist/esm/api/horizonDbFirewallRules/index.d.ts +3 -0
- package/dist/esm/api/horizonDbFirewallRules/index.js +4 -0
- package/dist/esm/api/horizonDbFirewallRules/index.js.map +1 -0
- package/dist/esm/api/horizonDbFirewallRules/operations.d.ts +28 -0
- package/dist/esm/api/horizonDbFirewallRules/operations.js +144 -0
- package/dist/esm/api/horizonDbFirewallRules/operations.js.map +1 -0
- package/dist/esm/api/horizonDbFirewallRules/options.d.ts +18 -0
- package/dist/esm/api/horizonDbFirewallRules/options.js +4 -0
- package/dist/esm/api/horizonDbFirewallRules/options.js.map +1 -0
- package/dist/esm/api/horizonDbParameterGroups/index.d.ts +3 -0
- package/dist/esm/api/horizonDbParameterGroups/index.js +4 -0
- package/dist/esm/api/horizonDbParameterGroups/index.js.map +1 -0
- package/dist/esm/api/horizonDbParameterGroups/operations.d.ts +44 -0
- package/dist/esm/api/horizonDbParameterGroups/operations.js +263 -0
- package/dist/esm/api/horizonDbParameterGroups/operations.js.map +1 -0
- package/dist/esm/api/horizonDbParameterGroups/options.d.ts +34 -0
- package/dist/esm/api/horizonDbParameterGroups/options.js +4 -0
- package/dist/esm/api/horizonDbParameterGroups/options.js.map +1 -0
- package/dist/esm/api/horizonDbPools/index.d.ts +3 -0
- package/dist/esm/api/horizonDbPools/index.js +4 -0
- package/dist/esm/api/horizonDbPools/index.js.map +1 -0
- package/dist/esm/api/horizonDbPools/operations.d.ts +14 -0
- package/dist/esm/api/horizonDbPools/operations.js +67 -0
- package/dist/esm/api/horizonDbPools/operations.js.map +1 -0
- package/dist/esm/api/horizonDbPools/options.d.ts +8 -0
- package/dist/esm/api/horizonDbPools/options.js +4 -0
- package/dist/esm/api/horizonDbPools/options.js.map +1 -0
- package/dist/esm/api/horizonDbPrivateEndpointConnections/index.d.ts +3 -0
- package/dist/esm/api/horizonDbPrivateEndpointConnections/index.js +4 -0
- package/dist/esm/api/horizonDbPrivateEndpointConnections/index.js.map +1 -0
- package/dist/esm/api/horizonDbPrivateEndpointConnections/operations.d.ts +28 -0
- package/dist/esm/api/horizonDbPrivateEndpointConnections/operations.js +138 -0
- package/dist/esm/api/horizonDbPrivateEndpointConnections/operations.js.map +1 -0
- package/dist/esm/api/horizonDbPrivateEndpointConnections/options.d.ts +18 -0
- package/dist/esm/api/horizonDbPrivateEndpointConnections/options.js +4 -0
- package/dist/esm/api/horizonDbPrivateEndpointConnections/options.js.map +1 -0
- package/dist/esm/api/horizonDbPrivateLinkResources/index.d.ts +3 -0
- package/dist/esm/api/horizonDbPrivateLinkResources/index.js +4 -0
- package/dist/esm/api/horizonDbPrivateLinkResources/index.js.map +1 -0
- package/dist/esm/api/horizonDbPrivateLinkResources/operations.d.ts +14 -0
- package/dist/esm/api/horizonDbPrivateLinkResources/operations.js +67 -0
- package/dist/esm/api/horizonDbPrivateLinkResources/operations.js.map +1 -0
- package/dist/esm/api/horizonDbPrivateLinkResources/options.d.ts +8 -0
- package/dist/esm/api/horizonDbPrivateLinkResources/options.js +4 -0
- package/dist/esm/api/horizonDbPrivateLinkResources/options.js.map +1 -0
- package/dist/esm/api/horizonDbReplicas/index.d.ts +3 -0
- package/dist/esm/api/horizonDbReplicas/index.js +4 -0
- package/dist/esm/api/horizonDbReplicas/index.js.map +1 -0
- package/dist/esm/api/horizonDbReplicas/operations.d.ts +32 -0
- package/dist/esm/api/horizonDbReplicas/operations.js +181 -0
- package/dist/esm/api/horizonDbReplicas/operations.js.map +1 -0
- package/dist/esm/api/horizonDbReplicas/options.d.ts +23 -0
- package/dist/esm/api/horizonDbReplicas/options.js +4 -0
- package/dist/esm/api/horizonDbReplicas/options.js.map +1 -0
- package/dist/esm/api/index.d.ts +3 -0
- package/dist/esm/api/index.js +4 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/operations/index.d.ts +3 -0
- package/dist/esm/api/operations/index.js +4 -0
- package/dist/esm/api/operations/index.js.map +1 -0
- package/dist/esm/api/operations/operations.d.ts +10 -0
- package/dist/esm/api/operations/operations.js +35 -0
- package/dist/esm/api/operations/operations.js.map +1 -0
- package/dist/esm/api/operations/options.d.ts +5 -0
- package/dist/esm/api/operations/options.js +4 -0
- package/dist/esm/api/operations/options.js.map +1 -0
- package/dist/esm/classic/horizonDbClusters/index.d.ts +40 -0
- package/dist/esm/classic/horizonDbClusters/index.js +44 -0
- package/dist/esm/classic/horizonDbClusters/index.js.map +1 -0
- package/dist/esm/classic/horizonDbFirewallRules/index.d.ts +32 -0
- package/dist/esm/classic/horizonDbFirewallRules/index.js +34 -0
- package/dist/esm/classic/horizonDbFirewallRules/index.js.map +1 -0
- package/dist/esm/classic/horizonDbParameterGroups/index.d.ts +44 -0
- package/dist/esm/classic/horizonDbParameterGroups/index.js +46 -0
- package/dist/esm/classic/horizonDbParameterGroups/index.js.map +1 -0
- package/dist/esm/classic/horizonDbPools/index.d.ts +13 -0
- package/dist/esm/classic/horizonDbPools/index.js +15 -0
- package/dist/esm/classic/horizonDbPools/index.js.map +1 -0
- package/dist/esm/classic/horizonDbPrivateEndpointConnections/index.d.ts +32 -0
- package/dist/esm/classic/horizonDbPrivateEndpointConnections/index.js +34 -0
- package/dist/esm/classic/horizonDbPrivateEndpointConnections/index.js.map +1 -0
- package/dist/esm/classic/horizonDbPrivateLinkResources/index.d.ts +13 -0
- package/dist/esm/classic/horizonDbPrivateLinkResources/index.js +15 -0
- package/dist/esm/classic/horizonDbPrivateLinkResources/index.js.map +1 -0
- package/dist/esm/classic/horizonDbReplicas/index.d.ts +38 -0
- package/dist/esm/classic/horizonDbReplicas/index.js +43 -0
- package/dist/esm/classic/horizonDbReplicas/index.js.map +1 -0
- package/dist/esm/classic/index.d.ts +9 -0
- package/dist/esm/classic/index.js +4 -0
- package/dist/esm/classic/index.js.map +1 -0
- package/dist/esm/classic/operations/index.d.ts +11 -0
- package/dist/esm/classic/operations/index.js +14 -0
- package/dist/esm/classic/operations/index.js.map +1 -0
- package/dist/esm/horizonDbClient.d.ts +36 -0
- package/dist/esm/horizonDbClient.js +53 -0
- package/dist/esm/horizonDbClient.js.map +1 -0
- package/dist/esm/index.d.ts +23 -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 +3 -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 +740 -0
- package/dist/esm/models/models.js +773 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/restorePollerHelpers.d.ts +21 -0
- package/dist/esm/restorePollerHelpers.js +128 -0
- package/dist/esm/restorePollerHelpers.js.map +1 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/esm/static-helpers/pagingHelpers.js +143 -0
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pollingHelpers.d.ts +34 -0
- package/dist/esm/static-helpers/pollingHelpers.js +95 -0
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/simplePollerHelpers.d.ts +73 -0
- package/dist/esm/static-helpers/simplePollerHelpers.js +44 -0
- package/dist/esm/static-helpers/simplePollerHelpers.js.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/esm/static-helpers/urlTemplate.js +200 -0
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
- package/package.json +263 -0
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,aAGX;AAHD,WAAY,aAAa;IACvB,0CAA0C;IAC1C,wDAAuC,CAAA;AACzC,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\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/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationListResultDeserializer(item: any): _OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n readonly actionType?: ActionType;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n isDataAction: item[\"isDataAction\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n actionType: item[\"actionType\"],\n };\n}\n\n/** Localized display information for an operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n\n/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\nexport enum KnownOrigin {\n /** Indicates the operation is initiated by a user. */\n User = \"user\",\n /** Indicates the operation is initiated by a system. */\n System = \"system\",\n /** Indicates the operation is initiated by a user or system. */\n UserSystem = \"user,system\",\n}\n\n/**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user**: Indicates the operation is initiated by a user. \\\n * **system**: Indicates the operation is initiated by a system. \\\n * **user,system**: Indicates the operation is initiated by a user or system.\n */\nexport type Origin = string;\n\n/** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\nexport enum KnownActionType {\n /** Actions are for internal-only APIs. */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**: Actions are for internal-only APIs.\n */\nexport type ActionType = 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/** Represents the HorizonDb cluster. */\nexport interface HorizonDbCluster extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: HorizonDbClusterProperties;\n}\n\nexport function horizonDbClusterSerializer(item: HorizonDbCluster): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : horizonDbClusterPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function horizonDbClusterDeserializer(item: any): HorizonDbCluster {\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 properties: !item[\"properties\"]\n ? item[\"properties\"]\n : horizonDbClusterPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Properties of a HorizonDb cluster. */\nexport interface HorizonDbClusterProperties {\n /** The administrator login name. */\n administratorLogin: string;\n /** The administrator login password. */\n administratorLoginPassword?: string;\n /** The version of the HorizonDb cluster. */\n version?: string;\n /** The mode to create a new HorizonDb cluster. */\n createMode?: CreateModeCluster;\n /** Restore point creation time specifying the time to restore from. */\n pointInTimeUTC?: Date;\n /** The source cluster resource ID for restore or replica creation. */\n sourceClusterResourceId?: string;\n /** The pool name for restore or replica operations. */\n poolName?: string;\n /** Number of replicas. */\n replicaCount?: number;\n /** Number of vCores. */\n vCores?: number;\n /** The processor type for the HorizonDb cluster. */\n processorType?: string;\n /** The network related info. */\n network?: Network;\n /** Current state of the cluster. */\n readonly state?: State;\n /** The fully qualified domain name of the cluster. */\n readonly fullyQualifiedDomainName?: string;\n /** The fully qualified domain name used for readonly endpoint for the cluster. */\n readonly readonlyEndpoint?: string;\n /** The provisioning state of the cluster. */\n readonly provisioningState?: ProvisioningState;\n /** Defines how replicas are placed across availability zones. */\n zonePlacementPolicy?: ZonePlacementPolicy;\n /** Defines connection to a parameter group. */\n parameterGroup?: HorizonDbClusterParameterGroupConnectionProperties;\n}\n\nexport function horizonDbClusterPropertiesSerializer(item: HorizonDbClusterProperties): any {\n return {\n administratorLogin: item[\"administratorLogin\"],\n administratorLoginPassword: item[\"administratorLoginPassword\"],\n version: item[\"version\"],\n createMode: item[\"createMode\"],\n pointInTimeUTC: !item[\"pointInTimeUTC\"]\n ? item[\"pointInTimeUTC\"]\n : item[\"pointInTimeUTC\"].toISOString(),\n sourceClusterResourceId: item[\"sourceClusterResourceId\"],\n poolName: item[\"poolName\"],\n replicaCount: item[\"replicaCount\"],\n vCores: item[\"vCores\"],\n processorType: item[\"processorType\"],\n network: !item[\"network\"] ? item[\"network\"] : networkSerializer(item[\"network\"]),\n zonePlacementPolicy: item[\"zonePlacementPolicy\"],\n parameterGroup: !item[\"parameterGroup\"]\n ? item[\"parameterGroup\"]\n : horizonDbClusterParameterGroupConnectionPropertiesSerializer(item[\"parameterGroup\"]),\n };\n}\n\nexport function horizonDbClusterPropertiesDeserializer(item: any): HorizonDbClusterProperties {\n return {\n administratorLogin: item[\"administratorLogin\"],\n administratorLoginPassword: item[\"administratorLoginPassword\"],\n version: item[\"version\"],\n createMode: item[\"createMode\"],\n pointInTimeUTC: !item[\"pointInTimeUTC\"]\n ? item[\"pointInTimeUTC\"]\n : new Date(item[\"pointInTimeUTC\"]),\n sourceClusterResourceId: item[\"sourceClusterResourceId\"],\n poolName: item[\"poolName\"],\n replicaCount: item[\"replicaCount\"],\n vCores: item[\"vCores\"],\n processorType: item[\"processorType\"],\n network: !item[\"network\"] ? item[\"network\"] : networkDeserializer(item[\"network\"]),\n state: item[\"state\"],\n fullyQualifiedDomainName: item[\"fullyQualifiedDomainName\"],\n readonlyEndpoint: item[\"readonlyEndpoint\"],\n provisioningState: item[\"provisioningState\"],\n zonePlacementPolicy: item[\"zonePlacementPolicy\"],\n parameterGroup: !item[\"parameterGroup\"]\n ? item[\"parameterGroup\"]\n : horizonDbClusterParameterGroupConnectionPropertiesDeserializer(item[\"parameterGroup\"]),\n };\n}\n\n/** The mode to create a new HorizonDb cluster. */\nexport enum KnownCreateModeCluster {\n /** Create a new cluster */\n Create = \"Create\",\n /** Update an existing cluster */\n Update = \"Update\",\n /** Create cluster from point-in-time restore */\n PointInTimeRestore = \"PointInTimeRestore\",\n}\n\n/**\n * The mode to create a new HorizonDb cluster. \\\n * {@link KnownCreateModeCluster} can be used interchangeably with CreateModeCluster,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Create**: Create a new cluster \\\n * **Update**: Update an existing cluster \\\n * **PointInTimeRestore**: Create cluster from point-in-time restore\n */\nexport type CreateModeCluster = string;\n\n/** Network properties. */\nexport interface Network {\n /** The flag indicating whether public ip is requested. */\n readonly publicNetworkAccess?: PublicNetworkAccessState;\n}\n\nexport function networkSerializer(item: Network): any {\n return item;\n}\n\nexport function networkDeserializer(item: any): Network {\n return {\n publicNetworkAccess: item[\"publicNetworkAccess\"],\n };\n}\n\n/** Indicates if public network access is enabled or not. */\nexport enum KnownPublicNetworkAccessState {\n /** Public network access is enabled */\n Enabled = \"Enabled\",\n /** Public network access is disabled */\n Disabled = \"Disabled\",\n}\n\n/**\n * Indicates if public network access is enabled or not. \\\n * {@link KnownPublicNetworkAccessState} can be used interchangeably with PublicNetworkAccessState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Enabled**: Public network access is enabled \\\n * **Disabled**: Public network access is disabled\n */\nexport type PublicNetworkAccessState = string;\n\n/** Current states. */\nexport enum KnownState {\n /** Is ready and operational */\n Ready = \"Ready\",\n /** Is being dropped/deleted */\n Dropping = \"Dropping\",\n /** Is disabled */\n Disabled = \"Disabled\",\n /** Is starting up */\n Starting = \"Starting\",\n /** Is stopping */\n Stopping = \"Stopping\",\n /** Is stopped */\n Stopped = \"Stopped\",\n /** Is being updated */\n Updating = \"Updating\",\n /** Is healthy */\n Healthy = \"Healthy\",\n}\n\n/**\n * Current states. \\\n * {@link KnownState} can be used interchangeably with State,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Ready**: Is ready and operational \\\n * **Dropping**: Is being dropped\\/deleted \\\n * **Disabled**: Is disabled \\\n * **Starting**: Is starting up \\\n * **Stopping**: Is stopping \\\n * **Stopped**: Is stopped \\\n * **Updating**: Is being updated \\\n * **Healthy**: Is healthy\n */\nexport type State = string;\n\n/** The provisioning state. */\nexport enum KnownProvisioningState {\n /** Provisioning completed successfully */\n Succeeded = \"Succeeded\",\n /** Provisioning failed */\n Failed = \"Failed\",\n /** Provisioning was canceled */\n Canceled = \"Canceled\",\n /** Provisioning is in progress */\n InProgress = \"InProgress\",\n /** Provisioning is in progress */\n Provisioning = \"Provisioning\",\n}\n\n/**\n * The provisioning state. \\\n * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: Provisioning completed successfully \\\n * **Failed**: Provisioning failed \\\n * **Canceled**: Provisioning was canceled \\\n * **InProgress**: Provisioning is in progress \\\n * **Provisioning**: Provisioning is in progress\n */\nexport type ProvisioningState = string;\n\n/** The zone redundancy option for the cluster. */\nexport enum KnownZonePlacementPolicy {\n /** Enforce zonal redundancy */\n Strict = \"Strict\",\n /** Best-effort placement (default) */\n BestEffort = \"BestEffort\",\n}\n\n/**\n * The zone redundancy option for the cluster. \\\n * {@link KnownZonePlacementPolicy} can be used interchangeably with ZonePlacementPolicy,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Strict**: Enforce zonal redundancy \\\n * **BestEffort**: Best-effort placement (default)\n */\nexport type ZonePlacementPolicy = string;\n\n/** Connection information for HorizonDb parameter group. */\nexport interface HorizonDbClusterParameterGroupConnectionProperties {\n /** The resource ID of the connected parameter group. */\n id?: string;\n /** Indication of if parameter group is applied on HorizonDb resource. */\n readonly syncStatus?: string;\n /** Indicates whether the parameters should be applied immediately. */\n applyImmediately?: boolean;\n}\n\nexport function horizonDbClusterParameterGroupConnectionPropertiesSerializer(\n item: HorizonDbClusterParameterGroupConnectionProperties,\n): any {\n return { id: item[\"id\"], applyImmediately: item[\"applyImmediately\"] };\n}\n\nexport function horizonDbClusterParameterGroupConnectionPropertiesDeserializer(\n item: any,\n): HorizonDbClusterParameterGroupConnectionProperties {\n return {\n id: item[\"id\"],\n syncStatus: item[\"syncStatus\"],\n applyImmediately: item[\"applyImmediately\"],\n };\n}\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/** HorizonDb cluster for update operations. */\nexport interface HorizonDbClusterForPatchUpdate {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The properties that can be updated for a HorizonDb cluster. */\n properties?: HorizonDbClusterPropertiesForPatchUpdate;\n}\n\nexport function horizonDbClusterForPatchUpdateSerializer(\n item: HorizonDbClusterForPatchUpdate,\n): any {\n return {\n tags: item[\"tags\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : horizonDbClusterPropertiesForPatchUpdateSerializer(item[\"properties\"]),\n };\n}\n\n/** Properties of a HorizonDb cluster for update operations. */\nexport interface HorizonDbClusterPropertiesForPatchUpdate {\n /** The administrator login password. */\n administratorLoginPassword?: string;\n /** Number of vCores. */\n vCores?: number;\n /** Defines connection to a parameter group. */\n parameterGroup?: HorizonDbClusterParameterGroupConnectionProperties;\n}\n\nexport function horizonDbClusterPropertiesForPatchUpdateSerializer(\n item: HorizonDbClusterPropertiesForPatchUpdate,\n): any {\n return {\n administratorLoginPassword: item[\"administratorLoginPassword\"],\n vCores: item[\"vCores\"],\n parameterGroup: !item[\"parameterGroup\"]\n ? item[\"parameterGroup\"]\n : horizonDbClusterParameterGroupConnectionPropertiesSerializer(item[\"parameterGroup\"]),\n };\n}\n\n/** The response of a HorizonDbCluster list operation. */\nexport interface _HorizonDbClusterListResult {\n /** The HorizonDbCluster items on this page */\n value: HorizonDbCluster[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _horizonDbClusterListResultDeserializer(item: any): _HorizonDbClusterListResult {\n return {\n value: horizonDbClusterArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function horizonDbClusterArraySerializer(result: Array<HorizonDbCluster>): any[] {\n return result.map((item) => {\n return horizonDbClusterSerializer(item);\n });\n}\n\nexport function horizonDbClusterArrayDeserializer(result: Array<HorizonDbCluster>): any[] {\n return result.map((item) => {\n return horizonDbClusterDeserializer(item);\n });\n}\n\n/** Represents the HorizonDb pool. */\nexport interface HorizonDbPool extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: HorizonDbPoolProperties;\n /** Resource tags. */\n tags?: Record<string, string>;\n}\n\nexport function horizonDbPoolDeserializer(item: any): HorizonDbPool {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : horizonDbPoolPropertiesDeserializer(item[\"properties\"]),\n tags: !item[\"tags\"]\n ? item[\"tags\"]\n : Object.fromEntries(Object.entries(item[\"tags\"]).map(([k, p]: [string, any]) => [k, p])),\n };\n}\n\n/** Properties of a HorizonDb pool. */\nexport interface HorizonDbPoolProperties {\n /** The location of the HorizonDb pool. */\n location?: string;\n /** Current state of the pool. */\n readonly state?: State;\n /** Number of replicas in the pool. */\n readonly replicaCount?: number;\n /** The version of the HorizonDb pool. */\n readonly version?: string;\n /** The create mode for the pool. */\n readonly createMode?: CreateModePool;\n /** The provisioning state of the pool. */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function horizonDbPoolPropertiesDeserializer(item: any): HorizonDbPoolProperties {\n return {\n location: item[\"location\"],\n state: item[\"state\"],\n replicaCount: item[\"replicaCount\"],\n version: item[\"version\"],\n createMode: item[\"createMode\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** The mode to create a new HorizonDb cluster. */\nexport enum KnownCreateModePool {\n /** Create a new pool */\n Create = \"Create\",\n /** Update an existing pool */\n Update = \"Update\",\n}\n\n/**\n * The mode to create a new HorizonDb cluster. \\\n * {@link KnownCreateModePool} can be used interchangeably with CreateModePool,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Create**: Create a new pool \\\n * **Update**: Update an existing pool\n */\nexport type CreateModePool = string;\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\nexport function proxyResourceSerializer(item: ProxyResource): any {\n return item;\n}\n\nexport function proxyResourceDeserializer(item: any): ProxyResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** The response of a HorizonDbPool list operation. */\nexport interface _HorizonDbPoolListResult {\n /** The HorizonDbPool items on this page */\n value: HorizonDbPool[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _horizonDbPoolListResultDeserializer(item: any): _HorizonDbPoolListResult {\n return {\n value: horizonDbPoolArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function horizonDbPoolArrayDeserializer(result: Array<HorizonDbPool>): any[] {\n return result.map((item) => {\n return horizonDbPoolDeserializer(item);\n });\n}\n\n/** Represents the HorizonDb replica. */\nexport interface HorizonDbReplica extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: HorizonDbReplicaProperties;\n}\n\nexport function horizonDbReplicaSerializer(item: HorizonDbReplica): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : horizonDbReplicaPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function horizonDbReplicaDeserializer(item: any): HorizonDbReplica {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : horizonDbReplicaPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Properties of a HorizonDb replica. */\nexport interface HorizonDbReplicaProperties {\n /** Role of the replica. */\n role?: ReplicaRole;\n /** Current status of the replica. */\n readonly status?: State;\n /** The fully qualified domain name of the replica. */\n readonly fullyQualifiedDomainName?: string;\n /** The availability zone of the replica. */\n availabilityZone?: string;\n /** The provisioning state of the replica. */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function horizonDbReplicaPropertiesSerializer(item: HorizonDbReplicaProperties): any {\n return { role: item[\"role\"], availabilityZone: item[\"availabilityZone\"] };\n}\n\nexport function horizonDbReplicaPropertiesDeserializer(item: any): HorizonDbReplicaProperties {\n return {\n role: item[\"role\"],\n status: item[\"status\"],\n fullyQualifiedDomainName: item[\"fullyQualifiedDomainName\"],\n availabilityZone: item[\"availabilityZone\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** Role of the replica. */\nexport enum KnownReplicaRole {\n /** Read-only replica */\n Read = \"Read\",\n /** ReadWrite replica */\n ReadWrite = \"ReadWrite\",\n}\n\n/**\n * Role of the replica. \\\n * {@link KnownReplicaRole} can be used interchangeably with ReplicaRole,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Read**: Read-only replica \\\n * **ReadWrite**: ReadWrite replica\n */\nexport type ReplicaRole = string;\n\n/** The response of a HorizonDbReplica list operation. */\nexport interface _HorizonDbReplicaListResult {\n /** The HorizonDbReplica items on this page */\n value: HorizonDbReplica[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _horizonDbReplicaListResultDeserializer(item: any): _HorizonDbReplicaListResult {\n return {\n value: horizonDbReplicaArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function horizonDbReplicaArraySerializer(result: Array<HorizonDbReplica>): any[] {\n return result.map((item) => {\n return horizonDbReplicaSerializer(item);\n });\n}\n\nexport function horizonDbReplicaArrayDeserializer(result: Array<HorizonDbReplica>): any[] {\n return result.map((item) => {\n return horizonDbReplicaDeserializer(item);\n });\n}\n\n/** HorizonDb replica for update operations. */\nexport interface HorizonDbReplicaForPatchUpdate {\n /** Properties of a HorizonDb replica for update operations. */\n properties?: HorizonDbReplicaPropertiesForPatchUpdate;\n}\n\nexport function horizonDbReplicaForPatchUpdateSerializer(\n item: HorizonDbReplicaForPatchUpdate,\n): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : horizonDbReplicaPropertiesForPatchUpdateSerializer(item[\"properties\"]),\n };\n}\n\n/** Properties of a HorizonDb replica for update operations. */\nexport interface HorizonDbReplicaPropertiesForPatchUpdate {\n /** Role of the replica. */\n role?: ReplicaRole;\n}\n\nexport function horizonDbReplicaPropertiesForPatchUpdateSerializer(\n item: HorizonDbReplicaPropertiesForPatchUpdate,\n): any {\n return { role: item[\"role\"] };\n}\n\n/** Represents the HorizonDb firewall rule. */\nexport interface HorizonDbFirewallRule extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: HorizonDbFirewallRuleProperties;\n}\n\nexport function horizonDbFirewallRuleSerializer(item: HorizonDbFirewallRule): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : horizonDbFirewallRulePropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function horizonDbFirewallRuleDeserializer(item: any): HorizonDbFirewallRule {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : horizonDbFirewallRulePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Properties of a HorizonDb firewall rule. */\nexport interface HorizonDbFirewallRuleProperties {\n /** The start IP address of the firewall rule (IPv4). */\n startIpAddress: string;\n /** The end IP address of the firewall rule (IPv4). */\n endIpAddress: string;\n /** The description of the HorizonDb firewall rule. */\n description?: string;\n /** The provisioning state of the firewall rule. */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function horizonDbFirewallRulePropertiesSerializer(\n item: HorizonDbFirewallRuleProperties,\n): any {\n return {\n startIpAddress: item[\"startIpAddress\"],\n endIpAddress: item[\"endIpAddress\"],\n description: item[\"description\"],\n };\n}\n\nexport function horizonDbFirewallRulePropertiesDeserializer(\n item: any,\n): HorizonDbFirewallRuleProperties {\n return {\n startIpAddress: item[\"startIpAddress\"],\n endIpAddress: item[\"endIpAddress\"],\n description: item[\"description\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** The response of a HorizonDbFirewallRule list operation. */\nexport interface _HorizonDbFirewallRuleListResult {\n /** The HorizonDbFirewallRule items on this page */\n value: HorizonDbFirewallRule[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _horizonDbFirewallRuleListResultDeserializer(\n item: any,\n): _HorizonDbFirewallRuleListResult {\n return {\n value: horizonDbFirewallRuleArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function horizonDbFirewallRuleArraySerializer(result: Array<HorizonDbFirewallRule>): any[] {\n return result.map((item) => {\n return horizonDbFirewallRuleSerializer(item);\n });\n}\n\nexport function horizonDbFirewallRuleArrayDeserializer(\n result: Array<HorizonDbFirewallRule>,\n): any[] {\n return result.map((item) => {\n return horizonDbFirewallRuleDeserializer(item);\n });\n}\n\n/** A private endpoint connection resource */\nexport interface PrivateEndpointConnectionResource extends Resource {\n /** The private endpoint connection properties */\n properties?: PrivateEndpointConnectionProperties;\n}\n\nexport function privateEndpointConnectionResourceDeserializer(\n item: any,\n): PrivateEndpointConnectionResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : privateEndpointConnectionPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Properties of the private endpoint connection. */\nexport interface PrivateEndpointConnectionProperties {\n /** The group ids for the private endpoint resource. */\n readonly groupIds?: string[];\n /** The private endpoint resource. */\n privateEndpoint?: PrivateEndpoint;\n /** A collection of information about the state of the connection between service consumer and provider. */\n privateLinkServiceConnectionState: PrivateLinkServiceConnectionState;\n /** The provisioning state of the private endpoint connection resource. */\n readonly provisioningState?: PrivateEndpointConnectionProvisioningState;\n}\n\nexport function privateEndpointConnectionPropertiesDeserializer(\n item: any,\n): PrivateEndpointConnectionProperties {\n return {\n groupIds: !item[\"groupIds\"]\n ? item[\"groupIds\"]\n : item[\"groupIds\"].map((p: any) => {\n return p;\n }),\n privateEndpoint: !item[\"privateEndpoint\"]\n ? item[\"privateEndpoint\"]\n : privateEndpointDeserializer(item[\"privateEndpoint\"]),\n privateLinkServiceConnectionState: privateLinkServiceConnectionStateDeserializer(\n item[\"privateLinkServiceConnectionState\"],\n ),\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** The private endpoint resource. */\nexport interface PrivateEndpoint {\n /** The resource identifier of the private endpoint */\n readonly id?: string;\n}\n\nexport function privateEndpointSerializer(item: PrivateEndpoint): any {\n return item;\n}\n\nexport function privateEndpointDeserializer(item: any): PrivateEndpoint {\n return {\n id: item[\"id\"],\n };\n}\n\n/** A collection of information about the state of the connection between service consumer and provider. */\nexport interface PrivateLinkServiceConnectionState {\n /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */\n status?: PrivateEndpointServiceConnectionStatus;\n /** The reason for approval/rejection of the connection. */\n description?: string;\n /** A message indicating if changes on the service provider require any updates on the consumer. */\n actionsRequired?: string;\n}\n\nexport function privateLinkServiceConnectionStateSerializer(\n item: PrivateLinkServiceConnectionState,\n): any {\n return {\n status: item[\"status\"],\n description: item[\"description\"],\n actionsRequired: item[\"actionsRequired\"],\n };\n}\n\nexport function privateLinkServiceConnectionStateDeserializer(\n item: any,\n): PrivateLinkServiceConnectionState {\n return {\n status: item[\"status\"],\n description: item[\"description\"],\n actionsRequired: item[\"actionsRequired\"],\n };\n}\n\n/** The private endpoint connection status. */\nexport enum KnownPrivateEndpointServiceConnectionStatus {\n /** Connection waiting for approval or rejection */\n Pending = \"Pending\",\n /** Connection approved */\n Approved = \"Approved\",\n /** Connection Rejected */\n Rejected = \"Rejected\",\n}\n\n/**\n * The private endpoint connection status. \\\n * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Pending**: Connection waiting for approval or rejection \\\n * **Approved**: Connection approved \\\n * **Rejected**: Connection Rejected\n */\nexport type PrivateEndpointServiceConnectionStatus = string;\n\n/** The current provisioning state. */\nexport enum KnownPrivateEndpointConnectionProvisioningState {\n /** Connection has been provisioned */\n Succeeded = \"Succeeded\",\n /** Connection is being created */\n Creating = \"Creating\",\n /** Connection is being deleted */\n Deleting = \"Deleting\",\n /** Connection provisioning has failed */\n Failed = \"Failed\",\n}\n\n/**\n * The current provisioning state. \\\n * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: Connection has been provisioned \\\n * **Creating**: Connection is being created \\\n * **Deleting**: Connection is being deleted \\\n * **Failed**: Connection provisioning has failed\n */\nexport type PrivateEndpointConnectionProvisioningState = string;\n\n/** The response of a PrivateEndpointConnectionResource list operation. */\nexport interface _PrivateEndpointConnectionResourceListResult {\n /** The PrivateEndpointConnectionResource items on this page */\n value: PrivateEndpointConnectionResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _privateEndpointConnectionResourceListResultDeserializer(\n item: any,\n): _PrivateEndpointConnectionResourceListResult {\n return {\n value: privateEndpointConnectionResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function privateEndpointConnectionResourceArrayDeserializer(\n result: Array<PrivateEndpointConnectionResource>,\n): any[] {\n return result.map((item) => {\n return privateEndpointConnectionResourceDeserializer(item);\n });\n}\n\n/** PATCH model for private endpoint connections */\nexport interface PrivateEndpointConnectionUpdate {\n /** The private endpoint connection properties */\n properties?: OptionalPropertiesUpdateableProperties;\n}\n\nexport function privateEndpointConnectionUpdateSerializer(\n item: PrivateEndpointConnectionUpdate,\n): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : optionalPropertiesUpdateablePropertiesSerializer(item[\"properties\"]),\n };\n}\n\n/** The template for adding optional properties. */\nexport interface OptionalPropertiesUpdateableProperties {\n /** The private endpoint resource. */\n privateEndpoint?: PrivateEndpoint;\n /** A collection of information about the state of the connection between service consumer and provider. */\n privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState;\n}\n\nexport function optionalPropertiesUpdateablePropertiesSerializer(\n item: OptionalPropertiesUpdateableProperties,\n): any {\n return {\n privateEndpoint: !item[\"privateEndpoint\"]\n ? item[\"privateEndpoint\"]\n : privateEndpointSerializer(item[\"privateEndpoint\"]),\n privateLinkServiceConnectionState: !item[\"privateLinkServiceConnectionState\"]\n ? item[\"privateLinkServiceConnectionState\"]\n : privateLinkServiceConnectionStateSerializer(item[\"privateLinkServiceConnectionState\"]),\n };\n}\n\n/** The private endpoint connection resource */\nexport interface PrivateEndpointConnection extends Resource {\n /** The private endpoint connection properties */\n properties?: PrivateEndpointConnectionProperties;\n}\n\nexport function privateEndpointConnectionDeserializer(item: any): PrivateEndpointConnection {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : privateEndpointConnectionPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Represents the HorizonDb private link resource. */\nexport interface HorizonDbPrivateLinkResource extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: PrivateLinkResourceProperties;\n}\n\nexport function horizonDbPrivateLinkResourceDeserializer(item: any): HorizonDbPrivateLinkResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : privateLinkResourcePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Properties of a private link resource. */\nexport interface PrivateLinkResourceProperties {\n /** The private link resource group id. */\n readonly groupId?: string;\n /** The private link resource required member names. */\n readonly requiredMembers?: string[];\n /** The private link resource private link DNS zone name. */\n requiredZoneNames?: string[];\n}\n\nexport function privateLinkResourcePropertiesDeserializer(\n item: any,\n): PrivateLinkResourceProperties {\n return {\n groupId: item[\"groupId\"],\n requiredMembers: !item[\"requiredMembers\"]\n ? item[\"requiredMembers\"]\n : item[\"requiredMembers\"].map((p: any) => {\n return p;\n }),\n requiredZoneNames: !item[\"requiredZoneNames\"]\n ? item[\"requiredZoneNames\"]\n : item[\"requiredZoneNames\"].map((p: any) => {\n return p;\n }),\n };\n}\n\n/** The response of a HorizonDbPrivateLinkResource list operation. */\nexport interface _HorizonDbPrivateLinkResourceListResult {\n /** The HorizonDbPrivateLinkResource items on this page */\n value: HorizonDbPrivateLinkResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _horizonDbPrivateLinkResourceListResultDeserializer(\n item: any,\n): _HorizonDbPrivateLinkResourceListResult {\n return {\n value: horizonDbPrivateLinkResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function horizonDbPrivateLinkResourceArrayDeserializer(\n result: Array<HorizonDbPrivateLinkResource>,\n): any[] {\n return result.map((item) => {\n return horizonDbPrivateLinkResourceDeserializer(item);\n });\n}\n\n/** Represents the HorizonDb parameter group. */\nexport interface HorizonDbParameterGroup extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: HorizonDbParameterGroupProperties;\n}\n\nexport function horizonDbParameterGroupSerializer(item: HorizonDbParameterGroup): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : horizonDbParameterGroupPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function horizonDbParameterGroupDeserializer(item: any): HorizonDbParameterGroup {\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 properties: !item[\"properties\"]\n ? item[\"properties\"]\n : horizonDbParameterGroupPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Properties of a HorizonDb parameter group. */\nexport interface HorizonDbParameterGroupProperties {\n /** Parameters in the parameter group. */\n parameters?: ParameterProperties[];\n /** Description of the parameter group. */\n description?: string;\n /** PostgreSQL version for the parameter group. */\n pgVersion?: number;\n /** Current version of the parameter group. */\n readonly version?: number;\n /** Indicates whether the parameters should be applied immediately. */\n applyImmediately?: boolean;\n /** The provisioning state of the parameter group. */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function horizonDbParameterGroupPropertiesSerializer(\n item: HorizonDbParameterGroupProperties,\n): any {\n return {\n parameters: !item[\"parameters\"]\n ? item[\"parameters\"]\n : parameterPropertiesArraySerializer(item[\"parameters\"]),\n description: item[\"description\"],\n pgVersion: item[\"pgVersion\"],\n applyImmediately: item[\"applyImmediately\"],\n };\n}\n\nexport function horizonDbParameterGroupPropertiesDeserializer(\n item: any,\n): HorizonDbParameterGroupProperties {\n return {\n parameters: !item[\"parameters\"]\n ? item[\"parameters\"]\n : parameterPropertiesArrayDeserializer(item[\"parameters\"]),\n description: item[\"description\"],\n pgVersion: item[\"pgVersion\"],\n version: item[\"version\"],\n applyImmediately: item[\"applyImmediately\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\nexport function parameterPropertiesArraySerializer(result: Array<ParameterProperties>): any[] {\n return result.map((item) => {\n return parameterPropertiesSerializer(item);\n });\n}\n\nexport function parameterPropertiesArrayDeserializer(result: Array<ParameterProperties>): any[] {\n return result.map((item) => {\n return parameterPropertiesDeserializer(item);\n });\n}\n\n/** Properties of a HorizonDb parameters. */\nexport interface ParameterProperties {\n /** The name of the parameter. */\n name?: string;\n /** The description of the parameter. */\n readonly description?: string;\n /** The value of the configuration. */\n value?: string;\n /** The data type of the parameter. */\n readonly dataType?: string;\n /** The allowed values for the parameter. */\n readonly allowedValues?: string;\n /** Whether the parameter can be changed dynamically. */\n readonly isDynamic?: boolean;\n /** Whether the parameter is a read-only parameter. */\n readonly isReadOnly?: boolean;\n /** Link to parameter documentation. */\n readonly documentationLink?: string;\n /** The unit of measurement for the parameter. */\n readonly unit?: string;\n}\n\nexport function parameterPropertiesSerializer(item: ParameterProperties): any {\n return { name: item[\"name\"], value: item[\"value\"] };\n}\n\nexport function parameterPropertiesDeserializer(item: any): ParameterProperties {\n return {\n name: item[\"name\"],\n description: item[\"description\"],\n value: item[\"value\"],\n dataType: item[\"dataType\"],\n allowedValues: item[\"allowedValues\"],\n isDynamic: item[\"isDynamic\"],\n isReadOnly: item[\"isReadOnly\"],\n documentationLink: item[\"documentationLink\"],\n unit: item[\"unit\"],\n };\n}\n\n/** HorizonDb parameter group for update operations. */\nexport interface HorizonDbParameterGroupForPatchUpdate {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The properties that can be updated for a HorizonDb parameter group. */\n properties?: HorizonDbParameterGroupPropertiesForPatchUpdate;\n}\n\nexport function horizonDbParameterGroupForPatchUpdateSerializer(\n item: HorizonDbParameterGroupForPatchUpdate,\n): any {\n return {\n tags: item[\"tags\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : horizonDbParameterGroupPropertiesForPatchUpdateSerializer(item[\"properties\"]),\n };\n}\n\n/** Properties of a HorizonDb parameter group for update operations. */\nexport interface HorizonDbParameterGroupPropertiesForPatchUpdate {\n /** Parameters in the parameter group. */\n parameters?: ParameterProperties[];\n /** Description of the parameter group. */\n description?: string;\n /** Indicates whether the parameters should be applied immediately. */\n applyImmediately?: boolean;\n}\n\nexport function horizonDbParameterGroupPropertiesForPatchUpdateSerializer(\n item: HorizonDbParameterGroupPropertiesForPatchUpdate,\n): any {\n return {\n parameters: !item[\"parameters\"]\n ? item[\"parameters\"]\n : parameterPropertiesArraySerializer(item[\"parameters\"]),\n description: item[\"description\"],\n applyImmediately: item[\"applyImmediately\"],\n };\n}\n\n/** The response of a HorizonDbParameterGroup list operation. */\nexport interface _HorizonDbParameterGroupListResult {\n /** The HorizonDbParameterGroup items on this page */\n value: HorizonDbParameterGroup[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _horizonDbParameterGroupListResultDeserializer(\n item: any,\n): _HorizonDbParameterGroupListResult {\n return {\n value: horizonDbParameterGroupArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function horizonDbParameterGroupArraySerializer(\n result: Array<HorizonDbParameterGroup>,\n): any[] {\n return result.map((item) => {\n return horizonDbParameterGroupSerializer(item);\n });\n}\n\nexport function horizonDbParameterGroupArrayDeserializer(\n result: Array<HorizonDbParameterGroup>,\n): any[] {\n return result.map((item) => {\n return horizonDbParameterGroupDeserializer(item);\n });\n}\n\n/** The response of a HorizonDbParameterGroupConnectionProperties list operation. */\nexport interface _HorizonDbParameterGroupConnectionPropertiesListResult {\n /** The HorizonDbParameterGroupConnectionProperties items on this page */\n value: HorizonDbParameterGroupConnectionProperties[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _horizonDbParameterGroupConnectionPropertiesListResultDeserializer(\n item: any,\n): _HorizonDbParameterGroupConnectionPropertiesListResult {\n return {\n value: horizonDbParameterGroupConnectionPropertiesArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function horizonDbParameterGroupConnectionPropertiesArrayDeserializer(\n result: Array<HorizonDbParameterGroupConnectionProperties>,\n): any[] {\n return result.map((item) => {\n return horizonDbParameterGroupConnectionPropertiesDeserializer(item);\n });\n}\n\n/** Connection information for HorizonDb parameter group. */\nexport interface HorizonDbParameterGroupConnectionProperties {\n /** The name of the connected resource. */\n readonly name?: string;\n /** The resource ID of the connected resource. */\n readonly id?: string;\n /** The type of the resource. */\n readonly type?: string;\n}\n\nexport function horizonDbParameterGroupConnectionPropertiesDeserializer(\n item: any,\n): HorizonDbParameterGroupConnectionProperties {\n return {\n name: item[\"name\"],\n id: item[\"id\"],\n type: item[\"type\"],\n };\n}\n\n/** The available API versions. */\nexport enum KnownVersions {\n /** The 2026-01-20-preview API version. */\n V20260120Preview = \"2026-01-20-preview\",\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { HorizonDbClient } from "./horizonDbClient.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: HorizonDbClient, 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,128 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { _$deleteDeserialize, _updateDeserialize, _createOrUpdateDeserialize, } from "./api/horizonDbParameterGroups/operations.js";
|
|
4
|
+
import { _$deleteDeserialize as _$deleteDeserializeHorizonDbPrivateEndpointConnections, _updateDeserialize as _updateDeserializeHorizonDbPrivateEndpointConnections, } from "./api/horizonDbPrivateEndpointConnections/operations.js";
|
|
5
|
+
import { _$deleteDeserialize as _$deleteDeserializeHorizonDbFirewallRules, _createOrUpdateDeserialize as _createOrUpdateDeserializeHorizonDbFirewallRules, } from "./api/horizonDbFirewallRules/operations.js";
|
|
6
|
+
import { _$deleteDeserialize as _$deleteDeserializeHorizonDbReplicas, _updateDeserialize as _updateDeserializeHorizonDbReplicas, _createOrUpdateDeserialize as _createOrUpdateDeserializeHorizonDbReplicas, } from "./api/horizonDbReplicas/operations.js";
|
|
7
|
+
import { _$deleteDeserialize as _$deleteDeserializeHorizonDbClusters, _updateDeserialize as _updateDeserializeHorizonDbClusters, _createOrUpdateDeserialize as _createOrUpdateDeserializeHorizonDbClusters, } from "./api/horizonDbClusters/operations.js";
|
|
8
|
+
import { getLongRunningPoller } from "./static-helpers/pollingHelpers.js";
|
|
9
|
+
import { deserializeState } from "@azure/core-lro";
|
|
10
|
+
/**
|
|
11
|
+
* Creates a poller from the serialized state of another poller. This can be
|
|
12
|
+
* useful when you want to create pollers on a different host or a poller
|
|
13
|
+
* needs to be constructed after the original one is not in scope.
|
|
14
|
+
*/
|
|
15
|
+
export function restorePoller(client, serializedState, sourceOperation, options) {
|
|
16
|
+
const pollerConfig = deserializeState(serializedState).config;
|
|
17
|
+
const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
|
|
18
|
+
if (!initialRequestUrl || !requestMethod) {
|
|
19
|
+
throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`);
|
|
20
|
+
}
|
|
21
|
+
const resourceLocationConfig = metadata?.["resourceLocationConfig"];
|
|
22
|
+
const { deserializer, expectedStatuses = [] } = getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};
|
|
23
|
+
const deserializeHelper = options?.processResponseBody ?? deserializer;
|
|
24
|
+
if (!deserializeHelper) {
|
|
25
|
+
throw new Error(`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`);
|
|
26
|
+
}
|
|
27
|
+
const apiVersion = getApiVersionFromUrl(initialRequestUrl);
|
|
28
|
+
return getLongRunningPoller(client["_client"] ?? client, deserializeHelper, expectedStatuses, {
|
|
29
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
30
|
+
abortSignal: options?.abortSignal,
|
|
31
|
+
resourceLocationConfig,
|
|
32
|
+
restoreFrom: serializedState,
|
|
33
|
+
initialRequestUrl,
|
|
34
|
+
apiVersion,
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
const deserializeMap = {
|
|
38
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}": { deserializer: _$deleteDeserialize, expectedStatuses: ["202", "204", "200"] },
|
|
39
|
+
"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}": { deserializer: _updateDeserialize, expectedStatuses: ["200", "202", "201"] },
|
|
40
|
+
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}": { deserializer: _createOrUpdateDeserialize, expectedStatuses: ["200", "201", "202"] },
|
|
41
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/privateEndpointConnections/{privateEndpointConnectionName}": {
|
|
42
|
+
deserializer: _$deleteDeserializeHorizonDbPrivateEndpointConnections,
|
|
43
|
+
expectedStatuses: ["202", "204", "200"],
|
|
44
|
+
},
|
|
45
|
+
"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/privateEndpointConnections/{privateEndpointConnectionName}": {
|
|
46
|
+
deserializer: _updateDeserializeHorizonDbPrivateEndpointConnections,
|
|
47
|
+
expectedStatuses: ["200", "202", "201"],
|
|
48
|
+
},
|
|
49
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}": {
|
|
50
|
+
deserializer: _$deleteDeserializeHorizonDbFirewallRules,
|
|
51
|
+
expectedStatuses: ["202", "204", "200"],
|
|
52
|
+
},
|
|
53
|
+
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}": {
|
|
54
|
+
deserializer: _createOrUpdateDeserializeHorizonDbFirewallRules,
|
|
55
|
+
expectedStatuses: ["200", "201", "202"],
|
|
56
|
+
},
|
|
57
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}": { deserializer: _$deleteDeserializeHorizonDbReplicas, expectedStatuses: ["202", "204", "200"] },
|
|
58
|
+
"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}": { deserializer: _updateDeserializeHorizonDbReplicas, expectedStatuses: ["200", "202", "201"] },
|
|
59
|
+
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}": {
|
|
60
|
+
deserializer: _createOrUpdateDeserializeHorizonDbReplicas,
|
|
61
|
+
expectedStatuses: ["200", "201", "202"],
|
|
62
|
+
},
|
|
63
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}": { deserializer: _$deleteDeserializeHorizonDbClusters, expectedStatuses: ["202", "204", "200"] },
|
|
64
|
+
"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}": { deserializer: _updateDeserializeHorizonDbClusters, expectedStatuses: ["200", "202", "201"] },
|
|
65
|
+
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}": {
|
|
66
|
+
deserializer: _createOrUpdateDeserializeHorizonDbClusters,
|
|
67
|
+
expectedStatuses: ["200", "201", "202"],
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
function getDeserializationHelper(urlStr, method) {
|
|
71
|
+
const path = new URL(urlStr).pathname;
|
|
72
|
+
const pathParts = path.split("/");
|
|
73
|
+
// Traverse list to match the longest candidate
|
|
74
|
+
// matchedLen: the length of candidate path
|
|
75
|
+
// matchedValue: the matched status code array
|
|
76
|
+
let matchedLen = -1, matchedValue;
|
|
77
|
+
// Iterate the responseMap to find a match
|
|
78
|
+
for (const [key, value] of Object.entries(deserializeMap)) {
|
|
79
|
+
// Extracting the path from the map key which is in format
|
|
80
|
+
// GET /path/foo
|
|
81
|
+
if (!key.startsWith(method)) {
|
|
82
|
+
continue;
|
|
83
|
+
}
|
|
84
|
+
const candidatePath = getPathFromMapKey(key);
|
|
85
|
+
// Get each part of the url path
|
|
86
|
+
const candidateParts = candidatePath.split("/");
|
|
87
|
+
// track if we have found a match to return the values found.
|
|
88
|
+
let found = true;
|
|
89
|
+
for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
|
|
90
|
+
if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) {
|
|
91
|
+
const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length;
|
|
92
|
+
// If the current part of the candidate is a "template" part
|
|
93
|
+
// Try to use the suffix of pattern to match the path
|
|
94
|
+
// {guid} ==> $
|
|
95
|
+
// {guid}:export ==> :export$
|
|
96
|
+
const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(pathParts[j] || "");
|
|
97
|
+
if (!isMatched) {
|
|
98
|
+
found = false;
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
// If the candidate part is not a template and
|
|
104
|
+
// the parts don't match mark the candidate as not found
|
|
105
|
+
// to move on with the next candidate path.
|
|
106
|
+
if (candidateParts[i] !== pathParts[j]) {
|
|
107
|
+
found = false;
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
// We finished evaluating the current candidate parts
|
|
112
|
+
// Update the matched value if and only if we found the longer pattern
|
|
113
|
+
if (found && candidatePath.length > matchedLen) {
|
|
114
|
+
matchedLen = candidatePath.length;
|
|
115
|
+
matchedValue = value;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return matchedValue;
|
|
119
|
+
}
|
|
120
|
+
function getPathFromMapKey(mapKey) {
|
|
121
|
+
const pathStart = mapKey.indexOf("/");
|
|
122
|
+
return mapKey.slice(pathStart);
|
|
123
|
+
}
|
|
124
|
+
function getApiVersionFromUrl(urlStr) {
|
|
125
|
+
const url = new URL(urlStr);
|
|
126
|
+
return url.searchParams.get("api-version") ?? undefined;
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=restorePollerHelpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,mBAAmB,IAAI,sDAAsD,EAC7E,kBAAkB,IAAI,qDAAqD,GAC5E,MAAM,yDAAyD,CAAC;AACjE,OAAO,EACL,mBAAmB,IAAI,yCAAyC,EAChE,0BAA0B,IAAI,gDAAgD,GAC/E,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,mBAAmB,IAAI,oCAAoC,EAC3D,kBAAkB,IAAI,mCAAmC,EACzD,0BAA0B,IAAI,2CAA2C,GAC1E,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,mBAAmB,IAAI,oCAAoC,EAC3D,kBAAkB,IAAI,mCAAmC,EACzD,0BAA0B,IAAI,2CAA2C,GAC1E,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAI1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAgBnD;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAC3B,MAAuB,EACvB,eAAuB,EACvB,eAAiF,EACjF,OAAuC;IAEvC,MAAM,YAAY,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,iBAAiB,EAAE,aAAa,EAAE,QAAQ,EAAE,G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,6BAA6B;gBAC7B,MAAM,SAAS,GAAG,IAAI,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,CAC1E,SAAS,CAAC,CAAC,CAAC,IAAI,EAAE,CACnB,CAAC;gBAEF,IAAI,CAAC,SAAS,EAAE,CAAC;oBACf,KAAK,GAAG,KAAK,CAAC;oBACd,MAAM;gBACR,CAAC;gBACD,SAAS;YACX,CAAC;YAED,8CAA8C;YAC9C,wDAAwD;YACxD,2CAA2C;YAC3C,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;YACR,CAAC;QACH,CAAC;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC;AAED,SAAS,oBAAoB,CAAC,MAAc;IAC1C,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5B,OAAO,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,SAAS,CAAC;AAC1D,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HorizonDbClient } from \"./horizonDbClient.js\";\nimport {\n _$deleteDeserialize,\n _updateDeserialize,\n _createOrUpdateDeserialize,\n} from \"./api/horizonDbParameterGroups/operations.js\";\nimport {\n _$deleteDeserialize as _$deleteDeserializeHorizonDbPrivateEndpointConnections,\n _updateDeserialize as _updateDeserializeHorizonDbPrivateEndpointConnections,\n} from \"./api/horizonDbPrivateEndpointConnections/operations.js\";\nimport {\n _$deleteDeserialize as _$deleteDeserializeHorizonDbFirewallRules,\n _createOrUpdateDeserialize as _createOrUpdateDeserializeHorizonDbFirewallRules,\n} from \"./api/horizonDbFirewallRules/operations.js\";\nimport {\n _$deleteDeserialize as _$deleteDeserializeHorizonDbReplicas,\n _updateDeserialize as _updateDeserializeHorizonDbReplicas,\n _createOrUpdateDeserialize as _createOrUpdateDeserializeHorizonDbReplicas,\n} from \"./api/horizonDbReplicas/operations.js\";\nimport {\n _$deleteDeserialize as _$deleteDeserializeHorizonDbClusters,\n _updateDeserialize as _updateDeserializeHorizonDbClusters,\n _createOrUpdateDeserialize as _createOrUpdateDeserializeHorizonDbClusters,\n} from \"./api/horizonDbClusters/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: HorizonDbClient,\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 const apiVersion = getApiVersionFromUrl(initialRequestUrl);\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 apiVersion,\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.HorizonDb/parameterGroups/{parameterGroupName}\":\n { deserializer: _$deleteDeserialize, expectedStatuses: [\"202\", \"204\", \"200\"] },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}\":\n { deserializer: _updateDeserialize, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}\":\n { deserializer: _createOrUpdateDeserialize, expectedStatuses: [\"200\", \"201\", \"202\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/privateEndpointConnections/{privateEndpointConnectionName}\":\n {\n deserializer: _$deleteDeserializeHorizonDbPrivateEndpointConnections,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/privateEndpointConnections/{privateEndpointConnectionName}\":\n {\n deserializer: _updateDeserializeHorizonDbPrivateEndpointConnections,\n expectedStatuses: [\"200\", \"202\", \"201\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}\":\n {\n deserializer: _$deleteDeserializeHorizonDbFirewallRules,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}\":\n {\n deserializer: _createOrUpdateDeserializeHorizonDbFirewallRules,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}\":\n { deserializer: _$deleteDeserializeHorizonDbReplicas, expectedStatuses: [\"202\", \"204\", \"200\"] },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}\":\n { deserializer: _updateDeserializeHorizonDbReplicas, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}\":\n {\n deserializer: _createOrUpdateDeserializeHorizonDbReplicas,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}\":\n { deserializer: _$deleteDeserializeHorizonDbClusters, expectedStatuses: [\"202\", \"204\", \"200\"] },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}\":\n { deserializer: _updateDeserializeHorizonDbClusters, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}\":\n {\n deserializer: _createOrUpdateDeserializeHorizonDbClusters,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): DeserializationHelper | undefined {\n const path = new URL(urlStr).pathname;\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: DeserializationHelper | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n\nfunction getApiVersionFromUrl(urlStr: string): string | undefined {\n const url = new URL(urlStr);\n return url.searchParams.get(\"api-version\") ?? undefined;\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,38 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
/**
|
|
4
|
+
* An enum to describe Azure Cloud environments.
|
|
5
|
+
* @enum {string}
|
|
6
|
+
*/
|
|
7
|
+
export var AzureClouds;
|
|
8
|
+
(function (AzureClouds) {
|
|
9
|
+
/** Azure public cloud, which is the default cloud for Azure SDKs. */
|
|
10
|
+
AzureClouds["AZURE_PUBLIC_CLOUD"] = "AZURE_PUBLIC_CLOUD";
|
|
11
|
+
/** Azure China cloud */
|
|
12
|
+
AzureClouds["AZURE_CHINA_CLOUD"] = "AZURE_CHINA_CLOUD";
|
|
13
|
+
/** Azure US government cloud */
|
|
14
|
+
AzureClouds["AZURE_US_GOVERNMENT"] = "AZURE_US_GOVERNMENT";
|
|
15
|
+
})(AzureClouds || (AzureClouds = {}));
|
|
16
|
+
/**
|
|
17
|
+
* Gets the Azure Resource Manager endpoint URL for the specified cloud setting.
|
|
18
|
+
* @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.
|
|
19
|
+
* @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.
|
|
20
|
+
* @throws {Error} Throws an error if an unknown cloud setting is provided.
|
|
21
|
+
*/
|
|
22
|
+
export function getArmEndpoint(cloudSetting) {
|
|
23
|
+
if (cloudSetting === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
const cloudEndpoints = {
|
|
27
|
+
AZURE_CHINA_CLOUD: "https://management.chinacloudapi.cn/",
|
|
28
|
+
AZURE_US_GOVERNMENT: "https://management.usgovcloudapi.net/",
|
|
29
|
+
AZURE_PUBLIC_CLOUD: "https://management.azure.com/",
|
|
30
|
+
};
|
|
31
|
+
if (cloudSetting in cloudEndpoints) {
|
|
32
|
+
return cloudEndpoints[cloudSetting];
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
throw new Error(`Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# 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;AAElC;;;GAGG;AACH,MAAM,CAAN,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,qEAAqE;IACrE,wDAAyC,CAAA;IACzC,wBAAwB;IACxB,sDAAuC,CAAA;IACvC,gCAAgC;IAChC,0DAA2C,CAAA;AAC7C,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB;AAKD;;;;;GAKG;AACH,MAAM,UAAU,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,74 @@
|
|
|
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
|
+
apiVersion?: string;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
|
|
72
|
+
*/
|
|
73
|
+
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>;
|
|
74
|
+
//# sourceMappingURL=pagingHelpers.d.ts.map
|