@azure/arm-healthdataaiservices 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/CHANGELOG.md +7 -0
- package/LICENSE +21 -0
- package/README.md +100 -0
- package/dist/browser/api/deidServices/index.d.ts +31 -0
- package/dist/browser/api/deidServices/index.d.ts.map +1 -0
- package/dist/browser/api/deidServices/index.js +519 -0
- package/dist/browser/api/deidServices/index.js.map +1 -0
- package/dist/browser/api/healthDataAIServicesContext.d.ts +12 -0
- package/dist/browser/api/healthDataAIServicesContext.d.ts.map +1 -0
- package/dist/browser/api/healthDataAIServicesContext.js +12 -0
- package/dist/browser/api/healthDataAIServicesContext.js.map +1 -0
- package/dist/browser/api/index.d.ts +6 -0
- package/dist/browser/api/index.d.ts.map +1 -0
- package/dist/browser/api/index.js +8 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/operations/index.d.ts +10 -0
- package/dist/browser/api/operations/index.d.ts.map +1 -0
- package/dist/browser/api/operations/index.js +40 -0
- package/dist/browser/api/operations/index.js.map +1 -0
- package/dist/browser/api/pagingHelpers.d.ts +7 -0
- package/dist/browser/api/pagingHelpers.d.ts.map +1 -0
- package/dist/browser/api/pagingHelpers.js +138 -0
- package/dist/browser/api/pagingHelpers.js.map +1 -0
- package/dist/browser/api/pollingHelpers.d.ts +30 -0
- package/dist/browser/api/pollingHelpers.d.ts.map +1 -0
- package/dist/browser/api/pollingHelpers.js +81 -0
- package/dist/browser/api/pollingHelpers.js.map +1 -0
- package/dist/browser/api/privateEndpointConnections/index.d.ts +23 -0
- package/dist/browser/api/privateEndpointConnections/index.d.ts.map +1 -0
- package/dist/browser/api/privateEndpointConnections/index.js +198 -0
- package/dist/browser/api/privateEndpointConnections/index.js.map +1 -0
- package/dist/browser/api/privateLinks/index.d.ts +10 -0
- package/dist/browser/api/privateLinks/index.d.ts.map +1 -0
- package/dist/browser/api/privateLinks/index.js +52 -0
- package/dist/browser/api/privateLinks/index.js.map +1 -0
- package/dist/browser/classic/deidServices/index.d.ts +30 -0
- package/dist/browser/classic/deidServices/index.d.ts.map +1 -0
- package/dist/browser/classic/deidServices/index.js +17 -0
- package/dist/browser/classic/deidServices/index.js.map +1 -0
- package/dist/browser/classic/index.d.ts +5 -0
- package/dist/browser/classic/index.d.ts.map +1 -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 +14 -0
- package/dist/browser/classic/operations/index.d.ts.map +1 -0
- package/dist/browser/classic/operations/index.js +12 -0
- package/dist/browser/classic/operations/index.js.map +1 -0
- package/dist/browser/classic/privateEndpointConnections/index.d.ts +24 -0
- package/dist/browser/classic/privateEndpointConnections/index.d.ts.map +1 -0
- package/dist/browser/classic/privateEndpointConnections/index.js +15 -0
- package/dist/browser/classic/privateEndpointConnections/index.js.map +1 -0
- package/dist/browser/classic/privateLinks/index.d.ts +14 -0
- package/dist/browser/classic/privateLinks/index.d.ts.map +1 -0
- package/dist/browser/classic/privateLinks/index.js +12 -0
- package/dist/browser/classic/privateLinks/index.js.map +1 -0
- package/dist/browser/healthDataAIServicesClient.d.ts +23 -0
- package/dist/browser/healthDataAIServicesClient.d.ts.map +1 -0
- package/dist/browser/healthDataAIServicesClient.js +23 -0
- package/dist/browser/healthDataAIServicesClient.js.map +1 -0
- package/dist/browser/helpers/serializerHelpers.d.ts +3 -0
- package/dist/browser/helpers/serializerHelpers.d.ts.map +1 -0
- package/dist/browser/helpers/serializerHelpers.js +24 -0
- package/dist/browser/helpers/serializerHelpers.js.map +1 -0
- package/dist/browser/index.d.ts +5 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +6 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.d.ts.map +1 -0
- package/dist/browser/logger.js +5 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/models/index.d.ts +4 -0
- package/dist/browser/models/index.d.ts.map +1 -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 +377 -0
- package/dist/browser/models/models.d.ts.map +1 -0
- package/dist/browser/models/models.js +163 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/models/options.d.ts +48 -0
- package/dist/browser/models/options.d.ts.map +1 -0
- package/dist/browser/models/options.js +4 -0
- package/dist/browser/models/options.js.map +1 -0
- package/dist/browser/models/pagingTypes.d.ts +67 -0
- package/dist/browser/models/pagingTypes.d.ts.map +1 -0
- package/dist/browser/models/pagingTypes.js +4 -0
- package/dist/browser/models/pagingTypes.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/rest/clientDefinitions.d.ts +61 -0
- package/dist/browser/rest/clientDefinitions.d.ts.map +1 -0
- package/dist/browser/rest/clientDefinitions.js +4 -0
- package/dist/browser/rest/clientDefinitions.js.map +1 -0
- package/dist/browser/rest/healthDataAIServicesClient.d.ts +15 -0
- package/dist/browser/rest/healthDataAIServicesClient.d.ts.map +1 -0
- package/dist/browser/rest/healthDataAIServicesClient.js +42 -0
- package/dist/browser/rest/healthDataAIServicesClient.js.map +1 -0
- package/dist/browser/rest/index.d.ts +12 -0
- package/dist/browser/rest/index.d.ts.map +1 -0
- package/dist/browser/rest/index.js +14 -0
- package/dist/browser/rest/index.js.map +1 -0
- package/dist/browser/rest/isUnexpected.d.ts +14 -0
- package/dist/browser/rest/isUnexpected.d.ts.map +1 -0
- package/dist/browser/rest/isUnexpected.js +83 -0
- package/dist/browser/rest/isUnexpected.js.map +1 -0
- package/dist/browser/rest/models.d.ts +213 -0
- package/dist/browser/rest/models.d.ts.map +1 -0
- package/dist/browser/rest/models.js +4 -0
- package/dist/browser/rest/models.js.map +1 -0
- package/dist/browser/rest/outputModels.d.ts +304 -0
- package/dist/browser/rest/outputModels.d.ts.map +1 -0
- package/dist/browser/rest/outputModels.js +4 -0
- package/dist/browser/rest/outputModels.js.map +1 -0
- package/dist/browser/rest/paginateHelper.d.ts +43 -0
- package/dist/browser/rest/paginateHelper.d.ts.map +1 -0
- package/dist/browser/rest/paginateHelper.js +70 -0
- package/dist/browser/rest/paginateHelper.js.map +1 -0
- package/dist/browser/rest/parameters.d.ts +27 -0
- package/dist/browser/rest/parameters.d.ts.map +1 -0
- package/dist/browser/rest/parameters.js +4 -0
- package/dist/browser/rest/parameters.js.map +1 -0
- package/dist/browser/rest/pollingHelper.d.ts +81 -0
- package/dist/browser/rest/pollingHelper.d.ts.map +1 -0
- package/dist/browser/rest/pollingHelper.js +97 -0
- package/dist/browser/rest/pollingHelper.js.map +1 -0
- package/dist/browser/rest/responses.d.ts +190 -0
- package/dist/browser/rest/responses.d.ts.map +1 -0
- package/dist/browser/rest/responses.js +4 -0
- package/dist/browser/rest/responses.js.map +1 -0
- package/dist/browser/restorePollerHelpers.d.ts +21 -0
- package/dist/browser/restorePollerHelpers.d.ts.map +1 -0
- package/dist/browser/restorePollerHelpers.js +94 -0
- package/dist/browser/restorePollerHelpers.js.map +1 -0
- package/dist/commonjs/api/deidServices/index.d.ts +31 -0
- package/dist/commonjs/api/deidServices/index.d.ts.map +1 -0
- package/dist/commonjs/api/deidServices/index.js +539 -0
- package/dist/commonjs/api/deidServices/index.js.map +1 -0
- package/dist/commonjs/api/healthDataAIServicesContext.d.ts +12 -0
- package/dist/commonjs/api/healthDataAIServicesContext.d.ts.map +1 -0
- package/dist/commonjs/api/healthDataAIServicesContext.js +16 -0
- package/dist/commonjs/api/healthDataAIServicesContext.js.map +1 -0
- package/dist/commonjs/api/index.d.ts +6 -0
- package/dist/commonjs/api/index.d.ts.map +1 -0
- package/dist/commonjs/api/index.js +24 -0
- package/dist/commonjs/api/index.js.map +1 -0
- package/dist/commonjs/api/operations/index.d.ts +10 -0
- package/dist/commonjs/api/operations/index.d.ts.map +1 -0
- package/dist/commonjs/api/operations/index.js +45 -0
- package/dist/commonjs/api/operations/index.js.map +1 -0
- package/dist/commonjs/api/pagingHelpers.d.ts +7 -0
- package/dist/commonjs/api/pagingHelpers.d.ts.map +1 -0
- package/dist/commonjs/api/pagingHelpers.js +141 -0
- package/dist/commonjs/api/pagingHelpers.js.map +1 -0
- package/dist/commonjs/api/pollingHelpers.d.ts +30 -0
- package/dist/commonjs/api/pollingHelpers.d.ts.map +1 -0
- package/dist/commonjs/api/pollingHelpers.js +84 -0
- package/dist/commonjs/api/pollingHelpers.js.map +1 -0
- package/dist/commonjs/api/privateEndpointConnections/index.d.ts +23 -0
- package/dist/commonjs/api/privateEndpointConnections/index.d.ts.map +1 -0
- package/dist/commonjs/api/privateEndpointConnections/index.js +212 -0
- package/dist/commonjs/api/privateEndpointConnections/index.js.map +1 -0
- package/dist/commonjs/api/privateLinks/index.d.ts +10 -0
- package/dist/commonjs/api/privateLinks/index.d.ts.map +1 -0
- package/dist/commonjs/api/privateLinks/index.js +57 -0
- package/dist/commonjs/api/privateLinks/index.js.map +1 -0
- package/dist/commonjs/classic/deidServices/index.d.ts +30 -0
- package/dist/commonjs/classic/deidServices/index.d.ts.map +1 -0
- package/dist/commonjs/classic/deidServices/index.js +21 -0
- package/dist/commonjs/classic/deidServices/index.js.map +1 -0
- package/dist/commonjs/classic/index.d.ts +5 -0
- package/dist/commonjs/classic/index.d.ts.map +1 -0
- package/dist/commonjs/classic/index.js +5 -0
- package/dist/commonjs/classic/index.js.map +1 -0
- package/dist/commonjs/classic/operations/index.d.ts +14 -0
- package/dist/commonjs/classic/operations/index.d.ts.map +1 -0
- package/dist/commonjs/classic/operations/index.js +16 -0
- package/dist/commonjs/classic/operations/index.js.map +1 -0
- package/dist/commonjs/classic/privateEndpointConnections/index.d.ts +24 -0
- package/dist/commonjs/classic/privateEndpointConnections/index.d.ts.map +1 -0
- package/dist/commonjs/classic/privateEndpointConnections/index.js +19 -0
- package/dist/commonjs/classic/privateEndpointConnections/index.js.map +1 -0
- package/dist/commonjs/classic/privateLinks/index.d.ts +14 -0
- package/dist/commonjs/classic/privateLinks/index.d.ts.map +1 -0
- package/dist/commonjs/classic/privateLinks/index.js +16 -0
- package/dist/commonjs/classic/privateLinks/index.js.map +1 -0
- package/dist/commonjs/healthDataAIServicesClient.d.ts +23 -0
- package/dist/commonjs/healthDataAIServicesClient.d.ts.map +1 -0
- package/dist/commonjs/healthDataAIServicesClient.js +27 -0
- package/dist/commonjs/healthDataAIServicesClient.js.map +1 -0
- package/dist/commonjs/helpers/serializerHelpers.d.ts +3 -0
- package/dist/commonjs/helpers/serializerHelpers.d.ts.map +1 -0
- package/dist/commonjs/helpers/serializerHelpers.js +27 -0
- package/dist/commonjs/helpers/serializerHelpers.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +18 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.d.ts.map +1 -0
- package/dist/commonjs/logger.js +8 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +4 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +14 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/models.d.ts +377 -0
- package/dist/commonjs/models/models.d.ts.map +1 -0
- package/dist/commonjs/models/models.js +180 -0
- package/dist/commonjs/models/models.js.map +1 -0
- package/dist/commonjs/models/options.d.ts +48 -0
- package/dist/commonjs/models/options.d.ts.map +1 -0
- package/dist/commonjs/models/options.js +5 -0
- package/dist/commonjs/models/options.js.map +1 -0
- package/dist/commonjs/models/pagingTypes.d.ts +67 -0
- package/dist/commonjs/models/pagingTypes.d.ts.map +1 -0
- package/dist/commonjs/models/pagingTypes.js +5 -0
- package/dist/commonjs/models/pagingTypes.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/rest/clientDefinitions.d.ts +61 -0
- package/dist/commonjs/rest/clientDefinitions.d.ts.map +1 -0
- package/dist/commonjs/rest/clientDefinitions.js +5 -0
- package/dist/commonjs/rest/clientDefinitions.js.map +1 -0
- package/dist/commonjs/rest/healthDataAIServicesClient.d.ts +15 -0
- package/dist/commonjs/rest/healthDataAIServicesClient.d.ts.map +1 -0
- package/dist/commonjs/rest/healthDataAIServicesClient.js +45 -0
- package/dist/commonjs/rest/healthDataAIServicesClient.js.map +1 -0
- package/dist/commonjs/rest/index.d.ts +12 -0
- package/dist/commonjs/rest/index.d.ts.map +1 -0
- package/dist/commonjs/rest/index.js +17 -0
- package/dist/commonjs/rest/index.js.map +1 -0
- package/dist/commonjs/rest/isUnexpected.d.ts +14 -0
- package/dist/commonjs/rest/isUnexpected.d.ts.map +1 -0
- package/dist/commonjs/rest/isUnexpected.js +86 -0
- package/dist/commonjs/rest/isUnexpected.js.map +1 -0
- package/dist/commonjs/rest/models.d.ts +213 -0
- package/dist/commonjs/rest/models.d.ts.map +1 -0
- package/dist/commonjs/rest/models.js +5 -0
- package/dist/commonjs/rest/models.js.map +1 -0
- package/dist/commonjs/rest/outputModels.d.ts +304 -0
- package/dist/commonjs/rest/outputModels.d.ts.map +1 -0
- package/dist/commonjs/rest/outputModels.js +5 -0
- package/dist/commonjs/rest/outputModels.js.map +1 -0
- package/dist/commonjs/rest/paginateHelper.d.ts +43 -0
- package/dist/commonjs/rest/paginateHelper.d.ts.map +1 -0
- package/dist/commonjs/rest/paginateHelper.js +73 -0
- package/dist/commonjs/rest/paginateHelper.js.map +1 -0
- package/dist/commonjs/rest/parameters.d.ts +27 -0
- package/dist/commonjs/rest/parameters.d.ts.map +1 -0
- package/dist/commonjs/rest/parameters.js +5 -0
- package/dist/commonjs/rest/parameters.js.map +1 -0
- package/dist/commonjs/rest/pollingHelper.d.ts +81 -0
- package/dist/commonjs/rest/pollingHelper.d.ts.map +1 -0
- package/dist/commonjs/rest/pollingHelper.js +100 -0
- package/dist/commonjs/rest/pollingHelper.js.map +1 -0
- package/dist/commonjs/rest/responses.d.ts +190 -0
- package/dist/commonjs/rest/responses.d.ts.map +1 -0
- package/dist/commonjs/rest/responses.js +5 -0
- package/dist/commonjs/rest/responses.js.map +1 -0
- package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
- package/dist/commonjs/restorePollerHelpers.d.ts.map +1 -0
- package/dist/commonjs/restorePollerHelpers.js +97 -0
- package/dist/commonjs/restorePollerHelpers.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/api/deidServices/index.d.ts +31 -0
- package/dist/esm/api/deidServices/index.d.ts.map +1 -0
- package/dist/esm/api/deidServices/index.js +519 -0
- package/dist/esm/api/deidServices/index.js.map +1 -0
- package/dist/esm/api/healthDataAIServicesContext.d.ts +12 -0
- package/dist/esm/api/healthDataAIServicesContext.d.ts.map +1 -0
- package/dist/esm/api/healthDataAIServicesContext.js +12 -0
- package/dist/esm/api/healthDataAIServicesContext.js.map +1 -0
- package/dist/esm/api/index.d.ts +6 -0
- package/dist/esm/api/index.d.ts.map +1 -0
- package/dist/esm/api/index.js +8 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/operations/index.d.ts +10 -0
- package/dist/esm/api/operations/index.d.ts.map +1 -0
- package/dist/esm/api/operations/index.js +40 -0
- package/dist/esm/api/operations/index.js.map +1 -0
- package/dist/esm/api/pagingHelpers.d.ts +7 -0
- package/dist/esm/api/pagingHelpers.d.ts.map +1 -0
- package/dist/esm/api/pagingHelpers.js +138 -0
- package/dist/esm/api/pagingHelpers.js.map +1 -0
- package/dist/esm/api/pollingHelpers.d.ts +30 -0
- package/dist/esm/api/pollingHelpers.d.ts.map +1 -0
- package/dist/esm/api/pollingHelpers.js +81 -0
- package/dist/esm/api/pollingHelpers.js.map +1 -0
- package/dist/esm/api/privateEndpointConnections/index.d.ts +23 -0
- package/dist/esm/api/privateEndpointConnections/index.d.ts.map +1 -0
- package/dist/esm/api/privateEndpointConnections/index.js +198 -0
- package/dist/esm/api/privateEndpointConnections/index.js.map +1 -0
- package/dist/esm/api/privateLinks/index.d.ts +10 -0
- package/dist/esm/api/privateLinks/index.d.ts.map +1 -0
- package/dist/esm/api/privateLinks/index.js +52 -0
- package/dist/esm/api/privateLinks/index.js.map +1 -0
- package/dist/esm/classic/deidServices/index.d.ts +30 -0
- package/dist/esm/classic/deidServices/index.d.ts.map +1 -0
- package/dist/esm/classic/deidServices/index.js +17 -0
- package/dist/esm/classic/deidServices/index.js.map +1 -0
- package/dist/esm/classic/index.d.ts +5 -0
- package/dist/esm/classic/index.d.ts.map +1 -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 +14 -0
- package/dist/esm/classic/operations/index.d.ts.map +1 -0
- package/dist/esm/classic/operations/index.js +12 -0
- package/dist/esm/classic/operations/index.js.map +1 -0
- package/dist/esm/classic/privateEndpointConnections/index.d.ts +24 -0
- package/dist/esm/classic/privateEndpointConnections/index.d.ts.map +1 -0
- package/dist/esm/classic/privateEndpointConnections/index.js +15 -0
- package/dist/esm/classic/privateEndpointConnections/index.js.map +1 -0
- package/dist/esm/classic/privateLinks/index.d.ts +14 -0
- package/dist/esm/classic/privateLinks/index.d.ts.map +1 -0
- package/dist/esm/classic/privateLinks/index.js +12 -0
- package/dist/esm/classic/privateLinks/index.js.map +1 -0
- package/dist/esm/healthDataAIServicesClient.d.ts +23 -0
- package/dist/esm/healthDataAIServicesClient.d.ts.map +1 -0
- package/dist/esm/healthDataAIServicesClient.js +23 -0
- package/dist/esm/healthDataAIServicesClient.js.map +1 -0
- package/dist/esm/helpers/serializerHelpers.d.ts +3 -0
- package/dist/esm/helpers/serializerHelpers.d.ts.map +1 -0
- package/dist/esm/helpers/serializerHelpers.js +24 -0
- package/dist/esm/helpers/serializerHelpers.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.d.ts.map +1 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.d.ts.map +1 -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 +377 -0
- package/dist/esm/models/models.d.ts.map +1 -0
- package/dist/esm/models/models.js +163 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/models/options.d.ts +48 -0
- package/dist/esm/models/options.d.ts.map +1 -0
- package/dist/esm/models/options.js +4 -0
- package/dist/esm/models/options.js.map +1 -0
- package/dist/esm/models/pagingTypes.d.ts +67 -0
- package/dist/esm/models/pagingTypes.d.ts.map +1 -0
- package/dist/esm/models/pagingTypes.js +4 -0
- package/dist/esm/models/pagingTypes.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/rest/clientDefinitions.d.ts +61 -0
- package/dist/esm/rest/clientDefinitions.d.ts.map +1 -0
- package/dist/esm/rest/clientDefinitions.js +4 -0
- package/dist/esm/rest/clientDefinitions.js.map +1 -0
- package/dist/esm/rest/healthDataAIServicesClient.d.ts +15 -0
- package/dist/esm/rest/healthDataAIServicesClient.d.ts.map +1 -0
- package/dist/esm/rest/healthDataAIServicesClient.js +42 -0
- package/dist/esm/rest/healthDataAIServicesClient.js.map +1 -0
- package/dist/esm/rest/index.d.ts +12 -0
- package/dist/esm/rest/index.d.ts.map +1 -0
- package/dist/esm/rest/index.js +14 -0
- package/dist/esm/rest/index.js.map +1 -0
- package/dist/esm/rest/isUnexpected.d.ts +14 -0
- package/dist/esm/rest/isUnexpected.d.ts.map +1 -0
- package/dist/esm/rest/isUnexpected.js +83 -0
- package/dist/esm/rest/isUnexpected.js.map +1 -0
- package/dist/esm/rest/models.d.ts +213 -0
- package/dist/esm/rest/models.d.ts.map +1 -0
- package/dist/esm/rest/models.js +4 -0
- package/dist/esm/rest/models.js.map +1 -0
- package/dist/esm/rest/outputModels.d.ts +304 -0
- package/dist/esm/rest/outputModels.d.ts.map +1 -0
- package/dist/esm/rest/outputModels.js +4 -0
- package/dist/esm/rest/outputModels.js.map +1 -0
- package/dist/esm/rest/paginateHelper.d.ts +43 -0
- package/dist/esm/rest/paginateHelper.d.ts.map +1 -0
- package/dist/esm/rest/paginateHelper.js +70 -0
- package/dist/esm/rest/paginateHelper.js.map +1 -0
- package/dist/esm/rest/parameters.d.ts +27 -0
- package/dist/esm/rest/parameters.d.ts.map +1 -0
- package/dist/esm/rest/parameters.js +4 -0
- package/dist/esm/rest/parameters.js.map +1 -0
- package/dist/esm/rest/pollingHelper.d.ts +81 -0
- package/dist/esm/rest/pollingHelper.d.ts.map +1 -0
- package/dist/esm/rest/pollingHelper.js +97 -0
- package/dist/esm/rest/pollingHelper.js.map +1 -0
- package/dist/esm/rest/responses.d.ts +190 -0
- package/dist/esm/rest/responses.d.ts.map +1 -0
- package/dist/esm/rest/responses.js +4 -0
- package/dist/esm/rest/responses.js.map +1 -0
- package/dist/esm/restorePollerHelpers.d.ts +21 -0
- package/dist/esm/restorePollerHelpers.d.ts.map +1 -0
- package/dist/esm/restorePollerHelpers.js +94 -0
- package/dist/esm/restorePollerHelpers.js.map +1 -0
- package/dist/react-native/api/deidServices/index.d.ts +31 -0
- package/dist/react-native/api/deidServices/index.d.ts.map +1 -0
- package/dist/react-native/api/deidServices/index.js +519 -0
- package/dist/react-native/api/deidServices/index.js.map +1 -0
- package/dist/react-native/api/healthDataAIServicesContext.d.ts +12 -0
- package/dist/react-native/api/healthDataAIServicesContext.d.ts.map +1 -0
- package/dist/react-native/api/healthDataAIServicesContext.js +12 -0
- package/dist/react-native/api/healthDataAIServicesContext.js.map +1 -0
- package/dist/react-native/api/index.d.ts +6 -0
- package/dist/react-native/api/index.d.ts.map +1 -0
- package/dist/react-native/api/index.js +8 -0
- package/dist/react-native/api/index.js.map +1 -0
- package/dist/react-native/api/operations/index.d.ts +10 -0
- package/dist/react-native/api/operations/index.d.ts.map +1 -0
- package/dist/react-native/api/operations/index.js +40 -0
- package/dist/react-native/api/operations/index.js.map +1 -0
- package/dist/react-native/api/pagingHelpers.d.ts +7 -0
- package/dist/react-native/api/pagingHelpers.d.ts.map +1 -0
- package/dist/react-native/api/pagingHelpers.js +138 -0
- package/dist/react-native/api/pagingHelpers.js.map +1 -0
- package/dist/react-native/api/pollingHelpers.d.ts +30 -0
- package/dist/react-native/api/pollingHelpers.d.ts.map +1 -0
- package/dist/react-native/api/pollingHelpers.js +81 -0
- package/dist/react-native/api/pollingHelpers.js.map +1 -0
- package/dist/react-native/api/privateEndpointConnections/index.d.ts +23 -0
- package/dist/react-native/api/privateEndpointConnections/index.d.ts.map +1 -0
- package/dist/react-native/api/privateEndpointConnections/index.js +198 -0
- package/dist/react-native/api/privateEndpointConnections/index.js.map +1 -0
- package/dist/react-native/api/privateLinks/index.d.ts +10 -0
- package/dist/react-native/api/privateLinks/index.d.ts.map +1 -0
- package/dist/react-native/api/privateLinks/index.js +52 -0
- package/dist/react-native/api/privateLinks/index.js.map +1 -0
- package/dist/react-native/classic/deidServices/index.d.ts +30 -0
- package/dist/react-native/classic/deidServices/index.d.ts.map +1 -0
- package/dist/react-native/classic/deidServices/index.js +17 -0
- package/dist/react-native/classic/deidServices/index.js.map +1 -0
- package/dist/react-native/classic/index.d.ts +5 -0
- package/dist/react-native/classic/index.d.ts.map +1 -0
- package/dist/react-native/classic/index.js +4 -0
- package/dist/react-native/classic/index.js.map +1 -0
- package/dist/react-native/classic/operations/index.d.ts +14 -0
- package/dist/react-native/classic/operations/index.d.ts.map +1 -0
- package/dist/react-native/classic/operations/index.js +12 -0
- package/dist/react-native/classic/operations/index.js.map +1 -0
- package/dist/react-native/classic/privateEndpointConnections/index.d.ts +24 -0
- package/dist/react-native/classic/privateEndpointConnections/index.d.ts.map +1 -0
- package/dist/react-native/classic/privateEndpointConnections/index.js +15 -0
- package/dist/react-native/classic/privateEndpointConnections/index.js.map +1 -0
- package/dist/react-native/classic/privateLinks/index.d.ts +14 -0
- package/dist/react-native/classic/privateLinks/index.d.ts.map +1 -0
- package/dist/react-native/classic/privateLinks/index.js +12 -0
- package/dist/react-native/classic/privateLinks/index.js.map +1 -0
- package/dist/react-native/healthDataAIServicesClient.d.ts +23 -0
- package/dist/react-native/healthDataAIServicesClient.d.ts.map +1 -0
- package/dist/react-native/healthDataAIServicesClient.js +23 -0
- package/dist/react-native/healthDataAIServicesClient.js.map +1 -0
- package/dist/react-native/helpers/serializerHelpers.d.ts +3 -0
- package/dist/react-native/helpers/serializerHelpers.d.ts.map +1 -0
- package/dist/react-native/helpers/serializerHelpers.js +24 -0
- package/dist/react-native/helpers/serializerHelpers.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +6 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/logger.d.ts +2 -0
- package/dist/react-native/logger.d.ts.map +1 -0
- package/dist/react-native/logger.js +5 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/models/index.d.ts +4 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +4 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/models.d.ts +377 -0
- package/dist/react-native/models/models.d.ts.map +1 -0
- package/dist/react-native/models/models.js +163 -0
- package/dist/react-native/models/models.js.map +1 -0
- package/dist/react-native/models/options.d.ts +48 -0
- package/dist/react-native/models/options.d.ts.map +1 -0
- package/dist/react-native/models/options.js +4 -0
- package/dist/react-native/models/options.js.map +1 -0
- package/dist/react-native/models/pagingTypes.d.ts +67 -0
- package/dist/react-native/models/pagingTypes.d.ts.map +1 -0
- package/dist/react-native/models/pagingTypes.js +4 -0
- package/dist/react-native/models/pagingTypes.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/rest/clientDefinitions.d.ts +61 -0
- package/dist/react-native/rest/clientDefinitions.d.ts.map +1 -0
- package/dist/react-native/rest/clientDefinitions.js +4 -0
- package/dist/react-native/rest/clientDefinitions.js.map +1 -0
- package/dist/react-native/rest/healthDataAIServicesClient.d.ts +15 -0
- package/dist/react-native/rest/healthDataAIServicesClient.d.ts.map +1 -0
- package/dist/react-native/rest/healthDataAIServicesClient.js +42 -0
- package/dist/react-native/rest/healthDataAIServicesClient.js.map +1 -0
- package/dist/react-native/rest/index.d.ts +12 -0
- package/dist/react-native/rest/index.d.ts.map +1 -0
- package/dist/react-native/rest/index.js +14 -0
- package/dist/react-native/rest/index.js.map +1 -0
- package/dist/react-native/rest/isUnexpected.d.ts +14 -0
- package/dist/react-native/rest/isUnexpected.d.ts.map +1 -0
- package/dist/react-native/rest/isUnexpected.js +83 -0
- package/dist/react-native/rest/isUnexpected.js.map +1 -0
- package/dist/react-native/rest/models.d.ts +213 -0
- package/dist/react-native/rest/models.d.ts.map +1 -0
- package/dist/react-native/rest/models.js +4 -0
- package/dist/react-native/rest/models.js.map +1 -0
- package/dist/react-native/rest/outputModels.d.ts +304 -0
- package/dist/react-native/rest/outputModels.d.ts.map +1 -0
- package/dist/react-native/rest/outputModels.js +4 -0
- package/dist/react-native/rest/outputModels.js.map +1 -0
- package/dist/react-native/rest/paginateHelper.d.ts +43 -0
- package/dist/react-native/rest/paginateHelper.d.ts.map +1 -0
- package/dist/react-native/rest/paginateHelper.js +70 -0
- package/dist/react-native/rest/paginateHelper.js.map +1 -0
- package/dist/react-native/rest/parameters.d.ts +27 -0
- package/dist/react-native/rest/parameters.d.ts.map +1 -0
- package/dist/react-native/rest/parameters.js +4 -0
- package/dist/react-native/rest/parameters.js.map +1 -0
- package/dist/react-native/rest/pollingHelper.d.ts +81 -0
- package/dist/react-native/rest/pollingHelper.d.ts.map +1 -0
- package/dist/react-native/rest/pollingHelper.js +97 -0
- package/dist/react-native/rest/pollingHelper.js.map +1 -0
- package/dist/react-native/rest/responses.d.ts +190 -0
- package/dist/react-native/rest/responses.d.ts.map +1 -0
- package/dist/react-native/rest/responses.js +4 -0
- package/dist/react-native/rest/responses.js.map +1 -0
- package/dist/react-native/restorePollerHelpers.d.ts +21 -0
- package/dist/react-native/restorePollerHelpers.d.ts.map +1 -0
- package/dist/react-native/restorePollerHelpers.js +94 -0
- package/dist/react-native/restorePollerHelpers.js.map +1 -0
- package/package.json +188 -0
- package/review/arm-healthdataaiservices-api.api.md +70 -0
- package/review/arm-healthdataaiservices-models.api.md +314 -0
- package/review/arm-healthdataaiservices.api.md +374 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
3
|
+
/**
|
|
4
|
+
* Helper type to extract the type of an array
|
|
5
|
+
*/
|
|
6
|
+
export type GetArrayType<T> = T extends Array<infer TData> ? TData : never;
|
|
7
|
+
/**
|
|
8
|
+
* The type of a custom function that defines how to get a page and a link to the next one if any.
|
|
9
|
+
*/
|
|
10
|
+
export type GetPage<TPage> = (pageLink: string, maxPageSize?: number) => Promise<{
|
|
11
|
+
page: TPage;
|
|
12
|
+
nextPageLink?: string;
|
|
13
|
+
}>;
|
|
14
|
+
/**
|
|
15
|
+
* Options for the paging helper
|
|
16
|
+
*/
|
|
17
|
+
export interface PagingOptions<TResponse> {
|
|
18
|
+
/**
|
|
19
|
+
* Custom function to extract pagination details for crating the PagedAsyncIterableIterator
|
|
20
|
+
*/
|
|
21
|
+
customGetPage?: GetPage<PaginateReturn<TResponse>[]>;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Helper type to infer the Type of the paged elements from the response type
|
|
25
|
+
* This type is generated based on the swagger information for x-ms-pageable
|
|
26
|
+
* specifically on the itemName property which indicates the property of the response
|
|
27
|
+
* where the page items are found. The default value is `value`.
|
|
28
|
+
* This type will allow us to provide strongly typed Iterator based on the response we get as second parameter
|
|
29
|
+
*/
|
|
30
|
+
export type PaginateReturn<TResult> = TResult extends {
|
|
31
|
+
body: {
|
|
32
|
+
value?: infer TPage;
|
|
33
|
+
};
|
|
34
|
+
} ? GetArrayType<TPage> : Array<unknown>;
|
|
35
|
+
/**
|
|
36
|
+
* Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension
|
|
37
|
+
* @param client - Client to use for sending the next page requests
|
|
38
|
+
* @param initialResponse - Initial response containing the nextLink and current page of elements
|
|
39
|
+
* @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results
|
|
40
|
+
* @returns - PagedAsyncIterableIterator to iterate the elements
|
|
41
|
+
*/
|
|
42
|
+
export declare function paginate<TResponse extends PathUncheckedResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>;
|
|
43
|
+
//# sourceMappingURL=paginateHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paginateHelper.d.ts","sourceRoot":"","sources":["../../../src/rest/paginateHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAyB,0BAA0B,EAAe,MAAM,oBAAoB,CAAC;AACpG,OAAO,EAAE,MAAM,EAAmB,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEzF;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,CAAC,MAAM,KAAK,CAAC,GAAG,KAAK,GAAG,KAAK,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,OAAO,CAAC,KAAK,IAAI,CAC3B,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,KACjB,OAAO,CAAC;IACX,IAAI,EAAE,KAAK,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,WAAW,aAAa,CAAC,SAAS;IACtC;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;CACtD;AAED;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,CAAC,OAAO,IAAI,OAAO,SAAS;IACpD,IAAI,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,KAAK,CAAA;KAAE,CAAC;CAC/B,GACG,YAAY,CAAC,KAAK,CAAC,GACnB,KAAK,CAAC,OAAO,CAAC,CAAC;AAEnB;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,SAAS,SAAS,qBAAqB,EAC9D,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,SAAS,EAC1B,OAAO,GAAE,aAAa,CAAC,SAAS,CAAM,GACrC,0BAA0B,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CA0BvD"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.paginate = paginate;
|
|
6
|
+
const core_paging_1 = require("@azure/core-paging");
|
|
7
|
+
const core_client_1 = require("@azure-rest/core-client");
|
|
8
|
+
/**
|
|
9
|
+
* Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension
|
|
10
|
+
* @param client - Client to use for sending the next page requests
|
|
11
|
+
* @param initialResponse - Initial response containing the nextLink and current page of elements
|
|
12
|
+
* @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results
|
|
13
|
+
* @returns - PagedAsyncIterableIterator to iterate the elements
|
|
14
|
+
*/
|
|
15
|
+
function paginate(client, initialResponse, options = {}) {
|
|
16
|
+
let firstRun = true;
|
|
17
|
+
const itemName = "value";
|
|
18
|
+
const nextLinkName = "nextLink";
|
|
19
|
+
const { customGetPage } = options;
|
|
20
|
+
const pagedResult = {
|
|
21
|
+
firstPageLink: "",
|
|
22
|
+
getPage: typeof customGetPage === "function"
|
|
23
|
+
? customGetPage
|
|
24
|
+
: async (pageLink) => {
|
|
25
|
+
const result = firstRun ? initialResponse : await client.pathUnchecked(pageLink).get();
|
|
26
|
+
firstRun = false;
|
|
27
|
+
checkPagingRequest(result);
|
|
28
|
+
const nextLink = getNextLink(result.body, nextLinkName);
|
|
29
|
+
const values = getElements(result.body, itemName);
|
|
30
|
+
return {
|
|
31
|
+
page: values,
|
|
32
|
+
nextPageLink: nextLink,
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
return (0, core_paging_1.getPagedAsyncIterator)(pagedResult);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Gets for the value of nextLink in the body
|
|
40
|
+
*/
|
|
41
|
+
function getNextLink(body, nextLinkName) {
|
|
42
|
+
if (!nextLinkName) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
const nextLink = body[nextLinkName];
|
|
46
|
+
if (typeof nextLink !== "string" && typeof nextLink !== "undefined") {
|
|
47
|
+
throw new Error(`Body Property ${nextLinkName} should be a string or undefined`);
|
|
48
|
+
}
|
|
49
|
+
return nextLink;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Gets the elements of the current request in the body.
|
|
53
|
+
*/
|
|
54
|
+
function getElements(body, itemName) {
|
|
55
|
+
const value = body[itemName];
|
|
56
|
+
// value has to be an array according to the x-ms-pageable extension.
|
|
57
|
+
// The fact that this must be an array is used above to calculate the
|
|
58
|
+
// type of elements in the page in PaginateReturn
|
|
59
|
+
if (!Array.isArray(value)) {
|
|
60
|
+
throw new Error(`Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`);
|
|
61
|
+
}
|
|
62
|
+
return value !== null && value !== void 0 ? value : [];
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Checks if a request failed
|
|
66
|
+
*/
|
|
67
|
+
function checkPagingRequest(response) {
|
|
68
|
+
const Http2xxStatusCodes = ["200", "201", "202", "203", "204", "205", "206", "207", "208", "226"];
|
|
69
|
+
if (!Http2xxStatusCodes.includes(response.status)) {
|
|
70
|
+
throw (0, core_client_1.createRestError)(`Pagination failed with unexpected statusCode ${response.status}`, response);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=paginateHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paginateHelper.js","sourceRoot":"","sources":["../../../src/rest/paginateHelper.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmDlC,4BA8BC;AA/ED,oDAAoG;AACpG,yDAAyF;AAyCzF;;;;;;GAMG;AACH,SAAgB,QAAQ,CACtB,MAAc,EACd,eAA0B,EAC1B,UAAoC,EAAE;IAItC,IAAI,QAAQ,GAAG,IAAI,CAAC;IACpB,MAAM,QAAQ,GAAG,OAAO,CAAC;IACzB,MAAM,YAAY,GAAG,UAAU,CAAC;IAChC,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC;IAClC,MAAM,WAAW,GAA4B;QAC3C,aAAa,EAAE,EAAE;QACjB,OAAO,EACL,OAAO,aAAa,KAAK,UAAU;YACjC,CAAC,CAAC,aAAa;YACf,CAAC,CAAC,KAAK,EAAE,QAAgB,EAAE,EAAE;gBACzB,MAAM,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,CAAC;gBACvF,QAAQ,GAAG,KAAK,CAAC;gBACjB,kBAAkB,CAAC,MAAM,CAAC,CAAC;gBAC3B,MAAM,QAAQ,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;gBACxD,MAAM,MAAM,GAAG,WAAW,CAAW,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;gBAC5D,OAAO;oBACL,IAAI,EAAE,MAAM;oBACZ,YAAY,EAAE,QAAQ;iBACvB,CAAC;YACJ,CAAC;KACR,CAAC;IAEF,OAAO,IAAA,mCAAqB,EAAC,WAAW,CAAC,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ncIterator, PagedAsyncIterableIterator, PagedResult } from \"@azure/core-paging\";\nimport { Client, createRestError, PathUncheckedResponse } from \"@azure-rest/core-client\";\n\n/**\n * Helper type to extract the type of an array\n */\nexport type GetArrayType<T> = T extends Array<infer TData> ? TData : never;\n\n/**\n * The type of a custom function that defines how to get a page and a link to the next one if any.\n */\nexport type GetPage<TPage> = (\n pageLink: string,\n maxPageSize?: number,\n) => Promise<{\n page: TPage;\n nextPageLink?: string;\n}>;\n\n/**\n * Options for the paging helper\n */\nexport interface PagingOptions<TResponse> {\n /**\n * Custom function to extract pagination details for crating the PagedAsyncIterableIterator\n */\n customGetPage?: GetPage<PaginateReturn<TResponse>[]>;\n}\n\n/**\n * Helper type to infer the Type of the paged elements from the response type\n * This type is generated based on the swagger information for x-ms-pageable\n * specifically on the itemName property which indicates the property of the response\n * where the page items are found. The default value is `value`.\n * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter\n */\nexport type PaginateReturn<TResult> = TResult extends {\n body: { value?: infer TPage };\n}\n ? GetArrayType<TPage>\n : Array<unknown>;\n\n/**\n * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension\n * @param client - Client to use for sending the next page requests\n * @param initialResponse - Initial response containing the nextLink and current page of elements\n * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results\n * @returns - PagedAsyncIterableIterator to iterate the elements\n */\nexport function paginate<TResponse extends PathUncheckedResponse>(\n client: Client,\n initialResponse: TResponse,\n options: PagingOptions<TResponse> = {},\n): PagedAsyncIterableIterator<PaginateReturn<TResponse>> {\n // Extract element type from initial response\n type TElement = PaginateReturn<TResponse>;\n let firstRun = true;\n const itemName = \"value\";\n const nextLinkName = \"nextLink\";\n const { customGetPage } = options;\n const pagedResult: PagedResult<TElement[]> = {\n firstPageLink: \"\",\n getPage:\n typeof customGetPage === \"function\"\n ? customGetPage\n : async (pageLink: string) => {\n const result = firstRun ? initialResponse : await client.pathUnchecked(pageLink).get();\n firstRun = false;\n checkPagingRequest(result);\n const nextLink = getNextLink(result.body, nextLinkName);\n const values = getElements<TElement>(result.body, itemName);\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n };\n\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * Gets for the value of nextLink in the body\n */\nfunction getNextLink(body: unknown, nextLinkName?: string): string | undefined {\n if (!nextLinkName) {\n return undefined;\n }\n\n const nextLink = (body as Record<string, unknown>)[nextLinkName];\n\n if (typeof nextLink !== \"string\" && typeof nextLink !== \"undefined\") {\n throw new Error(`Body Property ${nextLinkName} should be a string or undefined`);\n }\n\n return nextLink;\n}\n\n/**\n * Gets the elements of the current request in the body.\n */\nfunction getElements<T = unknown>(body: unknown, itemName: string): T[] {\n const value = (body as Record<string, unknown>)[itemName] as T[];\n\n // value has to be an array according to the x-ms-pageable extension.\n // The fact that this must be an array is used above to calculate the\n // type of elements in the page in PaginateReturn\n if (!Array.isArray(value)) {\n throw new Error(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${itemName}`,\n );\n }\n\n return value ?? [];\n}\n\n/**\n * Checks if a request failed\n */\nfunction checkPagingRequest(response: PathUncheckedResponse): void {\n const Http2xxStatusCodes = [\"200\", \"201\", \"202\", \"203\", \"204\", \"205\", \"206\", \"207\", \"208\", \"226\"];\n if (!Http2xxStatusCodes.includes(response.status)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response,\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { RequestParameters } from "@azure-rest/core-client";
|
|
2
|
+
import { DeidService, DeidUpdate, PrivateEndpointConnectionResource } from "./models.js";
|
|
3
|
+
export type OperationsListParameters = RequestParameters;
|
|
4
|
+
export type DeidServicesGetParameters = RequestParameters;
|
|
5
|
+
export type DeidServicesListByResourceGroupParameters = RequestParameters;
|
|
6
|
+
export type DeidServicesListBySubscriptionParameters = RequestParameters;
|
|
7
|
+
export interface DeidServicesCreateBodyParam {
|
|
8
|
+
/** Resource create parameters. */
|
|
9
|
+
body: DeidService;
|
|
10
|
+
}
|
|
11
|
+
export type DeidServicesCreateParameters = DeidServicesCreateBodyParam & RequestParameters;
|
|
12
|
+
export interface DeidServicesUpdateBodyParam {
|
|
13
|
+
/** The resource properties to be updated. */
|
|
14
|
+
body: DeidUpdate;
|
|
15
|
+
}
|
|
16
|
+
export type DeidServicesUpdateParameters = DeidServicesUpdateBodyParam & RequestParameters;
|
|
17
|
+
export type DeidServicesDeleteParameters = RequestParameters;
|
|
18
|
+
export type PrivateEndpointConnectionsGetParameters = RequestParameters;
|
|
19
|
+
export interface PrivateEndpointConnectionsCreateBodyParam {
|
|
20
|
+
/** Resource create parameters. */
|
|
21
|
+
body: PrivateEndpointConnectionResource;
|
|
22
|
+
}
|
|
23
|
+
export type PrivateEndpointConnectionsCreateParameters = PrivateEndpointConnectionsCreateBodyParam & RequestParameters;
|
|
24
|
+
export type PrivateEndpointConnectionsDeleteParameters = RequestParameters;
|
|
25
|
+
export type PrivateEndpointConnectionsListByDeidServiceParameters = RequestParameters;
|
|
26
|
+
export type PrivateLinksListByDeidServiceParameters = RequestParameters;
|
|
27
|
+
//# sourceMappingURL=parameters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../src/rest/parameters.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,iCAAiC,EAAE,MAAM,aAAa,CAAC;AAEzF,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;AACzD,MAAM,MAAM,yBAAyB,GAAG,iBAAiB,CAAC;AAC1D,MAAM,MAAM,yCAAyC,GAAG,iBAAiB,CAAC;AAC1E,MAAM,MAAM,wCAAwC,GAAG,iBAAiB,CAAC;AAEzE,MAAM,WAAW,2BAA2B;IAC1C,kCAAkC;IAClC,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,MAAM,MAAM,4BAA4B,GAAG,2BAA2B,GAAG,iBAAiB,CAAC;AAE3F,MAAM,WAAW,2BAA2B;IAC1C,6CAA6C;IAC7C,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,MAAM,4BAA4B,GAAG,2BAA2B,GAAG,iBAAiB,CAAC;AAC3F,MAAM,MAAM,4BAA4B,GAAG,iBAAiB,CAAC;AAC7D,MAAM,MAAM,uCAAuC,GAAG,iBAAiB,CAAC;AAExE,MAAM,WAAW,yCAAyC;IACxD,kCAAkC;IAClC,IAAI,EAAE,iCAAiC,CAAC;CACzC;AAED,MAAM,MAAM,0CAA0C,GAAG,yCAAyC,GAChG,iBAAiB,CAAC;AACpB,MAAM,MAAM,0CAA0C,GAAG,iBAAiB,CAAC;AAC3E,MAAM,MAAM,qDAAqD,GAAG,iBAAiB,CAAC;AACtF,MAAM,MAAM,uCAAuC,GAAG,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/rest/parameters.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { RequestParameters } from \"@azure-rest/core-client\";\nimport { DeidService, DeidUpdate, PrivateEndpointConnectionResource } from \"./models.js\";\n\nexport type OperationsListParameters = RequestParameters;\nexport type DeidServicesGetParameters = RequestParameters;\nexport type DeidServicesListByResourceGroupParameters = RequestParameters;\nexport type DeidServicesListBySubscriptionParameters = RequestParameters;\n\nexport interface DeidServicesCreateBodyParam {\n /** Resource create parameters. */\n body: DeidService;\n}\n\nexport type DeidServicesCreateParameters = DeidServicesCreateBodyParam & RequestParameters;\n\nexport interface DeidServicesUpdateBodyParam {\n /** The resource properties to be updated. */\n body: DeidUpdate;\n}\n\nexport type DeidServicesUpdateParameters = DeidServicesUpdateBodyParam & RequestParameters;\nexport type DeidServicesDeleteParameters = RequestParameters;\nexport type PrivateEndpointConnectionsGetParameters = RequestParameters;\n\nexport interface PrivateEndpointConnectionsCreateBodyParam {\n /** Resource create parameters. */\n body: PrivateEndpointConnectionResource;\n}\n\nexport type PrivateEndpointConnectionsCreateParameters = PrivateEndpointConnectionsCreateBodyParam &\n RequestParameters;\nexport type PrivateEndpointConnectionsDeleteParameters = RequestParameters;\nexport type PrivateEndpointConnectionsListByDeidServiceParameters = RequestParameters;\nexport type PrivateLinksListByDeidServiceParameters = RequestParameters;\n"]}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { Client } from "@azure-rest/core-client";
|
|
2
|
+
import { AbortSignalLike } from "@azure/abort-controller";
|
|
3
|
+
import { CancelOnProgress, CreateHttpPollerOptions, OperationState } from "@azure/core-lro";
|
|
4
|
+
import { DeidServicesCreate200Response, DeidServicesCreate201Response, DeidServicesCreateDefaultResponse, DeidServicesCreateLogicalResponse, DeidServicesUpdate200Response, DeidServicesUpdate202Response, DeidServicesUpdateDefaultResponse, DeidServicesUpdateLogicalResponse, DeidServicesDelete202Response, DeidServicesDelete204Response, DeidServicesDeleteDefaultResponse, DeidServicesDeleteLogicalResponse, PrivateEndpointConnectionsCreate200Response, PrivateEndpointConnectionsCreate201Response, PrivateEndpointConnectionsCreateDefaultResponse, PrivateEndpointConnectionsCreateLogicalResponse, PrivateEndpointConnectionsDelete202Response, PrivateEndpointConnectionsDelete204Response, PrivateEndpointConnectionsDeleteDefaultResponse, PrivateEndpointConnectionsDeleteLogicalResponse } from "./responses.js";
|
|
5
|
+
/**
|
|
6
|
+
* A simple poller that can be used to poll a long running operation.
|
|
7
|
+
*/
|
|
8
|
+
export interface SimplePollerLike<TState extends OperationState<TResult>, TResult> {
|
|
9
|
+
/**
|
|
10
|
+
* Returns true if the poller has finished polling.
|
|
11
|
+
*/
|
|
12
|
+
isDone(): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Returns the state of the operation.
|
|
15
|
+
*/
|
|
16
|
+
getOperationState(): TState;
|
|
17
|
+
/**
|
|
18
|
+
* Returns the result value of the operation,
|
|
19
|
+
* regardless of the state of the poller.
|
|
20
|
+
* It can return undefined or an incomplete form of the final TResult value
|
|
21
|
+
* depending on the implementation.
|
|
22
|
+
*/
|
|
23
|
+
getResult(): TResult | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Returns a promise that will resolve once a single polling request finishes.
|
|
26
|
+
* It does this by calling the update method of the Poller's operation.
|
|
27
|
+
*/
|
|
28
|
+
poll(options?: {
|
|
29
|
+
abortSignal?: AbortSignalLike;
|
|
30
|
+
}): Promise<TState>;
|
|
31
|
+
/**
|
|
32
|
+
* Returns a promise that will resolve once the underlying operation is completed.
|
|
33
|
+
*/
|
|
34
|
+
pollUntilDone(pollOptions?: {
|
|
35
|
+
abortSignal?: AbortSignalLike;
|
|
36
|
+
}): Promise<TResult>;
|
|
37
|
+
/**
|
|
38
|
+
* Invokes the provided callback after each polling is completed,
|
|
39
|
+
* sending the current state of the poller's operation.
|
|
40
|
+
*
|
|
41
|
+
* It returns a method that can be used to stop receiving updates on the given callback function.
|
|
42
|
+
*/
|
|
43
|
+
onProgress(callback: (state: TState) => void): CancelOnProgress;
|
|
44
|
+
/**
|
|
45
|
+
* Returns a promise that could be used for serialized version of the poller's operation
|
|
46
|
+
* by invoking the operation's serialize method.
|
|
47
|
+
*/
|
|
48
|
+
serialize(): Promise<string>;
|
|
49
|
+
/**
|
|
50
|
+
* Wait the poller to be submitted.
|
|
51
|
+
*/
|
|
52
|
+
submitted(): Promise<void>;
|
|
53
|
+
/**
|
|
54
|
+
* Returns a string representation of the poller's operation. Similar to serialize but returns a string.
|
|
55
|
+
* @deprecated Use serialize() instead.
|
|
56
|
+
*/
|
|
57
|
+
toString(): string;
|
|
58
|
+
/**
|
|
59
|
+
* Stops the poller from continuing to poll. Please note this will only stop the client-side polling
|
|
60
|
+
* @deprecated Use abortSignal to stop polling instead.
|
|
61
|
+
*/
|
|
62
|
+
stopPolling(): void;
|
|
63
|
+
/**
|
|
64
|
+
* Returns true if the poller is stopped.
|
|
65
|
+
* @deprecated Use abortSignal status to track this instead.
|
|
66
|
+
*/
|
|
67
|
+
isStopped(): boolean;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Helper function that builds a Poller object to help polling a long running operation.
|
|
71
|
+
* @param client - Client to use for sending the request to get additional pages.
|
|
72
|
+
* @param initialResponse - The initial response.
|
|
73
|
+
* @param options - Options to set a resume state or custom polling interval.
|
|
74
|
+
* @returns - A poller object to poll for operation state updates and eventually get the final response.
|
|
75
|
+
*/
|
|
76
|
+
export declare function getLongRunningPoller<TResult extends DeidServicesCreateLogicalResponse | DeidServicesCreateDefaultResponse>(client: Client, initialResponse: DeidServicesCreate200Response | DeidServicesCreate201Response | DeidServicesCreateDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
|
|
77
|
+
export declare function getLongRunningPoller<TResult extends DeidServicesUpdateLogicalResponse | DeidServicesUpdateDefaultResponse>(client: Client, initialResponse: DeidServicesUpdate200Response | DeidServicesUpdate202Response | DeidServicesUpdateDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
|
|
78
|
+
export declare function getLongRunningPoller<TResult extends DeidServicesDeleteLogicalResponse | DeidServicesDeleteDefaultResponse>(client: Client, initialResponse: DeidServicesDelete202Response | DeidServicesDelete204Response | DeidServicesDeleteDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
|
|
79
|
+
export declare function getLongRunningPoller<TResult extends PrivateEndpointConnectionsCreateLogicalResponse | PrivateEndpointConnectionsCreateDefaultResponse>(client: Client, initialResponse: PrivateEndpointConnectionsCreate200Response | PrivateEndpointConnectionsCreate201Response | PrivateEndpointConnectionsCreateDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
|
|
80
|
+
export declare function getLongRunningPoller<TResult extends PrivateEndpointConnectionsDeleteLogicalResponse | PrivateEndpointConnectionsDeleteDefaultResponse>(client: Client, initialResponse: PrivateEndpointConnectionsDelete202Response | PrivateEndpointConnectionsDelete204Response | PrivateEndpointConnectionsDeleteDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
|
|
81
|
+
//# sourceMappingURL=pollingHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pollingHelper.d.ts","sourceRoot":"","sources":["../../../src/rest/pollingHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAgB,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EAGvB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EACjC,iCAAiC,EACjC,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EACjC,iCAAiC,EACjC,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EACjC,iCAAiC,EACjC,2CAA2C,EAC3C,2CAA2C,EAC3C,+CAA+C,EAC/C,+CAA+C,EAC/C,2CAA2C,EAC3C,2CAA2C,EAC3C,+CAA+C,EAC/C,+CAA+C,EAChD,MAAM,gBAAgB,CAAC;AAExB;;GAEG;AACH,MAAM,WAAW,gBAAgB,CAAC,MAAM,SAAS,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO;IAC/E;;OAEG;IACH,MAAM,IAAI,OAAO,CAAC;IAClB;;OAEG;IACH,iBAAiB,IAAI,MAAM,CAAC;IAC5B;;;;;OAKG;IACH,SAAS,IAAI,OAAO,GAAG,SAAS,CAAC;IACjC;;;OAGG;IACH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AC,CAAC;AAC/D,wBAAsB,oBAAoB,CACxC,OAAO,SAAS,iCAAiC,GAAG,iCAAiC,EAErF,MAAM,EAAE,MAAM,EACd,eAAe,EACX,6BAA6B,GAC7B,6BAA6B,GAC7B,iCAAiC,EACrC,OAAO,CAAC,EAAE,uBAAuB,CAAC,OAAO,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC,GAClE,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;AAC/D,wBAAsB,oBAAoB,CACxC,OAAO,SACH,+CAA+C,GAC/C,+CAA+C,EAEnD,MAAM,EAAE,MAAM,EACd,eAAe,EACX,2CAA2C,GAC3C,2CAA2C,GAC3C,+CAA+C,EACnD,OAAO,CAAC,EAAE,uBAAuB,CAAC,OAAO,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC,GAClE,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;AAC/D,wBAAsB,oBAAoB,CACxC,OAAO,SACH,+CAA+C,GAC/C,+CAA+C,EAEnD,MAAM,EAAE,MAAM,EACd,eAAe,EACX,2CAA2C,GAC3C,2CAA2C,GAC3C,+CAA+C,EACnD,OAAO,CAAC,EAAE,uBAAuB,CAAC,OAAO,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC,GAClE,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getLongRunningPoller = getLongRunningPoller;
|
|
6
|
+
const core_lro_1 = require("@azure/core-lro");
|
|
7
|
+
async function getLongRunningPoller(client, initialResponse, options = {}) {
|
|
8
|
+
var _a;
|
|
9
|
+
const abortController = new AbortController();
|
|
10
|
+
const poller = {
|
|
11
|
+
sendInitialRequest: async () => {
|
|
12
|
+
// In the case of Rest Clients we are building the LRO poller object from a response that's the reason
|
|
13
|
+
// we are not triggering the initial request here, just extracting the information from the
|
|
14
|
+
// response we were provided.
|
|
15
|
+
return getLroResponse(initialResponse);
|
|
16
|
+
},
|
|
17
|
+
sendPollRequest: async (path, pollOptions) => {
|
|
18
|
+
// This is the callback that is going to be called to poll the service
|
|
19
|
+
// to get the latest status. We use the client provided and the polling path
|
|
20
|
+
// which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location
|
|
21
|
+
// depending on the lro pattern that the service implements. If non is provided we default to the initial path.
|
|
22
|
+
function abortListener() {
|
|
23
|
+
abortController.abort();
|
|
24
|
+
}
|
|
25
|
+
const inputAbortSignal = pollOptions === null || pollOptions === void 0 ? void 0 : pollOptions.abortSignal;
|
|
26
|
+
const abortSignal = abortController.signal;
|
|
27
|
+
if (inputAbortSignal === null || inputAbortSignal === void 0 ? void 0 : inputAbortSignal.aborted) {
|
|
28
|
+
abortController.abort();
|
|
29
|
+
}
|
|
30
|
+
else if (!abortSignal.aborted) {
|
|
31
|
+
inputAbortSignal === null || inputAbortSignal === void 0 ? void 0 : inputAbortSignal.addEventListener("abort", abortListener, {
|
|
32
|
+
once: true,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
let response;
|
|
36
|
+
try {
|
|
37
|
+
response = await client
|
|
38
|
+
.pathUnchecked(path !== null && path !== void 0 ? path : initialResponse.request.url)
|
|
39
|
+
.get({ abortSignal });
|
|
40
|
+
}
|
|
41
|
+
finally {
|
|
42
|
+
inputAbortSignal === null || inputAbortSignal === void 0 ? void 0 : inputAbortSignal.removeEventListener("abort", abortListener);
|
|
43
|
+
}
|
|
44
|
+
const lroResponse = getLroResponse(response);
|
|
45
|
+
lroResponse.rawResponse.headers["x-ms-original-url"] = initialResponse.request.url;
|
|
46
|
+
return lroResponse;
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
options.resolveOnUnsuccessful = (_a = options.resolveOnUnsuccessful) !== null && _a !== void 0 ? _a : true;
|
|
50
|
+
const httpPoller = (0, core_lro_1.createHttpPoller)(poller, options);
|
|
51
|
+
const simplePoller = {
|
|
52
|
+
isDone() {
|
|
53
|
+
return httpPoller.isDone;
|
|
54
|
+
},
|
|
55
|
+
isStopped() {
|
|
56
|
+
return abortController.signal.aborted;
|
|
57
|
+
},
|
|
58
|
+
getOperationState() {
|
|
59
|
+
if (!httpPoller.operationState) {
|
|
60
|
+
throw new Error("Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().");
|
|
61
|
+
}
|
|
62
|
+
return httpPoller.operationState;
|
|
63
|
+
},
|
|
64
|
+
getResult() {
|
|
65
|
+
return httpPoller.result;
|
|
66
|
+
},
|
|
67
|
+
toString() {
|
|
68
|
+
if (!httpPoller.operationState) {
|
|
69
|
+
throw new Error("Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().");
|
|
70
|
+
}
|
|
71
|
+
return JSON.stringify({
|
|
72
|
+
state: httpPoller.operationState,
|
|
73
|
+
});
|
|
74
|
+
},
|
|
75
|
+
stopPolling() {
|
|
76
|
+
abortController.abort();
|
|
77
|
+
},
|
|
78
|
+
onProgress: httpPoller.onProgress,
|
|
79
|
+
poll: httpPoller.poll,
|
|
80
|
+
pollUntilDone: httpPoller.pollUntilDone,
|
|
81
|
+
serialize: httpPoller.serialize,
|
|
82
|
+
submitted: httpPoller.submitted,
|
|
83
|
+
};
|
|
84
|
+
return simplePoller;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Converts a Rest Client response to a response that the LRO implementation understands
|
|
88
|
+
* @param response - a rest client http response
|
|
89
|
+
* @returns - An LRO response that the LRO implementation understands
|
|
90
|
+
*/
|
|
91
|
+
function getLroResponse(response) {
|
|
92
|
+
if (Number.isNaN(response.status)) {
|
|
93
|
+
throw new TypeError(`Status code of the response is not a number. Value: ${response.status}`);
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
flatResponse: response,
|
|
97
|
+
rawResponse: Object.assign(Object.assign({}, response), { statusCode: Number.parseInt(response.status), body: response.body }),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=pollingHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pollingHelper.js","sourceRoot":"","sources":["../../../src/rest/pollingHelper.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkKlC,oDAoFC;AAlPD,8CAOyB;AAuJlB,KAAK,UAAU,oBAAoB,CACxC,MAAc,EACd,eAAwB,EACxB,UAAqE,EAAE;;IAEvE,MAAM,eAAe,GAAG,IAAI,eAAe,EAAE,CAAC;IAC9C,MAAM,MAAM,GAA8B;QACxC,kBAAkB,EAAE,KAAK,IAAI,EAAE;YAC7B,sGAAsG;YACtG,2FAA2F;YAC3F,6BAA6B;YAC7B,OAAO,cAAc,CAAC,eAAe,CAAC,CAAC;QACzC,CAAC;QACD,eAAe,EAAE,KAAK,EAAE,IAAY,EAAE,WAA+C,EAAE,EAAE;YACvF,sEAAsE;YACtE,4EAA4E;YAC5E,0JAA0J;YAC1J,+GAA+G;YAC/G,SAAS,aAAa;gBACpB,eAAe,CAAC,KAAK,EAAE,CAAC;YAC1B,CAAC;YACD,MAAM,gBAAgB,GAAG,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,WAAW,CAAC;YAClD,MAAM,WAAW,GAAG,eAAe,CAAC,MAAM,CAAC;YAC3C,IAAI,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,OAAO,EAAE,CAAC;gBAC9B,eAAe,CAAC,KAAK,EAAE,CAAC;YAC1B,CAAC;iBAAM,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;gBAChC,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,gBAAg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AAC;gBAC/B,MAAM,IAAI,KAAK,CACb,4IAA4I,CAC7I,CAAC;YACJ,CAAC;YACD,OAAO,IAAI,CAAC,SAAS,CAAC;gBACpB,KAAK,EAAE,UAAU,CAAC,cAAc;aACjC,CAAC,CAAC;QACL,CAAC;QACD,WAAW;YACT,eAAe,CAAC,KAAK,EAAE,CAAC;QAC1B,CAAC;QACD,UAAU,EAAE,UAAU,CAAC,UAAU;QACjC,IAAI,EAAE,UAAU,CAAC,IAAI;QACrB,aAAa,EAAE,UAAU,CAAC,aAAa;QACvC,SAAS,EAAE,UAAU,CAAC,SAAS;QAC/B,SAAS,EAAE,UAAU,CAAC,SAAS;KAChC,CAAC;IACF,OAAO,YAAY,CAAC;AACtB,CAAC;AAED;;;;GAIG;AACH,SAAS,cAAc,CACrB,QAAiB;IAEjB,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAClC,MAAM,IAAI,SAAS,CAAC,uDAAuD,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;IAChG,CAAC;IAED,OAAO;QACL,YAAY,EAAE,QAAQ;QACtB,WAAW,kCACN,QAAQ,KACX,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAC5C,IAAI,EAAE,QAAQ,CAAC,IAAI,GACpB;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { Client, HttpResponse } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport {\n CancelOnProgress,\n CreateHttpPollerOptions,\n RunningOperation,\n OperationResponse,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport {\n DeidServicesCreate200Response,\n DeidServicesCreate201Response,\n DeidServicesCreateDefaultResponse,\n DeidServicesCreateLogicalResponse,\n DeidServicesUpdate200Response,\n DeidServicesUpdate202Response,\n DeidServicesUpdateDefaultResponse,\n DeidServicesUpdateLogicalResponse,\n DeidServicesDelete202Response,\n DeidServicesDelete204Response,\n DeidServicesDeleteDefaultResponse,\n DeidServicesDeleteLogicalResponse,\n PrivateEndpointConnectionsCreate200Response,\n PrivateEndpointConnectionsCreate201Response,\n PrivateEndpointConnectionsCreateDefaultResponse,\n PrivateEndpointConnectionsCreateLogicalResponse,\n PrivateEndpointConnectionsDelete202Response,\n PrivateEndpointConnectionsDelete204Response,\n PrivateEndpointConnectionsDeleteDefaultResponse,\n PrivateEndpointConnectionsDeleteLogicalResponse,\n} from \"./responses.js\";\n\n/**\n * A simple poller that can be used to poll a long running operation.\n */\nexport interface SimplePollerLike<TState extends OperationState<TResult>, TResult> {\n /**\n * Returns true if the poller has finished polling.\n */\n isDone(): boolean;\n /**\n * Returns the state of the operation.\n */\n getOperationState(): TState;\n /**\n * Returns the result value of the operation,\n * regardless of the state of the poller.\n * It can return undefined or an incomplete form of the final TResult value\n * depending on the implementation.\n */\n getResult(): TResult | undefined;\n /**\n * Returns a promise that will resolve once a single polling request finishes.\n * It does this by calling the update method of the Poller's operation.\n */\n poll(options?: { abortSignal?: AbortSignalLike }): Promise<TState>;\n /**\n * Returns a promise that will resolve once the underlying operation is completed.\n */\n pollUntilDone(pollOptions?: { abortSignal?: AbortSignalLike }): Promise<TResult>;\n /**\n * Invokes the provided callback after each polling is completed,\n * sending the current state of the poller's operation.\n *\n * It returns a method that can be used to stop receiving updates on the given callback function.\n */\n onProgress(callback: (state: TState) => void): CancelOnProgress;\n\n /**\n * Returns a promise that could be used for serialized version of the poller's operation\n * by invoking the operation's serialize method.\n */\n serialize(): Promise<string>;\n\n /**\n * Wait the poller to be submitted.\n */\n submitted(): Promise<void>;\n\n /**\n * Returns a string representation of the poller's operation. Similar to serialize but returns a string.\n * @deprecated Use serialize() instead.\n */\n toString(): string;\n\n /**\n * Stops the poller from continuing to poll. Please note this will only stop the client-side polling\n * @deprecated Use abortSignal to stop polling instead.\n */\n stopPolling(): void;\n\n /**\n * Returns true if the poller is stopped.\n * @deprecated Use abortSignal status to track this instead.\n */\n isStopped(): boolean;\n}\n\n/**\n * Helper function that builds a Poller object to help polling a long running operation.\n * @param client - Client to use for sending the request to get additional pages.\n * @param initialResponse - The initial response.\n * @param options - Options to set a resume state or custom polling interval.\n * @returns - A poller object to poll for operation state updates and eventually get the final response.\n */\nexport async function getLongRunningPoller<\n TResult extends DeidServicesCreateLogicalResponse | DeidServicesCreateDefaultResponse,\n>(\n client: Client,\n initialResponse:\n | DeidServicesCreate200Response\n | DeidServicesCreate201Response\n | DeidServicesCreateDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<\n TResult extends DeidServicesUpdateLogicalResponse | DeidServicesUpdateDefaultResponse,\n>(\n client: Client,\n initialResponse:\n | DeidServicesUpdate200Response\n | DeidServicesUpdate202Response\n | DeidServicesUpdateDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<\n TResult extends DeidServicesDeleteLogicalResponse | DeidServicesDeleteDefaultResponse,\n>(\n client: Client,\n initialResponse:\n | DeidServicesDelete202Response\n | DeidServicesDelete204Response\n | DeidServicesDeleteDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<\n TResult extends\n | PrivateEndpointConnectionsCreateLogicalResponse\n | PrivateEndpointConnectionsCreateDefaultResponse,\n>(\n client: Client,\n initialResponse:\n | PrivateEndpointConnectionsCreate200Response\n | PrivateEndpointConnectionsCreate201Response\n | PrivateEndpointConnectionsCreateDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<\n TResult extends\n | PrivateEndpointConnectionsDeleteLogicalResponse\n | PrivateEndpointConnectionsDeleteDefaultResponse,\n>(\n client: Client,\n initialResponse:\n | PrivateEndpointConnectionsDelete202Response\n | PrivateEndpointConnectionsDelete204Response\n | PrivateEndpointConnectionsDeleteDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<TResult extends HttpResponse>(\n client: Client,\n initialResponse: TResult,\n options: CreateHttpPollerOptions<TResult, OperationState<TResult>> = {},\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>> {\n const abortController = new AbortController();\n const poller: RunningOperation<TResult> = {\n sendInitialRequest: async () => {\n // In the case of Rest Clients we are building the LRO poller object from a response that's the reason\n // we are not triggering the initial request here, just extracting the information from the\n // response we were provided.\n return getLroResponse(initialResponse);\n },\n sendPollRequest: async (path: string, pollOptions?: { abortSignal?: AbortSignalLike }) => {\n // This is the callback that is going to be called to poll the service\n // to get the latest status. We use the client provided and the polling path\n // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location\n // depending on the lro pattern that the service implements. If non is provided we default to the initial path.\n function abortListener(): void {\n abortController.abort();\n }\n const inputAbortSignal = pollOptions?.abortSignal;\n const abortSignal = abortController.signal;\n if (inputAbortSignal?.aborted) {\n abortController.abort();\n } else if (!abortSignal.aborted) {\n inputAbortSignal?.addEventListener(\"abort\", abortListener, {\n once: true,\n });\n }\n let response;\n try {\n response = await client\n .pathUnchecked(path ?? initialResponse.request.url)\n .get({ abortSignal });\n } finally {\n inputAbortSignal?.removeEventListener(\"abort\", abortListener);\n }\n const lroResponse = getLroResponse(response as TResult);\n lroResponse.rawResponse.headers[\"x-ms-original-url\"] = initialResponse.request.url;\n return lroResponse;\n },\n };\n\n options.resolveOnUnsuccessful = options.resolveOnUnsuccessful ?? true;\n const httpPoller = createHttpPoller(poller, options);\n const simplePoller: SimplePollerLike<OperationState<TResult>, TResult> = {\n isDone() {\n return httpPoller.isDone;\n },\n isStopped() {\n return abortController.signal.aborted;\n },\n getOperationState() {\n if (!httpPoller.operationState) {\n throw new Error(\n \"Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().\",\n );\n }\n return httpPoller.operationState;\n },\n getResult() {\n return httpPoller.result;\n },\n toString() {\n if (!httpPoller.operationState) {\n throw new Error(\n \"Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().\",\n );\n }\n return JSON.stringify({\n state: httpPoller.operationState,\n });\n },\n stopPolling() {\n abortController.abort();\n },\n onProgress: httpPoller.onProgress,\n poll: httpPoller.poll,\n pollUntilDone: httpPoller.pollUntilDone,\n serialize: httpPoller.serialize,\n submitted: httpPoller.submitted,\n };\n return simplePoller;\n}\n\n/**\n * Converts a Rest Client response to a response that the LRO implementation understands\n * @param response - a rest client http response\n * @returns - An LRO response that the LRO implementation understands\n */\nfunction getLroResponse<TResult extends HttpResponse>(\n response: TResult,\n): OperationResponse<TResult> {\n if (Number.isNaN(response.status)) {\n throw new TypeError(`Status code of the response is not a number. Value: ${response.status}`);\n }\n\n return {\n flatResponse: response,\n rawResponse: {\n ...response,\n statusCode: Number.parseInt(response.status),\n body: response.body,\n },\n };\n}\n"]}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { RawHttpHeaders } from "@azure/core-rest-pipeline";
|
|
2
|
+
import { HttpResponse } from "@azure-rest/core-client";
|
|
3
|
+
import { OperationListResultOutput, ErrorResponseOutput, DeidServiceOutput, DeidServiceListResultOutput, PrivateEndpointConnectionResourceOutput, PrivateEndpointConnectionResourceListResultOutput, PrivateLinkResourceListResultOutput } from "./outputModels.js";
|
|
4
|
+
/** Azure operation completed successfully. */
|
|
5
|
+
export interface OperationsList200Response extends HttpResponse {
|
|
6
|
+
status: "200";
|
|
7
|
+
body: OperationListResultOutput;
|
|
8
|
+
}
|
|
9
|
+
export interface OperationsListDefaultResponse extends HttpResponse {
|
|
10
|
+
status: string;
|
|
11
|
+
body: ErrorResponseOutput;
|
|
12
|
+
}
|
|
13
|
+
/** Azure operation completed successfully. */
|
|
14
|
+
export interface DeidServicesGet200Response extends HttpResponse {
|
|
15
|
+
status: "200";
|
|
16
|
+
body: DeidServiceOutput;
|
|
17
|
+
}
|
|
18
|
+
export interface DeidServicesGetDefaultResponse extends HttpResponse {
|
|
19
|
+
status: string;
|
|
20
|
+
body: ErrorResponseOutput;
|
|
21
|
+
}
|
|
22
|
+
/** Azure operation completed successfully. */
|
|
23
|
+
export interface DeidServicesListByResourceGroup200Response extends HttpResponse {
|
|
24
|
+
status: "200";
|
|
25
|
+
body: DeidServiceListResultOutput;
|
|
26
|
+
}
|
|
27
|
+
export interface DeidServicesListByResourceGroupDefaultResponse extends HttpResponse {
|
|
28
|
+
status: string;
|
|
29
|
+
body: ErrorResponseOutput;
|
|
30
|
+
}
|
|
31
|
+
/** Azure operation completed successfully. */
|
|
32
|
+
export interface DeidServicesListBySubscription200Response extends HttpResponse {
|
|
33
|
+
status: "200";
|
|
34
|
+
body: DeidServiceListResultOutput;
|
|
35
|
+
}
|
|
36
|
+
export interface DeidServicesListBySubscriptionDefaultResponse extends HttpResponse {
|
|
37
|
+
status: string;
|
|
38
|
+
body: ErrorResponseOutput;
|
|
39
|
+
}
|
|
40
|
+
/** Resource 'DeidService' update operation succeeded */
|
|
41
|
+
export interface DeidServicesCreate200Response extends HttpResponse {
|
|
42
|
+
status: "200";
|
|
43
|
+
body: DeidServiceOutput;
|
|
44
|
+
}
|
|
45
|
+
export interface DeidServicesCreate201Headers {
|
|
46
|
+
/** A link to the status monitor */
|
|
47
|
+
"azure-asyncoperation"?: string;
|
|
48
|
+
/** The Retry-After header can indicate how long the client should wait before polling the operation status. */
|
|
49
|
+
"retry-after"?: number;
|
|
50
|
+
}
|
|
51
|
+
/** Resource 'DeidService' create operation succeeded */
|
|
52
|
+
export interface DeidServicesCreate201Response extends HttpResponse {
|
|
53
|
+
status: "201";
|
|
54
|
+
body: DeidServiceOutput;
|
|
55
|
+
headers: RawHttpHeaders & DeidServicesCreate201Headers;
|
|
56
|
+
}
|
|
57
|
+
export interface DeidServicesCreateDefaultResponse extends HttpResponse {
|
|
58
|
+
status: string;
|
|
59
|
+
body: ErrorResponseOutput;
|
|
60
|
+
}
|
|
61
|
+
/** The final response for long-running create operation */
|
|
62
|
+
export interface DeidServicesCreateLogicalResponse extends HttpResponse {
|
|
63
|
+
status: "200";
|
|
64
|
+
body: DeidServiceOutput;
|
|
65
|
+
}
|
|
66
|
+
/** Azure operation completed successfully. */
|
|
67
|
+
export interface DeidServicesUpdate200Response extends HttpResponse {
|
|
68
|
+
status: "200";
|
|
69
|
+
body: DeidServiceOutput;
|
|
70
|
+
}
|
|
71
|
+
export interface DeidServicesUpdate202Headers {
|
|
72
|
+
/** The Location header contains the URL where the status of the long running operation can be checked. */
|
|
73
|
+
location?: string;
|
|
74
|
+
/** The Retry-After header can indicate how long the client should wait before polling the operation status. */
|
|
75
|
+
"retry-after"?: number;
|
|
76
|
+
}
|
|
77
|
+
/** Resource update request accepted. */
|
|
78
|
+
export interface DeidServicesUpdate202Response extends HttpResponse {
|
|
79
|
+
status: "202";
|
|
80
|
+
headers: RawHttpHeaders & DeidServicesUpdate202Headers;
|
|
81
|
+
}
|
|
82
|
+
export interface DeidServicesUpdateDefaultResponse extends HttpResponse {
|
|
83
|
+
status: string;
|
|
84
|
+
body: ErrorResponseOutput;
|
|
85
|
+
}
|
|
86
|
+
/** The final response for long-running update operation */
|
|
87
|
+
export interface DeidServicesUpdateLogicalResponse extends HttpResponse {
|
|
88
|
+
status: "200";
|
|
89
|
+
body: DeidServiceOutput;
|
|
90
|
+
}
|
|
91
|
+
export interface DeidServicesDelete202Headers {
|
|
92
|
+
/** The Location header contains the URL where the status of the long running operation can be checked. */
|
|
93
|
+
location?: string;
|
|
94
|
+
/** The Retry-After header can indicate how long the client should wait before polling the operation status. */
|
|
95
|
+
"retry-after"?: number;
|
|
96
|
+
}
|
|
97
|
+
/** Resource deletion accepted. */
|
|
98
|
+
export interface DeidServicesDelete202Response extends HttpResponse {
|
|
99
|
+
status: "202";
|
|
100
|
+
headers: RawHttpHeaders & DeidServicesDelete202Headers;
|
|
101
|
+
}
|
|
102
|
+
/** Resource does not exist. */
|
|
103
|
+
export interface DeidServicesDelete204Response extends HttpResponse {
|
|
104
|
+
status: "204";
|
|
105
|
+
}
|
|
106
|
+
export interface DeidServicesDeleteDefaultResponse extends HttpResponse {
|
|
107
|
+
status: string;
|
|
108
|
+
body: ErrorResponseOutput;
|
|
109
|
+
}
|
|
110
|
+
/** The final response for long-running delete operation */
|
|
111
|
+
export interface DeidServicesDeleteLogicalResponse extends HttpResponse {
|
|
112
|
+
status: "200";
|
|
113
|
+
}
|
|
114
|
+
/** Azure operation completed successfully. */
|
|
115
|
+
export interface PrivateEndpointConnectionsGet200Response extends HttpResponse {
|
|
116
|
+
status: "200";
|
|
117
|
+
body: PrivateEndpointConnectionResourceOutput;
|
|
118
|
+
}
|
|
119
|
+
export interface PrivateEndpointConnectionsGetDefaultResponse extends HttpResponse {
|
|
120
|
+
status: string;
|
|
121
|
+
body: ErrorResponseOutput;
|
|
122
|
+
}
|
|
123
|
+
/** Resource 'PrivateEndpointConnectionResource' update operation succeeded */
|
|
124
|
+
export interface PrivateEndpointConnectionsCreate200Response extends HttpResponse {
|
|
125
|
+
status: "200";
|
|
126
|
+
body: PrivateEndpointConnectionResourceOutput;
|
|
127
|
+
}
|
|
128
|
+
export interface PrivateEndpointConnectionsCreate201Headers {
|
|
129
|
+
/** A link to the status monitor */
|
|
130
|
+
"azure-asyncoperation"?: string;
|
|
131
|
+
/** The Retry-After header can indicate how long the client should wait before polling the operation status. */
|
|
132
|
+
"retry-after"?: number;
|
|
133
|
+
}
|
|
134
|
+
/** Resource 'PrivateEndpointConnectionResource' create operation succeeded */
|
|
135
|
+
export interface PrivateEndpointConnectionsCreate201Response extends HttpResponse {
|
|
136
|
+
status: "201";
|
|
137
|
+
body: PrivateEndpointConnectionResourceOutput;
|
|
138
|
+
headers: RawHttpHeaders & PrivateEndpointConnectionsCreate201Headers;
|
|
139
|
+
}
|
|
140
|
+
export interface PrivateEndpointConnectionsCreateDefaultResponse extends HttpResponse {
|
|
141
|
+
status: string;
|
|
142
|
+
body: ErrorResponseOutput;
|
|
143
|
+
}
|
|
144
|
+
/** The final response for long-running create operation */
|
|
145
|
+
export interface PrivateEndpointConnectionsCreateLogicalResponse extends HttpResponse {
|
|
146
|
+
status: "200";
|
|
147
|
+
body: PrivateEndpointConnectionResourceOutput;
|
|
148
|
+
}
|
|
149
|
+
export interface PrivateEndpointConnectionsDelete202Headers {
|
|
150
|
+
/** The Location header contains the URL where the status of the long running operation can be checked. */
|
|
151
|
+
location?: string;
|
|
152
|
+
/** The Retry-After header can indicate how long the client should wait before polling the operation status. */
|
|
153
|
+
"retry-after"?: number;
|
|
154
|
+
}
|
|
155
|
+
/** Resource deletion accepted. */
|
|
156
|
+
export interface PrivateEndpointConnectionsDelete202Response extends HttpResponse {
|
|
157
|
+
status: "202";
|
|
158
|
+
headers: RawHttpHeaders & PrivateEndpointConnectionsDelete202Headers;
|
|
159
|
+
}
|
|
160
|
+
/** Resource does not exist. */
|
|
161
|
+
export interface PrivateEndpointConnectionsDelete204Response extends HttpResponse {
|
|
162
|
+
status: "204";
|
|
163
|
+
}
|
|
164
|
+
export interface PrivateEndpointConnectionsDeleteDefaultResponse extends HttpResponse {
|
|
165
|
+
status: string;
|
|
166
|
+
body: ErrorResponseOutput;
|
|
167
|
+
}
|
|
168
|
+
/** The final response for long-running delete operation */
|
|
169
|
+
export interface PrivateEndpointConnectionsDeleteLogicalResponse extends HttpResponse {
|
|
170
|
+
status: "200";
|
|
171
|
+
}
|
|
172
|
+
/** Azure operation completed successfully. */
|
|
173
|
+
export interface PrivateEndpointConnectionsListByDeidService200Response extends HttpResponse {
|
|
174
|
+
status: "200";
|
|
175
|
+
body: PrivateEndpointConnectionResourceListResultOutput;
|
|
176
|
+
}
|
|
177
|
+
export interface PrivateEndpointConnectionsListByDeidServiceDefaultResponse extends HttpResponse {
|
|
178
|
+
status: string;
|
|
179
|
+
body: ErrorResponseOutput;
|
|
180
|
+
}
|
|
181
|
+
/** Azure operation completed successfully. */
|
|
182
|
+
export interface PrivateLinksListByDeidService200Response extends HttpResponse {
|
|
183
|
+
status: "200";
|
|
184
|
+
body: PrivateLinkResourceListResultOutput;
|
|
185
|
+
}
|
|
186
|
+
export interface PrivateLinksListByDeidServiceDefaultResponse extends HttpResponse {
|
|
187
|
+
status: string;
|
|
188
|
+
body: ErrorResponseOutput;
|
|
189
|
+
}
|
|
190
|
+
//# sourceMappingURL=responses.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../src/rest/responses.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EACL,yBAAyB,EACzB,mBAAmB,EACnB,iBAAiB,EACjB,2BAA2B,EAC3B,uCAAuC,EACvC,iDAAiD,EACjD,mCAAmC,EACpC,MAAM,mBAAmB,CAAC;AAE3B,8CAA8C;AAC9C,MAAM,WAAW,yBAA0B,SAAQ,YAAY;IAC7D,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,yBAAyB,CAAC;CACjC;AAED,MAAM,WAAW,6BAA8B,SAAQ,YAAY;IACjE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,8CAA8C;AAC9C,MAAM,WAAW,0BAA2B,SAAQ,YAAY;IAC9D,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED,MAAM,WAAW,8BAA+B,SAAQ,YAAY;IAClE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,8CAA8C;AAC9C,MAAM,W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;CACf;AAED,8CAA8C;AAC9C,MAAM,WAAW,sDAAuD,SAAQ,YAAY;IAC1F,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,iDAAiD,CAAC;CACzD;AAED,MAAM,WAAW,0DAA2D,SAAQ,YAAY;IAC9F,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,8CAA8C;AAC9C,MAAM,WAAW,wCAAyC,SAAQ,YAAY;IAC5E,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,mCAAmC,CAAC;CAC3C;AAED,MAAM,WAAW,4CAA6C,SAAQ,YAAY;IAChF,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responses.js","sourceRoot":"","sources":["../../../src/rest/responses.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { RawHttpHeaders } from \"@azure/core-rest-pipeline\";\nimport { HttpResponse } from \"@azure-rest/core-client\";\nimport {\n OperationListResultOutput,\n ErrorResponseOutput,\n DeidServiceOutput,\n DeidServiceListResultOutput,\n PrivateEndpointConnectionResourceOutput,\n PrivateEndpointConnectionResourceListResultOutput,\n PrivateLinkResourceListResultOutput,\n} from \"./outputModels.js\";\n\n/** Azure operation completed successfully. */\nexport interface OperationsList200Response extends HttpResponse {\n status: \"200\";\n body: OperationListResultOutput;\n}\n\nexport interface OperationsListDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Azure operation completed successfully. */\nexport interface DeidServicesGet200Response extends HttpResponse {\n status: \"200\";\n body: DeidServiceOutput;\n}\n\nexport interface DeidServicesGetDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Azure operation completed successfully. */\nexport interface DeidServicesListByResourceGroup200Response extends HttpResponse {\n status: \"200\";\n body: DeidServiceListResultOutput;\n}\n\nexport interface DeidServicesListByResourceGroupDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Azure operation completed successfully. */\nexport interface DeidServicesListBySubscription200Response extends HttpResponse {\n status: \"200\";\n body: DeidServiceListResultOutput;\n}\n\nexport interface DeidServicesListBySubscriptionDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Resource 'DeidService' update operation succeeded */\nexport interface DeidServicesCreate200Response extends HttpResponse {\n status: \"200\";\n body: DeidServiceOutput;\n}\n\nexport interface DeidServicesCreate201Headers {\n /** A link to the status monitor */\n \"azure-asyncoperation\"?: string;\n /** The Retry-After header can indicate how long the client should wait before polling the operation status. */\n \"retry-after\"?: number;\n}\n\n/** Resource 'DeidService' create operation succeeded */\nexport interface DeidServicesCreate201Response extends HttpResponse {\n status: \"201\";\n body: DeidServiceOutput;\n headers: RawHttpHeaders & DeidServicesCreate201Headers;\n}\n\nexport interface DeidServicesCreateDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** The final response for long-running create operation */\nexport interface DeidServicesCreateLogicalResponse extends HttpResponse {\n status: \"200\";\n body: DeidServiceOutput;\n}\n\n/** Azure operation completed successfully. */\nexport interface DeidServicesUpdate200Response extends HttpResponse {\n status: \"200\";\n body: DeidServiceOutput;\n}\n\nexport interface DeidServicesUpdate202Headers {\n /** The Location header contains the URL where the status of the long running operation can be checked. */\n location?: string;\n /** The Retry-After header can indicate how long the client should wait before polling the operation status. */\n \"retry-after\"?: number;\n}\n\n/** Resource update request accepted. */\nexport interface DeidServicesUpdate202Response extends HttpResponse {\n status: \"202\";\n headers: RawHttpHeaders & DeidServicesUpdate202Headers;\n}\n\nexport interface DeidServicesUpdateDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** The final response for long-running update operation */\nexport interface DeidServicesUpdateLogicalResponse extends HttpResponse {\n status: \"200\";\n body: DeidServiceOutput;\n}\n\nexport interface DeidServicesDelete202Headers {\n /** The Location header contains the URL where the status of the long running operation can be checked. */\n location?: string;\n /** The Retry-After header can indicate how long the client should wait before polling the operation status. */\n \"retry-after\"?: number;\n}\n\n/** Resource deletion accepted. */\nexport interface DeidServicesDelete202Response extends HttpResponse {\n status: \"202\";\n headers: RawHttpHeaders & DeidServicesDelete202Headers;\n}\n\n/** Resource does not exist. */\nexport interface DeidServicesDelete204Response extends HttpResponse {\n status: \"204\";\n}\n\nexport interface DeidServicesDeleteDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** The final response for long-running delete operation */\nexport interface DeidServicesDeleteLogicalResponse extends HttpResponse {\n status: \"200\";\n}\n\n/** Azure operation completed successfully. */\nexport interface PrivateEndpointConnectionsGet200Response extends HttpResponse {\n status: \"200\";\n body: PrivateEndpointConnectionResourceOutput;\n}\n\nexport interface PrivateEndpointConnectionsGetDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Resource 'PrivateEndpointConnectionResource' update operation succeeded */\nexport interface PrivateEndpointConnectionsCreate200Response extends HttpResponse {\n status: \"200\";\n body: PrivateEndpointConnectionResourceOutput;\n}\n\nexport interface PrivateEndpointConnectionsCreate201Headers {\n /** A link to the status monitor */\n \"azure-asyncoperation\"?: string;\n /** The Retry-After header can indicate how long the client should wait before polling the operation status. */\n \"retry-after\"?: number;\n}\n\n/** Resource 'PrivateEndpointConnectionResource' create operation succeeded */\nexport interface PrivateEndpointConnectionsCreate201Response extends HttpResponse {\n status: \"201\";\n body: PrivateEndpointConnectionResourceOutput;\n headers: RawHttpHeaders & PrivateEndpointConnectionsCreate201Headers;\n}\n\nexport interface PrivateEndpointConnectionsCreateDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** The final response for long-running create operation */\nexport interface PrivateEndpointConnectionsCreateLogicalResponse extends HttpResponse {\n status: \"200\";\n body: PrivateEndpointConnectionResourceOutput;\n}\n\nexport interface PrivateEndpointConnectionsDelete202Headers {\n /** The Location header contains the URL where the status of the long running operation can be checked. */\n location?: string;\n /** The Retry-After header can indicate how long the client should wait before polling the operation status. */\n \"retry-after\"?: number;\n}\n\n/** Resource deletion accepted. */\nexport interface PrivateEndpointConnectionsDelete202Response extends HttpResponse {\n status: \"202\";\n headers: RawHttpHeaders & PrivateEndpointConnectionsDelete202Headers;\n}\n\n/** Resource does not exist. */\nexport interface PrivateEndpointConnectionsDelete204Response extends HttpResponse {\n status: \"204\";\n}\n\nexport interface PrivateEndpointConnectionsDeleteDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** The final response for long-running delete operation */\nexport interface PrivateEndpointConnectionsDeleteLogicalResponse extends HttpResponse {\n status: \"200\";\n}\n\n/** Azure operation completed successfully. */\nexport interface PrivateEndpointConnectionsListByDeidService200Response extends HttpResponse {\n status: \"200\";\n body: PrivateEndpointConnectionResourceListResultOutput;\n}\n\nexport interface PrivateEndpointConnectionsListByDeidServiceDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Azure operation completed successfully. */\nexport interface PrivateLinksListByDeidService200Response extends HttpResponse {\n status: \"200\";\n body: PrivateLinkResourceListResultOutput;\n}\n\nexport interface PrivateLinksListByDeidServiceDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n"]}
|