@azure/arm-healthdataaiservices 1.0.0-beta.1 → 1.0.0
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 +2 -2
- package/README.md +10 -4
- package/dist/browser/api/deidServices/index.d.ts +16 -17
- package/dist/browser/api/deidServices/index.d.ts.map +1 -1
- package/dist/browser/api/deidServices/index.js +32 -424
- package/dist/browser/api/deidServices/index.js.map +1 -1
- package/dist/browser/api/healthDataAIServicesContext.d.ts +4 -4
- package/dist/browser/api/healthDataAIServicesContext.d.ts.map +1 -1
- package/dist/browser/api/healthDataAIServicesContext.js +29 -7
- package/dist/browser/api/healthDataAIServicesContext.js.map +1 -1
- package/dist/browser/api/index.d.ts +2 -1
- package/dist/browser/api/index.d.ts.map +1 -1
- package/dist/browser/api/index.js +1 -1
- package/dist/browser/api/index.js.map +1 -1
- package/dist/browser/api/operations/index.d.ts +6 -7
- package/dist/browser/api/operations/index.d.ts.map +1 -1
- package/dist/browser/api/operations/index.js +8 -26
- package/dist/browser/api/operations/index.js.map +1 -1
- package/dist/browser/api/options.d.ts.map +1 -0
- package/dist/browser/api/options.js +4 -0
- package/dist/browser/api/options.js.map +1 -0
- package/dist/browser/api/privateEndpointConnections/index.d.ts +12 -13
- package/dist/browser/api/privateEndpointConnections/index.d.ts.map +1 -1
- package/dist/browser/api/privateEndpointConnections/index.js +22 -126
- package/dist/browser/api/privateEndpointConnections/index.js.map +1 -1
- package/dist/browser/api/privateLinks/index.d.ts +6 -7
- package/dist/browser/api/privateLinks/index.d.ts.map +1 -1
- package/dist/browser/api/privateLinks/index.js +8 -38
- package/dist/browser/api/privateLinks/index.js.map +1 -1
- package/dist/browser/classic/deidServices/index.d.ts +4 -4
- package/dist/browser/classic/deidServices/index.d.ts.map +1 -1
- package/dist/browser/classic/deidServices/index.js +1 -1
- package/dist/browser/classic/deidServices/index.js.map +1 -1
- package/dist/browser/classic/index.js +1 -1
- package/dist/browser/classic/index.js.map +1 -1
- package/dist/browser/classic/operations/index.d.ts +3 -3
- package/dist/browser/classic/operations/index.d.ts.map +1 -1
- package/dist/browser/classic/operations/index.js +1 -1
- package/dist/browser/classic/operations/index.js.map +1 -1
- package/dist/browser/classic/privateEndpointConnections/index.d.ts +3 -3
- package/dist/browser/classic/privateEndpointConnections/index.d.ts.map +1 -1
- package/dist/browser/classic/privateEndpointConnections/index.js +1 -1
- package/dist/browser/classic/privateEndpointConnections/index.js.map +1 -1
- package/dist/browser/classic/privateLinks/index.d.ts +3 -3
- package/dist/browser/classic/privateLinks/index.d.ts.map +1 -1
- package/dist/browser/classic/privateLinks/index.js +1 -1
- package/dist/browser/classic/privateLinks/index.js.map +1 -1
- package/dist/browser/healthDataAIServicesClient.d.ts +2 -2
- package/dist/browser/healthDataAIServicesClient.d.ts.map +1 -1
- package/dist/browser/healthDataAIServicesClient.js +2 -2
- package/dist/browser/healthDataAIServicesClient.js.map +1 -1
- package/dist/browser/helpers/serializerHelpers.js +1 -1
- package/dist/browser/helpers/serializerHelpers.js.map +1 -1
- package/dist/browser/index.d.ts +5 -2
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +3 -3
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/logger.js +1 -1
- package/dist/browser/logger.js.map +1 -1
- package/dist/browser/models/index.d.ts +1 -3
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js +2 -2
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +140 -125
- package/dist/browser/models/models.d.ts.map +1 -1
- package/dist/browser/models/models.js +319 -73
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/restorePollerHelpers.d.ts +2 -2
- package/dist/browser/restorePollerHelpers.d.ts.map +1 -1
- package/dist/browser/restorePollerHelpers.js +27 -11
- package/dist/browser/restorePollerHelpers.js.map +1 -1
- package/dist/browser/{models/pagingTypes.d.ts → static-helpers/pagingHelpers.d.ts} +6 -1
- package/dist/browser/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/{esm/api → browser/static-helpers}/pagingHelpers.js +5 -6
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/{esm/api → browser/static-helpers}/pollingHelpers.d.ts +1 -1
- package/dist/browser/static-helpers/pollingHelpers.d.ts.map +1 -0
- package/dist/browser/{api → static-helpers}/pollingHelpers.js +7 -12
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/commonjs/api/deidServices/index.d.ts +16 -17
- package/dist/commonjs/api/deidServices/index.d.ts.map +1 -1
- package/dist/commonjs/api/deidServices/index.js +30 -422
- package/dist/commonjs/api/deidServices/index.js.map +1 -1
- package/dist/commonjs/api/healthDataAIServicesContext.d.ts +4 -4
- package/dist/commonjs/api/healthDataAIServicesContext.d.ts.map +1 -1
- package/dist/commonjs/api/healthDataAIServicesContext.js +28 -7
- package/dist/commonjs/api/healthDataAIServicesContext.js.map +1 -1
- package/dist/commonjs/api/index.d.ts +2 -1
- package/dist/commonjs/api/index.d.ts.map +1 -1
- package/dist/commonjs/api/index.js +1 -1
- package/dist/commonjs/api/index.js.map +1 -1
- package/dist/commonjs/api/operations/index.d.ts +6 -7
- package/dist/commonjs/api/operations/index.d.ts.map +1 -1
- package/dist/commonjs/api/operations/index.js +7 -25
- package/dist/commonjs/api/operations/index.js.map +1 -1
- package/dist/commonjs/api/options.d.ts.map +1 -0
- package/dist/commonjs/{models → api}/options.js +1 -1
- package/dist/commonjs/api/options.js.map +1 -0
- package/dist/commonjs/api/privateEndpointConnections/index.d.ts +12 -13
- package/dist/commonjs/api/privateEndpointConnections/index.d.ts.map +1 -1
- package/dist/commonjs/api/privateEndpointConnections/index.js +20 -124
- package/dist/commonjs/api/privateEndpointConnections/index.js.map +1 -1
- package/dist/commonjs/api/privateLinks/index.d.ts +6 -7
- package/dist/commonjs/api/privateLinks/index.d.ts.map +1 -1
- package/dist/commonjs/api/privateLinks/index.js +7 -37
- package/dist/commonjs/api/privateLinks/index.js.map +1 -1
- package/dist/commonjs/classic/deidServices/index.d.ts +4 -4
- package/dist/commonjs/classic/deidServices/index.d.ts.map +1 -1
- package/dist/commonjs/classic/deidServices/index.js +1 -1
- package/dist/commonjs/classic/deidServices/index.js.map +1 -1
- package/dist/commonjs/classic/index.js +1 -1
- package/dist/commonjs/classic/index.js.map +1 -1
- package/dist/commonjs/classic/operations/index.d.ts +3 -3
- package/dist/commonjs/classic/operations/index.d.ts.map +1 -1
- package/dist/commonjs/classic/operations/index.js +1 -1
- package/dist/commonjs/classic/operations/index.js.map +1 -1
- package/dist/commonjs/classic/privateEndpointConnections/index.d.ts +3 -3
- package/dist/commonjs/classic/privateEndpointConnections/index.d.ts.map +1 -1
- package/dist/commonjs/classic/privateEndpointConnections/index.js +1 -1
- package/dist/commonjs/classic/privateEndpointConnections/index.js.map +1 -1
- package/dist/commonjs/classic/privateLinks/index.d.ts +3 -3
- package/dist/commonjs/classic/privateLinks/index.d.ts.map +1 -1
- package/dist/commonjs/classic/privateLinks/index.js +1 -1
- package/dist/commonjs/classic/privateLinks/index.js.map +1 -1
- package/dist/commonjs/healthDataAIServicesClient.d.ts +2 -2
- package/dist/commonjs/healthDataAIServicesClient.d.ts.map +1 -1
- package/dist/commonjs/healthDataAIServicesClient.js +2 -2
- package/dist/commonjs/healthDataAIServicesClient.js.map +1 -1
- package/dist/commonjs/helpers/serializerHelpers.js +1 -1
- package/dist/commonjs/helpers/serializerHelpers.js.map +1 -1
- package/dist/commonjs/index.d.ts +5 -2
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +4 -3
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/logger.js +1 -1
- package/dist/commonjs/logger.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +1 -3
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +4 -3
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/models.d.ts +140 -125
- package/dist/commonjs/models/models.d.ts.map +1 -1
- package/dist/commonjs/models/models.js +350 -76
- package/dist/commonjs/models/models.js.map +1 -1
- package/dist/commonjs/restorePollerHelpers.d.ts +2 -2
- package/dist/commonjs/restorePollerHelpers.d.ts.map +1 -1
- package/dist/commonjs/restorePollerHelpers.js +27 -11
- package/dist/commonjs/restorePollerHelpers.js.map +1 -1
- package/dist/commonjs/{models/pagingTypes.d.ts → static-helpers/pagingHelpers.d.ts} +6 -1
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/commonjs/{api → static-helpers}/pagingHelpers.js +5 -6
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/{browser/api → commonjs/static-helpers}/pollingHelpers.d.ts +1 -1
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +1 -0
- package/dist/commonjs/{api → static-helpers}/pollingHelpers.js +7 -12
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/api/deidServices/index.d.ts +16 -17
- package/dist/esm/api/deidServices/index.d.ts.map +1 -1
- package/dist/esm/api/deidServices/index.js +32 -424
- package/dist/esm/api/deidServices/index.js.map +1 -1
- package/dist/esm/api/healthDataAIServicesContext.d.ts +4 -4
- package/dist/esm/api/healthDataAIServicesContext.d.ts.map +1 -1
- package/dist/esm/api/healthDataAIServicesContext.js +29 -7
- package/dist/esm/api/healthDataAIServicesContext.js.map +1 -1
- package/dist/esm/api/index.d.ts +2 -1
- package/dist/esm/api/index.d.ts.map +1 -1
- package/dist/esm/api/index.js +1 -1
- package/dist/esm/api/index.js.map +1 -1
- package/dist/esm/api/operations/index.d.ts +6 -7
- package/dist/esm/api/operations/index.d.ts.map +1 -1
- package/dist/esm/api/operations/index.js +8 -26
- package/dist/esm/api/operations/index.js.map +1 -1
- package/dist/esm/api/options.d.ts.map +1 -0
- package/dist/esm/api/options.js +4 -0
- package/dist/esm/api/options.js.map +1 -0
- package/dist/esm/api/privateEndpointConnections/index.d.ts +12 -13
- package/dist/esm/api/privateEndpointConnections/index.d.ts.map +1 -1
- package/dist/esm/api/privateEndpointConnections/index.js +22 -126
- package/dist/esm/api/privateEndpointConnections/index.js.map +1 -1
- package/dist/esm/api/privateLinks/index.d.ts +6 -7
- package/dist/esm/api/privateLinks/index.d.ts.map +1 -1
- package/dist/esm/api/privateLinks/index.js +8 -38
- package/dist/esm/api/privateLinks/index.js.map +1 -1
- package/dist/esm/classic/deidServices/index.d.ts +4 -4
- package/dist/esm/classic/deidServices/index.d.ts.map +1 -1
- package/dist/esm/classic/deidServices/index.js +1 -1
- package/dist/esm/classic/deidServices/index.js.map +1 -1
- package/dist/esm/classic/index.js +1 -1
- package/dist/esm/classic/index.js.map +1 -1
- package/dist/esm/classic/operations/index.d.ts +3 -3
- package/dist/esm/classic/operations/index.d.ts.map +1 -1
- package/dist/esm/classic/operations/index.js +1 -1
- package/dist/esm/classic/operations/index.js.map +1 -1
- package/dist/esm/classic/privateEndpointConnections/index.d.ts +3 -3
- package/dist/esm/classic/privateEndpointConnections/index.d.ts.map +1 -1
- package/dist/esm/classic/privateEndpointConnections/index.js +1 -1
- package/dist/esm/classic/privateEndpointConnections/index.js.map +1 -1
- package/dist/esm/classic/privateLinks/index.d.ts +3 -3
- package/dist/esm/classic/privateLinks/index.d.ts.map +1 -1
- package/dist/esm/classic/privateLinks/index.js +1 -1
- package/dist/esm/classic/privateLinks/index.js.map +1 -1
- package/dist/esm/healthDataAIServicesClient.d.ts +2 -2
- package/dist/esm/healthDataAIServicesClient.d.ts.map +1 -1
- package/dist/esm/healthDataAIServicesClient.js +2 -2
- package/dist/esm/healthDataAIServicesClient.js.map +1 -1
- package/dist/esm/helpers/serializerHelpers.js +1 -1
- package/dist/esm/helpers/serializerHelpers.js.map +1 -1
- package/dist/esm/index.d.ts +5 -2
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/logger.js +1 -1
- package/dist/esm/logger.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -3
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +2 -2
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +140 -125
- package/dist/esm/models/models.d.ts.map +1 -1
- package/dist/esm/models/models.js +319 -73
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/restorePollerHelpers.d.ts +2 -2
- package/dist/esm/restorePollerHelpers.d.ts.map +1 -1
- package/dist/esm/restorePollerHelpers.js +27 -11
- package/dist/esm/restorePollerHelpers.js.map +1 -1
- package/dist/esm/{models/pagingTypes.d.ts → static-helpers/pagingHelpers.d.ts} +6 -1
- package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/{react-native/api → esm/static-helpers}/pagingHelpers.js +5 -6
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/{commonjs/api → esm/static-helpers}/pollingHelpers.d.ts +1 -1
- package/dist/esm/static-helpers/pollingHelpers.d.ts.map +1 -0
- package/dist/{react-native/api → esm/static-helpers}/pollingHelpers.js +7 -12
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/react-native/api/deidServices/index.d.ts +16 -17
- package/dist/react-native/api/deidServices/index.d.ts.map +1 -1
- package/dist/react-native/api/deidServices/index.js +32 -424
- package/dist/react-native/api/deidServices/index.js.map +1 -1
- package/dist/react-native/api/healthDataAIServicesContext.d.ts +4 -4
- package/dist/react-native/api/healthDataAIServicesContext.d.ts.map +1 -1
- package/dist/react-native/api/healthDataAIServicesContext.js +29 -7
- package/dist/react-native/api/healthDataAIServicesContext.js.map +1 -1
- package/dist/react-native/api/index.d.ts +2 -1
- package/dist/react-native/api/index.d.ts.map +1 -1
- package/dist/react-native/api/index.js +1 -1
- package/dist/react-native/api/index.js.map +1 -1
- package/dist/react-native/api/operations/index.d.ts +6 -7
- package/dist/react-native/api/operations/index.d.ts.map +1 -1
- package/dist/react-native/api/operations/index.js +8 -26
- package/dist/react-native/api/operations/index.js.map +1 -1
- package/dist/react-native/api/options.d.ts.map +1 -0
- package/dist/react-native/api/options.js +4 -0
- package/dist/react-native/api/options.js.map +1 -0
- package/dist/react-native/api/privateEndpointConnections/index.d.ts +12 -13
- package/dist/react-native/api/privateEndpointConnections/index.d.ts.map +1 -1
- package/dist/react-native/api/privateEndpointConnections/index.js +22 -126
- package/dist/react-native/api/privateEndpointConnections/index.js.map +1 -1
- package/dist/react-native/api/privateLinks/index.d.ts +6 -7
- package/dist/react-native/api/privateLinks/index.d.ts.map +1 -1
- package/dist/react-native/api/privateLinks/index.js +8 -38
- package/dist/react-native/api/privateLinks/index.js.map +1 -1
- package/dist/react-native/classic/deidServices/index.d.ts +4 -4
- package/dist/react-native/classic/deidServices/index.d.ts.map +1 -1
- package/dist/react-native/classic/deidServices/index.js +1 -1
- package/dist/react-native/classic/deidServices/index.js.map +1 -1
- package/dist/react-native/classic/index.js +1 -1
- package/dist/react-native/classic/index.js.map +1 -1
- package/dist/react-native/classic/operations/index.d.ts +3 -3
- package/dist/react-native/classic/operations/index.d.ts.map +1 -1
- package/dist/react-native/classic/operations/index.js +1 -1
- package/dist/react-native/classic/operations/index.js.map +1 -1
- package/dist/react-native/classic/privateEndpointConnections/index.d.ts +3 -3
- package/dist/react-native/classic/privateEndpointConnections/index.d.ts.map +1 -1
- package/dist/react-native/classic/privateEndpointConnections/index.js +1 -1
- package/dist/react-native/classic/privateEndpointConnections/index.js.map +1 -1
- package/dist/react-native/classic/privateLinks/index.d.ts +3 -3
- package/dist/react-native/classic/privateLinks/index.d.ts.map +1 -1
- package/dist/react-native/classic/privateLinks/index.js +1 -1
- package/dist/react-native/classic/privateLinks/index.js.map +1 -1
- package/dist/react-native/healthDataAIServicesClient.d.ts +2 -2
- package/dist/react-native/healthDataAIServicesClient.d.ts.map +1 -1
- package/dist/react-native/healthDataAIServicesClient.js +2 -2
- package/dist/react-native/healthDataAIServicesClient.js.map +1 -1
- package/dist/react-native/helpers/serializerHelpers.js +1 -1
- package/dist/react-native/helpers/serializerHelpers.js.map +1 -1
- package/dist/react-native/index.d.ts +5 -2
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +3 -3
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/logger.js +1 -1
- package/dist/react-native/logger.js.map +1 -1
- package/dist/react-native/models/index.d.ts +1 -3
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js +2 -2
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +140 -125
- package/dist/react-native/models/models.d.ts.map +1 -1
- package/dist/react-native/models/models.js +319 -73
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/restorePollerHelpers.d.ts +2 -2
- package/dist/react-native/restorePollerHelpers.d.ts.map +1 -1
- package/dist/react-native/restorePollerHelpers.js +27 -11
- package/dist/react-native/restorePollerHelpers.js.map +1 -1
- package/dist/react-native/{models/pagingTypes.d.ts → static-helpers/pagingHelpers.d.ts} +6 -1
- package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/{browser/api → react-native/static-helpers}/pagingHelpers.js +5 -6
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/react-native/{api → static-helpers}/pollingHelpers.d.ts +1 -1
- package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +1 -0
- package/dist/{esm/api → react-native/static-helpers}/pollingHelpers.js +7 -12
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
- package/package.json +31 -58
- package/review/arm-healthdataaiservices-models.api.md +16 -105
- package/review/arm-healthdataaiservices.api.md +16 -33
- package/dist/browser/api/pagingHelpers.d.ts +0 -7
- package/dist/browser/api/pagingHelpers.d.ts.map +0 -1
- package/dist/browser/api/pagingHelpers.js.map +0 -1
- package/dist/browser/api/pollingHelpers.d.ts.map +0 -1
- package/dist/browser/api/pollingHelpers.js.map +0 -1
- package/dist/browser/models/options.d.ts.map +0 -1
- package/dist/browser/models/options.js +0 -4
- package/dist/browser/models/options.js.map +0 -1
- package/dist/browser/models/pagingTypes.d.ts.map +0 -1
- package/dist/browser/models/pagingTypes.js +0 -4
- package/dist/browser/models/pagingTypes.js.map +0 -1
- package/dist/browser/rest/clientDefinitions.d.ts +0 -61
- package/dist/browser/rest/clientDefinitions.d.ts.map +0 -1
- package/dist/browser/rest/clientDefinitions.js +0 -4
- package/dist/browser/rest/clientDefinitions.js.map +0 -1
- package/dist/browser/rest/healthDataAIServicesClient.d.ts +0 -15
- package/dist/browser/rest/healthDataAIServicesClient.d.ts.map +0 -1
- package/dist/browser/rest/healthDataAIServicesClient.js +0 -42
- package/dist/browser/rest/healthDataAIServicesClient.js.map +0 -1
- package/dist/browser/rest/index.d.ts +0 -12
- package/dist/browser/rest/index.d.ts.map +0 -1
- package/dist/browser/rest/index.js +0 -14
- package/dist/browser/rest/index.js.map +0 -1
- package/dist/browser/rest/isUnexpected.d.ts +0 -14
- package/dist/browser/rest/isUnexpected.d.ts.map +0 -1
- package/dist/browser/rest/isUnexpected.js +0 -83
- package/dist/browser/rest/isUnexpected.js.map +0 -1
- package/dist/browser/rest/models.d.ts +0 -213
- package/dist/browser/rest/models.d.ts.map +0 -1
- package/dist/browser/rest/models.js +0 -4
- package/dist/browser/rest/models.js.map +0 -1
- package/dist/browser/rest/outputModels.d.ts +0 -304
- package/dist/browser/rest/outputModels.d.ts.map +0 -1
- package/dist/browser/rest/outputModels.js +0 -4
- package/dist/browser/rest/outputModels.js.map +0 -1
- package/dist/browser/rest/paginateHelper.d.ts +0 -43
- package/dist/browser/rest/paginateHelper.d.ts.map +0 -1
- package/dist/browser/rest/paginateHelper.js +0 -70
- package/dist/browser/rest/paginateHelper.js.map +0 -1
- package/dist/browser/rest/parameters.d.ts +0 -27
- package/dist/browser/rest/parameters.d.ts.map +0 -1
- package/dist/browser/rest/parameters.js +0 -4
- package/dist/browser/rest/parameters.js.map +0 -1
- package/dist/browser/rest/pollingHelper.d.ts +0 -81
- package/dist/browser/rest/pollingHelper.d.ts.map +0 -1
- package/dist/browser/rest/pollingHelper.js +0 -97
- package/dist/browser/rest/pollingHelper.js.map +0 -1
- package/dist/browser/rest/responses.d.ts +0 -190
- package/dist/browser/rest/responses.d.ts.map +0 -1
- package/dist/browser/rest/responses.js +0 -4
- package/dist/browser/rest/responses.js.map +0 -1
- package/dist/commonjs/api/pagingHelpers.d.ts +0 -7
- package/dist/commonjs/api/pagingHelpers.d.ts.map +0 -1
- package/dist/commonjs/api/pagingHelpers.js.map +0 -1
- package/dist/commonjs/api/pollingHelpers.d.ts.map +0 -1
- package/dist/commonjs/api/pollingHelpers.js.map +0 -1
- package/dist/commonjs/models/options.d.ts.map +0 -1
- package/dist/commonjs/models/options.js.map +0 -1
- package/dist/commonjs/models/pagingTypes.d.ts.map +0 -1
- package/dist/commonjs/models/pagingTypes.js +0 -5
- package/dist/commonjs/models/pagingTypes.js.map +0 -1
- package/dist/commonjs/rest/clientDefinitions.d.ts +0 -61
- package/dist/commonjs/rest/clientDefinitions.d.ts.map +0 -1
- package/dist/commonjs/rest/clientDefinitions.js +0 -5
- package/dist/commonjs/rest/clientDefinitions.js.map +0 -1
- package/dist/commonjs/rest/healthDataAIServicesClient.d.ts +0 -15
- package/dist/commonjs/rest/healthDataAIServicesClient.d.ts.map +0 -1
- package/dist/commonjs/rest/healthDataAIServicesClient.js +0 -45
- package/dist/commonjs/rest/healthDataAIServicesClient.js.map +0 -1
- package/dist/commonjs/rest/index.d.ts +0 -12
- package/dist/commonjs/rest/index.d.ts.map +0 -1
- package/dist/commonjs/rest/index.js +0 -17
- package/dist/commonjs/rest/index.js.map +0 -1
- package/dist/commonjs/rest/isUnexpected.d.ts +0 -14
- package/dist/commonjs/rest/isUnexpected.d.ts.map +0 -1
- package/dist/commonjs/rest/isUnexpected.js +0 -86
- package/dist/commonjs/rest/isUnexpected.js.map +0 -1
- package/dist/commonjs/rest/models.d.ts +0 -213
- package/dist/commonjs/rest/models.d.ts.map +0 -1
- package/dist/commonjs/rest/models.js +0 -5
- package/dist/commonjs/rest/models.js.map +0 -1
- package/dist/commonjs/rest/outputModels.d.ts +0 -304
- package/dist/commonjs/rest/outputModels.d.ts.map +0 -1
- package/dist/commonjs/rest/outputModels.js +0 -5
- package/dist/commonjs/rest/outputModels.js.map +0 -1
- package/dist/commonjs/rest/paginateHelper.d.ts +0 -43
- package/dist/commonjs/rest/paginateHelper.d.ts.map +0 -1
- package/dist/commonjs/rest/paginateHelper.js +0 -73
- package/dist/commonjs/rest/paginateHelper.js.map +0 -1
- package/dist/commonjs/rest/parameters.d.ts +0 -27
- package/dist/commonjs/rest/parameters.d.ts.map +0 -1
- package/dist/commonjs/rest/parameters.js +0 -5
- package/dist/commonjs/rest/parameters.js.map +0 -1
- package/dist/commonjs/rest/pollingHelper.d.ts +0 -81
- package/dist/commonjs/rest/pollingHelper.d.ts.map +0 -1
- package/dist/commonjs/rest/pollingHelper.js +0 -100
- package/dist/commonjs/rest/pollingHelper.js.map +0 -1
- package/dist/commonjs/rest/responses.d.ts +0 -190
- package/dist/commonjs/rest/responses.d.ts.map +0 -1
- package/dist/commonjs/rest/responses.js +0 -5
- package/dist/commonjs/rest/responses.js.map +0 -1
- package/dist/esm/api/pagingHelpers.d.ts +0 -7
- package/dist/esm/api/pagingHelpers.d.ts.map +0 -1
- package/dist/esm/api/pagingHelpers.js.map +0 -1
- package/dist/esm/api/pollingHelpers.d.ts.map +0 -1
- package/dist/esm/api/pollingHelpers.js.map +0 -1
- package/dist/esm/models/options.d.ts.map +0 -1
- package/dist/esm/models/options.js +0 -4
- package/dist/esm/models/options.js.map +0 -1
- package/dist/esm/models/pagingTypes.d.ts.map +0 -1
- package/dist/esm/models/pagingTypes.js +0 -4
- package/dist/esm/models/pagingTypes.js.map +0 -1
- package/dist/esm/rest/clientDefinitions.d.ts +0 -61
- package/dist/esm/rest/clientDefinitions.d.ts.map +0 -1
- package/dist/esm/rest/clientDefinitions.js +0 -4
- package/dist/esm/rest/clientDefinitions.js.map +0 -1
- package/dist/esm/rest/healthDataAIServicesClient.d.ts +0 -15
- package/dist/esm/rest/healthDataAIServicesClient.d.ts.map +0 -1
- package/dist/esm/rest/healthDataAIServicesClient.js +0 -42
- package/dist/esm/rest/healthDataAIServicesClient.js.map +0 -1
- package/dist/esm/rest/index.d.ts +0 -12
- package/dist/esm/rest/index.d.ts.map +0 -1
- package/dist/esm/rest/index.js +0 -14
- package/dist/esm/rest/index.js.map +0 -1
- package/dist/esm/rest/isUnexpected.d.ts +0 -14
- package/dist/esm/rest/isUnexpected.d.ts.map +0 -1
- package/dist/esm/rest/isUnexpected.js +0 -83
- package/dist/esm/rest/isUnexpected.js.map +0 -1
- package/dist/esm/rest/models.d.ts +0 -213
- package/dist/esm/rest/models.d.ts.map +0 -1
- package/dist/esm/rest/models.js +0 -4
- package/dist/esm/rest/models.js.map +0 -1
- package/dist/esm/rest/outputModels.d.ts +0 -304
- package/dist/esm/rest/outputModels.d.ts.map +0 -1
- package/dist/esm/rest/outputModels.js +0 -4
- package/dist/esm/rest/outputModels.js.map +0 -1
- package/dist/esm/rest/paginateHelper.d.ts +0 -43
- package/dist/esm/rest/paginateHelper.d.ts.map +0 -1
- package/dist/esm/rest/paginateHelper.js +0 -70
- package/dist/esm/rest/paginateHelper.js.map +0 -1
- package/dist/esm/rest/parameters.d.ts +0 -27
- package/dist/esm/rest/parameters.d.ts.map +0 -1
- package/dist/esm/rest/parameters.js +0 -4
- package/dist/esm/rest/parameters.js.map +0 -1
- package/dist/esm/rest/pollingHelper.d.ts +0 -81
- package/dist/esm/rest/pollingHelper.d.ts.map +0 -1
- package/dist/esm/rest/pollingHelper.js +0 -97
- package/dist/esm/rest/pollingHelper.js.map +0 -1
- package/dist/esm/rest/responses.d.ts +0 -190
- package/dist/esm/rest/responses.d.ts.map +0 -1
- package/dist/esm/rest/responses.js +0 -4
- package/dist/esm/rest/responses.js.map +0 -1
- package/dist/react-native/api/pagingHelpers.d.ts +0 -7
- package/dist/react-native/api/pagingHelpers.d.ts.map +0 -1
- package/dist/react-native/api/pagingHelpers.js.map +0 -1
- package/dist/react-native/api/pollingHelpers.d.ts.map +0 -1
- package/dist/react-native/api/pollingHelpers.js.map +0 -1
- package/dist/react-native/models/options.d.ts.map +0 -1
- package/dist/react-native/models/options.js +0 -4
- package/dist/react-native/models/options.js.map +0 -1
- package/dist/react-native/models/pagingTypes.d.ts.map +0 -1
- package/dist/react-native/models/pagingTypes.js +0 -4
- package/dist/react-native/models/pagingTypes.js.map +0 -1
- package/dist/react-native/rest/clientDefinitions.d.ts +0 -61
- package/dist/react-native/rest/clientDefinitions.d.ts.map +0 -1
- package/dist/react-native/rest/clientDefinitions.js +0 -4
- package/dist/react-native/rest/clientDefinitions.js.map +0 -1
- package/dist/react-native/rest/healthDataAIServicesClient.d.ts +0 -15
- package/dist/react-native/rest/healthDataAIServicesClient.d.ts.map +0 -1
- package/dist/react-native/rest/healthDataAIServicesClient.js +0 -42
- package/dist/react-native/rest/healthDataAIServicesClient.js.map +0 -1
- package/dist/react-native/rest/index.d.ts +0 -12
- package/dist/react-native/rest/index.d.ts.map +0 -1
- package/dist/react-native/rest/index.js +0 -14
- package/dist/react-native/rest/index.js.map +0 -1
- package/dist/react-native/rest/isUnexpected.d.ts +0 -14
- package/dist/react-native/rest/isUnexpected.d.ts.map +0 -1
- package/dist/react-native/rest/isUnexpected.js +0 -83
- package/dist/react-native/rest/isUnexpected.js.map +0 -1
- package/dist/react-native/rest/models.d.ts +0 -213
- package/dist/react-native/rest/models.d.ts.map +0 -1
- package/dist/react-native/rest/models.js +0 -4
- package/dist/react-native/rest/models.js.map +0 -1
- package/dist/react-native/rest/outputModels.d.ts +0 -304
- package/dist/react-native/rest/outputModels.d.ts.map +0 -1
- package/dist/react-native/rest/outputModels.js +0 -4
- package/dist/react-native/rest/outputModels.js.map +0 -1
- package/dist/react-native/rest/paginateHelper.d.ts +0 -43
- package/dist/react-native/rest/paginateHelper.d.ts.map +0 -1
- package/dist/react-native/rest/paginateHelper.js +0 -70
- package/dist/react-native/rest/paginateHelper.js.map +0 -1
- package/dist/react-native/rest/parameters.d.ts +0 -27
- package/dist/react-native/rest/parameters.d.ts.map +0 -1
- package/dist/react-native/rest/parameters.js +0 -4
- package/dist/react-native/rest/parameters.js.map +0 -1
- package/dist/react-native/rest/pollingHelper.d.ts +0 -81
- package/dist/react-native/rest/pollingHelper.d.ts.map +0 -1
- package/dist/react-native/rest/pollingHelper.js +0 -97
- package/dist/react-native/rest/pollingHelper.js.map +0 -1
- package/dist/react-native/rest/responses.d.ts +0 -190
- package/dist/react-native/rest/responses.d.ts.map +0 -1
- package/dist/react-native/rest/responses.js +0 -4
- package/dist/react-native/rest/responses.js.map +0 -1
- /package/dist/browser/{models → api}/options.d.ts +0 -0
- /package/dist/commonjs/{models → api}/options.d.ts +0 -0
- /package/dist/esm/{models → api}/options.d.ts +0 -0
- /package/dist/react-native/{models → api}/options.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAoClC,gDAEC;AA6CD,0DAEC;AAoDD,kGAQC;AAcD,sGAWC;AAQD,8DAEC;AAYD,kGAQC;AA+DD,8DAKC;AAUD,sDASC;AAcD,0EAMC;AA4CD,4EAYC;AAkCD,wEAEC;AAoBD,oDAUC;AAUD,wFAYC;AAQD,wEAMC;AA/cD,0EAAkE;AAkClE,SAAgB,kBAAkB,CAAC,IAAc;IAC/C,OAAO,IAAW,CAAC;AACrB,CAAC;AAkBD,sEAAsE;AACtE,IAAY,kBASX;AATD,WAAY,kBAAkB;IAC5B,WAAW;IACX,mCAAa,CAAA;IACb,kBAAkB;IAClB,iDAA2B,CAAA;IAC3B,sBAAsB;IACtB,yDAAmC,CAAA;IACnC,UAAU;IACV,iCAAW,CAAA;AACb,CAAC,EATW,kBAAkB,kCAAlB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KACd,CAAC;AACJ,CAAC;AAQD,SAAgB,8BAA8B,CAC5C,IAA0B;IAE1B,OAAO;QACL,mBAAmB,EAAE,IAAI,CAAC,qBAAqB,CAAC;KACjD,CAAC;AACJ,CAAC;AAoCD,+DAA+D;AAC/D,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,WAAW;IACX,4BAAa,CAAA;IACb,aAAa;IACb,gCAAiB,CAAA;IACjB,kBAAkB;IAClB,0CAA6B,CAAA;AAC/B,CAAC,EAPW,WAAW,2BAAX,WAAW,QAOtB;AAaD,mEAAmE;AACnE,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,eAAe;IACf,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { serializeRecord } from \"../helpers/serializerHelpers.js\";\nimport {\n PrivateEndpointConnectionResource as PrivateEndpointConnectionResourceRest,\n PrivateEndpointConnectionProperties as PrivateEndpointConnectionPropertiesRest,\n PrivateLinkServiceConnectionState as PrivateLinkServiceConnectionStateRest,\n TrackedResource as TrackedResourceRest,\n DeidService as DeidServiceRest,\n DeidServiceProperties as DeidServicePropertiesRest,\n ManagedServiceIdentity as ManagedServiceIdentityRest,\n DeidUpdate as DeidUpdateRest,\n ManagedServiceIdentityUpdate as ManagedServiceIdentityUpdateRest,\n DeidPropertiesUpdate as DeidPropertiesUpdateRest,\n} from \"../rest/index.js\";\n\n/** The response of a PrivateLinkResource list operation. */\nexport interface _PrivateLinkResourceListResult {\n /** The PrivateLinkResource items on this page */\n value: PrivateLinkResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(item: Resource) {\n return item as any;\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\n/** Known values of {@link CreatedByType} that the service accepts. */\nexport enum KnownCreatedByType {\n /** User */\n User = \"User\",\n /** Application */\n Application = \"Application\",\n /** ManagedIdentity */\n ManagedIdentity = \"ManagedIdentity\",\n /** Key */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User** \\\n * **Application** \\\n * **ManagedIdentity** \\\n * **Key**\n */\nexport type CreatedByType = string;\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\nexport function proxyResourceSerializer(item: ProxyResource) {\n return item as any;\n}\n\n/** Private Links for DeidService resource */\nexport interface PrivateLinkResource extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: PrivateLinkResourceProperties;\n}\n\n/** Properties of a private link resource. */\nexport interface PrivateLinkResourceProperties {\n /** The private link resource group id. */\n readonly groupId?: string;\n /** The private link resource required member names. */\n readonly requiredMembers?: string[];\n /** The private link resource private link DNS zone name. */\n requiredZoneNames?: string[];\n}\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: Record<string, any>;\n}\n\n/** Holder for private endpoint connections */\nexport interface PrivateEndpointConnectionResource extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: PrivateEndpointConnectionProperties;\n}\n\nexport function privateEndpointConnectionResourceSerializer(\n item: PrivateEndpointConnectionResource,\n): PrivateEndpointConnectionResourceRest {\n return {\n properties: !item.properties\n ? item.properties\n : privateEndpointConnectionPropertiesSerializer(item.properties),\n };\n}\n\n/** Properties of the private endpoint connection. */\nexport interface PrivateEndpointConnectionProperties {\n /** The group ids for the private endpoint resource. */\n readonly groupIds?: string[];\n /** The private endpoint resource. */\n privateEndpoint?: PrivateEndpoint;\n /** A collection of information about the state of the connection between service consumer and provider. */\n privateLinkServiceConnectionState: PrivateLinkServiceConnectionState;\n /** The provisioning state of the private endpoint connection resource. */\n readonly provisioningState?: PrivateEndpointConnectionProvisioningState;\n}\n\nexport function privateEndpointConnectionPropertiesSerializer(\n item: PrivateEndpointConnectionProperties,\n): PrivateEndpointConnectionPropertiesRest {\n return {\n privateEndpoint: !item.privateEndpoint\n ? item.privateEndpoint\n : privateEndpointSerializer(item.privateEndpoint),\n privateLinkServiceConnectionState: privateLinkServiceConnectionStateSerializer(\n item.privateLinkServiceConnectionState,\n ),\n };\n}\n\n/** The Private Endpoint resource. */\nexport interface PrivateEndpoint {\n /** The resource identifier for private endpoint */\n readonly id?: string;\n}\n\nexport function privateEndpointSerializer(item: PrivateEndpoint) {\n return item as any;\n}\n\n/** A collection of information about the state of the connection between service consumer and provider. */\nexport interface PrivateLinkServiceConnectionState {\n /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */\n status?: PrivateEndpointServiceConnectionStatus;\n /** The reason for approval/rejection of the connection. */\n description?: string;\n /** A message indicating if changes on the service provider require any updates on the consumer. */\n actionsRequired?: string;\n}\n\nexport function privateLinkServiceConnectionStateSerializer(\n item: PrivateLinkServiceConnectionState,\n): PrivateLinkServiceConnectionStateRest {\n return {\n status: item[\"status\"],\n description: item[\"description\"],\n actionsRequired: item[\"actionsRequired\"],\n };\n}\n\n/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */\nexport enum KnownPrivateEndpointServiceConnectionStatus {\n /** Pending */\n Pending = \"Pending\",\n /** Approved */\n Approved = \"Approved\",\n /** Rejected */\n Rejected = \"Rejected\",\n}\n\n/**\n * The private endpoint connection status. \\\n * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Pending** \\\n * **Approved** \\\n * **Rejected**\n */\nexport type PrivateEndpointServiceConnectionStatus = string;\n\n/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */\nexport enum KnownPrivateEndpointConnectionProvisioningState {\n /** Succeeded */\n Succeeded = \"Succeeded\",\n /** Creating */\n Creating = \"Creating\",\n /** Deleting */\n Deleting = \"Deleting\",\n /** Failed */\n Failed = \"Failed\",\n}\n\n/**\n * The current provisioning state. \\\n * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded** \\\n * **Creating** \\\n * **Deleting** \\\n * **Failed**\n */\nexport type PrivateEndpointConnectionProvisioningState = string;\n\n/** The response of a PrivateEndpointConnectionResource list operation. */\nexport interface _PrivateEndpointConnectionResourceListResult {\n /** The PrivateEndpointConnectionResource items on this page */\n value: PrivateEndpointConnectionResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResource extends Resource {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The geo-location where the resource lives */\n location: string;\n}\n\nexport function trackedResourceSerializer(item: TrackedResource): TrackedResourceRest {\n return {\n tags: !item.tags ? item.tags : (serializeRecord(item.tags as any) as any),\n location: item[\"location\"],\n };\n}\n\n/** A HealthDataAIServicesProviderHub resource */\nexport interface DeidService extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: DeidServiceProperties;\n /** The managed service identities assigned to this resource. */\n identity?: ManagedServiceIdentity;\n}\n\nexport function deidServiceSerializer(item: DeidService): DeidServiceRest {\n return {\n tags: !item.tags ? item.tags : (serializeRecord(item.tags as any) as any),\n location: item[\"location\"],\n properties: !item.properties\n ? item.properties\n : deidServicePropertiesSerializer(item.properties),\n identity: !item.identity ? item.identity : managedServiceIdentitySerializer(item.identity),\n };\n}\n\n/** Details of the HealthDataAIServices DeidService. */\nexport interface DeidServiceProperties {\n /** The status of the last operation. */\n readonly provisioningState?: ProvisioningState;\n /** Deid service url. */\n readonly serviceUrl?: string;\n /** List of private endpoint connections. */\n readonly privateEndpointConnections?: PrivateEndpointConnection[];\n /** Gets or sets allow or disallow public network access to resource */\n publicNetworkAccess?: PublicNetworkAccess;\n}\n\nexport function deidServicePropertiesSerializer(\n item: DeidServiceProperties,\n): DeidServicePropertiesRest {\n return {\n publicNetworkAccess: item[\"publicNetworkAccess\"],\n };\n}\n\n/** Known values of {@link ResourceProvisioningState} that the service accepts. */\nexport enum KnownResourceProvisioningState {\n /** Succeeded */\n Succeeded = \"Succeeded\",\n /** Failed */\n Failed = \"Failed\",\n /** Canceled */\n Canceled = \"Canceled\",\n}\n\n/**\n * The provisioning state of a resource type. \\\n * {@link KnownResourceProvisioningState} can be used interchangeably with ResourceProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded** \\\n * **Failed** \\\n * **Canceled**\n */\nexport type ResourceProvisioningState = string;\n\n/** The private endpoint connection resource */\nexport interface PrivateEndpointConnection extends Resource {\n /** The private endpoint connection properties */\n properties?: PrivateEndpointConnectionProperties;\n}\n\n/** State of the public network access. */\nexport type PublicNetworkAccess = \"Enabled\" | \"Disabled\";\n\n/** Managed service identity (system assigned and/or user assigned identities) */\nexport interface ManagedServiceIdentity {\n /** The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. */\n readonly principalId?: string;\n /** The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. */\n readonly tenantId?: string;\n /** The type of managed identity assigned to this resource. */\n type: ManagedServiceIdentityType;\n /** The identities assigned to this resource by the user. */\n userAssignedIdentities?: Record<string, UserAssignedIdentity | null>;\n}\n\nexport function managedServiceIdentitySerializer(\n item: ManagedServiceIdentity,\n): ManagedServiceIdentityRest {\n return {\n type: item[\"type\"],\n userAssignedIdentities: !item.userAssignedIdentities\n ? item.userAssignedIdentities\n : (serializeRecord(\n item.userAssignedIdentities as any,\n userAssignedIdentitySerializer,\n ) as any),\n };\n}\n\n/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */\nexport enum KnownManagedServiceIdentityType {\n /** None */\n None = \"None\",\n /** SystemAssigned */\n SystemAssigned = \"SystemAssigned\",\n /** UserAssigned */\n UserAssigned = \"UserAssigned\",\n /** SystemAssigned,UserAssigned */\n \"SystemAssigned,UserAssigned\" = \"SystemAssigned,UserAssigned\",\n}\n\n/**\n * Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). \\\n * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **None** \\\n * **SystemAssigned** \\\n * **UserAssigned** \\\n * **SystemAssigned,UserAssigned**\n */\nexport type ManagedServiceIdentityType = string;\n\n/** User assigned identity properties */\nexport interface UserAssignedIdentity {\n /** The principal ID of the assigned identity. */\n readonly principalId?: string;\n /** The client ID of the assigned identity. */\n readonly clientId?: string;\n}\n\nexport function userAssignedIdentitySerializer(item: UserAssignedIdentity) {\n return item as any;\n}\n\n/** The response of a DeidService list operation. */\nexport interface _DeidServiceListResult {\n /** The DeidService items on this page */\n value: DeidService[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\n/** Patch request body for DeidService */\nexport interface DeidUpdate {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** Updatable managed service identity */\n identity?: ManagedServiceIdentityUpdate;\n /** RP-specific properties */\n properties?: DeidPropertiesUpdate;\n}\n\nexport function deidUpdateSerializer(item: DeidUpdate): DeidUpdateRest {\n return {\n tags: !item.tags ? item.tags : (serializeRecord(item.tags as any) as any),\n identity: !item.identity\n ? item.identity\n : managedServiceIdentityUpdateSerializer(item.identity),\n properties: !item.properties\n ? item.properties\n : deidPropertiesUpdateSerializer(item.properties),\n };\n}\n\n/** The template for adding optional properties. */\nexport interface ManagedServiceIdentityUpdate {\n /** The type of managed identity assigned to this resource. */\n type?: ManagedServiceIdentityType;\n /** The identities assigned to this resource by the user. */\n userAssignedIdentities?: Record<string, UserAssignedIdentity | null>;\n}\n\nexport function managedServiceIdentityUpdateSerializer(\n item: ManagedServiceIdentityUpdate,\n): ManagedServiceIdentityUpdateRest {\n return {\n type: item[\"type\"],\n userAssignedIdentities: !item.userAssignedIdentities\n ? item.userAssignedIdentities\n : (serializeRecord(\n item.userAssignedIdentities as any,\n userAssignedIdentitySerializer,\n ) as any),\n };\n}\n\n/** The template for adding optional properties. */\nexport interface DeidPropertiesUpdate {\n /** Gets or sets allow or disallow public network access to resource */\n publicNetworkAccess?: PublicNetworkAccess;\n}\n\nexport function deidPropertiesUpdateSerializer(\n item: DeidPropertiesUpdate,\n): DeidPropertiesUpdateRest {\n return {\n publicNetworkAccess: item[\"publicNetworkAccess\"],\n };\n}\n\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n readonly display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n actionType?: ActionType;\n}\n\n/** Localized display information for and operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\n/** Known values of {@link Origin} that the service accepts. */\nexport enum KnownOrigin {\n /** user */\n user = \"user\",\n /** system */\n system = \"system\",\n /** user,system */\n \"user,system\" = \"user,system\",\n}\n\n/**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user** \\\n * **system** \\\n * **user,system**\n */\nexport type Origin = string;\n\n/** Known values of {@link ActionType} that the service accepts. */\nexport enum KnownActionType {\n /** Internal */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**\n */\nexport type ActionType = string;\n/** Supported API versions for the Microsoft.HealthDataAIServices resource provider. */\nexport type Versions = \"2024-02-28-preview\";\n/** Alias for ProvisioningState */\nexport type ProvisioningState =\n | ResourceProvisioningState\n | \"Provisioning\"\n | \"Updating\"\n | \"Deleting\"\n | \"Accepted\"\n | string;\n"]}
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAUlC,gGAOC;AAED,oFAIC;AAQD,0EAYC;AAYD,8FAgBC;AAKD,0DAEC;AAED,8DASC;AAcD,gDAEC;AAED,oDASC;AAkBD,wDAWC;AAgCD,kGAQC;AAED,sGAcC;AAcD,sGAWC;AAED,0GAiBC;AAQD,8DAEC;AAED,kEAIC;AAYD,kGAQC;AAED,sGAQC;AAuDD,4HAOC;AAED,4GAMC;AAED,gHAMC;AAUD,sDAWC;AAED,0DAiBC;AAcD,0EAEC;AAED,8EASC;AAmCD,gGAMC;AAQD,sFAYC;AAiBD,4EAKC;AAED,gFAOC;AAkCD,wEAEC;AAED,4EAKC;AAUD,8DAEC;AAED,kEAWC;AAUD,gFAKC;AAED,gEAIC;AAED,oEAIC;AAYD,oDAUC;AAUD,wFAKC;AAQD,wEAEC;AAUD,4EAKC;AAED,gEAIC;AAgBD,sDAQC;AAcD,oEAOC;AAttBD,SAAgB,0CAA0C,CACxD,IAAS;IAET,OAAO;QACL,KAAK,EAAE,oCAAoC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1D,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,SAAgB,oCAAoC,CAAC,MAAkC;IACrF,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,+BAA+B,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC,C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,WAAW;IACrB,sDAAsD;IACtD,4BAAa,CAAA;IACb,wDAAwD;IACxD,gCAAiB,CAAA;IACjB,gEAAgE;IAChE,yCAA0B,CAAA;AAC5B,CAAC,EAPW,WAAW,2BAAX,WAAW,QAOtB;AAaD,gHAAgH;AAChH,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,0CAA0C;IAC1C,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAWD,uFAAuF;AACvF,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,8BAA8B;IAC9B,2CAA0B,CAAA;AAC5B,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** The response of a PrivateLinkResource list operation. */\nexport interface _PrivateLinkResourceListResult {\n /** The PrivateLinkResource items on this page */\n value: PrivateLinkResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _privateLinkResourceListResultDeserializer(\n item: any,\n): _PrivateLinkResourceListResult {\n return {\n value: privateLinkResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function privateLinkResourceArrayDeserializer(result: Array<PrivateLinkResource>): any[] {\n return result.map((item) => {\n return privateLinkResourceDeserializer(item);\n });\n}\n\n/** Private Links for DeidService resource */\nexport interface PrivateLinkResource extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: PrivateLinkResourceProperties;\n}\n\nexport function privateLinkResourceDeserializer(item: any): PrivateLinkResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : privateLinkResourcePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Properties of a private link resource. */\nexport interface PrivateLinkResourceProperties {\n /** The private link resource group id. */\n readonly groupId?: string;\n /** The private link resource required member names. */\n readonly requiredMembers?: string[];\n /** The private link resource private link DNS zone name. */\n requiredZoneNames?: string[];\n}\n\nexport function privateLinkResourcePropertiesDeserializer(\n item: any,\n): PrivateLinkResourceProperties {\n return {\n groupId: item[\"groupId\"],\n requiredMembers: !item[\"requiredMembers\"]\n ? item[\"requiredMembers\"]\n : item[\"requiredMembers\"].map((p: any) => {\n return p;\n }),\n requiredZoneNames: !item[\"requiredZoneNames\"]\n ? item[\"requiredZoneNames\"]\n : item[\"requiredZoneNames\"].map((p: any) => {\n return p;\n }),\n };\n}\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\nexport function proxyResourceSerializer(item: ProxyResource): any {\n return item;\n}\n\nexport function proxyResourceDeserializer(item: any): ProxyResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(item: Resource): any {\n return item;\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnowncreatedByType} can be used interchangeably with createdByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** Holder for private endpoint connections */\nexport interface PrivateEndpointConnectionResource extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: PrivateEndpointConnectionProperties;\n}\n\nexport function privateEndpointConnectionResourceSerializer(\n item: PrivateEndpointConnectionResource,\n): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : privateEndpointConnectionPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function privateEndpointConnectionResourceDeserializer(\n item: any,\n): PrivateEndpointConnectionResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : privateEndpointConnectionPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Properties of the private endpoint connection. */\nexport interface PrivateEndpointConnectionProperties {\n /** The group ids for the private endpoint resource. */\n readonly groupIds?: string[];\n /** The private endpoint resource. */\n privateEndpoint?: PrivateEndpoint;\n /** A collection of information about the state of the connection between service consumer and provider. */\n privateLinkServiceConnectionState: PrivateLinkServiceConnectionState;\n /** The provisioning state of the private endpoint connection resource. */\n readonly provisioningState?: PrivateEndpointConnectionProvisioningState;\n}\n\nexport function privateEndpointConnectionPropertiesSerializer(\n item: PrivateEndpointConnectionProperties,\n): any {\n return {\n privateEndpoint: !item[\"privateEndpoint\"]\n ? item[\"privateEndpoint\"]\n : privateEndpointSerializer(item[\"privateEndpoint\"]),\n privateLinkServiceConnectionState: privateLinkServiceConnectionStateSerializer(\n item[\"privateLinkServiceConnectionState\"],\n ),\n };\n}\n\nexport function privateEndpointConnectionPropertiesDeserializer(\n item: any,\n): PrivateEndpointConnectionProperties {\n return {\n groupIds: !item[\"groupIds\"]\n ? item[\"groupIds\"]\n : item[\"groupIds\"].map((p: any) => {\n return p;\n }),\n privateEndpoint: !item[\"privateEndpoint\"]\n ? item[\"privateEndpoint\"]\n : privateEndpointDeserializer(item[\"privateEndpoint\"]),\n privateLinkServiceConnectionState: privateLinkServiceConnectionStateDeserializer(\n item[\"privateLinkServiceConnectionState\"],\n ),\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** The Private Endpoint resource. */\nexport interface PrivateEndpoint {\n /** The resource identifier for private endpoint */\n readonly id?: string;\n}\n\nexport function privateEndpointSerializer(item: PrivateEndpoint): any {\n return item;\n}\n\nexport function privateEndpointDeserializer(item: any): PrivateEndpoint {\n return {\n id: item[\"id\"],\n };\n}\n\n/** A collection of information about the state of the connection between service consumer and provider. */\nexport interface PrivateLinkServiceConnectionState {\n /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */\n status?: PrivateEndpointServiceConnectionStatus;\n /** The reason for approval/rejection of the connection. */\n description?: string;\n /** A message indicating if changes on the service provider require any updates on the consumer. */\n actionsRequired?: string;\n}\n\nexport function privateLinkServiceConnectionStateSerializer(\n item: PrivateLinkServiceConnectionState,\n): any {\n return {\n status: item[\"status\"],\n description: item[\"description\"],\n actionsRequired: item[\"actionsRequired\"],\n };\n}\n\nexport function privateLinkServiceConnectionStateDeserializer(\n item: any,\n): PrivateLinkServiceConnectionState {\n return {\n status: item[\"status\"],\n description: item[\"description\"],\n actionsRequired: item[\"actionsRequired\"],\n };\n}\n\n/** The private endpoint connection status. */\nexport enum KnownPrivateEndpointServiceConnectionStatus {\n /** Connectionaiting for approval or rejection */\n Pending = \"Pending\",\n /** Connection approved */\n Approved = \"Approved\",\n /** Connection Rejected */\n Rejected = \"Rejected\",\n}\n\n/**\n * The private endpoint connection status. \\\n * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Pending**: Connectionaiting for approval or rejection \\\n * **Approved**: Connection approved \\\n * **Rejected**: Connection Rejected\n */\nexport type PrivateEndpointServiceConnectionStatus = string;\n\n/** The current provisioning state. */\nexport enum KnownPrivateEndpointConnectionProvisioningState {\n /** Connection has been provisioned */\n Succeeded = \"Succeeded\",\n /** Connection is being created */\n Creating = \"Creating\",\n /** Connection is being deleted */\n Deleting = \"Deleting\",\n /** Connection provisioning has failed */\n Failed = \"Failed\",\n}\n\n/**\n * The current provisioning state. \\\n * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: Connection has been provisioned \\\n * **Creating**: Connection is being created \\\n * **Deleting**: Connection is being deleted \\\n * **Failed**: Connection provisioning has failed\n */\nexport type PrivateEndpointConnectionProvisioningState = string;\n\n/** The response of a PrivateEndpointConnectionResource list operation. */\nexport interface _PrivateEndpointConnectionResourceListResult {\n /** The PrivateEndpointConnectionResource items on this page */\n value: PrivateEndpointConnectionResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _privateEndpointConnectionResourceListResultDeserializer(\n item: any,\n): _PrivateEndpointConnectionResourceListResult {\n return {\n value: privateEndpointConnectionResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function privateEndpointConnectionResourceArraySerializer(\n result: Array<PrivateEndpointConnectionResource>,\n): any[] {\n return result.map((item) => {\n return privateEndpointConnectionResourceSerializer(item);\n });\n}\n\nexport function privateEndpointConnectionResourceArrayDeserializer(\n result: Array<PrivateEndpointConnectionResource>,\n): any[] {\n return result.map((item) => {\n return privateEndpointConnectionResourceDeserializer(item);\n });\n}\n\n/** A HealthDataAIServicesProviderHub resource */\nexport interface DeidService extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: DeidServiceProperties;\n /** The managed service identities assigned to this resource. */\n identity?: ManagedServiceIdentity;\n}\n\nexport function deidServiceSerializer(item: DeidService): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : deidServicePropertiesSerializer(item[\"properties\"]),\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentitySerializer(item[\"identity\"]),\n };\n}\n\nexport function deidServiceDeserializer(item: any): DeidService {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : deidServicePropertiesDeserializer(item[\"properties\"]),\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentityDeserializer(item[\"identity\"]),\n };\n}\n\n/** Details of the HealthDataAIServices DeidService. */\nexport interface DeidServiceProperties {\n /** The status of the last operation. */\n readonly provisioningState?: ProvisioningState;\n /** Deid service url. */\n readonly serviceUrl?: string;\n /** List of private endpoint connections. */\n readonly privateEndpointConnections?: PrivateEndpointConnection[];\n /** Gets or sets allow or disallow public network access to resource */\n publicNetworkAccess?: PublicNetworkAccess;\n}\n\nexport function deidServicePropertiesSerializer(item: DeidServiceProperties): any {\n return { publicNetworkAccess: item[\"publicNetworkAccess\"] };\n}\n\nexport function deidServicePropertiesDeserializer(item: any): DeidServiceProperties {\n return {\n provisioningState: item[\"provisioningState\"],\n serviceUrl: item[\"serviceUrl\"],\n privateEndpointConnections: !item[\"privateEndpointConnections\"]\n ? item[\"privateEndpointConnections\"]\n : privateEndpointConnectionArrayDeserializer(item[\"privateEndpointConnections\"]),\n publicNetworkAccess: item[\"publicNetworkAccess\"],\n };\n}\n\n/** The status of the current operation. */\nexport enum KnownProvisioningState {\n /** Resource has been created. */\n Succeeded = \"Succeeded\",\n /** Resource creation failed. */\n Failed = \"Failed\",\n /** Resource creation was canceled. */\n Canceled = \"Canceled\",\n /** The resource is being provisioned. */\n Provisioning = \"Provisioning\",\n /** The resource is being updated. */\n Updating = \"Updating\",\n /** The resource is being deleted. */\n Deleting = \"Deleting\",\n /** The resource provisioning request has been accepted. */\n Accepted = \"Accepted\",\n}\n\n/**\n * The status of the current operation. \\\n * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: Resource has been created. \\\n * **Failed**: Resource creation failed. \\\n * **Canceled**: Resource creation was canceled. \\\n * **Provisioning**: The resource is being provisioned. \\\n * **Updating**: The resource is being updated. \\\n * **Deleting**: The resource is being deleted. \\\n * **Accepted**: The resource provisioning request has been accepted.\n */\nexport type ProvisioningState = string;\n\nexport function privateEndpointConnectionArrayDeserializer(\n result: Array<PrivateEndpointConnection>,\n): any[] {\n return result.map((item) => {\n return privateEndpointConnectionDeserializer(item);\n });\n}\n\n/** The private endpoint connection resource */\nexport interface PrivateEndpointConnection extends Resource {\n /** The private endpoint connection properties */\n properties?: PrivateEndpointConnectionProperties;\n}\n\nexport function privateEndpointConnectionDeserializer(item: any): PrivateEndpointConnection {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : privateEndpointConnectionPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** State of the public network access. */\nexport type PublicNetworkAccess = \"Enabled\" | \"Disabled\";\n\n/** Managed service identity (system assigned and/or user assigned identities) */\nexport interface ManagedServiceIdentity {\n /** The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. */\n readonly principalId?: string;\n /** The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. */\n readonly tenantId?: string;\n /** The type of managed identity assigned to this resource. */\n type: ManagedServiceIdentityType;\n /** The identities assigned to this resource by the user. */\n userAssignedIdentities?: Record<string, UserAssignedIdentity | null>;\n}\n\nexport function managedServiceIdentitySerializer(item: ManagedServiceIdentity): any {\n return {\n type: item[\"type\"],\n userAssignedIdentities: item[\"userAssignedIdentities\"],\n };\n}\n\nexport function managedServiceIdentityDeserializer(item: any): ManagedServiceIdentity {\n return {\n principalId: item[\"principalId\"],\n tenantId: item[\"tenantId\"],\n type: item[\"type\"],\n userAssignedIdentities: item[\"userAssignedIdentities\"],\n };\n}\n\n/** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */\nexport enum KnownManagedServiceIdentityType {\n /** No managed identity. */\n None = \"None\",\n /** System assigned managed identity. */\n SystemAssigned = \"SystemAssigned\",\n /** User assigned managed identity. */\n UserAssigned = \"UserAssigned\",\n /** System and user assigned managed identity. */\n SystemAssignedUserAssigned = \"SystemAssigned,UserAssigned\",\n}\n\n/**\n * Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). \\\n * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **None**: No managed identity. \\\n * **SystemAssigned**: System assigned managed identity. \\\n * **UserAssigned**: User assigned managed identity. \\\n * **SystemAssigned,UserAssigned**: System and user assigned managed identity.\n */\nexport type ManagedServiceIdentityType = string;\n\n/** User assigned identity properties */\nexport interface UserAssignedIdentity {\n /** The principal ID of the assigned identity. */\n readonly principalId?: string;\n /** The client ID of the assigned identity. */\n readonly clientId?: string;\n}\n\nexport function userAssignedIdentitySerializer(item: UserAssignedIdentity): any {\n return item;\n}\n\nexport function userAssignedIdentityDeserializer(item: any): UserAssignedIdentity {\n return {\n principalId: item[\"principalId\"],\n clientId: item[\"clientId\"],\n };\n}\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResource extends Resource {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The geo-location where the resource lives */\n location: string;\n}\n\nexport function trackedResourceSerializer(item: TrackedResource): any {\n return { tags: item[\"tags\"], location: item[\"location\"] };\n}\n\nexport function trackedResourceDeserializer(item: any): TrackedResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n tags: item[\"tags\"],\n location: item[\"location\"],\n };\n}\n\n/** The response of a DeidService list operation. */\nexport interface _DeidServiceListResult {\n /** The DeidService items on this page */\n value: DeidService[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _deidServiceListResultDeserializer(item: any): _DeidServiceListResult {\n return {\n value: deidServiceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function deidServiceArraySerializer(result: Array<DeidService>): any[] {\n return result.map((item) => {\n return deidServiceSerializer(item);\n });\n}\n\nexport function deidServiceArrayDeserializer(result: Array<DeidService>): any[] {\n return result.map((item) => {\n return deidServiceDeserializer(item);\n });\n}\n\n/** Patch request body for DeidService */\nexport interface DeidUpdate {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** Updatable managed service identity */\n identity?: ManagedServiceIdentityUpdate;\n /** RP-specific properties */\n properties?: DeidPropertiesUpdate;\n}\n\nexport function deidUpdateSerializer(item: DeidUpdate): any {\n return {\n tags: item[\"tags\"],\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentityUpdateSerializer(item[\"identity\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : deidPropertiesUpdateSerializer(item[\"properties\"]),\n };\n}\n\n/** The template for adding optional properties. */\nexport interface ManagedServiceIdentityUpdate {\n /** The type of managed identity assigned to this resource. */\n type?: ManagedServiceIdentityType;\n /** The identities assigned to this resource by the user. */\n userAssignedIdentities?: Record<string, UserAssignedIdentity | null>;\n}\n\nexport function managedServiceIdentityUpdateSerializer(item: ManagedServiceIdentityUpdate): any {\n return {\n type: item[\"type\"],\n userAssignedIdentities: item[\"userAssignedIdentities\"],\n };\n}\n\n/** The template for adding optional properties. */\nexport interface DeidPropertiesUpdate {\n /** Gets or sets allow or disallow public network access to resource */\n publicNetworkAccess?: PublicNetworkAccess;\n}\n\nexport function deidPropertiesUpdateSerializer(item: DeidPropertiesUpdate): any {\n return { publicNetworkAccess: item[\"publicNetworkAccess\"] };\n}\n\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationListResultDeserializer(item: any): _OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n readonly display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n actionType?: ActionType;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n isDataAction: item[\"isDataAction\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n actionType: item[\"actionType\"],\n };\n}\n\n/** Localized display information for and operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n\n/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\nexport enum KnownOrigin {\n /** Indicates the operation is initiated by a user. */\n User = \"user\",\n /** Indicates the operation is initiated by a system. */\n System = \"system\",\n /** Indicates the operation is initiated by a user or system. */\n UserSystem = \"user,system\",\n}\n\n/**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user**: Indicates the operation is initiated by a user. \\\n * **system**: Indicates the operation is initiated by a system. \\\n * **user,system**: Indicates the operation is initiated by a user or system.\n */\nexport type Origin = string;\n\n/** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\nexport enum KnownActionType {\n /** Actions are for internal-only APIs. */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**: Actions are for internal-only APIs.\n */\nexport type ActionType = string;\n\n/** Supported API versions for the Microsoft.HealthDataAIServices resource provider. */\nexport enum KnownVersions {\n /** The 2024-09-20 version. */\n V2024_09_20 = \"2024-09-20\",\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
2
1
|
import { HealthDataAIServicesClient } from "./healthDataAIServicesClient.js";
|
|
3
|
-
import {
|
|
2
|
+
import { OperationOptions, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
4
3
|
import { AbortSignalLike } from "@azure/abort-controller";
|
|
4
|
+
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
5
5
|
export interface RestorePollerOptions<TResult, TResponse extends PathUncheckedResponse = PathUncheckedResponse> extends OperationOptions {
|
|
6
6
|
/** Delay to wait until next poll, in milliseconds. */
|
|
7
7
|
updateIntervalInMs?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restorePollerHelpers.d.ts","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"restorePollerHelpers.d.ts","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAW7E,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACL,UAAU,EACV,cAAc,EAGf,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,oBAAoB,CACnC,OAAO,EACP,SAAS,SAAS,qBAAqB,GAAG,qBAAqB,CAC/D,SAAQ,gBAAgB;IACxB,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,qDAAqD;IACrD,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAC/D;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,SAAS,SAAS,qBAAqB,EAAE,OAAO,EAC5E,MAAM,EAAE,0BAA0B,EAClC,eAAe,EAAE,MAAM,EACvB,eAAe,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,EACjF,OAAO,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC,GACtC,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CA+B9C"}
|
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.restorePoller = restorePoller;
|
|
6
|
-
const core_lro_1 = require("@azure/core-lro");
|
|
7
|
-
const pollingHelpers_js_1 = require("./api/pollingHelpers.js");
|
|
8
6
|
const index_js_1 = require("./api/deidServices/index.js");
|
|
9
7
|
const index_js_2 = require("./api/privateEndpointConnections/index.js");
|
|
8
|
+
const pollingHelpers_js_1 = require("./static-helpers/pollingHelpers.js");
|
|
9
|
+
const core_lro_1 = require("@azure/core-lro");
|
|
10
10
|
/**
|
|
11
11
|
* Creates a poller from the serialized state of another poller. This can be
|
|
12
12
|
* useful when you want to create pollers on a different host or a poller
|
|
13
13
|
* needs to be constructed after the original one is not in scope.
|
|
14
14
|
*/
|
|
15
15
|
function restorePoller(client, serializedState, sourceOperation, options) {
|
|
16
|
-
var _a, _b;
|
|
16
|
+
var _a, _b, _c;
|
|
17
17
|
const pollerConfig = (0, core_lro_1.deserializeState)(serializedState).config;
|
|
18
18
|
const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
|
|
19
19
|
if (!initialRequestUrl || !requestMethod) {
|
|
20
20
|
throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation === null || sourceOperation === void 0 ? void 0 : sourceOperation.name}`);
|
|
21
21
|
}
|
|
22
22
|
const resourceLocationConfig = metadata === null || metadata === void 0 ? void 0 : metadata["resourceLocationConfig"];
|
|
23
|
-
const
|
|
23
|
+
const { deserializer, expectedStatuses = [] } = (_a = getDeserializationHelper(initialRequestUrl, requestMethod)) !== null && _a !== void 0 ? _a : {};
|
|
24
|
+
const deserializeHelper = (_b = options === null || options === void 0 ? void 0 : options.processResponseBody) !== null && _b !== void 0 ? _b : deserializer;
|
|
24
25
|
if (!deserializeHelper) {
|
|
25
26
|
throw new Error(`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation === null || sourceOperation === void 0 ? void 0 : sourceOperation.name}.`);
|
|
26
27
|
}
|
|
27
|
-
return (0, pollingHelpers_js_1.getLongRunningPoller)((
|
|
28
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)((_c = client["_client"]) !== null && _c !== void 0 ? _c : client, deserializeHelper, expectedStatuses, {
|
|
28
29
|
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
29
30
|
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
30
31
|
resourceLocationConfig,
|
|
@@ -33,11 +34,26 @@ function restorePoller(client, serializedState, sourceOperation, options) {
|
|
|
33
34
|
});
|
|
34
35
|
}
|
|
35
36
|
const deserializeMap = {
|
|
36
|
-
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}":
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"
|
|
37
|
+
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}": {
|
|
38
|
+
deserializer: index_js_1._deidServicesCreateDeserialize,
|
|
39
|
+
expectedStatuses: ["200", "201"],
|
|
40
|
+
},
|
|
41
|
+
"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}": {
|
|
42
|
+
deserializer: index_js_1._deidServicesUpdateDeserialize,
|
|
43
|
+
expectedStatuses: ["200", "202"],
|
|
44
|
+
},
|
|
45
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}": {
|
|
46
|
+
deserializer: index_js_1._deidServicesDeleteDeserialize,
|
|
47
|
+
expectedStatuses: ["202", "204", "200"],
|
|
48
|
+
},
|
|
49
|
+
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}": {
|
|
50
|
+
deserializer: index_js_2._privateEndpointConnectionsCreateDeserialize,
|
|
51
|
+
expectedStatuses: ["200", "201"],
|
|
52
|
+
},
|
|
53
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}": {
|
|
54
|
+
deserializer: index_js_2._privateEndpointConnectionsDeleteDeserialize,
|
|
55
|
+
expectedStatuses: ["202", "204", "200"],
|
|
56
|
+
},
|
|
41
57
|
};
|
|
42
58
|
function getDeserializationHelper(urlStr, method) {
|
|
43
59
|
var _a, _b, _c, _d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAyClC,sCAkCC;AAzED,8CAKyB;AAEzB,+DAA+D;AAC/D,0DAIqC;AACrC,wEAGmD;AAkBnD;;;;GAIG;AACH,SAAgB,aAAa,CAC3B,MAAkC,EAClC,eAAuB,EACvB,eAAiF,EACjF,OAAuC;;IAEvC,MAAM,YAAY,GAAG,IAAA,2BAAgB,EAAC,eAAe,CAAC,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,iBAAiB,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,YAAY,CAAC;IACpE,IAAI,CAAC,iBAAiB,IAAI,CAAC,aAAa,EAAE,CAAC;QACzC,MAAM,IAAI,KAAK,CACb,6BAA6B,eAAe,wBAAwB,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,IAAI,EAAE,CAC5F,CAAC;IACJ,CAAC;IACD,MAAM,sBAAsB,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,wBAAwB,CAErD,CAAC;IACd,MAAM,iBAAiB,GACrB,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,mBAAmB,mCAAI,wBAAwB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;IAC7F,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CACb,0FAA0F,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,IAAI,GAAG,CACnH,CAAC;IACJ,CAAC;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AAC;YAClC,YAAY,GAAG,KAA8C,CAAC;QAChE,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 PollerLike,\n OperationState,\n deserializeState,\n ResourceLocationConfig,\n} from \"@azure/core-lro\";\nimport { HealthDataAIServicesClient } from \"./healthDataAIServicesClient.js\";\nimport { getLongRunningPoller } from \"./api/pollingHelpers.js\";\nimport {\n _deidServicesCreateDeserialize,\n _deidServicesUpdateDeserialize,\n _deidServicesDeleteDeserialize,\n} from \"./api/deidServices/index.js\";\nimport {\n _privateEndpointConnectionsCreateDeserialize,\n _privateEndpointConnectionsDeleteDeserialize,\n} from \"./api/privateEndpointConnections/index.js\";\nimport { PathUncheckedResponse, OperationOptions } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: HealthDataAIServicesClient,\n serializedState: string,\n sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>,\n options?: RestorePollerOptions<TResult>,\n): PollerLike<OperationState<TResult>, TResult> {\n const pollerConfig = deserializeState(serializedState).config;\n const { initialRequestUrl, requestMethod, metadata } = pollerConfig;\n if (!initialRequestUrl || !requestMethod) {\n throw new Error(\n `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`,\n );\n }\n const resourceLocationConfig = metadata?.[\"resourceLocationConfig\"] as\n | ResourceLocationConfig\n | undefined;\n const deserializeHelper =\n options?.processResponseBody ?? getDeserializationHelper(initialRequestUrl, requestMethod);\n if (!deserializeHelper) {\n throw new Error(\n `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`,\n );\n }\n return getLongRunningPoller(\n (client as any)[\"_client\"] ?? client,\n deserializeHelper as (result: TResponse) => Promise<TResult>,\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n resourceLocationConfig,\n restoreFrom: serializedState,\n initialRequestUrl,\n },\n );\n}\n\nconst deserializeMap: Record<string, Function> = {\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}\":\n _deidServicesCreateDeserialize,\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}\":\n _deidServicesUpdateDeserialize,\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}\":\n _deidServicesDeleteDeserialize,\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\":\n _privateEndpointConnectionsCreateDeserialize,\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\":\n _privateEndpointConnectionsDeleteDeserialize,\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): ((result: unknown) => Promise<unknown>) | undefined {\n const path = new URL(urlStr).pathname;\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: ((result: unknown) => Promise<unknown>) | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value as (result: unknown) => Promise<unknown>;\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"]}
|
|
1
|
+
{"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAyClC,sCAoCC;AA1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ACrD,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 { HealthDataAIServicesClient } from \"./healthDataAIServicesClient.js\";\nimport {\n _deidServicesCreateDeserialize,\n _deidServicesUpdateDeserialize,\n _deidServicesDeleteDeserialize,\n} from \"./api/deidServices/index.js\";\nimport {\n _privateEndpointConnectionsCreateDeserialize,\n _privateEndpointConnectionsDeleteDeserialize,\n} from \"./api/privateEndpointConnections/index.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport {\n PollerLike,\n OperationState,\n deserializeState,\n ResourceLocationConfig,\n} from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: HealthDataAIServicesClient,\n serializedState: string,\n sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>,\n options?: RestorePollerOptions<TResult>,\n): PollerLike<OperationState<TResult>, TResult> {\n const pollerConfig = deserializeState(serializedState).config;\n const { initialRequestUrl, requestMethod, metadata } = pollerConfig;\n if (!initialRequestUrl || !requestMethod) {\n throw new Error(\n `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`,\n );\n }\n const resourceLocationConfig = metadata?.[\"resourceLocationConfig\"] as\n | ResourceLocationConfig\n | undefined;\n const { deserializer, expectedStatuses = [] } =\n getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};\n const deserializeHelper = options?.processResponseBody ?? deserializer;\n if (!deserializeHelper) {\n throw new Error(\n `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`,\n );\n }\n return getLongRunningPoller(\n (client as any)[\"_client\"] ?? client,\n deserializeHelper as (result: TResponse) => Promise<TResult>,\n expectedStatuses,\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n resourceLocationConfig,\n restoreFrom: serializedState,\n initialRequestUrl,\n },\n );\n}\n\ninterface DeserializationHelper {\n deserializer: Function;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}\":\n {\n deserializer: _deidServicesCreateDeserialize,\n expectedStatuses: [\"200\", \"201\"],\n },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}\":\n {\n deserializer: _deidServicesUpdateDeserialize,\n expectedStatuses: [\"200\", \"202\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}\":\n {\n deserializer: _deidServicesDeleteDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\":\n {\n deserializer: _privateEndpointConnectionsCreateDeserialize,\n expectedStatuses: [\"200\", \"201\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\":\n {\n deserializer: _privateEndpointConnectionsDeleteDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): DeserializationHelper | undefined {\n const path = new URL(urlStr).pathname;\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: DeserializationHelper | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
1
2
|
/**
|
|
2
3
|
* Options for the byPage method
|
|
3
4
|
*/
|
|
@@ -64,4 +65,8 @@ export interface BuildPagedAsyncIteratorOptions {
|
|
|
64
65
|
itemName?: string;
|
|
65
66
|
nextLinkName?: string;
|
|
66
67
|
}
|
|
67
|
-
|
|
68
|
+
/**
|
|
69
|
+
* Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
|
|
70
|
+
*/
|
|
71
|
+
export declare function buildPagedAsyncIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings, TResponse extends PathUncheckedResponse = PathUncheckedResponse>(client: Client, getInitialResponse: () => PromiseLike<TResponse>, processResponseBody: (result: TResponse) => PromiseLike<unknown>, expectedStatuses: string[], options?: BuildPagedAsyncIteratorOptions): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
|
|
72
|
+
//# sourceMappingURL=pagingHelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelpers.d.ts","sourceRoot":"","sources":["../../../src/static-helpers/pagingHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAmB,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGzF;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,CAAC,QAAQ,EAAE,KAAK,GA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;CACvB;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EACR,KAAK,GAAG,QAAQ,EAAE,EAClB,aAAa,SAAS,YAAY,GAAG,YAAY,EACjD,SAAS,SAAS,qBAAqB,GAAG,qBAAqB,EAE/D,MAAM,EAAE,MAAM,EACd,kBAAkB,EAAE,MAAM,WAAW,CAAC,SAAS,CAAC,EAChD,mBAAmB,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,WAAW,CAAC,OAAO,CAAC,EAChE,gBAAgB,EAAE,MAAM,EAAE,EAC1B,OAAO,GAAE,8BAAmC,GAC3C,0BAA0B,CAAC,QAAQ,EAAE,KAAK,EAAE,aAAa,CAAC,CA0B5D"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.buildPagedAsyncIterator = buildPagedAsyncIterator;
|
|
6
6
|
const tslib_1 = require("tslib");
|
|
7
7
|
const core_client_1 = require("@azure-rest/core-client");
|
|
8
8
|
const core_rest_pipeline_1 = require("@azure/core-rest-pipeline");
|
|
9
|
-
const index_js_1 = require("../rest/index.js");
|
|
10
9
|
/**
|
|
11
10
|
* Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
|
|
12
11
|
*/
|
|
13
|
-
function buildPagedAsyncIterator(client, getInitialResponse, processResponseBody, options = {}) {
|
|
12
|
+
function buildPagedAsyncIterator(client, getInitialResponse, processResponseBody, expectedStatuses, options = {}) {
|
|
14
13
|
var _a, _b;
|
|
15
14
|
const itemName = (_a = options.itemName) !== null && _a !== void 0 ? _a : "value";
|
|
16
15
|
const nextLinkName = (_b = options.nextLinkName) !== null && _b !== void 0 ? _b : "nextLink";
|
|
@@ -19,7 +18,7 @@ function buildPagedAsyncIterator(client, getInitialResponse, processResponseBody
|
|
|
19
18
|
const result = pageLink === undefined
|
|
20
19
|
? await getInitialResponse()
|
|
21
20
|
: await client.pathUnchecked(pageLink).get();
|
|
22
|
-
checkPagingRequest(result);
|
|
21
|
+
checkPagingRequest(result, expectedStatuses);
|
|
23
22
|
const results = await processResponseBody(result);
|
|
24
23
|
const nextLink = getNextLink(results, nextLinkName);
|
|
25
24
|
const values = getElements(results, itemName);
|
|
@@ -133,8 +132,8 @@ function getElements(body, itemName) {
|
|
|
133
132
|
/**
|
|
134
133
|
* Checks if a request failed
|
|
135
134
|
*/
|
|
136
|
-
function checkPagingRequest(response) {
|
|
137
|
-
if (
|
|
135
|
+
function checkPagingRequest(response, expectedStatuses) {
|
|
136
|
+
if (!expectedStatuses.includes(response.status)) {
|
|
138
137
|
throw (0, core_client_1.createRestError)(`Pagination failed with unexpected statusCode ${response.status}`, response);
|
|
139
138
|
}
|
|
140
139
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/pagingHelpers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAqFlC,0DAqCC;;AAxHD,yDAAyF;AACzF,kEAAsD;AA+EtD;;GAEG;AACH,SAAgB,uBAAuB,CAMrC,MAAc,EACd,kBAAgD,EAChD,mBAAgE,EAChE,gBAA0B,EAC1B,UAA0C,EAAE;;IAE5C,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC;IAC7C,MAAM,YAAY,GAAG,MAAA,OAAO,CAAC,YAAY,mCAAI,UAAU,CAAC;IACxD,MAAM,WAAW,GAAgD;QAC/D,OAAO,EAAE,KAAK,EAAE,QAAiB,EAAE,EAAE;YACnC,MAAM,MAAM,GACV,QAAQ,KAAK,SAAS;gBACpB,CAAC,CAAC,MAAM,kBAAkB,EAAE;gBAC5B,CAAC,CAAC,MAAM,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,GA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AAS,CAAC;IACnB,CAAC;IAED,MAAM,QAAQ,GAAI,IAAgC,CAAC,YAAY,CAAC,CAAC;IAEjE,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,OAAO,QAAQ,KAAK,WAAW,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;QACzF,MAAM,IAAI,8BAAS,CACjB,iBAAiB,YAAY,oDAAoD,OAAO,QAAQ,EAAE,CACnG,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;QACtB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;GAEG;AACH,SAAS,WAAW,CAAc,IAAa,EAAE,QAAgB;IAC/D,MAAM,KAAK,GAAI,IAAgC,CAAC,QAAQ,CAAQ,CAAC;IACjE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,8BAAS,CACjB,kFAAkF,QAAQ,EAAE,CAC7F,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,CAAC;AACrB,CAAC;AAED;;GAEG;AACH,SAAS,kBAAkB,CAAC,QAA+B,EAAE,gBAA0B;IACrF,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAChD,MAAM,IAAA,6BAAe,EACnB,gDAAgD,QAAQ,CAAC,MAAM,EAAE,EACjE,QAAQ,CACT,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { Client, createRestError, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { RestError } from \"@azure/core-rest-pipeline\";\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\n/**\n * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator\n */\nexport function buildPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n>(\n client: Client,\n getInitialResponse: () => PromiseLike<TResponse>,\n processResponseBody: (result: TResponse) => PromiseLike<unknown>,\n expectedStatuses: string[],\n options: BuildPagedAsyncIteratorOptions = {},\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const itemName = options.itemName ?? \"value\";\n const nextLinkName = options.nextLinkName ?? \"nextLink\";\n const pagedResult: PagedResult<TElement, TPage, TPageSettings> = {\n getPage: async (pageLink?: string) => {\n const result =\n pageLink === undefined\n ? await getInitialResponse()\n : await client.pathUnchecked(pageLink).get();\n checkPagingRequest(result, expectedStatuses);\n const results = await processResponseBody(result as TResponse);\n const nextLink = getNextLink(results, nextLinkName);\n const values = getElements<TElement>(results, itemName) as TPage;\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n byPage: (settings?: TPageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken,\n });\n },\n };\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * returns an async iterator that iterates over results. It also has a `byPage`\n * method that returns pages of items at once.\n *\n * @param pagedResult - an object that specifies how to get pages.\n * @returns a paged async iterator that iterates over results.\n */\n\nfunction getPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const iter = getItemAsyncIterator<TElement, TPage, TPageSettings>(pagedResult);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage:\n pagedResult?.byPage ??\n ((settings?: TPageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken,\n });\n }),\n };\n}\n\nasync function* getItemAsyncIterator<TElement, TPage, TPageSettings extends PageSettings>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n): AsyncIterableIterator<TElement> {\n const pages = getPageAsyncIterator(pagedResult);\n for await (const page of pages) {\n yield* page as unknown as TElement[];\n }\n}\n\nasync function* getPageAsyncIterator<TElement, TPage, TPageSettings extends PageSettings>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n options: {\n pageLink?: string;\n } = {},\n): AsyncIterableIterator<ContinuablePage<TElement, TPage>> {\n const { pageLink } = options;\n let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink);\n if (!response) {\n return;\n }\n let result = response.page as ContinuablePage<TElement, TPage>;\n result.continuationToken = response.nextPageLink;\n yield result;\n while (response.nextPageLink) {\n response = await pagedResult.getPage(response.nextPageLink);\n if (!response) {\n return;\n }\n result = response.page as ContinuablePage<TElement, TPage>;\n result.continuationToken = response.nextPageLink;\n yield result;\n }\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\" && nextLink !== null) {\n throw new RestError(\n `Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`,\n );\n }\n\n if (nextLink === null) {\n return 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 if (!Array.isArray(value)) {\n throw new RestError(\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, expectedStatuses: string[]): void {\n if (!expectedStatuses.includes(response.status)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response,\n );\n }\n}\n"]}
|
|
@@ -26,5 +26,5 @@ export interface GetLongRunningPollerOptions<TResponse> {
|
|
|
26
26
|
*/
|
|
27
27
|
getInitialResponse?: () => PromiseLike<TResponse>;
|
|
28
28
|
}
|
|
29
|
-
export declare function getLongRunningPoller<TResponse extends PathUncheckedResponse, TResult = void>(client: Client, processResponseBody: (result: TResponse) => Promise<TResult>, options: GetLongRunningPollerOptions<TResponse>): PollerLike<OperationState<TResult>, TResult>;
|
|
29
|
+
export declare function getLongRunningPoller<TResponse extends PathUncheckedResponse, TResult = void>(client: Client, processResponseBody: (result: TResponse) => Promise<TResult>, expectedStatuses: string[], options: GetLongRunningPollerOptions<TResponse>): PollerLike<OperationState<TResult>, TResult>;
|
|
30
30
|
//# sourceMappingURL=pollingHelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pollingHelpers.d.ts","sourceRoot":"","sources":["../../../src/static-helpers/pollingHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,UAAU,EACV,cAAc,EACd,sBAAsB,EAIvB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAmB,MAAM,yBAAyB,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,WAAW,2BAA2B,CAAC,SAAS;IACpD,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B;;OAEG;IACH,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAChD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,WAAW,CAAC,SAAS,CAAC,CAAC;CACnD;AACD,wBAAgB,oBAAoB,CAAC,SAAS,SAAS,qBAAqB,EAAE,OAAO,GAAG,IAAI,EAC1F,MAAM,EAAE,MAAM,EACd,mBAAmB,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,OAAO,CAAC,OAAO,CAAC,EAC5D,gBAAgB,EAAE,MAAM,EAAE,EAC1B,OAAO,EAAE,2BAA2B,CAAC,SAAS,CAAC,GAC9C,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAyD9C"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.getLongRunningPoller = getLongRunningPoller;
|
|
6
6
|
const core_lro_1 = require("@azure/core-lro");
|
|
7
7
|
const core_client_1 = require("@azure-rest/core-client");
|
|
8
|
-
|
|
9
|
-
function getLongRunningPoller(client, processResponseBody, options) {
|
|
8
|
+
function getLongRunningPoller(client, processResponseBody, expectedStatuses, options) {
|
|
10
9
|
const { restoreFrom, getInitialResponse } = options;
|
|
11
10
|
if (!restoreFrom && !getInitialResponse) {
|
|
12
11
|
throw new Error("Either restoreFrom or getInitialResponse must be specified");
|
|
@@ -19,10 +18,10 @@ function getLongRunningPoller(client, processResponseBody, options) {
|
|
|
19
18
|
throw new Error("getInitialResponse is required when initializing a new poller");
|
|
20
19
|
}
|
|
21
20
|
initialResponse = await getInitialResponse();
|
|
22
|
-
return getLroResponse(initialResponse);
|
|
21
|
+
return getLroResponse(initialResponse, expectedStatuses);
|
|
23
22
|
},
|
|
24
23
|
sendPollRequest: async (path, pollOptions) => {
|
|
25
|
-
var _a, _b, _c, _d, _e, _f
|
|
24
|
+
var _a, _b, _c, _d, _e, _f;
|
|
26
25
|
// The poll request would both listen to the user provided abort signal and the poller's own abort signal
|
|
27
26
|
function abortListener() {
|
|
28
27
|
pollAbortController.abort();
|
|
@@ -50,11 +49,7 @@ function getLongRunningPoller(client, processResponseBody, options) {
|
|
|
50
49
|
(_e = options.abortSignal) === null || _e === void 0 ? void 0 : _e.removeEventListener("abort", abortListener);
|
|
51
50
|
(_f = pollOptions === null || pollOptions === void 0 ? void 0 : pollOptions.abortSignal) === null || _f === void 0 ? void 0 : _f.removeEventListener("abort", abortListener);
|
|
52
51
|
}
|
|
53
|
-
|
|
54
|
-
response.headers["x-ms-original-url"] =
|
|
55
|
-
(_g = options.initialRequestUrl) !== null && _g !== void 0 ? _g : initialResponse.request.url;
|
|
56
|
-
}
|
|
57
|
-
return getLroResponse(response);
|
|
52
|
+
return getLroResponse(response, expectedStatuses);
|
|
58
53
|
},
|
|
59
54
|
};
|
|
60
55
|
return (0, core_lro_1.createHttpPoller)(poller, {
|
|
@@ -72,8 +67,8 @@ function getLongRunningPoller(client, processResponseBody, options) {
|
|
|
72
67
|
* @param deserializeFn - deserialize function to convert Rest response to modular output
|
|
73
68
|
* @returns - An LRO response that the LRO implementation understands
|
|
74
69
|
*/
|
|
75
|
-
function getLroResponse(response) {
|
|
76
|
-
if (
|
|
70
|
+
function getLroResponse(response, expectedStatuses) {
|
|
71
|
+
if (!expectedStatuses.includes(response.status)) {
|
|
77
72
|
throw (0, core_client_1.createRestError)(response);
|
|
78
73
|
}
|
|
79
74
|
return {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pollingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/pollingHelpers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAuClC,oDA8DC;AAnGD,8CAOyB;AAEzB,yDAAyF;AA4BzF,SAAgB,oBAAoB,CAClC,MAAc,EACd,mBAA4D,EAC5D,gBAA0B,EAC1B,OAA+C;IAE/C,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC;IACpD,IAAI,CAAC,WAAW,IAAI,CAAC,kBAAkB,EAAE,CAAC;QACxC,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC;IAChF,CAAC;IACD,IAAI,eAAe,GAA0B,SAAS,CAAC;IACvD,MAAM,mBAAmB,GAAG,IAAI,eAAe,EAAE,CAAC;IAClD,MAAM,MAAM,GAAgC;QAC1C,kBAAkB,EAAE,KAAK,IAAI,EAAE;YAC7B,IAAI,CAAC,kBAAkB,EAAE,CAAC;gBACxB,MAAM,IAAI,KAAK,CAAC,+DAA+D,CAAC,CAAC;YACnF,CAAC;YACD,eAAe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a,CAAC,CAAC;YACxE,CAAC;YAED,OAAO,cAAc,CAAC,QAAqB,EAAE,gBAAgB,CAAC,CAAC;QACjE,CAAC;KACF,CAAC;IACF,OAAO,IAAA,2BAAgB,EAAC,MAAM,EAAE;QAC9B,YAAY,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB;QACzC,sBAAsB,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,sBAAsB;QACvD,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW;QACjC,aAAa,EAAE,CAAC,MAAe,EAAE,EAAE;YACjC,OAAO,mBAAmB,CAAC,MAAmB,CAAC,CAAC;QAClD,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AACD;;;;;GAKG;AACH,SAAS,cAAc,CACrB,QAAmB,EACnB,gBAA0B;IAE1B,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAChD,MAAM,IAAA,6BAAe,EAAC,QAAQ,CAAC,CAAC;IAClC,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 {\n PollerLike,\n OperationState,\n ResourceLocationConfig,\n RunningOperation,\n createHttpPoller,\n OperationResponse,\n} from \"@azure/core-lro\";\n\nimport { Client, PathUncheckedResponse, createRestError } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\n\nexport interface GetLongRunningPollerOptions<TResponse> {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /**\n * The potential location of the result of the LRO if specified by the LRO extension in the swagger.\n */\n resourceLocationConfig?: ResourceLocationConfig;\n /**\n * The original url of the LRO\n * Should not be null when restoreFrom is set\n */\n initialRequestUrl?: string;\n /**\n * A serialized poller which can be used to resume an existing paused Long-Running-Operation.\n */\n restoreFrom?: string;\n /**\n * The function to get the initial response\n */\n getInitialResponse?: () => PromiseLike<TResponse>;\n}\nexport function getLongRunningPoller<TResponse extends PathUncheckedResponse, TResult = void>(\n client: Client,\n processResponseBody: (result: TResponse) => Promise<TResult>,\n expectedStatuses: string[],\n options: GetLongRunningPollerOptions<TResponse>,\n): PollerLike<OperationState<TResult>, TResult> {\n const { restoreFrom, getInitialResponse } = options;\n if (!restoreFrom && !getInitialResponse) {\n throw new Error(\"Either restoreFrom or getInitialResponse must be specified\");\n }\n let initialResponse: TResponse | undefined = undefined;\n const pollAbortController = new AbortController();\n const poller: RunningOperation<TResponse> = {\n sendInitialRequest: async () => {\n if (!getInitialResponse) {\n throw new Error(\"getInitialResponse is required when initializing a new poller\");\n }\n initialResponse = await getInitialResponse();\n return getLroResponse(initialResponse, expectedStatuses);\n },\n sendPollRequest: async (\n path: string,\n pollOptions?: {\n abortSignal?: AbortSignalLike;\n },\n ) => {\n // The poll request would both listen to the user provided abort signal and the poller's own abort signal\n function abortListener(): void {\n pollAbortController.abort();\n }\n const abortSignal = pollAbortController.signal;\n if (options.abortSignal?.aborted) {\n pollAbortController.abort();\n } else if (pollOptions?.abortSignal?.aborted) {\n pollAbortController.abort();\n } else if (!abortSignal.aborted) {\n options.abortSignal?.addEventListener(\"abort\", abortListener, {\n once: true,\n });\n pollOptions?.abortSignal?.addEventListener(\"abort\", abortListener, {\n once: true,\n });\n }\n let response;\n try {\n response = await client.pathUnchecked(path).get({ abortSignal });\n } finally {\n options.abortSignal?.removeEventListener(\"abort\", abortListener);\n pollOptions?.abortSignal?.removeEventListener(\"abort\", abortListener);\n }\n\n return getLroResponse(response as TResponse, expectedStatuses);\n },\n };\n return createHttpPoller(poller, {\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: options?.resourceLocationConfig,\n restoreFrom: options?.restoreFrom,\n processResult: (result: unknown) => {\n return processResponseBody(result as TResponse);\n },\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 * @param deserializeFn - deserialize function to convert Rest response to modular output\n * @returns - An LRO response that the LRO implementation understands\n */\nfunction getLroResponse<TResponse extends PathUncheckedResponse>(\n response: TResponse,\n expectedStatuses: string[],\n): OperationResponse<TResponse> {\n if (!expectedStatuses.includes(response.status)) {\n throw createRestError(response);\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"]}
|
|
@@ -1,31 +1,30 @@
|
|
|
1
|
+
import { HealthDataAIServicesContext as Client, DeidServicesCreateOptionalParams, DeidServicesDeleteOptionalParams, DeidServicesGetOptionalParams, DeidServicesListByResourceGroupOptionalParams, DeidServicesListBySubscriptionOptionalParams, DeidServicesUpdateOptionalParams } from "../index.js";
|
|
2
|
+
import { DeidService, _DeidServiceListResult, DeidUpdate } from "../../models/models.js";
|
|
3
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
|
+
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
1
5
|
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { HealthDataAIServicesContext as Client, DeidServicesCreate200Response, DeidServicesCreate201Response, DeidServicesCreateDefaultResponse, DeidServicesCreateLogicalResponse, DeidServicesDelete202Response, DeidServicesDelete204Response, DeidServicesDeleteDefaultResponse, DeidServicesDeleteLogicalResponse, DeidServicesGet200Response, DeidServicesGetDefaultResponse, DeidServicesListByResourceGroup200Response, DeidServicesListByResourceGroupDefaultResponse, DeidServicesListBySubscription200Response, DeidServicesListBySubscriptionDefaultResponse, DeidServicesUpdate200Response, DeidServicesUpdate202Response, DeidServicesUpdateDefaultResponse, DeidServicesUpdateLogicalResponse } from "../../rest/index.js";
|
|
5
|
-
import { StreamableMethod } from "@azure-rest/core-client";
|
|
6
|
-
import { DeidServicesGetOptionalParams, DeidServicesListByResourceGroupOptionalParams, DeidServicesListBySubscriptionOptionalParams, DeidServicesCreateOptionalParams, DeidServicesUpdateOptionalParams, DeidServicesDeleteOptionalParams } from "../../models/options.js";
|
|
7
|
-
export declare function _deidServicesGetSend(context: Client, subscriptionId: string, resourceGroupName: string, deidServiceName: string, options?: DeidServicesGetOptionalParams): StreamableMethod<DeidServicesGet200Response | DeidServicesGetDefaultResponse>;
|
|
8
|
-
export declare function _deidServicesGetDeserialize(result: DeidServicesGet200Response | DeidServicesGetDefaultResponse): Promise<DeidService>;
|
|
6
|
+
export declare function _deidServicesGetSend(context: Client, subscriptionId: string, resourceGroupName: string, deidServiceName: string, options?: DeidServicesGetOptionalParams): StreamableMethod;
|
|
7
|
+
export declare function _deidServicesGetDeserialize(result: PathUncheckedResponse): Promise<DeidService>;
|
|
9
8
|
/** Get a DeidService */
|
|
10
9
|
export declare function deidServicesGet(context: Client, subscriptionId: string, resourceGroupName: string, deidServiceName: string, options?: DeidServicesGetOptionalParams): Promise<DeidService>;
|
|
11
|
-
export declare function _deidServicesListByResourceGroupSend(context: Client, subscriptionId: string, resourceGroupName: string, options?: DeidServicesListByResourceGroupOptionalParams): StreamableMethod
|
|
12
|
-
export declare function _deidServicesListByResourceGroupDeserialize(result:
|
|
10
|
+
export declare function _deidServicesListByResourceGroupSend(context: Client, subscriptionId: string, resourceGroupName: string, options?: DeidServicesListByResourceGroupOptionalParams): StreamableMethod;
|
|
11
|
+
export declare function _deidServicesListByResourceGroupDeserialize(result: PathUncheckedResponse): Promise<_DeidServiceListResult>;
|
|
13
12
|
/** List DeidService resources by resource group */
|
|
14
13
|
export declare function deidServicesListByResourceGroup(context: Client, subscriptionId: string, resourceGroupName: string, options?: DeidServicesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<DeidService>;
|
|
15
|
-
export declare function _deidServicesListBySubscriptionSend(context: Client, subscriptionId: string, options?: DeidServicesListBySubscriptionOptionalParams): StreamableMethod
|
|
16
|
-
export declare function _deidServicesListBySubscriptionDeserialize(result:
|
|
14
|
+
export declare function _deidServicesListBySubscriptionSend(context: Client, subscriptionId: string, options?: DeidServicesListBySubscriptionOptionalParams): StreamableMethod;
|
|
15
|
+
export declare function _deidServicesListBySubscriptionDeserialize(result: PathUncheckedResponse): Promise<_DeidServiceListResult>;
|
|
17
16
|
/** List DeidService resources by subscription ID */
|
|
18
17
|
export declare function deidServicesListBySubscription(context: Client, subscriptionId: string, options?: DeidServicesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<DeidService>;
|
|
19
|
-
export declare function _deidServicesCreateSend(context: Client, subscriptionId: string, resourceGroupName: string, deidServiceName: string, resource: DeidService, options?: DeidServicesCreateOptionalParams): StreamableMethod
|
|
20
|
-
export declare function _deidServicesCreateDeserialize(result:
|
|
18
|
+
export declare function _deidServicesCreateSend(context: Client, subscriptionId: string, resourceGroupName: string, deidServiceName: string, resource: DeidService, options?: DeidServicesCreateOptionalParams): StreamableMethod;
|
|
19
|
+
export declare function _deidServicesCreateDeserialize(result: PathUncheckedResponse): Promise<DeidService>;
|
|
21
20
|
/** Create a DeidService */
|
|
22
21
|
export declare function deidServicesCreate(context: Client, subscriptionId: string, resourceGroupName: string, deidServiceName: string, resource: DeidService, options?: DeidServicesCreateOptionalParams): PollerLike<OperationState<DeidService>, DeidService>;
|
|
23
|
-
export declare function _deidServicesUpdateSend(context: Client, subscriptionId: string, resourceGroupName: string, deidServiceName: string, properties: DeidUpdate, options?: DeidServicesUpdateOptionalParams): StreamableMethod
|
|
24
|
-
export declare function _deidServicesUpdateDeserialize(result:
|
|
22
|
+
export declare function _deidServicesUpdateSend(context: Client, subscriptionId: string, resourceGroupName: string, deidServiceName: string, properties: DeidUpdate, options?: DeidServicesUpdateOptionalParams): StreamableMethod;
|
|
23
|
+
export declare function _deidServicesUpdateDeserialize(result: PathUncheckedResponse): Promise<DeidService>;
|
|
25
24
|
/** Update a DeidService */
|
|
26
25
|
export declare function deidServicesUpdate(context: Client, subscriptionId: string, resourceGroupName: string, deidServiceName: string, properties: DeidUpdate, options?: DeidServicesUpdateOptionalParams): PollerLike<OperationState<DeidService>, DeidService>;
|
|
27
|
-
export declare function _deidServicesDeleteSend(context: Client, subscriptionId: string, resourceGroupName: string, deidServiceName: string, options?: DeidServicesDeleteOptionalParams): StreamableMethod
|
|
28
|
-
export declare function _deidServicesDeleteDeserialize(result:
|
|
26
|
+
export declare function _deidServicesDeleteSend(context: Client, subscriptionId: string, resourceGroupName: string, deidServiceName: string, options?: DeidServicesDeleteOptionalParams): StreamableMethod;
|
|
27
|
+
export declare function _deidServicesDeleteDeserialize(result: PathUncheckedResponse): Promise<void>;
|
|
29
28
|
/** Delete a DeidService */
|
|
30
29
|
export declare function deidServicesDelete(context: Client, subscriptionId: string, resourceGroupName: string, deidServiceName: string, options?: DeidServicesDeleteOptionalParams): PollerLike<OperationState<void>, void>;
|
|
31
30
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/deidServices/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/deidServices/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,2BAA2B,IAAI,MAAM,EACrC,gCAAgC,EAChC,gCAAgC,EAChC,6BAA6B,EAC7B,6CAA6C,EAC7C,4CAA4C,EAC5C,gCAAgC,EACjC,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,WAAW,EAGX,sBAAsB,EAEtB,UAAU,EAEX,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EAGtB,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