@azure/arm-msi 2.1.1-alpha.20250214.1 → 2.1.1-alpha.20250218.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 +21 -14
- package/dist/browser/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/managedServiceIdentityClient.d.ts +2 -2
- package/dist/browser/managedServiceIdentityClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/managedServiceIdentityClient.js +15 -18
- package/dist/browser/managedServiceIdentityClient.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
- package/dist/browser/models/parameters.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/federatedIdentityCredentials.d.ts +3 -3
- package/dist/browser/operations/federatedIdentityCredentials.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/federatedIdentityCredentials.js +3 -3
- package/dist/browser/operations/federatedIdentityCredentials.js.map +1 -0
- package/dist/browser/operations/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +4 -4
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
- package/dist/browser/operations/operations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.js +3 -3
- package/dist/browser/operations/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/systemAssignedIdentities.d.ts +3 -3
- package/dist/browser/operations/systemAssignedIdentities.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/systemAssignedIdentities.js +2 -2
- package/dist/browser/operations/systemAssignedIdentities.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/userAssignedIdentities.d.ts +3 -3
- package/dist/browser/operations/userAssignedIdentities.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/userAssignedIdentities.js +3 -3
- package/dist/browser/operations/userAssignedIdentities.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/federatedIdentityCredentials.d.ts +1 -1
- package/dist/browser/operationsInterfaces/federatedIdentityCredentials.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/federatedIdentityCredentials.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +4 -4
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/systemAssignedIdentities.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/systemAssignedIdentities.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/systemAssignedIdentities.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/userAssignedIdentities.d.ts +1 -1
- package/dist/browser/operationsInterfaces/userAssignedIdentities.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/userAssignedIdentities.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/managedServiceIdentityClient.d.ts +23 -0
- package/dist/commonjs/managedServiceIdentityClient.d.ts.map +1 -0
- package/dist/commonjs/managedServiceIdentityClient.js +105 -0
- package/dist/commonjs/managedServiceIdentityClient.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +298 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +23 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +17 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +432 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +18 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +168 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/federatedIdentityCredentials.d.ts +66 -0
- package/dist/commonjs/operations/federatedIdentityCredentials.d.ts.map +1 -0
- package/dist/commonjs/operations/federatedIdentityCredentials.js +278 -0
- package/dist/commonjs/operations/federatedIdentityCredentials.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +5 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +15 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/operations.d.ts +32 -0
- package/dist/commonjs/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/operations/operations.js +137 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operations/systemAssignedIdentities.d.ts +20 -0
- package/dist/commonjs/operations/systemAssignedIdentities.d.ts.map +1 -0
- package/dist/commonjs/operations/systemAssignedIdentities.js +53 -0
- package/dist/commonjs/operations/systemAssignedIdentities.js.map +1 -0
- package/dist/commonjs/operations/userAssignedIdentities.d.ts +83 -0
- package/dist/commonjs/operations/userAssignedIdentities.d.ts.map +1 -0
- package/dist/commonjs/operations/userAssignedIdentities.js +388 -0
- package/dist/commonjs/operations/userAssignedIdentities.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/federatedIdentityCredentials.d.ts +41 -0
- package/dist/commonjs/operationsInterfaces/federatedIdentityCredentials.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/federatedIdentityCredentials.js +10 -0
- package/dist/commonjs/operationsInterfaces/federatedIdentityCredentials.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +5 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +15 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.js +10 -0
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/systemAssignedIdentities.d.ts +12 -0
- package/dist/commonjs/operationsInterfaces/systemAssignedIdentities.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/systemAssignedIdentities.js +10 -0
- package/dist/commonjs/operationsInterfaces/systemAssignedIdentities.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/userAssignedIdentities.d.ts +47 -0
- package/dist/commonjs/operationsInterfaces/userAssignedIdentities.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/userAssignedIdentities.js +10 -0
- package/dist/commonjs/operationsInterfaces/userAssignedIdentities.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +36 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/managedServiceIdentityClient.d.ts +23 -0
- package/dist/esm/managedServiceIdentityClient.d.ts.map +1 -0
- package/dist/esm/managedServiceIdentityClient.js +100 -0
- package/dist/esm/managedServiceIdentityClient.js.map +1 -0
- package/dist/esm/models/index.d.ts +298 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +20 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +17 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +429 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +18 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +165 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/federatedIdentityCredentials.d.ts +66 -0
- package/dist/esm/operations/federatedIdentityCredentials.d.ts.map +1 -0
- package/dist/esm/operations/federatedIdentityCredentials.js +274 -0
- package/dist/esm/operations/federatedIdentityCredentials.js.map +1 -0
- package/dist/esm/operations/index.d.ts +5 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +12 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/operations.d.ts +32 -0
- package/dist/esm/operations/operations.d.ts.map +1 -0
- package/dist/esm/operations/operations.js +133 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operations/systemAssignedIdentities.d.ts +20 -0
- package/dist/esm/operations/systemAssignedIdentities.d.ts.map +1 -0
- package/dist/esm/operations/systemAssignedIdentities.js +48 -0
- package/dist/esm/operations/systemAssignedIdentities.js.map +1 -0
- package/dist/esm/operations/userAssignedIdentities.d.ts +83 -0
- package/dist/esm/operations/userAssignedIdentities.d.ts.map +1 -0
- package/dist/esm/operations/userAssignedIdentities.js +384 -0
- package/dist/esm/operations/userAssignedIdentities.js.map +1 -0
- package/dist/esm/operationsInterfaces/federatedIdentityCredentials.d.ts +41 -0
- package/dist/esm/operationsInterfaces/federatedIdentityCredentials.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/federatedIdentityCredentials.js +9 -0
- package/dist/esm/operationsInterfaces/federatedIdentityCredentials.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +5 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +12 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/operations.js +9 -0
- package/dist/esm/operationsInterfaces/operations.js.map +1 -0
- package/dist/esm/operationsInterfaces/systemAssignedIdentities.d.ts +12 -0
- package/dist/esm/operationsInterfaces/systemAssignedIdentities.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/systemAssignedIdentities.js +9 -0
- package/dist/esm/operationsInterfaces/systemAssignedIdentities.js.map +1 -0
- package/dist/esm/operationsInterfaces/userAssignedIdentities.d.ts +47 -0
- package/dist/esm/operationsInterfaces/userAssignedIdentities.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/userAssignedIdentities.js +9 -0
- package/dist/esm/operationsInterfaces/userAssignedIdentities.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +32 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/managedServiceIdentityClient.d.ts +23 -0
- package/dist/react-native/managedServiceIdentityClient.d.ts.map +1 -0
- package/dist/react-native/managedServiceIdentityClient.js +100 -0
- package/dist/react-native/managedServiceIdentityClient.js.map +1 -0
- package/dist/react-native/models/index.d.ts +298 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +20 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +17 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +429 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +18 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +165 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/federatedIdentityCredentials.d.ts +66 -0
- package/dist/react-native/operations/federatedIdentityCredentials.d.ts.map +1 -0
- package/dist/react-native/operations/federatedIdentityCredentials.js +274 -0
- package/dist/react-native/operations/federatedIdentityCredentials.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +5 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +12 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/operations.d.ts +32 -0
- package/dist/react-native/operations/operations.d.ts.map +1 -0
- package/dist/react-native/operations/operations.js +133 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operations/systemAssignedIdentities.d.ts +20 -0
- package/dist/react-native/operations/systemAssignedIdentities.d.ts.map +1 -0
- package/dist/react-native/operations/systemAssignedIdentities.js +48 -0
- package/dist/react-native/operations/systemAssignedIdentities.js.map +1 -0
- package/dist/react-native/operations/userAssignedIdentities.d.ts +83 -0
- package/dist/react-native/operations/userAssignedIdentities.d.ts.map +1 -0
- package/dist/react-native/operations/userAssignedIdentities.js +384 -0
- package/dist/react-native/operations/userAssignedIdentities.js.map +1 -0
- package/dist/react-native/operationsInterfaces/federatedIdentityCredentials.d.ts +41 -0
- package/dist/react-native/operationsInterfaces/federatedIdentityCredentials.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/federatedIdentityCredentials.js +9 -0
- package/dist/react-native/operationsInterfaces/federatedIdentityCredentials.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +5 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +12 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.js +9 -0
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/systemAssignedIdentities.d.ts +12 -0
- package/dist/react-native/operationsInterfaces/systemAssignedIdentities.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/systemAssignedIdentities.js +9 -0
- package/dist/react-native/operationsInterfaces/systemAssignedIdentities.js.map +1 -0
- package/dist/react-native/operationsInterfaces/userAssignedIdentities.d.ts +47 -0
- package/dist/react-native/operationsInterfaces/userAssignedIdentities.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/userAssignedIdentities.js +9 -0
- package/dist/react-native/operationsInterfaces/userAssignedIdentities.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +32 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +69 -40
- package/dist/index.js +0 -1615
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/federatedIdentityCredentialsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/federatedIdentityCredentialsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/federatedIdentityCredentialsCreateOrUpdateSample.js +0 -35
- package/dist-esm/samples-dev/federatedIdentityCredentialsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/federatedIdentityCredentialsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/federatedIdentityCredentialsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/federatedIdentityCredentialsDeleteSample.js +0 -37
- package/dist-esm/samples-dev/federatedIdentityCredentialsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/federatedIdentityCredentialsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/federatedIdentityCredentialsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/federatedIdentityCredentialsGetSample.js +0 -37
- package/dist-esm/samples-dev/federatedIdentityCredentialsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/federatedIdentityCredentialsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/federatedIdentityCredentialsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/federatedIdentityCredentialsListSample.js +0 -52
- package/dist-esm/samples-dev/federatedIdentityCredentialsListSample.js.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.js +0 -50
- package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
- package/dist-esm/samples-dev/systemAssignedIdentitiesGetByScopeSample.d.ts +0 -2
- package/dist-esm/samples-dev/systemAssignedIdentitiesGetByScopeSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/systemAssignedIdentitiesGetByScopeSample.js +0 -35
- package/dist-esm/samples-dev/systemAssignedIdentitiesGetByScopeSample.js.map +0 -1
- package/dist-esm/samples-dev/userAssignedIdentitiesCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/userAssignedIdentitiesCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/userAssignedIdentitiesCreateOrUpdateSample.js +0 -33
- package/dist-esm/samples-dev/userAssignedIdentitiesCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/userAssignedIdentitiesDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/userAssignedIdentitiesDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/userAssignedIdentitiesDeleteSample.js +0 -36
- package/dist-esm/samples-dev/userAssignedIdentitiesDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/userAssignedIdentitiesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/userAssignedIdentitiesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/userAssignedIdentitiesGetSample.js +0 -36
- package/dist-esm/samples-dev/userAssignedIdentitiesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/userAssignedIdentitiesListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/userAssignedIdentitiesListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/userAssignedIdentitiesListByResourceGroupSample.js +0 -51
- package/dist-esm/samples-dev/userAssignedIdentitiesListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/userAssignedIdentitiesListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/userAssignedIdentitiesListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/userAssignedIdentitiesListBySubscriptionSample.js +0 -50
- package/dist-esm/samples-dev/userAssignedIdentitiesListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/userAssignedIdentitiesUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/userAssignedIdentitiesUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/userAssignedIdentitiesUpdateSample.js +0 -33
- package/dist-esm/samples-dev/userAssignedIdentitiesUpdateSample.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/managedServiceIdentityClient.d.ts.map +0 -1
- package/dist-esm/src/managedServiceIdentityClient.js.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/federatedIdentityCredentials.d.ts.map +0 -1
- package/dist-esm/src/operations/federatedIdentityCredentials.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -5
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/operations.d.ts.map +0 -1
- package/dist-esm/src/operations/operations.js.map +0 -1
- package/dist-esm/src/operations/systemAssignedIdentities.d.ts.map +0 -1
- package/dist-esm/src/operations/systemAssignedIdentities.js.map +0 -1
- package/dist-esm/src/operations/userAssignedIdentities.d.ts.map +0 -1
- package/dist-esm/src/operations/userAssignedIdentities.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/federatedIdentityCredentials.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/federatedIdentityCredentials.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -5
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/systemAssignedIdentities.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/userAssignedIdentities.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/userAssignedIdentities.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -42
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/src/managedServiceIdentityClient.ts +0 -158
- package/src/models/index.ts +0 -348
- package/src/models/mappers.ts +0 -476
- package/src/models/parameters.ts +0 -190
- package/src/operations/federatedIdentityCredentials.ts +0 -355
- package/src/operations/index.ts +0 -12
- package/src/operations/operations.ts +0 -149
- package/src/operations/systemAssignedIdentities.ts +0 -65
- package/src/operations/userAssignedIdentities.ts +0 -477
- package/src/operationsInterfaces/federatedIdentityCredentials.ts +0 -78
- package/src/operationsInterfaces/index.ts +0 -12
- package/src/operationsInterfaces/operations.ts +0 -22
- package/src/operationsInterfaces/systemAssignedIdentities.ts +0 -26
- package/src/operationsInterfaces/userAssignedIdentities.ts +0 -91
- package/src/pagingHelper.ts +0 -39
- package/tsconfig.json +0 -33
- package/types/arm-msi.d.ts +0 -481
- /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/federatedIdentityCredentials.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/systemAssignedIdentities.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/userAssignedIdentities.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
- /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
export * from "./systemAssignedIdentities.js";
|
9
|
+
export * from "./operations.js";
|
10
|
+
export * from "./userAssignedIdentities.js";
|
11
|
+
export * from "./federatedIdentityCredentials.js";
|
12
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./systemAssignedIdentities.js\";\nexport * from \"./operations.js\";\nexport * from \"./userAssignedIdentities.js\";\nexport * from \"./federatedIdentityCredentials.js\";\n"]}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
2
|
+
import { Operation, OperationsListOptionalParams } from "../models/index.js";
|
3
|
+
/** Interface representing a Operations. */
|
4
|
+
export interface Operations {
|
5
|
+
/**
|
6
|
+
* Lists available operations for the Microsoft.ManagedIdentity provider
|
7
|
+
* @param options The options parameters.
|
8
|
+
*/
|
9
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
|
10
|
+
}
|
11
|
+
//# sourceMappingURL=operations.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAG7E,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC,CAAC;CAC1C"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
export {};
|
9
|
+
//# sourceMappingURL=operations.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { Operation, OperationsListOptionalParams } from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Operations. */\nexport interface Operations {\n /**\n * Lists available operations for the Microsoft.ManagedIdentity provider\n * @param options The options parameters.\n */\n list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation>;\n}\n"]}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { SystemAssignedIdentitiesGetByScopeOptionalParams, SystemAssignedIdentitiesGetByScopeResponse } from "../models/index.js";
|
2
|
+
/** Interface representing a SystemAssignedIdentities. */
|
3
|
+
export interface SystemAssignedIdentities {
|
4
|
+
/**
|
5
|
+
* Gets the systemAssignedIdentity available under the specified RP scope.
|
6
|
+
* @param scope The resource provider scope of the resource. Parent resource being extended by Managed
|
7
|
+
* Identities.
|
8
|
+
* @param options The options parameters.
|
9
|
+
*/
|
10
|
+
getByScope(scope: string, options?: SystemAssignedIdentitiesGetByScopeOptionalParams): Promise<SystemAssignedIdentitiesGetByScopeResponse>;
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=systemAssignedIdentities.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"systemAssignedIdentities.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/systemAssignedIdentities.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,gDAAgD,EAChD,0CAA0C,EAC3C,MAAM,oBAAoB,CAAC;AAE5B,yDAAyD;AACzD,MAAM,WAAW,wBAAwB;IACvC;;;;;OAKG;IACH,UAAU,CACR,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,gDAAgD,GACzD,OAAO,CAAC,0CAA0C,CAAC,CAAC;CACxD"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
export {};
|
9
|
+
//# sourceMappingURL=systemAssignedIdentities.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"systemAssignedIdentities.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/systemAssignedIdentities.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n SystemAssignedIdentitiesGetByScopeOptionalParams,\n SystemAssignedIdentitiesGetByScopeResponse\n} from \"../models/index.js\";\n\n/** Interface representing a SystemAssignedIdentities. */\nexport interface SystemAssignedIdentities {\n /**\n * Gets the systemAssignedIdentity available under the specified RP scope.\n * @param scope The resource provider scope of the resource. Parent resource being extended by Managed\n * Identities.\n * @param options The options parameters.\n */\n getByScope(\n scope: string,\n options?: SystemAssignedIdentitiesGetByScopeOptionalParams\n ): Promise<SystemAssignedIdentitiesGetByScopeResponse>;\n}\n"]}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
2
|
+
import { Identity, UserAssignedIdentitiesListBySubscriptionOptionalParams, UserAssignedIdentitiesListByResourceGroupOptionalParams, UserAssignedIdentitiesCreateOrUpdateOptionalParams, UserAssignedIdentitiesCreateOrUpdateResponse, IdentityUpdate, UserAssignedIdentitiesUpdateOptionalParams, UserAssignedIdentitiesUpdateResponse, UserAssignedIdentitiesGetOptionalParams, UserAssignedIdentitiesGetResponse, UserAssignedIdentitiesDeleteOptionalParams } from "../models/index.js";
|
3
|
+
/** Interface representing a UserAssignedIdentities. */
|
4
|
+
export interface UserAssignedIdentities {
|
5
|
+
/**
|
6
|
+
* Lists all the userAssignedIdentities available under the specified subscription.
|
7
|
+
* @param options The options parameters.
|
8
|
+
*/
|
9
|
+
listBySubscription(options?: UserAssignedIdentitiesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Identity>;
|
10
|
+
/**
|
11
|
+
* Lists all the userAssignedIdentities available under the specified ResourceGroup.
|
12
|
+
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
13
|
+
* @param options The options parameters.
|
14
|
+
*/
|
15
|
+
listByResourceGroup(resourceGroupName: string, options?: UserAssignedIdentitiesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Identity>;
|
16
|
+
/**
|
17
|
+
* Create or update an identity in the specified subscription and resource group.
|
18
|
+
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
19
|
+
* @param resourceName The name of the identity resource.
|
20
|
+
* @param parameters Parameters to create or update the identity
|
21
|
+
* @param options The options parameters.
|
22
|
+
*/
|
23
|
+
createOrUpdate(resourceGroupName: string, resourceName: string, parameters: Identity, options?: UserAssignedIdentitiesCreateOrUpdateOptionalParams): Promise<UserAssignedIdentitiesCreateOrUpdateResponse>;
|
24
|
+
/**
|
25
|
+
* Update an identity in the specified subscription and resource group.
|
26
|
+
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
27
|
+
* @param resourceName The name of the identity resource.
|
28
|
+
* @param parameters Parameters to update the identity
|
29
|
+
* @param options The options parameters.
|
30
|
+
*/
|
31
|
+
update(resourceGroupName: string, resourceName: string, parameters: IdentityUpdate, options?: UserAssignedIdentitiesUpdateOptionalParams): Promise<UserAssignedIdentitiesUpdateResponse>;
|
32
|
+
/**
|
33
|
+
* Gets the identity.
|
34
|
+
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
35
|
+
* @param resourceName The name of the identity resource.
|
36
|
+
* @param options The options parameters.
|
37
|
+
*/
|
38
|
+
get(resourceGroupName: string, resourceName: string, options?: UserAssignedIdentitiesGetOptionalParams): Promise<UserAssignedIdentitiesGetResponse>;
|
39
|
+
/**
|
40
|
+
* Deletes the identity.
|
41
|
+
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
42
|
+
* @param resourceName The name of the identity resource.
|
43
|
+
* @param options The options parameters.
|
44
|
+
*/
|
45
|
+
delete(resourceGroupName: string, resourceName: string, options?: UserAssignedIdentitiesDeleteOptionalParams): Promise<void>;
|
46
|
+
}
|
47
|
+
//# sourceMappingURL=userAssignedIdentities.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"userAssignedIdentities.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/userAssignedIdentities.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,QAAQ,EACR,sDAAsD,EACtD,uDAAuD,EACvD,kDAAkD,EAClD,4CAA4C,EAC5C,cAAc,EACd,0CAA0C,EAC1C,oCAAoC,EACpC,uCAAuC,EACvC,iCAAiC,EACjC,0CAA0C,EAC3C,MAAM,oBAAoB,CAAC;AAG5B,uDAAuD;AACvD,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,kBAAkB,CAChB,OAAO,CAAC,EAAE,sDAAsD,GAC/D,0BAA0B,CAAC,QAAQ,CAAC,CAAC;IACxC;;;;OAIG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,uDAAuD,GAChE,0BAA0B,CAAC,QAAQ,CAAC,CAAC;IACxC;;;;;;OAMG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,QAAQ,EACpB,OAAO,CAAC,EAAE,kDAAkD,GAC3D,OAAO,CAAC,4CAA4C,CAAC,CAAC;IACzD;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,cAAc,EAC1B,OAAO,CAAC,EAAE,0CAA0C,GACnD,OAAO,CAAC,oCAAoC,CAAC,CAAC;IACjD;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CAAC,iCAAiC,CAAC,CAAC;IAC9C;;;;;OAKG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,0CAA0C,GACnD,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
export {};
|
9
|
+
//# sourceMappingURL=userAssignedIdentities.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"userAssignedIdentities.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/userAssignedIdentities.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport {\n Identity,\n UserAssignedIdentitiesListBySubscriptionOptionalParams,\n UserAssignedIdentitiesListByResourceGroupOptionalParams,\n UserAssignedIdentitiesCreateOrUpdateOptionalParams,\n UserAssignedIdentitiesCreateOrUpdateResponse,\n IdentityUpdate,\n UserAssignedIdentitiesUpdateOptionalParams,\n UserAssignedIdentitiesUpdateResponse,\n UserAssignedIdentitiesGetOptionalParams,\n UserAssignedIdentitiesGetResponse,\n UserAssignedIdentitiesDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a UserAssignedIdentities. */\nexport interface UserAssignedIdentities {\n /**\n * Lists all the userAssignedIdentities available under the specified subscription.\n * @param options The options parameters.\n */\n listBySubscription(\n options?: UserAssignedIdentitiesListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<Identity>;\n /**\n * Lists all the userAssignedIdentities available under the specified ResourceGroup.\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n options?: UserAssignedIdentitiesListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<Identity>;\n /**\n * Create or update an identity in the specified subscription and resource group.\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param resourceName The name of the identity resource.\n * @param parameters Parameters to create or update the identity\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n resourceName: string,\n parameters: Identity,\n options?: UserAssignedIdentitiesCreateOrUpdateOptionalParams\n ): Promise<UserAssignedIdentitiesCreateOrUpdateResponse>;\n /**\n * Update an identity in the specified subscription and resource group.\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param resourceName The name of the identity resource.\n * @param parameters Parameters to update the identity\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n parameters: IdentityUpdate,\n options?: UserAssignedIdentitiesUpdateOptionalParams\n ): Promise<UserAssignedIdentitiesUpdateResponse>;\n /**\n * Gets the identity.\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param resourceName The name of the identity resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n options?: UserAssignedIdentitiesGetOptionalParams\n ): Promise<UserAssignedIdentitiesGetResponse>;\n /**\n * Deletes the identity.\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param resourceName The name of the identity resource.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n options?: UserAssignedIdentitiesDeleteOptionalParams\n ): Promise<void>;\n}\n"]}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export interface PageInfo {
|
2
|
+
continuationToken?: string;
|
3
|
+
}
|
4
|
+
/**
|
5
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
6
|
+
* returns a continuation token that can be used to begin paging from
|
7
|
+
* that point later.
|
8
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
9
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
10
|
+
*/
|
11
|
+
export declare function getContinuationToken(page: unknown): string | undefined;
|
12
|
+
export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
|
13
|
+
//# sourceMappingURL=pagingHelper.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
const pageMap = new WeakMap();
|
9
|
+
/**
|
10
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
11
|
+
* returns a continuation token that can be used to begin paging from
|
12
|
+
* that point later.
|
13
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
14
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
15
|
+
*/
|
16
|
+
export function getContinuationToken(page) {
|
17
|
+
var _a;
|
18
|
+
if (typeof page !== "object" || page === null) {
|
19
|
+
return undefined;
|
20
|
+
}
|
21
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
22
|
+
}
|
23
|
+
export function setContinuationToken(page, continuationToken) {
|
24
|
+
var _a;
|
25
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
26
|
+
return;
|
27
|
+
}
|
28
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
29
|
+
pageInfo.continuationToken = continuationToken;
|
30
|
+
pageMap.set(page, pageInfo);
|
31
|
+
}
|
32
|
+
//# sourceMappingURL=pagingHelper.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,cAAc,iCAAiC,CAAC"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
/// <reference lib="esnext.asynciterable" />
|
9
|
+
export { getContinuationToken } from "./pagingHelper.js";
|
10
|
+
export * from "./models/index.js";
|
11
|
+
export { ManagedServiceIdentityClient } from "./managedServiceIdentityClient.js";
|
12
|
+
export * from "./operationsInterfaces/index.js";
|
13
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,cAAc,iCAAiC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { ManagedServiceIdentityClient } from \"./managedServiceIdentityClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
2
|
+
import * as coreAuth from "@azure/core-auth";
|
3
|
+
import { SystemAssignedIdentities, Operations, UserAssignedIdentities, FederatedIdentityCredentials } from "./operationsInterfaces/index.js";
|
4
|
+
import { ManagedServiceIdentityClientOptionalParams } from "./models/index.js";
|
5
|
+
export declare class ManagedServiceIdentityClient extends coreClient.ServiceClient {
|
6
|
+
$host: string;
|
7
|
+
apiVersion: string;
|
8
|
+
subscriptionId: string;
|
9
|
+
/**
|
10
|
+
* Initializes a new instance of the ManagedServiceIdentityClient class.
|
11
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
12
|
+
* @param subscriptionId The Id of the Subscription to which the identity belongs.
|
13
|
+
* @param options The parameter options
|
14
|
+
*/
|
15
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ManagedServiceIdentityClientOptionalParams);
|
16
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
17
|
+
private addCustomApiVersionPolicy;
|
18
|
+
systemAssignedIdentities: SystemAssignedIdentities;
|
19
|
+
operations: Operations;
|
20
|
+
userAssignedIdentities: UserAssignedIdentities;
|
21
|
+
federatedIdentityCredentials: FederatedIdentityCredentials;
|
22
|
+
}
|
23
|
+
//# sourceMappingURL=managedServiceIdentityClient.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"managedServiceIdentityClient.d.ts","sourceRoot":"","sources":["../../src/managedServiceIdentityClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAO7C,OAAO,EACL,wBAAwB,EACxB,UAAU,EACV,sBAAsB,EACtB,4BAA4B,EAC7B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,0CAA0C,EAAE,MAAM,mBAAmB,CAAC;AAE/E,qBAAa,4BAA6B,SAAQ,UAAU,CAAC,aAAa;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,0CAA0C;IAiFtD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,wBAAwB,EAAE,wBAAwB,CAAC;IACnD,UAAU,EAAE,UAAU,CAAC;IACvB,sBAAsB,EAAE,sBAAsB,CAAC;IAC/C,4BAA4B,EAAE,4BAA4B,CAAC;CAC5D"}
|
@@ -0,0 +1,100 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import * as coreClient from "@azure/core-client";
|
9
|
+
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
10
|
+
import { SystemAssignedIdentitiesImpl, OperationsImpl, UserAssignedIdentitiesImpl, FederatedIdentityCredentialsImpl } from "./operations/index.js";
|
11
|
+
export class ManagedServiceIdentityClient extends coreClient.ServiceClient {
|
12
|
+
/**
|
13
|
+
* Initializes a new instance of the ManagedServiceIdentityClient class.
|
14
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
15
|
+
* @param subscriptionId The Id of the Subscription to which the identity belongs.
|
16
|
+
* @param options The parameter options
|
17
|
+
*/
|
18
|
+
constructor(credentials, subscriptionId, options) {
|
19
|
+
var _a, _b, _c;
|
20
|
+
if (credentials === undefined) {
|
21
|
+
throw new Error("'credentials' cannot be null");
|
22
|
+
}
|
23
|
+
if (subscriptionId === undefined) {
|
24
|
+
throw new Error("'subscriptionId' cannot be null");
|
25
|
+
}
|
26
|
+
// Initializing default values for options
|
27
|
+
if (!options) {
|
28
|
+
options = {};
|
29
|
+
}
|
30
|
+
const defaults = {
|
31
|
+
requestContentType: "application/json; charset=utf-8",
|
32
|
+
credential: credentials
|
33
|
+
};
|
34
|
+
const packageDetails = `azsdk-js-arm-msi/2.1.1`;
|
35
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
36
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
37
|
+
: `${packageDetails}`;
|
38
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
39
|
+
userAgentPrefix
|
40
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
41
|
+
super(optionsWithDefaults);
|
42
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
43
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
44
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
45
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
46
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
47
|
+
}
|
48
|
+
if (!options ||
|
49
|
+
!options.pipeline ||
|
50
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
51
|
+
!bearerTokenAuthenticationPolicyFound) {
|
52
|
+
this.pipeline.removePolicy({
|
53
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
54
|
+
});
|
55
|
+
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
56
|
+
credential: credentials,
|
57
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
58
|
+
challengeCallbacks: {
|
59
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
60
|
+
}
|
61
|
+
}));
|
62
|
+
}
|
63
|
+
// Parameter assignments
|
64
|
+
this.subscriptionId = subscriptionId;
|
65
|
+
// Assigning values to Constant parameters
|
66
|
+
this.$host = options.$host || "https://management.azure.com";
|
67
|
+
this.apiVersion = options.apiVersion || "2023-01-31";
|
68
|
+
this.systemAssignedIdentities = new SystemAssignedIdentitiesImpl(this);
|
69
|
+
this.operations = new OperationsImpl(this);
|
70
|
+
this.userAssignedIdentities = new UserAssignedIdentitiesImpl(this);
|
71
|
+
this.federatedIdentityCredentials = new FederatedIdentityCredentialsImpl(this);
|
72
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
73
|
+
}
|
74
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
75
|
+
addCustomApiVersionPolicy(apiVersion) {
|
76
|
+
if (!apiVersion) {
|
77
|
+
return;
|
78
|
+
}
|
79
|
+
const apiVersionPolicy = {
|
80
|
+
name: "CustomApiVersionPolicy",
|
81
|
+
async sendRequest(request, next) {
|
82
|
+
const param = request.url.split("?");
|
83
|
+
if (param.length > 1) {
|
84
|
+
const newParams = param[1].split("&").map((item) => {
|
85
|
+
if (item.indexOf("api-version") > -1) {
|
86
|
+
return "api-version=" + apiVersion;
|
87
|
+
}
|
88
|
+
else {
|
89
|
+
return item;
|
90
|
+
}
|
91
|
+
});
|
92
|
+
request.url = param[0] + "?" + newParams.join("&");
|
93
|
+
}
|
94
|
+
return next(request);
|
95
|
+
}
|
96
|
+
};
|
97
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
98
|
+
}
|
99
|
+
}
|
100
|
+
//# sourceMappingURL=managedServiceIdentityClient.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"managedServiceIdentityClient.js","sourceRoot":"","sources":["../../src/managedServiceIdentityClient.ts"],"names":[],"mappings":"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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n SystemAssignedIdentitiesImpl,\n OperationsImpl,\n UserAssignedIdentitiesImpl,\n FederatedIdentityCredentialsImpl\n} from \"./operations/index.js\";\nimport {\n SystemAssignedIdentities,\n Operations,\n UserAssignedIdentities,\n FederatedIdentityCredentials\n} from \"./operationsInterfaces/index.js\";\nimport { ManagedServiceIdentityClientOptionalParams } from \"./models/index.js\";\n\nexport class ManagedServiceIdentityClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the ManagedServiceIdentityClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The Id of the Subscription to which the identity belongs.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ManagedServiceIdentityClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ManagedServiceIdentityClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-msi/2.1.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2023-01-31\";\n this.systemAssignedIdentities = new SystemAssignedIdentitiesImpl(this);\n this.operations = new OperationsImpl(this);\n this.userAssignedIdentities = new UserAssignedIdentitiesImpl(this);\n this.federatedIdentityCredentials = new FederatedIdentityCredentialsImpl(\n this\n );\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n systemAssignedIdentities: SystemAssignedIdentities;\n operations: Operations;\n userAssignedIdentities: UserAssignedIdentities;\n federatedIdentityCredentials: FederatedIdentityCredentials;\n}\n"]}
|