@azure/arm-msi 2.2.0 → 2.3.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -10
- package/dist/browser/api/federatedIdentityCredentials/index.d.ts +3 -0
- package/dist/browser/api/federatedIdentityCredentials/index.js +4 -0
- package/dist/browser/api/federatedIdentityCredentials/index.js.map +1 -0
- package/dist/browser/api/federatedIdentityCredentials/operations.d.ts +22 -0
- package/dist/browser/api/federatedIdentityCredentials/operations.js +126 -0
- package/dist/browser/api/federatedIdentityCredentials/operations.js.map +1 -0
- package/dist/browser/api/federatedIdentityCredentials/options.d.ts +18 -0
- package/dist/browser/api/federatedIdentityCredentials/options.js +4 -0
- package/dist/browser/api/federatedIdentityCredentials/options.js.map +1 -0
- package/dist/browser/api/index.d.ts +3 -0
- package/dist/browser/api/index.js +4 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/managedServiceIdentityContext.d.ts +22 -0
- package/dist/browser/api/managedServiceIdentityContext.js +26 -0
- package/dist/browser/api/managedServiceIdentityContext.js.map +1 -0
- package/dist/browser/api/operations/index.d.ts +3 -0
- package/dist/browser/api/operations/index.js +4 -0
- package/dist/browser/api/operations/index.js.map +1 -0
- package/dist/browser/api/operations/operations.d.ts +10 -0
- package/dist/browser/api/operations/operations.js +35 -0
- package/dist/browser/api/operations/operations.js.map +1 -0
- package/dist/browser/api/operations/options.d.ts +5 -0
- package/dist/browser/api/operations/options.js +4 -0
- package/dist/browser/api/operations/options.js.map +1 -0
- package/dist/browser/api/systemAssignedIdentities/index.d.ts +3 -0
- package/dist/browser/api/systemAssignedIdentities/index.js +4 -0
- package/dist/browser/api/systemAssignedIdentities/index.js.map +1 -0
- package/dist/browser/api/systemAssignedIdentities/operations.d.ts +9 -0
- package/dist/browser/api/systemAssignedIdentities/operations.js +32 -0
- package/dist/browser/api/systemAssignedIdentities/operations.js.map +1 -0
- package/dist/browser/api/systemAssignedIdentities/options.d.ts +5 -0
- package/dist/browser/api/systemAssignedIdentities/options.js +4 -0
- package/dist/browser/api/systemAssignedIdentities/options.js.map +1 -0
- package/dist/browser/api/userAssignedIdentities/index.d.ts +3 -0
- package/dist/browser/api/userAssignedIdentities/index.js +4 -0
- package/dist/browser/api/userAssignedIdentities/index.js.map +1 -0
- package/dist/browser/api/userAssignedIdentities/operations.d.ts +30 -0
- package/dist/browser/api/userAssignedIdentities/operations.js +179 -0
- package/dist/browser/api/userAssignedIdentities/operations.js.map +1 -0
- package/dist/browser/api/userAssignedIdentities/options.d.ts +20 -0
- package/dist/browser/api/userAssignedIdentities/options.js +4 -0
- package/dist/browser/api/userAssignedIdentities/options.js.map +1 -0
- package/dist/browser/classic/federatedIdentityCredentials/index.d.ts +17 -0
- package/dist/browser/classic/federatedIdentityCredentials/index.js +17 -0
- package/dist/browser/classic/federatedIdentityCredentials/index.js.map +1 -0
- package/dist/browser/classic/index.d.ts +5 -0
- package/dist/browser/classic/index.js +4 -0
- package/dist/browser/classic/index.js.map +1 -0
- package/dist/browser/classic/operations/index.d.ts +11 -0
- package/dist/browser/classic/operations/index.js +14 -0
- package/dist/browser/classic/operations/index.js.map +1 -0
- package/dist/browser/classic/systemAssignedIdentities/index.d.ts +10 -0
- package/dist/browser/classic/systemAssignedIdentities/index.js +14 -0
- package/dist/browser/classic/systemAssignedIdentities/index.js.map +1 -0
- package/dist/browser/classic/userAssignedIdentities/index.d.ts +21 -0
- package/dist/browser/classic/userAssignedIdentities/index.js +19 -0
- package/dist/browser/classic/userAssignedIdentities/index.js.map +1 -0
- package/dist/browser/index.d.ts +15 -3
- package/dist/browser/index.js +6 -11
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.js +5 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/managedServiceIdentityClient.d.ts +22 -22
- package/dist/browser/managedServiceIdentityClient.js +32 -97
- package/dist/browser/managedServiceIdentityClient.js.map +1 -1
- package/dist/browser/models/index.d.ts +2 -317
- package/dist/browser/models/index.js +3 -27
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +310 -0
- package/dist/browser/models/models.js +401 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/browser/static-helpers/pagingHelpers.js +143 -0
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
- package/dist/browser/static-helpers/serialization/check-prop-undefined.js +17 -0
- package/dist/browser/static-helpers/serialization/check-prop-undefined.js.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/browser/static-helpers/urlTemplate.js +200 -0
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/api/federatedIdentityCredentials/index.d.ts +3 -0
- package/dist/commonjs/api/federatedIdentityCredentials/index.js +34 -0
- package/dist/commonjs/api/federatedIdentityCredentials/index.js.map +7 -0
- package/dist/commonjs/api/federatedIdentityCredentials/operations.d.ts +22 -0
- package/dist/commonjs/api/federatedIdentityCredentials/operations.js +209 -0
- package/dist/commonjs/api/federatedIdentityCredentials/operations.js.map +7 -0
- package/dist/commonjs/api/federatedIdentityCredentials/options.d.ts +18 -0
- package/dist/commonjs/api/federatedIdentityCredentials/options.js +16 -0
- package/dist/commonjs/api/federatedIdentityCredentials/options.js.map +7 -0
- package/dist/commonjs/api/index.d.ts +3 -0
- package/dist/commonjs/api/index.js +28 -0
- package/dist/commonjs/api/index.js.map +7 -0
- package/dist/commonjs/api/managedServiceIdentityContext.d.ts +22 -0
- package/dist/commonjs/api/managedServiceIdentityContext.js +47 -0
- package/dist/commonjs/api/managedServiceIdentityContext.js.map +7 -0
- package/dist/commonjs/api/operations/index.d.ts +3 -0
- package/dist/commonjs/api/operations/index.js +28 -0
- package/dist/commonjs/api/operations/index.js.map +7 -0
- package/dist/commonjs/api/operations/operations.d.ts +10 -0
- package/dist/commonjs/api/operations/operations.js +72 -0
- package/dist/commonjs/api/operations/operations.js.map +7 -0
- package/dist/commonjs/api/operations/options.d.ts +5 -0
- package/dist/commonjs/api/operations/options.js +16 -0
- package/dist/commonjs/api/operations/options.js.map +7 -0
- package/dist/commonjs/api/systemAssignedIdentities/index.d.ts +3 -0
- package/dist/commonjs/api/systemAssignedIdentities/index.js +28 -0
- package/dist/commonjs/api/systemAssignedIdentities/index.js.map +7 -0
- package/dist/commonjs/api/systemAssignedIdentities/operations.d.ts +9 -0
- package/dist/commonjs/api/systemAssignedIdentities/operations.js +63 -0
- package/dist/commonjs/api/systemAssignedIdentities/operations.js.map +7 -0
- package/dist/commonjs/api/systemAssignedIdentities/options.d.ts +5 -0
- package/dist/commonjs/api/systemAssignedIdentities/options.js +16 -0
- package/dist/commonjs/api/systemAssignedIdentities/options.js.map +7 -0
- package/dist/commonjs/api/userAssignedIdentities/index.d.ts +3 -0
- package/dist/commonjs/api/userAssignedIdentities/index.js +38 -0
- package/dist/commonjs/api/userAssignedIdentities/index.js.map +7 -0
- package/dist/commonjs/api/userAssignedIdentities/operations.d.ts +30 -0
- package/dist/commonjs/api/userAssignedIdentities/operations.js +273 -0
- package/dist/commonjs/api/userAssignedIdentities/operations.js.map +7 -0
- package/dist/commonjs/api/userAssignedIdentities/options.d.ts +20 -0
- package/dist/commonjs/api/userAssignedIdentities/options.js +16 -0
- package/dist/commonjs/api/userAssignedIdentities/options.js.map +7 -0
- package/dist/commonjs/classic/federatedIdentityCredentials/index.d.ts +17 -0
- package/dist/commonjs/classic/federatedIdentityCredentials/index.js +60 -0
- package/dist/commonjs/classic/federatedIdentityCredentials/index.js.map +7 -0
- package/dist/commonjs/classic/index.d.ts +5 -0
- package/dist/commonjs/classic/index.js +16 -0
- package/dist/commonjs/classic/index.js.map +7 -0
- package/dist/commonjs/classic/operations/index.d.ts +11 -0
- package/dist/commonjs/classic/operations/index.js +38 -0
- package/dist/commonjs/classic/operations/index.js.map +7 -0
- package/dist/commonjs/classic/systemAssignedIdentities/index.d.ts +10 -0
- package/dist/commonjs/classic/systemAssignedIdentities/index.js +38 -0
- package/dist/commonjs/classic/systemAssignedIdentities/index.js.map +7 -0
- package/dist/commonjs/classic/userAssignedIdentities/index.d.ts +21 -0
- package/dist/commonjs/classic/userAssignedIdentities/index.js +43 -0
- package/dist/commonjs/classic/userAssignedIdentities/index.js.map +7 -0
- package/dist/commonjs/index.d.ts +15 -3
- package/dist/commonjs/index.js +43 -19
- package/dist/commonjs/index.js.map +7 -1
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.js +29 -0
- package/dist/commonjs/logger.js.map +7 -0
- package/dist/commonjs/managedServiceIdentityClient.d.ts +22 -22
- package/dist/commonjs/managedServiceIdentityClient.js +64 -113
- package/dist/commonjs/managedServiceIdentityClient.js.map +7 -1
- package/dist/commonjs/models/index.d.ts +2 -317
- package/dist/commonjs/models/index.js +32 -31
- package/dist/commonjs/models/index.js.map +7 -1
- package/dist/commonjs/models/models.d.ts +310 -0
- package/dist/commonjs/models/models.js +442 -0
- package/dist/commonjs/models/models.js.map +7 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js +52 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +143 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
- package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js +35 -0
- package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js.map +7 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +197 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +7 -0
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/api/federatedIdentityCredentials/index.d.ts +3 -0
- package/dist/esm/api/federatedIdentityCredentials/index.js +4 -0
- package/dist/esm/api/federatedIdentityCredentials/index.js.map +1 -0
- package/dist/esm/api/federatedIdentityCredentials/operations.d.ts +22 -0
- package/dist/esm/api/federatedIdentityCredentials/operations.js +126 -0
- package/dist/esm/api/federatedIdentityCredentials/operations.js.map +1 -0
- package/dist/esm/api/federatedIdentityCredentials/options.d.ts +18 -0
- package/dist/esm/api/federatedIdentityCredentials/options.js +4 -0
- package/dist/esm/api/federatedIdentityCredentials/options.js.map +1 -0
- package/dist/esm/api/index.d.ts +3 -0
- package/dist/esm/api/index.js +4 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/managedServiceIdentityContext.d.ts +22 -0
- package/dist/esm/api/managedServiceIdentityContext.js +26 -0
- package/dist/esm/api/managedServiceIdentityContext.js.map +1 -0
- package/dist/esm/api/operations/index.d.ts +3 -0
- package/dist/esm/api/operations/index.js +4 -0
- package/dist/esm/api/operations/index.js.map +1 -0
- package/dist/esm/api/operations/operations.d.ts +10 -0
- package/dist/esm/api/operations/operations.js +35 -0
- package/dist/esm/api/operations/operations.js.map +1 -0
- package/dist/esm/api/operations/options.d.ts +5 -0
- package/dist/esm/api/operations/options.js +4 -0
- package/dist/esm/api/operations/options.js.map +1 -0
- package/dist/esm/api/systemAssignedIdentities/index.d.ts +3 -0
- package/dist/esm/api/systemAssignedIdentities/index.js +4 -0
- package/dist/esm/api/systemAssignedIdentities/index.js.map +1 -0
- package/dist/esm/api/systemAssignedIdentities/operations.d.ts +9 -0
- package/dist/esm/api/systemAssignedIdentities/operations.js +32 -0
- package/dist/esm/api/systemAssignedIdentities/operations.js.map +1 -0
- package/dist/esm/api/systemAssignedIdentities/options.d.ts +5 -0
- package/dist/esm/api/systemAssignedIdentities/options.js +4 -0
- package/dist/esm/api/systemAssignedIdentities/options.js.map +1 -0
- package/dist/esm/api/userAssignedIdentities/index.d.ts +3 -0
- package/dist/esm/api/userAssignedIdentities/index.js +4 -0
- package/dist/esm/api/userAssignedIdentities/index.js.map +1 -0
- package/dist/esm/api/userAssignedIdentities/operations.d.ts +30 -0
- package/dist/esm/api/userAssignedIdentities/operations.js +179 -0
- package/dist/esm/api/userAssignedIdentities/operations.js.map +1 -0
- package/dist/esm/api/userAssignedIdentities/options.d.ts +20 -0
- package/dist/esm/api/userAssignedIdentities/options.js +4 -0
- package/dist/esm/api/userAssignedIdentities/options.js.map +1 -0
- package/dist/esm/classic/federatedIdentityCredentials/index.d.ts +17 -0
- package/dist/esm/classic/federatedIdentityCredentials/index.js +17 -0
- package/dist/esm/classic/federatedIdentityCredentials/index.js.map +1 -0
- package/dist/esm/classic/index.d.ts +5 -0
- package/dist/esm/classic/index.js +4 -0
- package/dist/esm/classic/index.js.map +1 -0
- package/dist/esm/classic/operations/index.d.ts +11 -0
- package/dist/esm/classic/operations/index.js +14 -0
- package/dist/esm/classic/operations/index.js.map +1 -0
- package/dist/esm/classic/systemAssignedIdentities/index.d.ts +10 -0
- package/dist/esm/classic/systemAssignedIdentities/index.js +14 -0
- package/dist/esm/classic/systemAssignedIdentities/index.js.map +1 -0
- package/dist/esm/classic/userAssignedIdentities/index.d.ts +21 -0
- package/dist/esm/classic/userAssignedIdentities/index.js +19 -0
- package/dist/esm/classic/userAssignedIdentities/index.js.map +1 -0
- package/dist/esm/index.d.ts +15 -3
- package/dist/esm/index.js +6 -11
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/managedServiceIdentityClient.d.ts +22 -22
- package/dist/esm/managedServiceIdentityClient.js +32 -97
- package/dist/esm/managedServiceIdentityClient.js.map +1 -1
- package/dist/esm/models/index.d.ts +2 -317
- package/dist/esm/models/index.js +3 -27
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +310 -0
- package/dist/esm/models/models.js +401 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/esm/static-helpers/pagingHelpers.js +143 -0
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
- package/dist/esm/static-helpers/serialization/check-prop-undefined.js +17 -0
- package/dist/esm/static-helpers/serialization/check-prop-undefined.js.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/esm/static-helpers/urlTemplate.js +200 -0
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
- package/package.json +176 -97
- package/CHANGELOG.md +0 -50
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/browser/managedServiceIdentityClient.d.ts.map +0 -1
- package/dist/browser/models/index.d.ts.map +0 -1
- package/dist/browser/models/mappers.d.ts +0 -17
- package/dist/browser/models/mappers.d.ts.map +0 -1
- package/dist/browser/models/mappers.js +0 -472
- package/dist/browser/models/mappers.js.map +0 -1
- package/dist/browser/models/parameters.d.ts +0 -18
- package/dist/browser/models/parameters.d.ts.map +0 -1
- package/dist/browser/models/parameters.js +0 -165
- package/dist/browser/models/parameters.js.map +0 -1
- package/dist/browser/operations/federatedIdentityCredentials.d.ts +0 -66
- package/dist/browser/operations/federatedIdentityCredentials.d.ts.map +0 -1
- package/dist/browser/operations/federatedIdentityCredentials.js +0 -257
- package/dist/browser/operations/federatedIdentityCredentials.js.map +0 -1
- package/dist/browser/operations/index.d.ts +0 -5
- package/dist/browser/operations/index.d.ts.map +0 -1
- package/dist/browser/operations/index.js +0 -12
- package/dist/browser/operations/index.js.map +0 -1
- package/dist/browser/operations/operations.d.ts +0 -32
- package/dist/browser/operations/operations.d.ts.map +0 -1
- package/dist/browser/operations/operations.js +0 -116
- package/dist/browser/operations/operations.js.map +0 -1
- package/dist/browser/operations/systemAssignedIdentities.d.ts +0 -20
- package/dist/browser/operations/systemAssignedIdentities.d.ts.map +0 -1
- package/dist/browser/operations/systemAssignedIdentities.js +0 -49
- package/dist/browser/operations/systemAssignedIdentities.js.map +0 -1
- package/dist/browser/operations/userAssignedIdentities.d.ts +0 -83
- package/dist/browser/operations/userAssignedIdentities.d.ts.map +0 -1
- package/dist/browser/operations/userAssignedIdentities.js +0 -350
- package/dist/browser/operations/userAssignedIdentities.js.map +0 -1
- package/dist/browser/operationsInterfaces/federatedIdentityCredentials.d.ts +0 -41
- package/dist/browser/operationsInterfaces/federatedIdentityCredentials.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/federatedIdentityCredentials.js +0 -9
- package/dist/browser/operationsInterfaces/federatedIdentityCredentials.js.map +0 -1
- package/dist/browser/operationsInterfaces/index.d.ts +0 -5
- package/dist/browser/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/index.js +0 -12
- package/dist/browser/operationsInterfaces/index.js.map +0 -1
- package/dist/browser/operationsInterfaces/operations.d.ts +0 -11
- package/dist/browser/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/operations.js +0 -9
- package/dist/browser/operationsInterfaces/operations.js.map +0 -1
- package/dist/browser/operationsInterfaces/systemAssignedIdentities.d.ts +0 -12
- package/dist/browser/operationsInterfaces/systemAssignedIdentities.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/systemAssignedIdentities.js +0 -9
- package/dist/browser/operationsInterfaces/systemAssignedIdentities.js.map +0 -1
- package/dist/browser/operationsInterfaces/userAssignedIdentities.d.ts +0 -47
- package/dist/browser/operationsInterfaces/userAssignedIdentities.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/userAssignedIdentities.js +0 -9
- package/dist/browser/operationsInterfaces/userAssignedIdentities.js.map +0 -1
- package/dist/browser/pagingHelper.d.ts +0 -13
- package/dist/browser/pagingHelper.d.ts.map +0 -1
- package/dist/browser/pagingHelper.js +0 -30
- package/dist/browser/pagingHelper.js.map +0 -1
- package/dist/commonjs/index.d.ts.map +0 -1
- package/dist/commonjs/managedServiceIdentityClient.d.ts.map +0 -1
- package/dist/commonjs/models/index.d.ts.map +0 -1
- package/dist/commonjs/models/mappers.d.ts +0 -17
- package/dist/commonjs/models/mappers.d.ts.map +0 -1
- package/dist/commonjs/models/mappers.js +0 -475
- package/dist/commonjs/models/mappers.js.map +0 -1
- package/dist/commonjs/models/parameters.d.ts +0 -18
- package/dist/commonjs/models/parameters.d.ts.map +0 -1
- package/dist/commonjs/models/parameters.js +0 -168
- package/dist/commonjs/models/parameters.js.map +0 -1
- package/dist/commonjs/operations/federatedIdentityCredentials.d.ts +0 -66
- package/dist/commonjs/operations/federatedIdentityCredentials.d.ts.map +0 -1
- package/dist/commonjs/operations/federatedIdentityCredentials.js +0 -262
- package/dist/commonjs/operations/federatedIdentityCredentials.js.map +0 -1
- package/dist/commonjs/operations/index.d.ts +0 -5
- package/dist/commonjs/operations/index.d.ts.map +0 -1
- package/dist/commonjs/operations/index.js +0 -15
- package/dist/commonjs/operations/index.js.map +0 -1
- package/dist/commonjs/operations/operations.d.ts +0 -32
- package/dist/commonjs/operations/operations.d.ts.map +0 -1
- package/dist/commonjs/operations/operations.js +0 -121
- package/dist/commonjs/operations/operations.js.map +0 -1
- package/dist/commonjs/operations/systemAssignedIdentities.d.ts +0 -20
- package/dist/commonjs/operations/systemAssignedIdentities.d.ts.map +0 -1
- package/dist/commonjs/operations/systemAssignedIdentities.js +0 -54
- package/dist/commonjs/operations/systemAssignedIdentities.js.map +0 -1
- package/dist/commonjs/operations/userAssignedIdentities.d.ts +0 -83
- package/dist/commonjs/operations/userAssignedIdentities.d.ts.map +0 -1
- package/dist/commonjs/operations/userAssignedIdentities.js +0 -355
- package/dist/commonjs/operations/userAssignedIdentities.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/federatedIdentityCredentials.d.ts +0 -41
- package/dist/commonjs/operationsInterfaces/federatedIdentityCredentials.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/federatedIdentityCredentials.js +0 -10
- package/dist/commonjs/operationsInterfaces/federatedIdentityCredentials.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/index.d.ts +0 -5
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/index.js +0 -15
- package/dist/commonjs/operationsInterfaces/index.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/operations.d.ts +0 -11
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/operations.js +0 -10
- package/dist/commonjs/operationsInterfaces/operations.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/systemAssignedIdentities.d.ts +0 -12
- package/dist/commonjs/operationsInterfaces/systemAssignedIdentities.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/systemAssignedIdentities.js +0 -10
- package/dist/commonjs/operationsInterfaces/systemAssignedIdentities.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/userAssignedIdentities.d.ts +0 -47
- package/dist/commonjs/operationsInterfaces/userAssignedIdentities.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/userAssignedIdentities.js +0 -10
- package/dist/commonjs/operationsInterfaces/userAssignedIdentities.js.map +0 -1
- package/dist/commonjs/pagingHelper.d.ts +0 -13
- package/dist/commonjs/pagingHelper.d.ts.map +0 -1
- package/dist/commonjs/pagingHelper.js +0 -34
- package/dist/commonjs/pagingHelper.js.map +0 -1
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/managedServiceIdentityClient.d.ts.map +0 -1
- package/dist/esm/models/index.d.ts.map +0 -1
- package/dist/esm/models/mappers.d.ts +0 -17
- package/dist/esm/models/mappers.d.ts.map +0 -1
- package/dist/esm/models/mappers.js +0 -472
- package/dist/esm/models/mappers.js.map +0 -1
- package/dist/esm/models/parameters.d.ts +0 -18
- package/dist/esm/models/parameters.d.ts.map +0 -1
- package/dist/esm/models/parameters.js +0 -165
- package/dist/esm/models/parameters.js.map +0 -1
- package/dist/esm/operations/federatedIdentityCredentials.d.ts +0 -66
- package/dist/esm/operations/federatedIdentityCredentials.d.ts.map +0 -1
- package/dist/esm/operations/federatedIdentityCredentials.js +0 -257
- package/dist/esm/operations/federatedIdentityCredentials.js.map +0 -1
- package/dist/esm/operations/index.d.ts +0 -5
- package/dist/esm/operations/index.d.ts.map +0 -1
- package/dist/esm/operations/index.js +0 -12
- package/dist/esm/operations/index.js.map +0 -1
- package/dist/esm/operations/operations.d.ts +0 -32
- package/dist/esm/operations/operations.d.ts.map +0 -1
- package/dist/esm/operations/operations.js +0 -116
- package/dist/esm/operations/operations.js.map +0 -1
- package/dist/esm/operations/systemAssignedIdentities.d.ts +0 -20
- package/dist/esm/operations/systemAssignedIdentities.d.ts.map +0 -1
- package/dist/esm/operations/systemAssignedIdentities.js +0 -49
- package/dist/esm/operations/systemAssignedIdentities.js.map +0 -1
- package/dist/esm/operations/userAssignedIdentities.d.ts +0 -83
- package/dist/esm/operations/userAssignedIdentities.d.ts.map +0 -1
- package/dist/esm/operations/userAssignedIdentities.js +0 -350
- package/dist/esm/operations/userAssignedIdentities.js.map +0 -1
- package/dist/esm/operationsInterfaces/federatedIdentityCredentials.d.ts +0 -41
- package/dist/esm/operationsInterfaces/federatedIdentityCredentials.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/federatedIdentityCredentials.js +0 -9
- package/dist/esm/operationsInterfaces/federatedIdentityCredentials.js.map +0 -1
- package/dist/esm/operationsInterfaces/index.d.ts +0 -5
- package/dist/esm/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/index.js +0 -12
- package/dist/esm/operationsInterfaces/index.js.map +0 -1
- package/dist/esm/operationsInterfaces/operations.d.ts +0 -11
- package/dist/esm/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/operations.js +0 -9
- package/dist/esm/operationsInterfaces/operations.js.map +0 -1
- package/dist/esm/operationsInterfaces/systemAssignedIdentities.d.ts +0 -12
- package/dist/esm/operationsInterfaces/systemAssignedIdentities.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/systemAssignedIdentities.js +0 -9
- package/dist/esm/operationsInterfaces/systemAssignedIdentities.js.map +0 -1
- package/dist/esm/operationsInterfaces/userAssignedIdentities.d.ts +0 -47
- package/dist/esm/operationsInterfaces/userAssignedIdentities.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/userAssignedIdentities.js +0 -9
- package/dist/esm/operationsInterfaces/userAssignedIdentities.js.map +0 -1
- package/dist/esm/pagingHelper.d.ts +0 -13
- package/dist/esm/pagingHelper.d.ts.map +0 -1
- package/dist/esm/pagingHelper.js +0 -30
- package/dist/esm/pagingHelper.js.map +0 -1
- package/dist/react-native/index.d.ts +0 -5
- package/dist/react-native/index.d.ts.map +0 -1
- package/dist/react-native/index.js +0 -13
- package/dist/react-native/index.js.map +0 -1
- package/dist/react-native/managedServiceIdentityClient.d.ts +0 -24
- package/dist/react-native/managedServiceIdentityClient.d.ts.map +0 -1
- package/dist/react-native/managedServiceIdentityClient.js +0 -110
- package/dist/react-native/managedServiceIdentityClient.js.map +0 -1
- package/dist/react-native/models/index.d.ts +0 -318
- package/dist/react-native/models/index.d.ts.map +0 -1
- package/dist/react-native/models/index.js +0 -28
- package/dist/react-native/models/index.js.map +0 -1
- package/dist/react-native/models/mappers.d.ts +0 -17
- package/dist/react-native/models/mappers.d.ts.map +0 -1
- package/dist/react-native/models/mappers.js +0 -472
- package/dist/react-native/models/mappers.js.map +0 -1
- package/dist/react-native/models/parameters.d.ts +0 -18
- package/dist/react-native/models/parameters.d.ts.map +0 -1
- package/dist/react-native/models/parameters.js +0 -165
- package/dist/react-native/models/parameters.js.map +0 -1
- package/dist/react-native/operations/federatedIdentityCredentials.d.ts +0 -66
- package/dist/react-native/operations/federatedIdentityCredentials.d.ts.map +0 -1
- package/dist/react-native/operations/federatedIdentityCredentials.js +0 -257
- package/dist/react-native/operations/federatedIdentityCredentials.js.map +0 -1
- package/dist/react-native/operations/index.d.ts +0 -5
- package/dist/react-native/operations/index.d.ts.map +0 -1
- package/dist/react-native/operations/index.js +0 -12
- package/dist/react-native/operations/index.js.map +0 -1
- package/dist/react-native/operations/operations.d.ts +0 -32
- package/dist/react-native/operations/operations.d.ts.map +0 -1
- package/dist/react-native/operations/operations.js +0 -116
- package/dist/react-native/operations/operations.js.map +0 -1
- package/dist/react-native/operations/systemAssignedIdentities.d.ts +0 -20
- package/dist/react-native/operations/systemAssignedIdentities.d.ts.map +0 -1
- package/dist/react-native/operations/systemAssignedIdentities.js +0 -49
- package/dist/react-native/operations/systemAssignedIdentities.js.map +0 -1
- package/dist/react-native/operations/userAssignedIdentities.d.ts +0 -83
- package/dist/react-native/operations/userAssignedIdentities.d.ts.map +0 -1
- package/dist/react-native/operations/userAssignedIdentities.js +0 -350
- package/dist/react-native/operations/userAssignedIdentities.js.map +0 -1
- package/dist/react-native/operationsInterfaces/federatedIdentityCredentials.d.ts +0 -41
- package/dist/react-native/operationsInterfaces/federatedIdentityCredentials.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/federatedIdentityCredentials.js +0 -9
- package/dist/react-native/operationsInterfaces/federatedIdentityCredentials.js.map +0 -1
- package/dist/react-native/operationsInterfaces/index.d.ts +0 -5
- package/dist/react-native/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/index.js +0 -12
- package/dist/react-native/operationsInterfaces/index.js.map +0 -1
- package/dist/react-native/operationsInterfaces/operations.d.ts +0 -11
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/operations.js +0 -9
- package/dist/react-native/operationsInterfaces/operations.js.map +0 -1
- package/dist/react-native/operationsInterfaces/systemAssignedIdentities.d.ts +0 -12
- package/dist/react-native/operationsInterfaces/systemAssignedIdentities.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/systemAssignedIdentities.js +0 -9
- package/dist/react-native/operationsInterfaces/systemAssignedIdentities.js.map +0 -1
- package/dist/react-native/operationsInterfaces/userAssignedIdentities.d.ts +0 -47
- package/dist/react-native/operationsInterfaces/userAssignedIdentities.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/userAssignedIdentities.js +0 -9
- package/dist/react-native/operationsInterfaces/userAssignedIdentities.js.map +0 -1
- package/dist/react-native/package.json +0 -3
- package/dist/react-native/pagingHelper.d.ts +0 -13
- package/dist/react-native/pagingHelper.d.ts.map +0 -1
- package/dist/react-native/pagingHelper.js +0 -30
- package/dist/react-native/pagingHelper.js.map +0 -1
- package/review/arm-msi-node.api.md +0 -313
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
2
|
+
/**
|
|
3
|
+
* Options for the byPage method
|
|
4
|
+
*/
|
|
5
|
+
export interface PageSettings {
|
|
6
|
+
/**
|
|
7
|
+
* A reference to a specific page to start iterating from.
|
|
8
|
+
*/
|
|
9
|
+
continuationToken?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* An interface that describes a page of results.
|
|
13
|
+
*/
|
|
14
|
+
export type ContinuablePage<TElement, TPage = TElement[]> = TPage & {
|
|
15
|
+
/**
|
|
16
|
+
* The token that keeps track of where to continue the iterator
|
|
17
|
+
*/
|
|
18
|
+
continuationToken?: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* An interface that allows async iterable iteration both to completion and by page.
|
|
22
|
+
*/
|
|
23
|
+
export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
|
|
24
|
+
/**
|
|
25
|
+
* The next method, part of the iteration protocol
|
|
26
|
+
*/
|
|
27
|
+
next(): Promise<IteratorResult<TElement>>;
|
|
28
|
+
/**
|
|
29
|
+
* The connection to the async iterator, part of the iteration protocol
|
|
30
|
+
*/
|
|
31
|
+
[Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
|
|
32
|
+
/**
|
|
33
|
+
* Return an AsyncIterableIterator that works a page at a time
|
|
34
|
+
*/
|
|
35
|
+
byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* An interface that describes how to communicate with the service.
|
|
39
|
+
*/
|
|
40
|
+
export interface PagedResult<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
|
|
41
|
+
/**
|
|
42
|
+
* Link to the first page of results.
|
|
43
|
+
*/
|
|
44
|
+
firstPageLink?: string;
|
|
45
|
+
/**
|
|
46
|
+
* A method that returns a page of results.
|
|
47
|
+
*/
|
|
48
|
+
getPage: (pageLink?: string) => Promise<{
|
|
49
|
+
page: TPage;
|
|
50
|
+
nextPageLink?: string;
|
|
51
|
+
} | undefined>;
|
|
52
|
+
/**
|
|
53
|
+
* a function to implement the `byPage` method on the paged async iterator.
|
|
54
|
+
*/
|
|
55
|
+
byPage?: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
|
|
56
|
+
/**
|
|
57
|
+
* A function to extract elements from a page.
|
|
58
|
+
*/
|
|
59
|
+
toElements?: (page: TPage) => TElement[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Options for the paging helper
|
|
63
|
+
*/
|
|
64
|
+
export interface BuildPagedAsyncIteratorOptions {
|
|
65
|
+
itemName?: string;
|
|
66
|
+
nextLinkName?: string;
|
|
67
|
+
nextLinkMethod?: "GET" | "POST";
|
|
68
|
+
apiVersion?: string;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
|
|
72
|
+
*/
|
|
73
|
+
export declare function buildPagedAsyncIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings, TResponse extends PathUncheckedResponse = PathUncheckedResponse>(client: Client, getInitialResponse: () => PromiseLike<TResponse>, processResponseBody: (result: TResponse) => PromiseLike<unknown>, expectedStatuses: string[], options?: BuildPagedAsyncIteratorOptions): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
|
|
74
|
+
//# sourceMappingURL=pagingHelpers.d.ts.map
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var pagingHelpers_exports = {};
|
|
19
|
+
__export(pagingHelpers_exports, {
|
|
20
|
+
buildPagedAsyncIterator: () => buildPagedAsyncIterator
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(pagingHelpers_exports);
|
|
23
|
+
var import_core_client = require("@azure-rest/core-client");
|
|
24
|
+
var import_core_rest_pipeline = require("@azure/core-rest-pipeline");
|
|
25
|
+
function buildPagedAsyncIterator(client, getInitialResponse, processResponseBody, expectedStatuses, options = {}) {
|
|
26
|
+
const itemName = options.itemName ?? "value";
|
|
27
|
+
const nextLinkName = options.nextLinkName ?? "nextLink";
|
|
28
|
+
const nextLinkMethod = options.nextLinkMethod ?? "GET";
|
|
29
|
+
const apiVersion = options.apiVersion;
|
|
30
|
+
const pagedResult = {
|
|
31
|
+
getPage: async (pageLink) => {
|
|
32
|
+
let result;
|
|
33
|
+
if (pageLink === void 0) {
|
|
34
|
+
result = await getInitialResponse();
|
|
35
|
+
} else {
|
|
36
|
+
const resolvedPageLink = apiVersion ? addApiVersionToUrl(pageLink, apiVersion) : pageLink;
|
|
37
|
+
result = nextLinkMethod === "POST" ? await client.pathUnchecked(resolvedPageLink).post() : await client.pathUnchecked(resolvedPageLink).get();
|
|
38
|
+
}
|
|
39
|
+
checkPagingRequest(result, expectedStatuses);
|
|
40
|
+
const results = await processResponseBody(result);
|
|
41
|
+
const nextLink = getNextLink(results, nextLinkName);
|
|
42
|
+
const values = getElements(results, itemName);
|
|
43
|
+
return {
|
|
44
|
+
page: values,
|
|
45
|
+
nextPageLink: nextLink
|
|
46
|
+
};
|
|
47
|
+
},
|
|
48
|
+
byPage: (settings) => {
|
|
49
|
+
const { continuationToken } = settings ?? {};
|
|
50
|
+
return getPageAsyncIterator(pagedResult, {
|
|
51
|
+
pageLink: continuationToken
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
return getPagedAsyncIterator(pagedResult);
|
|
56
|
+
}
|
|
57
|
+
function getPagedAsyncIterator(pagedResult) {
|
|
58
|
+
const iter = getItemAsyncIterator(pagedResult);
|
|
59
|
+
return {
|
|
60
|
+
next() {
|
|
61
|
+
return iter.next();
|
|
62
|
+
},
|
|
63
|
+
[Symbol.asyncIterator]() {
|
|
64
|
+
return this;
|
|
65
|
+
},
|
|
66
|
+
byPage: pagedResult?.byPage ?? ((settings) => {
|
|
67
|
+
const { continuationToken } = settings ?? {};
|
|
68
|
+
return getPageAsyncIterator(pagedResult, {
|
|
69
|
+
pageLink: continuationToken
|
|
70
|
+
});
|
|
71
|
+
})
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
async function* getItemAsyncIterator(pagedResult) {
|
|
75
|
+
const pages = getPageAsyncIterator(pagedResult);
|
|
76
|
+
for await (const page of pages) {
|
|
77
|
+
yield* page;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
async function* getPageAsyncIterator(pagedResult, options = {}) {
|
|
81
|
+
const { pageLink } = options;
|
|
82
|
+
let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink);
|
|
83
|
+
if (!response) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
let result = response.page;
|
|
87
|
+
result.continuationToken = response.nextPageLink;
|
|
88
|
+
yield result;
|
|
89
|
+
while (response.nextPageLink) {
|
|
90
|
+
response = await pagedResult.getPage(response.nextPageLink);
|
|
91
|
+
if (!response) {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
result = response.page;
|
|
95
|
+
result.continuationToken = response.nextPageLink;
|
|
96
|
+
yield result;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
function getNextLink(body, nextLinkName) {
|
|
100
|
+
if (!nextLinkName) {
|
|
101
|
+
return void 0;
|
|
102
|
+
}
|
|
103
|
+
const nextLink = body[nextLinkName];
|
|
104
|
+
if (typeof nextLink !== "string" && typeof nextLink !== "undefined" && nextLink !== null) {
|
|
105
|
+
throw new import_core_rest_pipeline.RestError(
|
|
106
|
+
`Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
if (nextLink === null) {
|
|
110
|
+
return void 0;
|
|
111
|
+
}
|
|
112
|
+
return nextLink;
|
|
113
|
+
}
|
|
114
|
+
function getElements(body, itemName) {
|
|
115
|
+
const value = body[itemName];
|
|
116
|
+
if (!Array.isArray(value)) {
|
|
117
|
+
throw new import_core_rest_pipeline.RestError(
|
|
118
|
+
`Couldn't paginate response
|
|
119
|
+
Body doesn't contain an array property with name: ${itemName}`
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
return value ?? [];
|
|
123
|
+
}
|
|
124
|
+
function checkPagingRequest(response, expectedStatuses) {
|
|
125
|
+
if (!expectedStatuses.includes(response.status)) {
|
|
126
|
+
throw (0, import_core_client.createRestError)(
|
|
127
|
+
`Pagination failed with unexpected statusCode ${response.status}`,
|
|
128
|
+
response
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
function addApiVersionToUrl(url, apiVersion) {
|
|
133
|
+
const urlObj = new URL(url, "https://microsoft.com");
|
|
134
|
+
if (!urlObj.searchParams.get("api-version")) {
|
|
135
|
+
return `${url}${urlObj.search ? "&" : "?"}api-version=${apiVersion}`;
|
|
136
|
+
}
|
|
137
|
+
return url;
|
|
138
|
+
}
|
|
139
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
140
|
+
0 && (module.exports = {
|
|
141
|
+
buildPagedAsyncIterator
|
|
142
|
+
});
|
|
143
|
+
//# sourceMappingURL=pagingHelpers.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/static-helpers/pagingHelpers.ts"],
|
|
4
|
+
"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 nextLinkMethod?: \"GET\" | \"POST\";\n apiVersion?: 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 nextLinkMethod = options.nextLinkMethod ?? \"GET\";\n const apiVersion = options.apiVersion;\n const pagedResult: PagedResult<TElement, TPage, TPageSettings> = {\n getPage: async (pageLink?: string) => {\n let result;\n if (pageLink === undefined) {\n result = await getInitialResponse();\n } else {\n const resolvedPageLink = apiVersion ? addApiVersionToUrl(pageLink, apiVersion) : pageLink;\n result =\n nextLinkMethod === \"POST\"\n ? await client.pathUnchecked(resolvedPageLink).post()\n : await client.pathUnchecked(resolvedPageLink).get();\n }\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\n/**\n * Adds the api-version query parameter on a URL if it's not present.\n * @param url - the URL to modify\n * @param apiVersion - the API version to set\n * @returns - the URL with the api-version query parameter set\n */\nfunction addApiVersionToUrl(url: string, apiVersion: string): string {\n // The base URL is only used for parsing and won't appear in the returned URL\n const urlObj = new URL(url, \"https://microsoft.com\");\n if (!urlObj.searchParams.get(\"api-version\")) {\n // Append one if there is no apiVersion\n return `${url}${urlObj.search ? \"&\" : \"?\"}api-version=${apiVersion}`;\n }\n return url;\n}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns true if all specified properties of the item are undefined.
|
|
3
|
+
* @param item The object to check.
|
|
4
|
+
* @param properties The list of property names to check on the item.
|
|
5
|
+
* @returns True if all specified properties are undefined, otherwise false.
|
|
6
|
+
*/
|
|
7
|
+
export declare function areAllPropsUndefined(item: Record<string, any>, properties: string[]): boolean;
|
|
8
|
+
//# sourceMappingURL=check-prop-undefined.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var check_prop_undefined_exports = {};
|
|
19
|
+
__export(check_prop_undefined_exports, {
|
|
20
|
+
areAllPropsUndefined: () => areAllPropsUndefined
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(check_prop_undefined_exports);
|
|
23
|
+
function areAllPropsUndefined(item, properties) {
|
|
24
|
+
for (const property of properties) {
|
|
25
|
+
if (item[property] !== void 0) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
areAllPropsUndefined
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=check-prop-undefined.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/static-helpers/serialization/check-prop-undefined.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Returns true if all specified properties of the item are undefined.\n * @param item The object to check.\n * @param properties The list of property names to check on the item.\n * @returns True if all specified properties are undefined, otherwise false.\n */\nexport function areAllPropsUndefined(item: Record<string, any>, properties: string[]): boolean {\n for (const property of properties) {\n if (item[property] !== undefined) {\n return false;\n }\n }\n return true;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AASO,SAAS,qBAAqB,MAA2B,YAA+B;AAC7F,aAAW,YAAY,YAAY;AACjC,QAAI,KAAK,QAAQ,MAAM,QAAW;AAChC,aAAO;AAAA,IACT;AAAA,EACF;AACA,SAAO;AACT;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var urlTemplate_exports = {};
|
|
19
|
+
__export(urlTemplate_exports, {
|
|
20
|
+
expandUrlTemplate: () => expandUrlTemplate
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(urlTemplate_exports);
|
|
23
|
+
function encodeComponent(val, reserved, op) {
|
|
24
|
+
return (reserved ?? op === "+") || op === "#" ? encodeReservedComponent(val) : encodeRFC3986URIComponent(val);
|
|
25
|
+
}
|
|
26
|
+
function encodeReservedComponent(str) {
|
|
27
|
+
return str.split(/(%[0-9A-Fa-f]{2})/g).map((part) => !/%[0-9A-Fa-f]/.test(part) ? encodeURI(part) : part).join("");
|
|
28
|
+
}
|
|
29
|
+
function encodeRFC3986URIComponent(str) {
|
|
30
|
+
return encodeURIComponent(str).replace(
|
|
31
|
+
/[!'()*]/g,
|
|
32
|
+
(c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
function isDefined(val) {
|
|
36
|
+
return val !== void 0 && val !== null;
|
|
37
|
+
}
|
|
38
|
+
function getNamedAndIfEmpty(op) {
|
|
39
|
+
return [!!op && [";", "?", "&"].includes(op), !!op && ["?", "&"].includes(op) ? "=" : ""];
|
|
40
|
+
}
|
|
41
|
+
function getFirstOrSep(op, isFirst = false) {
|
|
42
|
+
if (isFirst) {
|
|
43
|
+
return !op || op === "+" ? "" : op;
|
|
44
|
+
} else if (!op || op === "+" || op === "#") {
|
|
45
|
+
return ",";
|
|
46
|
+
} else if (op === "?") {
|
|
47
|
+
return "&";
|
|
48
|
+
} else {
|
|
49
|
+
return op;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function getExpandedValue(option) {
|
|
53
|
+
let isFirst = option.isFirst;
|
|
54
|
+
const { op, varName, varValue: value, reserved } = option;
|
|
55
|
+
const vals = [];
|
|
56
|
+
const [named, ifEmpty] = getNamedAndIfEmpty(op);
|
|
57
|
+
if (Array.isArray(value)) {
|
|
58
|
+
for (const val of value.filter(isDefined)) {
|
|
59
|
+
vals.push(`${getFirstOrSep(op, isFirst)}`);
|
|
60
|
+
if (named && varName) {
|
|
61
|
+
vals.push(`${encodeURIComponent(varName)}`);
|
|
62
|
+
if (val === "") {
|
|
63
|
+
vals.push(ifEmpty);
|
|
64
|
+
} else {
|
|
65
|
+
vals.push("=");
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
vals.push(encodeComponent(val, reserved, op));
|
|
69
|
+
isFirst = false;
|
|
70
|
+
}
|
|
71
|
+
} else if (typeof value === "object") {
|
|
72
|
+
for (const key of Object.keys(value)) {
|
|
73
|
+
const val = value[key];
|
|
74
|
+
if (!isDefined(val)) {
|
|
75
|
+
continue;
|
|
76
|
+
}
|
|
77
|
+
vals.push(`${getFirstOrSep(op, isFirst)}`);
|
|
78
|
+
if (key) {
|
|
79
|
+
vals.push(`${encodeURIComponent(key)}`);
|
|
80
|
+
if (named && val === "") {
|
|
81
|
+
vals.push(ifEmpty);
|
|
82
|
+
} else {
|
|
83
|
+
vals.push("=");
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
vals.push(encodeComponent(val, reserved, op));
|
|
87
|
+
isFirst = false;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return vals.join("");
|
|
91
|
+
}
|
|
92
|
+
function getNonExpandedValue(option) {
|
|
93
|
+
const { op, varName, varValue: value, isFirst, reserved } = option;
|
|
94
|
+
const vals = [];
|
|
95
|
+
const first = getFirstOrSep(op, isFirst);
|
|
96
|
+
const [named, ifEmpty] = getNamedAndIfEmpty(op);
|
|
97
|
+
if (named && varName) {
|
|
98
|
+
vals.push(encodeComponent(varName, reserved, op));
|
|
99
|
+
if (value === "") {
|
|
100
|
+
if (!ifEmpty) {
|
|
101
|
+
vals.push(ifEmpty);
|
|
102
|
+
}
|
|
103
|
+
return !vals.join("") ? void 0 : `${first}${vals.join("")}`;
|
|
104
|
+
}
|
|
105
|
+
vals.push("=");
|
|
106
|
+
}
|
|
107
|
+
const items = [];
|
|
108
|
+
if (Array.isArray(value)) {
|
|
109
|
+
for (const val of value.filter(isDefined)) {
|
|
110
|
+
items.push(encodeComponent(val, reserved, op));
|
|
111
|
+
}
|
|
112
|
+
} else if (typeof value === "object") {
|
|
113
|
+
for (const key of Object.keys(value)) {
|
|
114
|
+
if (!isDefined(value[key])) {
|
|
115
|
+
continue;
|
|
116
|
+
}
|
|
117
|
+
items.push(encodeRFC3986URIComponent(key));
|
|
118
|
+
items.push(encodeComponent(value[key], reserved, op));
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
vals.push(items.join(","));
|
|
122
|
+
return !vals.join(",") ? void 0 : `${first}${vals.join("")}`;
|
|
123
|
+
}
|
|
124
|
+
function getVarValue(option) {
|
|
125
|
+
const { op, varName, modifier, isFirst, reserved, varValue: value } = option;
|
|
126
|
+
if (!isDefined(value)) {
|
|
127
|
+
return void 0;
|
|
128
|
+
} else if (["string", "number", "boolean"].includes(typeof value)) {
|
|
129
|
+
let val = value.toString();
|
|
130
|
+
const [named, ifEmpty] = getNamedAndIfEmpty(op);
|
|
131
|
+
const vals = [getFirstOrSep(op, isFirst)];
|
|
132
|
+
if (named && varName) {
|
|
133
|
+
vals.push(varName);
|
|
134
|
+
if (val === "") {
|
|
135
|
+
vals.push(ifEmpty);
|
|
136
|
+
} else {
|
|
137
|
+
vals.push("=");
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
if (modifier && modifier !== "*") {
|
|
141
|
+
val = val.substring(0, parseInt(modifier, 10));
|
|
142
|
+
}
|
|
143
|
+
vals.push(encodeComponent(val, reserved, op));
|
|
144
|
+
return vals.join("");
|
|
145
|
+
} else if (modifier === "*") {
|
|
146
|
+
return getExpandedValue(option);
|
|
147
|
+
} else {
|
|
148
|
+
return getNonExpandedValue(option);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
function expandUrlTemplate(template, context, option) {
|
|
152
|
+
const result = template.replace(/\{([^{}]+)\}|([^{}]+)/g, (_, expr, text) => {
|
|
153
|
+
if (!expr) {
|
|
154
|
+
return encodeReservedComponent(text);
|
|
155
|
+
}
|
|
156
|
+
let op;
|
|
157
|
+
if (["+", "#", ".", "/", ";", "?", "&"].includes(expr[0])) {
|
|
158
|
+
op = expr[0];
|
|
159
|
+
expr = expr.slice(1);
|
|
160
|
+
}
|
|
161
|
+
const varList = expr.split(/,/g);
|
|
162
|
+
const innerResult = [];
|
|
163
|
+
for (const varSpec of varList) {
|
|
164
|
+
const varMatch = /([^:*]*)(?::(\d+)|(\*))?/.exec(varSpec);
|
|
165
|
+
if (!varMatch || !varMatch[1]) {
|
|
166
|
+
continue;
|
|
167
|
+
}
|
|
168
|
+
const varValue = getVarValue({
|
|
169
|
+
isFirst: innerResult.length === 0,
|
|
170
|
+
op,
|
|
171
|
+
varValue: context[varMatch[1]],
|
|
172
|
+
varName: varMatch[1],
|
|
173
|
+
modifier: varMatch[2] || varMatch[3],
|
|
174
|
+
reserved: option?.allowReserved
|
|
175
|
+
});
|
|
176
|
+
if (varValue) {
|
|
177
|
+
innerResult.push(varValue);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
return innerResult.join("");
|
|
181
|
+
});
|
|
182
|
+
return normalizeUnreserved(result);
|
|
183
|
+
}
|
|
184
|
+
function normalizeUnreserved(uri) {
|
|
185
|
+
return uri.replace(/%([0-9A-Fa-f]{2})/g, (match, hex) => {
|
|
186
|
+
const char = String.fromCharCode(parseInt(hex, 16));
|
|
187
|
+
if (/[.~-]/.test(char)) {
|
|
188
|
+
return char;
|
|
189
|
+
}
|
|
190
|
+
return match;
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
194
|
+
0 && (module.exports = {
|
|
195
|
+
expandUrlTemplate
|
|
196
|
+
});
|
|
197
|
+
//# sourceMappingURL=urlTemplate.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/static-helpers/urlTemplate.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// ---------------------\n// interfaces\n// ---------------------\ninterface ValueOptions {\n isFirst: boolean; // is first value in the expression\n op?: string; // operator\n varValue?: any; // variable value\n varName?: string; // variable name\n modifier?: string; // modifier e.g *\n reserved?: boolean; // if true we'll keep reserved words with not encoding\n}\n\nexport interface UrlTemplateOptions {\n // if set to true, reserved characters will not be encoded\n allowReserved?: boolean;\n}\n\n// ---------------------\n// helpers\n// ---------------------\nfunction encodeComponent(val: string, reserved?: boolean, op?: string): string {\n return (reserved ?? op === \"+\") || op === \"#\"\n ? encodeReservedComponent(val)\n : encodeRFC3986URIComponent(val);\n}\n\nfunction encodeReservedComponent(str: string): string {\n return str\n .split(/(%[0-9A-Fa-f]{2})/g)\n .map((part) => (!/%[0-9A-Fa-f]/.test(part) ? encodeURI(part) : part))\n .join(\"\");\n}\n\nfunction encodeRFC3986URIComponent(str: string): string {\n return encodeURIComponent(str).replace(\n /[!'()*]/g,\n (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`,\n );\n}\n\nfunction isDefined(val: any): boolean {\n return val !== undefined && val !== null;\n}\n\nfunction getNamedAndIfEmpty(op?: string): [boolean, string] {\n return [!!op && [\";\", \"?\", \"&\"].includes(op), !!op && [\"?\", \"&\"].includes(op) ? \"=\" : \"\"];\n}\n\nfunction getFirstOrSep(op?: string, isFirst = false): string {\n if (isFirst) {\n return !op || op === \"+\" ? \"\" : op;\n } else if (!op || op === \"+\" || op === \"#\") {\n return \",\";\n } else if (op === \"?\") {\n return \"&\";\n } else {\n return op;\n }\n}\n\nfunction getExpandedValue(option: ValueOptions): string {\n let isFirst = option.isFirst;\n const { op, varName, varValue: value, reserved } = option;\n const vals: string[] = [];\n const [named, ifEmpty] = getNamedAndIfEmpty(op);\n\n if (Array.isArray(value)) {\n for (const val of value.filter(isDefined)) {\n // prepare the following parts: separator, varName, value\n vals.push(`${getFirstOrSep(op, isFirst)}`);\n if (named && varName) {\n vals.push(`${encodeURIComponent(varName)}`);\n if (val === \"\") {\n vals.push(ifEmpty);\n } else {\n vals.push(\"=\");\n }\n }\n vals.push(encodeComponent(val, reserved, op));\n isFirst = false;\n }\n } else if (typeof value === \"object\") {\n for (const key of Object.keys(value)) {\n const val = value[key];\n if (!isDefined(val)) {\n continue;\n }\n // prepare the following parts: separator, key, value\n vals.push(`${getFirstOrSep(op, isFirst)}`);\n if (key) {\n vals.push(`${encodeURIComponent(key)}`);\n if (named && val === \"\") {\n vals.push(ifEmpty);\n } else {\n vals.push(\"=\");\n }\n }\n vals.push(encodeComponent(val, reserved, op));\n isFirst = false;\n }\n }\n return vals.join(\"\");\n}\n\nfunction getNonExpandedValue(option: ValueOptions): string | undefined {\n const { op, varName, varValue: value, isFirst, reserved } = option;\n const vals: string[] = [];\n const first = getFirstOrSep(op, isFirst);\n const [named, ifEmpty] = getNamedAndIfEmpty(op);\n if (named && varName) {\n vals.push(encodeComponent(varName, reserved, op));\n if (value === \"\") {\n if (!ifEmpty) {\n vals.push(ifEmpty);\n }\n return !vals.join(\"\") ? undefined : `${first}${vals.join(\"\")}`;\n }\n vals.push(\"=\");\n }\n\n const items = [];\n if (Array.isArray(value)) {\n for (const val of value.filter(isDefined)) {\n items.push(encodeComponent(val, reserved, op));\n }\n } else if (typeof value === \"object\") {\n for (const key of Object.keys(value)) {\n if (!isDefined(value[key])) {\n continue;\n }\n items.push(encodeRFC3986URIComponent(key));\n items.push(encodeComponent(value[key], reserved, op));\n }\n }\n vals.push(items.join(\",\"));\n return !vals.join(\",\") ? undefined : `${first}${vals.join(\"\")}`;\n}\n\nfunction getVarValue(option: ValueOptions): string | undefined {\n const { op, varName, modifier, isFirst, reserved, varValue: value } = option;\n\n if (!isDefined(value)) {\n return undefined;\n } else if ([\"string\", \"number\", \"boolean\"].includes(typeof value)) {\n let val = value.toString();\n const [named, ifEmpty] = getNamedAndIfEmpty(op);\n const vals: string[] = [getFirstOrSep(op, isFirst)];\n if (named && varName) {\n // No need to encode varName considering it is already encoded\n vals.push(varName);\n if (val === \"\") {\n vals.push(ifEmpty);\n } else {\n vals.push(\"=\");\n }\n }\n if (modifier && modifier !== \"*\") {\n val = val.substring(0, parseInt(modifier, 10));\n }\n vals.push(encodeComponent(val, reserved, op));\n return vals.join(\"\");\n } else if (modifier === \"*\") {\n return getExpandedValue(option);\n } else {\n return getNonExpandedValue(option);\n }\n}\n\n// ---------------------------------------------------------------------------------------------------\n// This is an implementation of RFC 6570 URI Template: https://datatracker.ietf.org/doc/html/rfc6570.\n// ---------------------------------------------------------------------------------------------------\nexport function expandUrlTemplate(\n template: string,\n context: Record<string, any>,\n option?: UrlTemplateOptions,\n): string {\n const result = template.replace(/\\{([^{}]+)\\}|([^{}]+)/g, (_, expr, text) => {\n if (!expr) {\n return encodeReservedComponent(text);\n }\n let op;\n if ([\"+\", \"#\", \".\", \"/\", \";\", \"?\", \"&\"].includes(expr[0])) {\n op = expr[0];\n expr = expr.slice(1);\n }\n const varList = expr.split(/,/g);\n const innerResult = [];\n for (const varSpec of varList) {\n const varMatch = /([^:*]*)(?::(\\d+)|(\\*))?/.exec(varSpec);\n if (!varMatch || !varMatch[1]) {\n continue;\n }\n const varValue = getVarValue({\n isFirst: innerResult.length === 0,\n op,\n varValue: context[varMatch[1]],\n varName: varMatch[1],\n modifier: varMatch[2] || varMatch[3],\n reserved: option?.allowReserved,\n });\n if (varValue) {\n innerResult.push(varValue);\n }\n }\n return innerResult.join(\"\");\n });\n\n return normalizeUnreserved(result);\n}\n\n/**\n * Normalize an expanded URI by decoding percent-encoded unreserved characters.\n * RFC 3986 unreserved: \"-\" / \".\" / \"~\"\n */\nfunction normalizeUnreserved(uri: string): string {\n return uri.replace(/%([0-9A-Fa-f]{2})/g, (match, hex) => {\n const char = String.fromCharCode(parseInt(hex, 16));\n // Decode only if it's unreserved\n if (/[.~-]/.test(char)) {\n return char;\n }\n return match; // leave other encodings intact\n });\n}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { list, $delete, createOrUpdate, get } from "./operations.js";
|
|
2
|
+
export type { FederatedIdentityCredentialsListOptionalParams, FederatedIdentityCredentialsDeleteOptionalParams, FederatedIdentityCredentialsCreateOrUpdateOptionalParams, FederatedIdentityCredentialsGetOptionalParams, } from "./options.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/federatedIdentityCredentials/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { list, $delete, createOrUpdate, get } from \"./operations.js\";\nexport type {\n FederatedIdentityCredentialsListOptionalParams,\n FederatedIdentityCredentialsDeleteOptionalParams,\n FederatedIdentityCredentialsCreateOrUpdateOptionalParams,\n FederatedIdentityCredentialsGetOptionalParams,\n} from \"./options.js\";\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ManagedServiceIdentityContext as Client } from "../index.js";
|
|
2
|
+
import { FederatedIdentityCredential, _FederatedIdentityCredentialsListResult } from "../../models/models.js";
|
|
3
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
|
+
import { FederatedIdentityCredentialsListOptionalParams, FederatedIdentityCredentialsDeleteOptionalParams, FederatedIdentityCredentialsCreateOrUpdateOptionalParams, FederatedIdentityCredentialsGetOptionalParams } from "./options.js";
|
|
5
|
+
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
6
|
+
export declare function _listSend(context: Client, resourceGroupName: string, resourceName: string, options?: FederatedIdentityCredentialsListOptionalParams): StreamableMethod;
|
|
7
|
+
export declare function _listDeserialize(result: PathUncheckedResponse): Promise<_FederatedIdentityCredentialsListResult>;
|
|
8
|
+
/** Lists all the federated identity credentials under the specified user assigned identity. */
|
|
9
|
+
export declare function list(context: Client, resourceGroupName: string, resourceName: string, options?: FederatedIdentityCredentialsListOptionalParams): PagedAsyncIterableIterator<FederatedIdentityCredential>;
|
|
10
|
+
export declare function _$deleteSend(context: Client, resourceGroupName: string, resourceName: string, federatedIdentityCredentialResourceName: string, options?: FederatedIdentityCredentialsDeleteOptionalParams): StreamableMethod;
|
|
11
|
+
export declare function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void>;
|
|
12
|
+
/** Deletes the federated identity credential. */
|
|
13
|
+
export declare function $delete(context: Client, resourceGroupName: string, resourceName: string, federatedIdentityCredentialResourceName: string, options?: FederatedIdentityCredentialsDeleteOptionalParams): Promise<void>;
|
|
14
|
+
export declare function _createOrUpdateSend(context: Client, resourceGroupName: string, resourceName: string, federatedIdentityCredentialResourceName: string, parameters: FederatedIdentityCredential, options?: FederatedIdentityCredentialsCreateOrUpdateOptionalParams): StreamableMethod;
|
|
15
|
+
export declare function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<FederatedIdentityCredential>;
|
|
16
|
+
/** Create or update a federated identity credential under the specified user assigned identity. */
|
|
17
|
+
export declare function createOrUpdate(context: Client, resourceGroupName: string, resourceName: string, federatedIdentityCredentialResourceName: string, parameters: FederatedIdentityCredential, options?: FederatedIdentityCredentialsCreateOrUpdateOptionalParams): Promise<FederatedIdentityCredential>;
|
|
18
|
+
export declare function _getSend(context: Client, resourceGroupName: string, resourceName: string, federatedIdentityCredentialResourceName: string, options?: FederatedIdentityCredentialsGetOptionalParams): StreamableMethod;
|
|
19
|
+
export declare function _getDeserialize(result: PathUncheckedResponse): Promise<FederatedIdentityCredential>;
|
|
20
|
+
/** Gets the federated identity credential. */
|
|
21
|
+
export declare function get(context: Client, resourceGroupName: string, resourceName: string, federatedIdentityCredentialResourceName: string, options?: FederatedIdentityCredentialsGetOptionalParams): Promise<FederatedIdentityCredential>;
|
|
22
|
+
//# sourceMappingURL=operations.d.ts.map
|