@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,48 @@
|
|
|
1
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
2
|
+
/** Optional parameters. */
|
|
3
|
+
export interface OperationsListOptionalParams extends OperationOptions {
|
|
4
|
+
}
|
|
5
|
+
/** Optional parameters. */
|
|
6
|
+
export interface DeidServicesGetOptionalParams extends OperationOptions {
|
|
7
|
+
}
|
|
8
|
+
/** Optional parameters. */
|
|
9
|
+
export interface DeidServicesListByResourceGroupOptionalParams extends OperationOptions {
|
|
10
|
+
}
|
|
11
|
+
/** Optional parameters. */
|
|
12
|
+
export interface DeidServicesListBySubscriptionOptionalParams extends OperationOptions {
|
|
13
|
+
}
|
|
14
|
+
/** Optional parameters. */
|
|
15
|
+
export interface DeidServicesCreateOptionalParams extends OperationOptions {
|
|
16
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
17
|
+
updateIntervalInMs?: number;
|
|
18
|
+
}
|
|
19
|
+
/** Optional parameters. */
|
|
20
|
+
export interface DeidServicesUpdateOptionalParams extends OperationOptions {
|
|
21
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
22
|
+
updateIntervalInMs?: number;
|
|
23
|
+
}
|
|
24
|
+
/** Optional parameters. */
|
|
25
|
+
export interface DeidServicesDeleteOptionalParams extends OperationOptions {
|
|
26
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
27
|
+
updateIntervalInMs?: number;
|
|
28
|
+
}
|
|
29
|
+
/** Optional parameters. */
|
|
30
|
+
export interface PrivateEndpointConnectionsGetOptionalParams extends OperationOptions {
|
|
31
|
+
}
|
|
32
|
+
/** Optional parameters. */
|
|
33
|
+
export interface PrivateEndpointConnectionsCreateOptionalParams extends OperationOptions {
|
|
34
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
35
|
+
updateIntervalInMs?: number;
|
|
36
|
+
}
|
|
37
|
+
/** Optional parameters. */
|
|
38
|
+
export interface PrivateEndpointConnectionsDeleteOptionalParams extends OperationOptions {
|
|
39
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
40
|
+
updateIntervalInMs?: number;
|
|
41
|
+
}
|
|
42
|
+
/** Optional parameters. */
|
|
43
|
+
export interface PrivateEndpointConnectionsListByDeidServiceOptionalParams extends OperationOptions {
|
|
44
|
+
}
|
|
45
|
+
/** Optional parameters. */
|
|
46
|
+
export interface PrivateLinksListByDeidServiceOptionalParams extends OperationOptions {
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/models/options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,2BAA2B;AAC3B,MAAM,WAAW,4BAA6B,SAAQ,gBAAgB;CAAG;AAEzE,2BAA2B;AAC3B,MAAM,WAAW,6BAA8B,SAAQ,gBAAgB;CAAG;AAE1E,2BAA2B;AAC3B,MAAM,WAAW,6CAA8C,SAAQ,gBAAgB;CAAG;AAE1F,2BAA2B;AAC3B,MAAM,WAAW,4CAA6C,SAAQ,gBAAgB;CAAG;AAEzF,2BAA2B;AAC3B,MAAM,WAAW,gCAAiC,SAAQ,gBAAgB;IACxE,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,2BAA2B;AAC3B,MAAM,WAAW,gCAAiC,SAAQ,gBAAgB;IACxE,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,2BAA2B;AAC3B,MAAM,WAAW,gCAAiC,SAAQ,gBAAgB;IACxE,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,2BAA2B;AAC3B,MAAM,WAAW,2CAA4C,SAAQ,gBAAgB;CAAG;AAExF,2BAA2B;AAC3B,MAAM,WAAW,8CAA+C,SAAQ,gBAAgB;IACtF,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,2BAA2B;AAC3B,MAAM,WAAW,8CAA+C,SAAQ,gBAAgB;IACtF,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,2BAA2B;AAC3B,MAAM,WAAW,yDACf,SAAQ,gBAAgB;CAAG;AAE7B,2BAA2B;AAC3B,MAAM,WAAW,2CAA4C,SAAQ,gBAAgB;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/models/options.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface OperationsListOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface DeidServicesGetOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface DeidServicesListByResourceGroupOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface DeidServicesListBySubscriptionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface DeidServicesCreateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface DeidServicesUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface DeidServicesDeleteOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface PrivateEndpointConnectionsGetOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface PrivateEndpointConnectionsCreateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface PrivateEndpointConnectionsDeleteOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface PrivateEndpointConnectionsListByDeidServiceOptionalParams\n extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface PrivateLinksListByDeidServiceOptionalParams extends OperationOptions {}\n"]}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Options for the byPage method
|
|
3
|
+
*/
|
|
4
|
+
export interface PageSettings {
|
|
5
|
+
/**
|
|
6
|
+
* A reference to a specific page to start iterating from.
|
|
7
|
+
*/
|
|
8
|
+
continuationToken?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* An interface that describes a page of results.
|
|
12
|
+
*/
|
|
13
|
+
export type ContinuablePage<TElement, TPage = TElement[]> = TPage & {
|
|
14
|
+
/**
|
|
15
|
+
* The token that keeps track of where to continue the iterator
|
|
16
|
+
*/
|
|
17
|
+
continuationToken?: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* An interface that allows async iterable iteration both to completion and by page.
|
|
21
|
+
*/
|
|
22
|
+
export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
|
|
23
|
+
/**
|
|
24
|
+
* The next method, part of the iteration protocol
|
|
25
|
+
*/
|
|
26
|
+
next(): Promise<IteratorResult<TElement>>;
|
|
27
|
+
/**
|
|
28
|
+
* The connection to the async iterator, part of the iteration protocol
|
|
29
|
+
*/
|
|
30
|
+
[Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
|
|
31
|
+
/**
|
|
32
|
+
* Return an AsyncIterableIterator that works a page at a time
|
|
33
|
+
*/
|
|
34
|
+
byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* An interface that describes how to communicate with the service.
|
|
38
|
+
*/
|
|
39
|
+
export interface PagedResult<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
|
|
40
|
+
/**
|
|
41
|
+
* Link to the first page of results.
|
|
42
|
+
*/
|
|
43
|
+
firstPageLink?: string;
|
|
44
|
+
/**
|
|
45
|
+
* A method that returns a page of results.
|
|
46
|
+
*/
|
|
47
|
+
getPage: (pageLink?: string) => Promise<{
|
|
48
|
+
page: TPage;
|
|
49
|
+
nextPageLink?: string;
|
|
50
|
+
} | undefined>;
|
|
51
|
+
/**
|
|
52
|
+
* a function to implement the `byPage` method on the paged async iterator.
|
|
53
|
+
*/
|
|
54
|
+
byPage?: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
|
|
55
|
+
/**
|
|
56
|
+
* A function to extract elements from a page.
|
|
57
|
+
*/
|
|
58
|
+
toElements?: (page: TPage) => TElement[];
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Options for the paging helper
|
|
62
|
+
*/
|
|
63
|
+
export interface BuildPagedAsyncIteratorOptions {
|
|
64
|
+
itemName?: string;
|
|
65
|
+
nextLinkName?: string;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=pagingTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingTypes.d.ts","sourceRoot":"","sources":["../../../src/models/pagingTypes.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MA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M,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingTypes.js","sourceRoot":"","sources":["../../../src/models/pagingTypes.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * Options for the byPage method\n */\nexport interface PageSettings {\n /**\n * A reference to a specific page to start iterating from.\n */\n continuationToken?: string;\n}\n\n/**\n * An interface that describes a page of results.\n */\nexport type ContinuablePage<TElement, TPage = TElement[]> = TPage & {\n /**\n * The token that keeps track of where to continue the iterator\n */\n continuationToken?: string;\n};\n\n/**\n * An interface that allows async iterable iteration both to completion and by page.\n */\nexport interface PagedAsyncIterableIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n> {\n /**\n * The next method, part of the iteration protocol\n */\n next(): Promise<IteratorResult<TElement>>;\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;\n}\n\n/**\n * An interface that describes how to communicate with the service.\n */\nexport interface PagedResult<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n> {\n /**\n * Link to the first page of results.\n */\n firstPageLink?: string;\n /**\n * A method that returns a page of results.\n */\n getPage: (pageLink?: string) => Promise<{ page: TPage; nextPageLink?: string } | undefined>;\n /**\n * a function to implement the `byPage` method on the paged async iterator.\n */\n byPage?: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;\n\n /**\n * A function to extract elements from a page.\n */\n toElements?: (page: TPage) => TElement[];\n}\n\n/**\n * Options for the paging helper\n */\nexport interface BuildPagedAsyncIteratorOptions {\n itemName?: string;\n nextLinkName?: string;\n}\n"]}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { OperationsListParameters, DeidServicesGetParameters, DeidServicesCreateParameters, DeidServicesUpdateParameters, DeidServicesDeleteParameters, DeidServicesListByResourceGroupParameters, DeidServicesListBySubscriptionParameters, PrivateEndpointConnectionsGetParameters, PrivateEndpointConnectionsCreateParameters, PrivateEndpointConnectionsDeleteParameters, PrivateEndpointConnectionsListByDeidServiceParameters, PrivateLinksListByDeidServiceParameters } from "./parameters.js";
|
|
2
|
+
import { OperationsList200Response, OperationsListDefaultResponse, DeidServicesGet200Response, DeidServicesGetDefaultResponse, DeidServicesCreate200Response, DeidServicesCreate201Response, DeidServicesCreateDefaultResponse, DeidServicesUpdate200Response, DeidServicesUpdate202Response, DeidServicesUpdateDefaultResponse, DeidServicesDelete202Response, DeidServicesDelete204Response, DeidServicesDeleteDefaultResponse, DeidServicesListByResourceGroup200Response, DeidServicesListByResourceGroupDefaultResponse, DeidServicesListBySubscription200Response, DeidServicesListBySubscriptionDefaultResponse, PrivateEndpointConnectionsGet200Response, PrivateEndpointConnectionsGetDefaultResponse, PrivateEndpointConnectionsCreate200Response, PrivateEndpointConnectionsCreate201Response, PrivateEndpointConnectionsCreateDefaultResponse, PrivateEndpointConnectionsDelete202Response, PrivateEndpointConnectionsDelete204Response, PrivateEndpointConnectionsDeleteDefaultResponse, PrivateEndpointConnectionsListByDeidService200Response, PrivateEndpointConnectionsListByDeidServiceDefaultResponse, PrivateLinksListByDeidService200Response, PrivateLinksListByDeidServiceDefaultResponse } from "./responses.js";
|
|
3
|
+
import { Client, StreamableMethod } from "@azure-rest/core-client";
|
|
4
|
+
export interface OperationsList {
|
|
5
|
+
/** List the operations for the provider */
|
|
6
|
+
get(options?: OperationsListParameters): StreamableMethod<OperationsList200Response | OperationsListDefaultResponse>;
|
|
7
|
+
}
|
|
8
|
+
export interface DeidServicesGet {
|
|
9
|
+
/** Get a DeidService */
|
|
10
|
+
get(options?: DeidServicesGetParameters): StreamableMethod<DeidServicesGet200Response | DeidServicesGetDefaultResponse>;
|
|
11
|
+
/** Create a DeidService */
|
|
12
|
+
put(options: DeidServicesCreateParameters): StreamableMethod<DeidServicesCreate200Response | DeidServicesCreate201Response | DeidServicesCreateDefaultResponse>;
|
|
13
|
+
/** Update a DeidService */
|
|
14
|
+
patch(options: DeidServicesUpdateParameters): StreamableMethod<DeidServicesUpdate200Response | DeidServicesUpdate202Response | DeidServicesUpdateDefaultResponse>;
|
|
15
|
+
/** Delete a DeidService */
|
|
16
|
+
delete(options?: DeidServicesDeleteParameters): StreamableMethod<DeidServicesDelete202Response | DeidServicesDelete204Response | DeidServicesDeleteDefaultResponse>;
|
|
17
|
+
}
|
|
18
|
+
export interface DeidServicesListByResourceGroup {
|
|
19
|
+
/** List DeidService resources by resource group */
|
|
20
|
+
get(options?: DeidServicesListByResourceGroupParameters): StreamableMethod<DeidServicesListByResourceGroup200Response | DeidServicesListByResourceGroupDefaultResponse>;
|
|
21
|
+
}
|
|
22
|
+
export interface DeidServicesListBySubscription {
|
|
23
|
+
/** List DeidService resources by subscription ID */
|
|
24
|
+
get(options?: DeidServicesListBySubscriptionParameters): StreamableMethod<DeidServicesListBySubscription200Response | DeidServicesListBySubscriptionDefaultResponse>;
|
|
25
|
+
}
|
|
26
|
+
export interface PrivateEndpointConnectionsGet {
|
|
27
|
+
/** Get a specific private connection */
|
|
28
|
+
get(options?: PrivateEndpointConnectionsGetParameters): StreamableMethod<PrivateEndpointConnectionsGet200Response | PrivateEndpointConnectionsGetDefaultResponse>;
|
|
29
|
+
/** Create a Private endpoint connection */
|
|
30
|
+
put(options: PrivateEndpointConnectionsCreateParameters): StreamableMethod<PrivateEndpointConnectionsCreate200Response | PrivateEndpointConnectionsCreate201Response | PrivateEndpointConnectionsCreateDefaultResponse>;
|
|
31
|
+
/** Delete the private endpoint connection */
|
|
32
|
+
delete(options?: PrivateEndpointConnectionsDeleteParameters): StreamableMethod<PrivateEndpointConnectionsDelete202Response | PrivateEndpointConnectionsDelete204Response | PrivateEndpointConnectionsDeleteDefaultResponse>;
|
|
33
|
+
}
|
|
34
|
+
export interface PrivateEndpointConnectionsListByDeidService {
|
|
35
|
+
/** List private endpoint connections on the given resource */
|
|
36
|
+
get(options?: PrivateEndpointConnectionsListByDeidServiceParameters): StreamableMethod<PrivateEndpointConnectionsListByDeidService200Response | PrivateEndpointConnectionsListByDeidServiceDefaultResponse>;
|
|
37
|
+
}
|
|
38
|
+
export interface PrivateLinksListByDeidService {
|
|
39
|
+
/** List private links on the given resource */
|
|
40
|
+
get(options?: PrivateLinksListByDeidServiceParameters): StreamableMethod<PrivateLinksListByDeidService200Response | PrivateLinksListByDeidServiceDefaultResponse>;
|
|
41
|
+
}
|
|
42
|
+
export interface Routes {
|
|
43
|
+
/** Resource for '/providers/Microsoft.HealthDataAIServices/operations' has methods for the following verbs: get */
|
|
44
|
+
(path: "/providers/Microsoft.HealthDataAIServices/operations"): OperationsList;
|
|
45
|
+
/** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.HealthDataAIServices/deidServices/\{deidServiceName\}' has methods for the following verbs: get, put, patch, delete */
|
|
46
|
+
(path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}", subscriptionId: string, resourceGroupName: string, deidServiceName: string): DeidServicesGet;
|
|
47
|
+
/** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.HealthDataAIServices/deidServices' has methods for the following verbs: get */
|
|
48
|
+
(path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices", subscriptionId: string, resourceGroupName: string): DeidServicesListByResourceGroup;
|
|
49
|
+
/** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.HealthDataAIServices/deidServices' has methods for the following verbs: get */
|
|
50
|
+
(path: "/subscriptions/{subscriptionId}/providers/Microsoft.HealthDataAIServices/deidServices", subscriptionId: string): DeidServicesListBySubscription;
|
|
51
|
+
/** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.HealthDataAIServices/deidServices/\{deidServiceName\}/privateEndpointConnections/\{privateEndpointConnectionName\}' has methods for the following verbs: get, put, delete */
|
|
52
|
+
(path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", subscriptionId: string, resourceGroupName: string, deidServiceName: string, privateEndpointConnectionName: string): PrivateEndpointConnectionsGet;
|
|
53
|
+
/** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.HealthDataAIServices/deidServices/\{deidServiceName\}/privateEndpointConnections' has methods for the following verbs: get */
|
|
54
|
+
(path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections", subscriptionId: string, resourceGroupName: string, deidServiceName: string): PrivateEndpointConnectionsListByDeidService;
|
|
55
|
+
/** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.HealthDataAIServices/deidServices/\{deidServiceName\}/privateLinkResources' has methods for the following verbs: get */
|
|
56
|
+
(path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateLinkResources", subscriptionId: string, resourceGroupName: string, deidServiceName: string): PrivateLinksListByDeidService;
|
|
57
|
+
}
|
|
58
|
+
export type HealthDataAIServicesContext = Client & {
|
|
59
|
+
path: Routes;
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=clientDefinitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clientDefinitions.d.ts","sourceRoot":"","sources":["../../../src/rest/clientDefinitions.ts"],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,CAAC,IAAI,EAAE,sDAAsD,GAAG,cAAc,CAAC;IAC/E,mOAAmO;IACnO,CACE,IAAI,EAAE,4IAA4I,EAClJ,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,GACtB,eAAe,CAAC;IACnB,2LAA2L;IAC3L,CACE,IAAI,EAAE,0HAA0H,EAChI,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,GACxB,+BAA+B,CAAC;IACnC,sJAAsJ;IACtJ,CACE,IAAI,EAAE,uFAAuF,EAC7F,cAAc,EAAE,MAAM,GACrB,8BAA8B,CAAC;IAClC,yRAAyR;IACzR,CACE,IAAI,EAAE,uMAAuM,EAC7M,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,6BAA6B,EAAE,MAAM,GACpC,6BAA6B,CAAC;IACjC,0OAA0O;IAC1O,CACE,IAAI,EAAE,uKAAuK,EAC7K,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,GACtB,2CAA2C,CAAC;IAC/C,oOAAoO;IACpO,CACE,IAAI,EAAE,iKAAiK,EACvK,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,GACtB,6BAA6B,CAAC;CAClC;AAED,MAAM,MAAM,2BAA2B,GAAG,MAAM,GAAG;IACjD,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clientDefinitions.js","sourceRoot":"","sources":["../../../src/rest/clientDefinitions.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n OperationsListParameters,\n DeidServicesGetParameters,\n DeidServicesCreateParameters,\n DeidServicesUpdateParameters,\n DeidServicesDeleteParameters,\n DeidServicesListByResourceGroupParameters,\n DeidServicesListBySubscriptionParameters,\n PrivateEndpointConnectionsGetParameters,\n PrivateEndpointConnectionsCreateParameters,\n PrivateEndpointConnectionsDeleteParameters,\n PrivateEndpointConnectionsListByDeidServiceParameters,\n PrivateLinksListByDeidServiceParameters,\n} from \"./parameters.js\";\nimport {\n OperationsList200Response,\n OperationsListDefaultResponse,\n DeidServicesGet200Response,\n DeidServicesGetDefaultResponse,\n DeidServicesCreate200Response,\n DeidServicesCreate201Response,\n DeidServicesCreateDefaultResponse,\n DeidServicesUpdate200Response,\n DeidServicesUpdate202Response,\n DeidServicesUpdateDefaultResponse,\n DeidServicesDelete202Response,\n DeidServicesDelete204Response,\n DeidServicesDeleteDefaultResponse,\n DeidServicesListByResourceGroup200Response,\n DeidServicesListByResourceGroupDefaultResponse,\n DeidServicesListBySubscription200Response,\n DeidServicesListBySubscriptionDefaultResponse,\n PrivateEndpointConnectionsGet200Response,\n PrivateEndpointConnectionsGetDefaultResponse,\n PrivateEndpointConnectionsCreate200Response,\n PrivateEndpointConnectionsCreate201Response,\n PrivateEndpointConnectionsCreateDefaultResponse,\n PrivateEndpointConnectionsDelete202Response,\n PrivateEndpointConnectionsDelete204Response,\n PrivateEndpointConnectionsDeleteDefaultResponse,\n PrivateEndpointConnectionsListByDeidService200Response,\n PrivateEndpointConnectionsListByDeidServiceDefaultResponse,\n PrivateLinksListByDeidService200Response,\n PrivateLinksListByDeidServiceDefaultResponse,\n} from \"./responses.js\";\nimport { Client, StreamableMethod } from \"@azure-rest/core-client\";\n\nexport interface OperationsList {\n /** List the operations for the provider */\n get(\n options?: OperationsListParameters,\n ): StreamableMethod<OperationsList200Response | OperationsListDefaultResponse>;\n}\n\nexport interface DeidServicesGet {\n /** Get a DeidService */\n get(\n options?: DeidServicesGetParameters,\n ): StreamableMethod<DeidServicesGet200Response | DeidServicesGetDefaultResponse>;\n /** Create a DeidService */\n put(\n options: DeidServicesCreateParameters,\n ): StreamableMethod<\n | DeidServicesCreate200Response\n | DeidServicesCreate201Response\n | DeidServicesCreateDefaultResponse\n >;\n /** Update a DeidService */\n patch(\n options: DeidServicesUpdateParameters,\n ): StreamableMethod<\n | DeidServicesUpdate200Response\n | DeidServicesUpdate202Response\n | DeidServicesUpdateDefaultResponse\n >;\n /** Delete a DeidService */\n delete(\n options?: DeidServicesDeleteParameters,\n ): StreamableMethod<\n | DeidServicesDelete202Response\n | DeidServicesDelete204Response\n | DeidServicesDeleteDefaultResponse\n >;\n}\n\nexport interface DeidServicesListByResourceGroup {\n /** List DeidService resources by resource group */\n get(\n options?: DeidServicesListByResourceGroupParameters,\n ): StreamableMethod<\n DeidServicesListByResourceGroup200Response | DeidServicesListByResourceGroupDefaultResponse\n >;\n}\n\nexport interface DeidServicesListBySubscription {\n /** List DeidService resources by subscription ID */\n get(\n options?: DeidServicesListBySubscriptionParameters,\n ): StreamableMethod<\n DeidServicesListBySubscription200Response | DeidServicesListBySubscriptionDefaultResponse\n >;\n}\n\nexport interface PrivateEndpointConnectionsGet {\n /** Get a specific private connection */\n get(\n options?: PrivateEndpointConnectionsGetParameters,\n ): StreamableMethod<\n PrivateEndpointConnectionsGet200Response | PrivateEndpointConnectionsGetDefaultResponse\n >;\n /** Create a Private endpoint connection */\n put(\n options: PrivateEndpointConnectionsCreateParameters,\n ): StreamableMethod<\n | PrivateEndpointConnectionsCreate200Response\n | PrivateEndpointConnectionsCreate201Response\n | PrivateEndpointConnectionsCreateDefaultResponse\n >;\n /** Delete the private endpoint connection */\n delete(\n options?: PrivateEndpointConnectionsDeleteParameters,\n ): StreamableMethod<\n | PrivateEndpointConnectionsDelete202Response\n | PrivateEndpointConnectionsDelete204Response\n | PrivateEndpointConnectionsDeleteDefaultResponse\n >;\n}\n\nexport interface PrivateEndpointConnectionsListByDeidService {\n /** List private endpoint connections on the given resource */\n get(\n options?: PrivateEndpointConnectionsListByDeidServiceParameters,\n ): StreamableMethod<\n | PrivateEndpointConnectionsListByDeidService200Response\n | PrivateEndpointConnectionsListByDeidServiceDefaultResponse\n >;\n}\n\nexport interface PrivateLinksListByDeidService {\n /** List private links on the given resource */\n get(\n options?: PrivateLinksListByDeidServiceParameters,\n ): StreamableMethod<\n PrivateLinksListByDeidService200Response | PrivateLinksListByDeidServiceDefaultResponse\n >;\n}\n\nexport interface Routes {\n /** Resource for '/providers/Microsoft.HealthDataAIServices/operations' has methods for the following verbs: get */\n (path: \"/providers/Microsoft.HealthDataAIServices/operations\"): OperationsList;\n /** Resource for '/subscriptions/\\{subscriptionId\\}/resourceGroups/\\{resourceGroupName\\}/providers/Microsoft.HealthDataAIServices/deidServices/\\{deidServiceName\\}' has methods for the following verbs: get, put, patch, delete */\n (\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}\",\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n ): DeidServicesGet;\n /** Resource for '/subscriptions/\\{subscriptionId\\}/resourceGroups/\\{resourceGroupName\\}/providers/Microsoft.HealthDataAIServices/deidServices' has methods for the following verbs: get */\n (\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices\",\n subscriptionId: string,\n resourceGroupName: string,\n ): DeidServicesListByResourceGroup;\n /** Resource for '/subscriptions/\\{subscriptionId\\}/providers/Microsoft.HealthDataAIServices/deidServices' has methods for the following verbs: get */\n (\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.HealthDataAIServices/deidServices\",\n subscriptionId: string,\n ): DeidServicesListBySubscription;\n /** Resource for '/subscriptions/\\{subscriptionId\\}/resourceGroups/\\{resourceGroupName\\}/providers/Microsoft.HealthDataAIServices/deidServices/\\{deidServiceName\\}/privateEndpointConnections/\\{privateEndpointConnectionName\\}' has methods for the following verbs: get, put, delete */\n (\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n privateEndpointConnectionName: string,\n ): PrivateEndpointConnectionsGet;\n /** Resource for '/subscriptions/\\{subscriptionId\\}/resourceGroups/\\{resourceGroupName\\}/providers/Microsoft.HealthDataAIServices/deidServices/\\{deidServiceName\\}/privateEndpointConnections' has methods for the following verbs: get */\n (\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections\",\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n ): PrivateEndpointConnectionsListByDeidService;\n /** Resource for '/subscriptions/\\{subscriptionId\\}/resourceGroups/\\{resourceGroupName\\}/providers/Microsoft.HealthDataAIServices/deidServices/\\{deidServiceName\\}/privateLinkResources' has methods for the following verbs: get */\n (\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateLinkResources\",\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n ): PrivateLinksListByDeidService;\n}\n\nexport type HealthDataAIServicesContext = Client & {\n path: Routes;\n};\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ClientOptions } from "@azure-rest/core-client";
|
|
2
|
+
import { TokenCredential } from "@azure/core-auth";
|
|
3
|
+
import { HealthDataAIServicesContext } from "./clientDefinitions.js";
|
|
4
|
+
/** The optional parameters for the client */
|
|
5
|
+
export interface HealthDataAIServicesContextOptions extends ClientOptions {
|
|
6
|
+
/** The api version option of the client */
|
|
7
|
+
apiVersion?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Initialize a new instance of `HealthDataAIServicesContext`
|
|
11
|
+
* @param credentials - uniquely identify client credential
|
|
12
|
+
* @param options - the parameter for all optional parameters
|
|
13
|
+
*/
|
|
14
|
+
export default function createClient(credentials: TokenCredential, { apiVersion, ...options }?: HealthDataAIServicesContextOptions): HealthDataAIServicesContext;
|
|
15
|
+
//# sourceMappingURL=healthDataAIServicesClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"healthDataAIServicesClient.d.ts","sourceRoot":"","sources":["../../../src/rest/healthDataAIServicesClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAa,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAErE,6CAA6C;AAC7C,MAAM,WAAW,kCAAmC,SAAQ,aAAa;IACvE,2CAA2C;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,WAAW,EAAE,eAAe,EAC5B,EAAE,UAAiC,EAAE,GAAG,OAAO,EAAE,GAAE,kCAAuC,GACzF,2BAA2B,CAsC7B"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.default = createClient;
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
7
|
+
const core_client_1 = require("@azure-rest/core-client");
|
|
8
|
+
const logger_js_1 = require("../logger.js");
|
|
9
|
+
/**
|
|
10
|
+
* Initialize a new instance of `HealthDataAIServicesContext`
|
|
11
|
+
* @param credentials - uniquely identify client credential
|
|
12
|
+
* @param options - the parameter for all optional parameters
|
|
13
|
+
*/
|
|
14
|
+
function createClient(credentials, _a = {}) {
|
|
15
|
+
var _b, _c, _d, _e, _f, _g;
|
|
16
|
+
var { apiVersion = "2024-02-28-preview" } = _a, options = tslib_1.__rest(_a, ["apiVersion"]);
|
|
17
|
+
const endpointUrl = (_c = (_b = options.endpoint) !== null && _b !== void 0 ? _b : options.baseUrl) !== null && _c !== void 0 ? _c : `https://management.azure.com`;
|
|
18
|
+
const userAgentInfo = `azsdk-js-arm-healthdataaiservices/1.0.0-beta.1`;
|
|
19
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
20
|
+
? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`
|
|
21
|
+
: `${userAgentInfo}`;
|
|
22
|
+
options = Object.assign(Object.assign({}, options), { userAgentOptions: {
|
|
23
|
+
userAgentPrefix,
|
|
24
|
+
}, loggingOptions: {
|
|
25
|
+
logger: (_e = (_d = options.loggingOptions) === null || _d === void 0 ? void 0 : _d.logger) !== null && _e !== void 0 ? _e : logger_js_1.logger.info,
|
|
26
|
+
}, credentials: {
|
|
27
|
+
scopes: (_g = (_f = options.credentials) === null || _f === void 0 ? void 0 : _f.scopes) !== null && _g !== void 0 ? _g : [`${endpointUrl}/.default`],
|
|
28
|
+
} });
|
|
29
|
+
const client = (0, core_client_1.getClient)(endpointUrl, credentials, options);
|
|
30
|
+
client.pipeline.removePolicy({ name: "ApiVersionPolicy" });
|
|
31
|
+
client.pipeline.addPolicy({
|
|
32
|
+
name: "ClientApiVersionPolicy",
|
|
33
|
+
sendRequest: (req, next) => {
|
|
34
|
+
// Use the apiVersion defined in request url directly
|
|
35
|
+
// Append one if there is no apiVersion and we have one at client options
|
|
36
|
+
const url = new URL(req.url);
|
|
37
|
+
if (!url.searchParams.get("api-version") && apiVersion) {
|
|
38
|
+
req.url = `${req.url}${Array.from(url.searchParams.keys()).length > 0 ? "&" : "?"}api-version=${apiVersion}`;
|
|
39
|
+
}
|
|
40
|
+
return next(req);
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
return client;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=healthDataAIServicesClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"healthDataAIServicesClient.js","sourceRoot":"","sources":["../../../src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yE;YACzE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC7B,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,UAAU,EAAE,CAAC;gBACvD,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { getClient, ClientOptions } from \"@azure-rest/core-client\";\nimport { logger } from \"../logger.js\";\nimport { TokenCredential } from \"@azure/core-auth\";\nimport { HealthDataAIServicesContext } from \"./clientDefinitions.js\";\n\n/** The optional parameters for the client */\nexport interface HealthDataAIServicesContextOptions extends ClientOptions {\n /** The api version option of the client */\n apiVersion?: string;\n}\n\n/**\n * Initialize a new instance of `HealthDataAIServicesContext`\n * @param credentials - uniquely identify client credential\n * @param options - the parameter for all optional parameters\n */\nexport default function createClient(\n credentials: TokenCredential,\n { apiVersion = \"2024-02-28-preview\", ...options }: HealthDataAIServicesContextOptions = {},\n): HealthDataAIServicesContext {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`;\n const userAgentInfo = `azsdk-js-arm-healthdataaiservices/1.0.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`\n : `${userAgentInfo}`;\n options = {\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n loggingOptions: {\n logger: options.loggingOptions?.logger ?? logger.info,\n },\n credentials: {\n scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],\n },\n };\n const client = getClient(endpointUrl, credentials, options) as HealthDataAIServicesContext;\n\n client.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n client.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\") && apiVersion) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n return client;\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import HealthDataAIServicesClient from "./healthDataAIServicesClient.js";
|
|
2
|
+
export * from "./healthDataAIServicesClient.js";
|
|
3
|
+
export * from "./parameters.js";
|
|
4
|
+
export * from "./responses.js";
|
|
5
|
+
export * from "./clientDefinitions.js";
|
|
6
|
+
export * from "./isUnexpected.js";
|
|
7
|
+
export * from "./models.js";
|
|
8
|
+
export * from "./outputModels.js";
|
|
9
|
+
export * from "./paginateHelper.js";
|
|
10
|
+
export * from "./pollingHelper.js";
|
|
11
|
+
export default HealthDataAIServicesClient;
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rest/index.ts"],"names":[],"mappings":"AAGA,OAAO,0BAA0B,MAAM,iCAAiC,CAAC;AAEzE,cAAc,iCAAiC,CAAC;AAChD,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AAEnC,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
const healthDataAIServicesClient_js_1 = tslib_1.__importDefault(require("./healthDataAIServicesClient.js"));
|
|
7
|
+
tslib_1.__exportStar(require("./healthDataAIServicesClient.js"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./parameters.js"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./responses.js"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./clientDefinitions.js"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./isUnexpected.js"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./models.js"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./outputModels.js"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./paginateHelper.js"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./pollingHelper.js"), exports);
|
|
16
|
+
exports.default = healthDataAIServicesClient_js_1.default;
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rest/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,4GAAyE;AAEzE,0EAAgD;AAChD,0DAAgC;AAChC,yDAA+B;AAC/B,iEAAuC;AACvC,4DAAkC;AAClC,sDAA4B;AAC5B,4DAAkC;AAClC,8DAAoC;AACpC,6DAAmC;AAEnC,kBAAe,uCAA0B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport HealthDataAIServicesClient from \"./healthDataAIServicesClient.js\";\n\nexport * from \"./healthDataAIServicesClient.js\";\nexport * from \"./parameters.js\";\nexport * from \"./responses.js\";\nexport * from \"./clientDefinitions.js\";\nexport * from \"./isUnexpected.js\";\nexport * from \"./models.js\";\nexport * from \"./outputModels.js\";\nexport * from \"./paginateHelper.js\";\nexport * from \"./pollingHelper.js\";\n\nexport default HealthDataAIServicesClient;\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OperationsList200Response, OperationsListDefaultResponse, DeidServicesGet200Response, DeidServicesGetDefaultResponse, DeidServicesCreate200Response, DeidServicesCreate201Response, DeidServicesCreateLogicalResponse, DeidServicesCreateDefaultResponse, DeidServicesUpdate200Response, DeidServicesUpdate202Response, DeidServicesUpdateLogicalResponse, DeidServicesUpdateDefaultResponse, DeidServicesDelete202Response, DeidServicesDelete204Response, DeidServicesDeleteLogicalResponse, DeidServicesDeleteDefaultResponse, DeidServicesListByResourceGroup200Response, DeidServicesListByResourceGroupDefaultResponse, DeidServicesListBySubscription200Response, DeidServicesListBySubscriptionDefaultResponse, PrivateEndpointConnectionsGet200Response, PrivateEndpointConnectionsGetDefaultResponse, PrivateEndpointConnectionsCreate200Response, PrivateEndpointConnectionsCreate201Response, PrivateEndpointConnectionsCreateLogicalResponse, PrivateEndpointConnectionsCreateDefaultResponse, PrivateEndpointConnectionsDelete202Response, PrivateEndpointConnectionsDelete204Response, PrivateEndpointConnectionsDeleteLogicalResponse, PrivateEndpointConnectionsDeleteDefaultResponse, PrivateEndpointConnectionsListByDeidService200Response, PrivateEndpointConnectionsListByDeidServiceDefaultResponse, PrivateLinksListByDeidService200Response, PrivateLinksListByDeidServiceDefaultResponse } from "./responses.js";
|
|
2
|
+
export declare function isUnexpected(response: OperationsList200Response | OperationsListDefaultResponse): response is OperationsListDefaultResponse;
|
|
3
|
+
export declare function isUnexpected(response: DeidServicesGet200Response | DeidServicesGetDefaultResponse): response is DeidServicesGetDefaultResponse;
|
|
4
|
+
export declare function isUnexpected(response: DeidServicesCreate200Response | DeidServicesCreate201Response | DeidServicesCreateLogicalResponse | DeidServicesCreateDefaultResponse): response is DeidServicesCreateDefaultResponse;
|
|
5
|
+
export declare function isUnexpected(response: DeidServicesUpdate200Response | DeidServicesUpdate202Response | DeidServicesUpdateLogicalResponse | DeidServicesUpdateDefaultResponse): response is DeidServicesUpdateDefaultResponse;
|
|
6
|
+
export declare function isUnexpected(response: DeidServicesDelete202Response | DeidServicesDelete204Response | DeidServicesDeleteLogicalResponse | DeidServicesDeleteDefaultResponse): response is DeidServicesDeleteDefaultResponse;
|
|
7
|
+
export declare function isUnexpected(response: DeidServicesListByResourceGroup200Response | DeidServicesListByResourceGroupDefaultResponse): response is DeidServicesListByResourceGroupDefaultResponse;
|
|
8
|
+
export declare function isUnexpected(response: DeidServicesListBySubscription200Response | DeidServicesListBySubscriptionDefaultResponse): response is DeidServicesListBySubscriptionDefaultResponse;
|
|
9
|
+
export declare function isUnexpected(response: PrivateEndpointConnectionsGet200Response | PrivateEndpointConnectionsGetDefaultResponse): response is PrivateEndpointConnectionsGetDefaultResponse;
|
|
10
|
+
export declare function isUnexpected(response: PrivateEndpointConnectionsCreate200Response | PrivateEndpointConnectionsCreate201Response | PrivateEndpointConnectionsCreateLogicalResponse | PrivateEndpointConnectionsCreateDefaultResponse): response is PrivateEndpointConnectionsCreateDefaultResponse;
|
|
11
|
+
export declare function isUnexpected(response: PrivateEndpointConnectionsDelete202Response | PrivateEndpointConnectionsDelete204Response | PrivateEndpointConnectionsDeleteLogicalResponse | PrivateEndpointConnectionsDeleteDefaultResponse): response is PrivateEndpointConnectionsDeleteDefaultResponse;
|
|
12
|
+
export declare function isUnexpected(response: PrivateEndpointConnectionsListByDeidService200Response | PrivateEndpointConnectionsListByDeidServiceDefaultResponse): response is PrivateEndpointConnectionsListByDeidServiceDefaultResponse;
|
|
13
|
+
export declare function isUnexpected(response: PrivateLinksListByDeidService200Response | PrivateLinksListByDeidServiceDefaultResponse): response is PrivateLinksListByDeidServiceDefaultResponse;
|
|
14
|
+
//# sourceMappingURL=isUnexpected.d.ts.map
|
|
@@ -0,0 +1 @@
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C;AACjD,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,0CAA0C,GAC1C,8CAA8C,GACjD,QAAQ,IAAI,8CAA8C,CAAC;AAC9D,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,yCAAyC,GACzC,6CAA6C,GAChD,QAAQ,IAAI,6CAA6C,CAAC;AAC7D,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,wCAAwC,GAAG,4CAA4C,GAChG,QAAQ,IAAI,4CAA4C,CAAC;AAC5D,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,2CAA2C,GAC3C,2CAA2C,GAC3C,+CAA+C,GAC/C,+CAA+C,GAClD,QAAQ,IAAI,+CAA+C,CAAC;AAC/D,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,2CAA2C,GAC3C,2CAA2C,GAC3C,+CAA+C,GAC/C,+CAA+C,GAClD,QAAQ,IAAI,+CAA+C,CAAC;AAC/D,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,sDAAsD,GACtD,0DAA0D,GAC7D,QAAQ,IAAI,0DAA0D,CAAC;AAC1E,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,wCAAwC,GAAG,4CAA4C,GAChG,QAAQ,IAAI,4CAA4C,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.isUnexpected = isUnexpected;
|
|
6
|
+
const responseMap = {
|
|
7
|
+
"GET /providers/Microsoft.HealthDataAIServices/operations": ["200"],
|
|
8
|
+
"GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}": ["200"],
|
|
9
|
+
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}": ["200", "201"],
|
|
10
|
+
"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}": ["200", "202"],
|
|
11
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}": ["202", "204"],
|
|
12
|
+
"GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices": ["200"],
|
|
13
|
+
"GET /subscriptions/{subscriptionId}/providers/Microsoft.HealthDataAIServices/deidServices": [
|
|
14
|
+
"200",
|
|
15
|
+
],
|
|
16
|
+
"GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}": ["200"],
|
|
17
|
+
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}": ["200", "201"],
|
|
18
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}": ["202", "204"],
|
|
19
|
+
"GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections": ["200"],
|
|
20
|
+
"GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateLinkResources": ["200"],
|
|
21
|
+
};
|
|
22
|
+
function isUnexpected(response) {
|
|
23
|
+
const lroOriginal = response.headers["x-ms-original-url"];
|
|
24
|
+
const url = new URL(lroOriginal !== null && lroOriginal !== void 0 ? lroOriginal : response.request.url);
|
|
25
|
+
const method = response.request.method;
|
|
26
|
+
let pathDetails = responseMap[`${method} ${url.pathname}`];
|
|
27
|
+
if (!pathDetails) {
|
|
28
|
+
pathDetails = getParametrizedPathSuccess(method, url.pathname);
|
|
29
|
+
}
|
|
30
|
+
return !pathDetails.includes(response.status);
|
|
31
|
+
}
|
|
32
|
+
function getParametrizedPathSuccess(method, path) {
|
|
33
|
+
var _a, _b, _c, _d;
|
|
34
|
+
const pathParts = path.split("/");
|
|
35
|
+
// Traverse list to match the longest candidate
|
|
36
|
+
// matchedLen: the length of candidate path
|
|
37
|
+
// matchedValue: the matched status code array
|
|
38
|
+
let matchedLen = -1, matchedValue = [];
|
|
39
|
+
// Iterate the responseMap to find a match
|
|
40
|
+
for (const [key, value] of Object.entries(responseMap)) {
|
|
41
|
+
// Extracting the path from the map key which is in format
|
|
42
|
+
// GET /path/foo
|
|
43
|
+
if (!key.startsWith(method)) {
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
const candidatePath = getPathFromMapKey(key);
|
|
47
|
+
// Get each part of the url path
|
|
48
|
+
const candidateParts = candidatePath.split("/");
|
|
49
|
+
// track if we have found a match to return the values found.
|
|
50
|
+
let found = true;
|
|
51
|
+
for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
|
|
52
|
+
if (((_a = candidateParts[i]) === null || _a === void 0 ? void 0 : _a.startsWith("{")) && ((_b = candidateParts[i]) === null || _b === void 0 ? void 0 : _b.indexOf("}")) !== -1) {
|
|
53
|
+
const start = candidateParts[i].indexOf("}") + 1, end = (_c = candidateParts[i]) === null || _c === void 0 ? void 0 : _c.length;
|
|
54
|
+
// If the current part of the candidate is a "template" part
|
|
55
|
+
// Try to use the suffix of pattern to match the path
|
|
56
|
+
// {guid} ==> $
|
|
57
|
+
// {guid}:export ==> :export$
|
|
58
|
+
const isMatched = new RegExp(`${(_d = candidateParts[i]) === null || _d === void 0 ? void 0 : _d.slice(start, end)}`).test(pathParts[j] || "");
|
|
59
|
+
if (!isMatched) {
|
|
60
|
+
found = false;
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
continue;
|
|
64
|
+
}
|
|
65
|
+
// If the candidate part is not a template and
|
|
66
|
+
// the parts don't match mark the candidate as not found
|
|
67
|
+
// to move on with the next candidate path.
|
|
68
|
+
if (candidateParts[i] !== pathParts[j]) {
|
|
69
|
+
found = false;
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
// We finished evaluating the current candidate parts
|
|
74
|
+
// Update the matched value if and only if we found the longer pattern
|
|
75
|
+
if (found && candidatePath.length > matchedLen) {
|
|
76
|
+
matchedLen = candidatePath.length;
|
|
77
|
+
matchedValue = value;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return matchedValue;
|
|
81
|
+
}
|
|
82
|
+
function getPathFromMapKey(mapKey) {
|
|
83
|
+
const pathStart = mapKey.indexOf("/");
|
|
84
|
+
return mapKey.slice(pathStart);
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=isUnexpected.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isUnexpected.js","sourceRoot":"","sources":["../../../src/rest/isUnexpected.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAgIlC,oCAyDC;AAlJD,MAAM,WAAW,GAA6B;IAC5C,0DAA0D,EAAE,CAAC,KAAK,CAAC;IACnE,gJAAgJ,EAC9I,CAAC,KAAK,CAAC;IACT,gJAAgJ,EAC9I,CAAC,KAAK,EAAE,KAAK,CAAC;IAChB,kJAAkJ,EAChJ,CAAC,KAAK,EAAE,KAAK,CAAC;IAChB,mJAAmJ,EACjJ,CAAC,KAAK,EAAE,KAAK,CAAC;IAChB,8HAA8H,EAC5H,CAAC,KAAK,CAAC;IACT,2FAA2F,EAAE;QAC3F,KAAK;KACN;IACD,2MAA2M,EACzM,CAAC,KAAK,CAAC;IACT,2MAA2M,EACzM,CAAC,KAAK,EAAE,KAAK,CAAC;IAChB,8MAA8M,EAC5M,CAAC,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,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","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n OperationsList200Response,\n OperationsListDefaultResponse,\n DeidServicesGet200Response,\n DeidServicesGetDefaultResponse,\n DeidServicesCreate200Response,\n DeidServicesCreate201Response,\n DeidServicesCreateLogicalResponse,\n DeidServicesCreateDefaultResponse,\n DeidServicesUpdate200Response,\n DeidServicesUpdate202Response,\n DeidServicesUpdateLogicalResponse,\n DeidServicesUpdateDefaultResponse,\n DeidServicesDelete202Response,\n DeidServicesDelete204Response,\n DeidServicesDeleteLogicalResponse,\n DeidServicesDeleteDefaultResponse,\n DeidServicesListByResourceGroup200Response,\n DeidServicesListByResourceGroupDefaultResponse,\n DeidServicesListBySubscription200Response,\n DeidServicesListBySubscriptionDefaultResponse,\n PrivateEndpointConnectionsGet200Response,\n PrivateEndpointConnectionsGetDefaultResponse,\n PrivateEndpointConnectionsCreate200Response,\n PrivateEndpointConnectionsCreate201Response,\n PrivateEndpointConnectionsCreateLogicalResponse,\n PrivateEndpointConnectionsCreateDefaultResponse,\n PrivateEndpointConnectionsDelete202Response,\n PrivateEndpointConnectionsDelete204Response,\n PrivateEndpointConnectionsDeleteLogicalResponse,\n PrivateEndpointConnectionsDeleteDefaultResponse,\n PrivateEndpointConnectionsListByDeidService200Response,\n PrivateEndpointConnectionsListByDeidServiceDefaultResponse,\n PrivateLinksListByDeidService200Response,\n PrivateLinksListByDeidServiceDefaultResponse,\n} from \"./responses.js\";\n\nconst responseMap: Record<string, string[]> = {\n \"GET /providers/Microsoft.HealthDataAIServices/operations\": [\"200\"],\n \"GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}\":\n [\"200\"],\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}\":\n [\"200\", \"201\"],\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}\":\n [\"200\", \"202\"],\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}\":\n [\"202\", \"204\"],\n \"GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices\":\n [\"200\"],\n \"GET /subscriptions/{subscriptionId}/providers/Microsoft.HealthDataAIServices/deidServices\": [\n \"200\",\n ],\n \"GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\":\n [\"200\"],\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\":\n [\"200\", \"201\"],\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\":\n [\"202\", \"204\"],\n \"GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections\":\n [\"200\"],\n \"GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateLinkResources\":\n [\"200\"],\n};\n\nexport function isUnexpected(\n response: OperationsList200Response | OperationsListDefaultResponse,\n): response is OperationsListDefaultResponse;\nexport function isUnexpected(\n response: DeidServicesGet200Response | DeidServicesGetDefaultResponse,\n): response is DeidServicesGetDefaultResponse;\nexport function isUnexpected(\n response:\n | DeidServicesCreate200Response\n | DeidServicesCreate201Response\n | DeidServicesCreateLogicalResponse\n | DeidServicesCreateDefaultResponse,\n): response is DeidServicesCreateDefaultResponse;\nexport function isUnexpected(\n response:\n | DeidServicesUpdate200Response\n | DeidServicesUpdate202Response\n | DeidServicesUpdateLogicalResponse\n | DeidServicesUpdateDefaultResponse,\n): response is DeidServicesUpdateDefaultResponse;\nexport function isUnexpected(\n response:\n | DeidServicesDelete202Response\n | DeidServicesDelete204Response\n | DeidServicesDeleteLogicalResponse\n | DeidServicesDeleteDefaultResponse,\n): response is DeidServicesDeleteDefaultResponse;\nexport function isUnexpected(\n response:\n | DeidServicesListByResourceGroup200Response\n | DeidServicesListByResourceGroupDefaultResponse,\n): response is DeidServicesListByResourceGroupDefaultResponse;\nexport function isUnexpected(\n response:\n | DeidServicesListBySubscription200Response\n | DeidServicesListBySubscriptionDefaultResponse,\n): response is DeidServicesListBySubscriptionDefaultResponse;\nexport function isUnexpected(\n response: PrivateEndpointConnectionsGet200Response | PrivateEndpointConnectionsGetDefaultResponse,\n): response is PrivateEndpointConnectionsGetDefaultResponse;\nexport function isUnexpected(\n response:\n | PrivateEndpointConnectionsCreate200Response\n | PrivateEndpointConnectionsCreate201Response\n | PrivateEndpointConnectionsCreateLogicalResponse\n | PrivateEndpointConnectionsCreateDefaultResponse,\n): response is PrivateEndpointConnectionsCreateDefaultResponse;\nexport function isUnexpected(\n response:\n | PrivateEndpointConnectionsDelete202Response\n | PrivateEndpointConnectionsDelete204Response\n | PrivateEndpointConnectionsDeleteLogicalResponse\n | PrivateEndpointConnectionsDeleteDefaultResponse,\n): response is PrivateEndpointConnectionsDeleteDefaultResponse;\nexport function isUnexpected(\n response:\n | PrivateEndpointConnectionsListByDeidService200Response\n | PrivateEndpointConnectionsListByDeidServiceDefaultResponse,\n): response is PrivateEndpointConnectionsListByDeidServiceDefaultResponse;\nexport function isUnexpected(\n response: PrivateLinksListByDeidService200Response | PrivateLinksListByDeidServiceDefaultResponse,\n): response is PrivateLinksListByDeidServiceDefaultResponse;\nexport function isUnexpected(\n response:\n | OperationsList200Response\n | OperationsListDefaultResponse\n | DeidServicesGet200Response\n | DeidServicesGetDefaultResponse\n | DeidServicesCreate200Response\n | DeidServicesCreate201Response\n | DeidServicesCreateLogicalResponse\n | DeidServicesCreateDefaultResponse\n | DeidServicesUpdate200Response\n | DeidServicesUpdate202Response\n | DeidServicesUpdateLogicalResponse\n | DeidServicesUpdateDefaultResponse\n | DeidServicesDelete202Response\n | DeidServicesDelete204Response\n | DeidServicesDeleteLogicalResponse\n | DeidServicesDeleteDefaultResponse\n | DeidServicesListByResourceGroup200Response\n | DeidServicesListByResourceGroupDefaultResponse\n | DeidServicesListBySubscription200Response\n | DeidServicesListBySubscriptionDefaultResponse\n | PrivateEndpointConnectionsGet200Response\n | PrivateEndpointConnectionsGetDefaultResponse\n | PrivateEndpointConnectionsCreate200Response\n | PrivateEndpointConnectionsCreate201Response\n | PrivateEndpointConnectionsCreateLogicalResponse\n | PrivateEndpointConnectionsCreateDefaultResponse\n | PrivateEndpointConnectionsDelete202Response\n | PrivateEndpointConnectionsDelete204Response\n | PrivateEndpointConnectionsDeleteLogicalResponse\n | PrivateEndpointConnectionsDeleteDefaultResponse\n | PrivateEndpointConnectionsListByDeidService200Response\n | PrivateEndpointConnectionsListByDeidServiceDefaultResponse\n | PrivateLinksListByDeidService200Response\n | PrivateLinksListByDeidServiceDefaultResponse,\n): response is\n | OperationsListDefaultResponse\n | DeidServicesGetDefaultResponse\n | DeidServicesCreateDefaultResponse\n | DeidServicesUpdateDefaultResponse\n | DeidServicesDeleteDefaultResponse\n | DeidServicesListByResourceGroupDefaultResponse\n | DeidServicesListBySubscriptionDefaultResponse\n | PrivateEndpointConnectionsGetDefaultResponse\n | PrivateEndpointConnectionsCreateDefaultResponse\n | PrivateEndpointConnectionsDeleteDefaultResponse\n | PrivateEndpointConnectionsListByDeidServiceDefaultResponse\n | PrivateLinksListByDeidServiceDefaultResponse {\n const lroOriginal = response.headers[\"x-ms-original-url\"];\n const url = new URL(lroOriginal ?? response.request.url);\n const method = response.request.method;\n let pathDetails = responseMap[`${method} ${url.pathname}`];\n if (!pathDetails) {\n pathDetails = getParametrizedPathSuccess(method, url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction getParametrizedPathSuccess(method: string, path: string): string[] {\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: string[] = [];\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(responseMap)) {\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"]}
|