@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
package/dist/index.js
DELETED
@@ -1,1615 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
-
|
5
|
-
var tslib = require('tslib');
|
6
|
-
var coreClient = require('@azure/core-client');
|
7
|
-
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
8
|
-
|
9
|
-
function _interopNamespaceDefault(e) {
|
10
|
-
var n = Object.create(null);
|
11
|
-
if (e) {
|
12
|
-
Object.keys(e).forEach(function (k) {
|
13
|
-
if (k !== 'default') {
|
14
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
15
|
-
Object.defineProperty(n, k, d.get ? d : {
|
16
|
-
enumerable: true,
|
17
|
-
get: function () { return e[k]; }
|
18
|
-
});
|
19
|
-
}
|
20
|
-
});
|
21
|
-
}
|
22
|
-
n.default = e;
|
23
|
-
return Object.freeze(n);
|
24
|
-
}
|
25
|
-
|
26
|
-
var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
|
27
|
-
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
|
28
|
-
|
29
|
-
/*
|
30
|
-
* Copyright (c) Microsoft Corporation.
|
31
|
-
* Licensed under the MIT License.
|
32
|
-
*
|
33
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
34
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
35
|
-
*/
|
36
|
-
const pageMap = new WeakMap();
|
37
|
-
/**
|
38
|
-
* Given the last `.value` produced by the `byPage` iterator,
|
39
|
-
* returns a continuation token that can be used to begin paging from
|
40
|
-
* that point later.
|
41
|
-
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
42
|
-
* @returns The continuation token that can be passed into byPage() during future calls.
|
43
|
-
*/
|
44
|
-
function getContinuationToken(page) {
|
45
|
-
var _a;
|
46
|
-
if (typeof page !== "object" || page === null) {
|
47
|
-
return undefined;
|
48
|
-
}
|
49
|
-
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
50
|
-
}
|
51
|
-
function setContinuationToken(page, continuationToken) {
|
52
|
-
var _a;
|
53
|
-
if (typeof page !== "object" || page === null || !continuationToken) {
|
54
|
-
return;
|
55
|
-
}
|
56
|
-
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
57
|
-
pageInfo.continuationToken = continuationToken;
|
58
|
-
pageMap.set(page, pageInfo);
|
59
|
-
}
|
60
|
-
|
61
|
-
/*
|
62
|
-
* Copyright (c) Microsoft Corporation.
|
63
|
-
* Licensed under the MIT License.
|
64
|
-
*
|
65
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
66
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
67
|
-
*/
|
68
|
-
/** Known values of {@link CreatedByType} that the service accepts. */
|
69
|
-
exports.KnownCreatedByType = void 0;
|
70
|
-
(function (KnownCreatedByType) {
|
71
|
-
/** User */
|
72
|
-
KnownCreatedByType["User"] = "User";
|
73
|
-
/** Application */
|
74
|
-
KnownCreatedByType["Application"] = "Application";
|
75
|
-
/** ManagedIdentity */
|
76
|
-
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
77
|
-
/** Key */
|
78
|
-
KnownCreatedByType["Key"] = "Key";
|
79
|
-
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
80
|
-
|
81
|
-
/*
|
82
|
-
* Copyright (c) Microsoft Corporation.
|
83
|
-
* Licensed under the MIT License.
|
84
|
-
*
|
85
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
86
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
87
|
-
*/
|
88
|
-
const Resource = {
|
89
|
-
type: {
|
90
|
-
name: "Composite",
|
91
|
-
className: "Resource",
|
92
|
-
modelProperties: {
|
93
|
-
id: {
|
94
|
-
serializedName: "id",
|
95
|
-
readOnly: true,
|
96
|
-
type: {
|
97
|
-
name: "String"
|
98
|
-
}
|
99
|
-
},
|
100
|
-
name: {
|
101
|
-
serializedName: "name",
|
102
|
-
readOnly: true,
|
103
|
-
type: {
|
104
|
-
name: "String"
|
105
|
-
}
|
106
|
-
},
|
107
|
-
type: {
|
108
|
-
serializedName: "type",
|
109
|
-
readOnly: true,
|
110
|
-
type: {
|
111
|
-
name: "String"
|
112
|
-
}
|
113
|
-
},
|
114
|
-
systemData: {
|
115
|
-
serializedName: "systemData",
|
116
|
-
type: {
|
117
|
-
name: "Composite",
|
118
|
-
className: "SystemData"
|
119
|
-
}
|
120
|
-
}
|
121
|
-
}
|
122
|
-
}
|
123
|
-
};
|
124
|
-
const SystemData = {
|
125
|
-
type: {
|
126
|
-
name: "Composite",
|
127
|
-
className: "SystemData",
|
128
|
-
modelProperties: {
|
129
|
-
createdBy: {
|
130
|
-
serializedName: "createdBy",
|
131
|
-
type: {
|
132
|
-
name: "String"
|
133
|
-
}
|
134
|
-
},
|
135
|
-
createdByType: {
|
136
|
-
serializedName: "createdByType",
|
137
|
-
type: {
|
138
|
-
name: "String"
|
139
|
-
}
|
140
|
-
},
|
141
|
-
createdAt: {
|
142
|
-
serializedName: "createdAt",
|
143
|
-
type: {
|
144
|
-
name: "DateTime"
|
145
|
-
}
|
146
|
-
},
|
147
|
-
lastModifiedBy: {
|
148
|
-
serializedName: "lastModifiedBy",
|
149
|
-
type: {
|
150
|
-
name: "String"
|
151
|
-
}
|
152
|
-
},
|
153
|
-
lastModifiedByType: {
|
154
|
-
serializedName: "lastModifiedByType",
|
155
|
-
type: {
|
156
|
-
name: "String"
|
157
|
-
}
|
158
|
-
},
|
159
|
-
lastModifiedAt: {
|
160
|
-
serializedName: "lastModifiedAt",
|
161
|
-
type: {
|
162
|
-
name: "DateTime"
|
163
|
-
}
|
164
|
-
}
|
165
|
-
}
|
166
|
-
}
|
167
|
-
};
|
168
|
-
const CloudError = {
|
169
|
-
type: {
|
170
|
-
name: "Composite",
|
171
|
-
className: "CloudError",
|
172
|
-
modelProperties: {
|
173
|
-
error: {
|
174
|
-
serializedName: "error",
|
175
|
-
type: {
|
176
|
-
name: "Composite",
|
177
|
-
className: "CloudErrorBody"
|
178
|
-
}
|
179
|
-
}
|
180
|
-
}
|
181
|
-
}
|
182
|
-
};
|
183
|
-
const CloudErrorBody = {
|
184
|
-
type: {
|
185
|
-
name: "Composite",
|
186
|
-
className: "CloudErrorBody",
|
187
|
-
modelProperties: {
|
188
|
-
code: {
|
189
|
-
serializedName: "code",
|
190
|
-
type: {
|
191
|
-
name: "String"
|
192
|
-
}
|
193
|
-
},
|
194
|
-
message: {
|
195
|
-
serializedName: "message",
|
196
|
-
type: {
|
197
|
-
name: "String"
|
198
|
-
}
|
199
|
-
},
|
200
|
-
target: {
|
201
|
-
serializedName: "target",
|
202
|
-
type: {
|
203
|
-
name: "String"
|
204
|
-
}
|
205
|
-
},
|
206
|
-
details: {
|
207
|
-
serializedName: "details",
|
208
|
-
type: {
|
209
|
-
name: "Sequence",
|
210
|
-
element: {
|
211
|
-
type: {
|
212
|
-
name: "Composite",
|
213
|
-
className: "CloudErrorBody"
|
214
|
-
}
|
215
|
-
}
|
216
|
-
}
|
217
|
-
}
|
218
|
-
}
|
219
|
-
}
|
220
|
-
};
|
221
|
-
const OperationListResult = {
|
222
|
-
type: {
|
223
|
-
name: "Composite",
|
224
|
-
className: "OperationListResult",
|
225
|
-
modelProperties: {
|
226
|
-
value: {
|
227
|
-
serializedName: "value",
|
228
|
-
type: {
|
229
|
-
name: "Sequence",
|
230
|
-
element: {
|
231
|
-
type: {
|
232
|
-
name: "Composite",
|
233
|
-
className: "Operation"
|
234
|
-
}
|
235
|
-
}
|
236
|
-
}
|
237
|
-
},
|
238
|
-
nextLink: {
|
239
|
-
serializedName: "nextLink",
|
240
|
-
type: {
|
241
|
-
name: "String"
|
242
|
-
}
|
243
|
-
}
|
244
|
-
}
|
245
|
-
}
|
246
|
-
};
|
247
|
-
const Operation = {
|
248
|
-
type: {
|
249
|
-
name: "Composite",
|
250
|
-
className: "Operation",
|
251
|
-
modelProperties: {
|
252
|
-
name: {
|
253
|
-
serializedName: "name",
|
254
|
-
type: {
|
255
|
-
name: "String"
|
256
|
-
}
|
257
|
-
},
|
258
|
-
display: {
|
259
|
-
serializedName: "display",
|
260
|
-
type: {
|
261
|
-
name: "Composite",
|
262
|
-
className: "OperationDisplay"
|
263
|
-
}
|
264
|
-
}
|
265
|
-
}
|
266
|
-
}
|
267
|
-
};
|
268
|
-
const OperationDisplay = {
|
269
|
-
type: {
|
270
|
-
name: "Composite",
|
271
|
-
className: "OperationDisplay",
|
272
|
-
modelProperties: {
|
273
|
-
provider: {
|
274
|
-
serializedName: "provider",
|
275
|
-
type: {
|
276
|
-
name: "String"
|
277
|
-
}
|
278
|
-
},
|
279
|
-
operation: {
|
280
|
-
serializedName: "operation",
|
281
|
-
type: {
|
282
|
-
name: "String"
|
283
|
-
}
|
284
|
-
},
|
285
|
-
resource: {
|
286
|
-
serializedName: "resource",
|
287
|
-
type: {
|
288
|
-
name: "String"
|
289
|
-
}
|
290
|
-
},
|
291
|
-
description: {
|
292
|
-
serializedName: "description",
|
293
|
-
type: {
|
294
|
-
name: "String"
|
295
|
-
}
|
296
|
-
}
|
297
|
-
}
|
298
|
-
}
|
299
|
-
};
|
300
|
-
const UserAssignedIdentitiesListResult = {
|
301
|
-
type: {
|
302
|
-
name: "Composite",
|
303
|
-
className: "UserAssignedIdentitiesListResult",
|
304
|
-
modelProperties: {
|
305
|
-
value: {
|
306
|
-
serializedName: "value",
|
307
|
-
type: {
|
308
|
-
name: "Sequence",
|
309
|
-
element: {
|
310
|
-
type: {
|
311
|
-
name: "Composite",
|
312
|
-
className: "Identity"
|
313
|
-
}
|
314
|
-
}
|
315
|
-
}
|
316
|
-
},
|
317
|
-
nextLink: {
|
318
|
-
serializedName: "nextLink",
|
319
|
-
type: {
|
320
|
-
name: "String"
|
321
|
-
}
|
322
|
-
}
|
323
|
-
}
|
324
|
-
}
|
325
|
-
};
|
326
|
-
const FederatedIdentityCredentialsListResult = {
|
327
|
-
type: {
|
328
|
-
name: "Composite",
|
329
|
-
className: "FederatedIdentityCredentialsListResult",
|
330
|
-
modelProperties: {
|
331
|
-
value: {
|
332
|
-
serializedName: "value",
|
333
|
-
type: {
|
334
|
-
name: "Sequence",
|
335
|
-
element: {
|
336
|
-
type: {
|
337
|
-
name: "Composite",
|
338
|
-
className: "FederatedIdentityCredential"
|
339
|
-
}
|
340
|
-
}
|
341
|
-
}
|
342
|
-
},
|
343
|
-
nextLink: {
|
344
|
-
serializedName: "nextLink",
|
345
|
-
type: {
|
346
|
-
name: "String"
|
347
|
-
}
|
348
|
-
}
|
349
|
-
}
|
350
|
-
}
|
351
|
-
};
|
352
|
-
const ProxyResource = {
|
353
|
-
type: {
|
354
|
-
name: "Composite",
|
355
|
-
className: "ProxyResource",
|
356
|
-
modelProperties: Object.assign({}, Resource.type.modelProperties)
|
357
|
-
}
|
358
|
-
};
|
359
|
-
const TrackedResource = {
|
360
|
-
type: {
|
361
|
-
name: "Composite",
|
362
|
-
className: "TrackedResource",
|
363
|
-
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
364
|
-
serializedName: "tags",
|
365
|
-
type: {
|
366
|
-
name: "Dictionary",
|
367
|
-
value: { type: { name: "String" } }
|
368
|
-
}
|
369
|
-
}, location: {
|
370
|
-
serializedName: "location",
|
371
|
-
required: true,
|
372
|
-
type: {
|
373
|
-
name: "String"
|
374
|
-
}
|
375
|
-
} })
|
376
|
-
}
|
377
|
-
};
|
378
|
-
const IdentityUpdate = {
|
379
|
-
type: {
|
380
|
-
name: "Composite",
|
381
|
-
className: "IdentityUpdate",
|
382
|
-
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { location: {
|
383
|
-
serializedName: "location",
|
384
|
-
type: {
|
385
|
-
name: "String"
|
386
|
-
}
|
387
|
-
}, tags: {
|
388
|
-
serializedName: "tags",
|
389
|
-
type: {
|
390
|
-
name: "Dictionary",
|
391
|
-
value: { type: { name: "String" } }
|
392
|
-
}
|
393
|
-
}, tenantId: {
|
394
|
-
serializedName: "properties.tenantId",
|
395
|
-
readOnly: true,
|
396
|
-
type: {
|
397
|
-
name: "Uuid"
|
398
|
-
}
|
399
|
-
}, principalId: {
|
400
|
-
serializedName: "properties.principalId",
|
401
|
-
readOnly: true,
|
402
|
-
type: {
|
403
|
-
name: "Uuid"
|
404
|
-
}
|
405
|
-
}, clientId: {
|
406
|
-
serializedName: "properties.clientId",
|
407
|
-
readOnly: true,
|
408
|
-
type: {
|
409
|
-
name: "Uuid"
|
410
|
-
}
|
411
|
-
} })
|
412
|
-
}
|
413
|
-
};
|
414
|
-
const SystemAssignedIdentity = {
|
415
|
-
type: {
|
416
|
-
name: "Composite",
|
417
|
-
className: "SystemAssignedIdentity",
|
418
|
-
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { location: {
|
419
|
-
serializedName: "location",
|
420
|
-
required: true,
|
421
|
-
type: {
|
422
|
-
name: "String"
|
423
|
-
}
|
424
|
-
}, tags: {
|
425
|
-
serializedName: "tags",
|
426
|
-
type: {
|
427
|
-
name: "Dictionary",
|
428
|
-
value: { type: { name: "String" } }
|
429
|
-
}
|
430
|
-
}, tenantId: {
|
431
|
-
serializedName: "properties.tenantId",
|
432
|
-
readOnly: true,
|
433
|
-
type: {
|
434
|
-
name: "Uuid"
|
435
|
-
}
|
436
|
-
}, principalId: {
|
437
|
-
serializedName: "properties.principalId",
|
438
|
-
readOnly: true,
|
439
|
-
type: {
|
440
|
-
name: "Uuid"
|
441
|
-
}
|
442
|
-
}, clientId: {
|
443
|
-
serializedName: "properties.clientId",
|
444
|
-
readOnly: true,
|
445
|
-
type: {
|
446
|
-
name: "Uuid"
|
447
|
-
}
|
448
|
-
}, clientSecretUrl: {
|
449
|
-
serializedName: "properties.clientSecretUrl",
|
450
|
-
readOnly: true,
|
451
|
-
type: {
|
452
|
-
name: "String"
|
453
|
-
}
|
454
|
-
} })
|
455
|
-
}
|
456
|
-
};
|
457
|
-
const FederatedIdentityCredential = {
|
458
|
-
type: {
|
459
|
-
name: "Composite",
|
460
|
-
className: "FederatedIdentityCredential",
|
461
|
-
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { issuer: {
|
462
|
-
serializedName: "properties.issuer",
|
463
|
-
type: {
|
464
|
-
name: "String"
|
465
|
-
}
|
466
|
-
}, subject: {
|
467
|
-
serializedName: "properties.subject",
|
468
|
-
type: {
|
469
|
-
name: "String"
|
470
|
-
}
|
471
|
-
}, audiences: {
|
472
|
-
serializedName: "properties.audiences",
|
473
|
-
type: {
|
474
|
-
name: "Sequence",
|
475
|
-
element: {
|
476
|
-
type: {
|
477
|
-
name: "String"
|
478
|
-
}
|
479
|
-
}
|
480
|
-
}
|
481
|
-
} })
|
482
|
-
}
|
483
|
-
};
|
484
|
-
const Identity = {
|
485
|
-
type: {
|
486
|
-
name: "Composite",
|
487
|
-
className: "Identity",
|
488
|
-
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { tenantId: {
|
489
|
-
serializedName: "properties.tenantId",
|
490
|
-
readOnly: true,
|
491
|
-
type: {
|
492
|
-
name: "Uuid"
|
493
|
-
}
|
494
|
-
}, principalId: {
|
495
|
-
serializedName: "properties.principalId",
|
496
|
-
readOnly: true,
|
497
|
-
type: {
|
498
|
-
name: "Uuid"
|
499
|
-
}
|
500
|
-
}, clientId: {
|
501
|
-
serializedName: "properties.clientId",
|
502
|
-
readOnly: true,
|
503
|
-
type: {
|
504
|
-
name: "Uuid"
|
505
|
-
}
|
506
|
-
} })
|
507
|
-
}
|
508
|
-
};
|
509
|
-
|
510
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
511
|
-
__proto__: null,
|
512
|
-
CloudError: CloudError,
|
513
|
-
CloudErrorBody: CloudErrorBody,
|
514
|
-
FederatedIdentityCredential: FederatedIdentityCredential,
|
515
|
-
FederatedIdentityCredentialsListResult: FederatedIdentityCredentialsListResult,
|
516
|
-
Identity: Identity,
|
517
|
-
IdentityUpdate: IdentityUpdate,
|
518
|
-
Operation: Operation,
|
519
|
-
OperationDisplay: OperationDisplay,
|
520
|
-
OperationListResult: OperationListResult,
|
521
|
-
ProxyResource: ProxyResource,
|
522
|
-
Resource: Resource,
|
523
|
-
SystemAssignedIdentity: SystemAssignedIdentity,
|
524
|
-
SystemData: SystemData,
|
525
|
-
TrackedResource: TrackedResource,
|
526
|
-
UserAssignedIdentitiesListResult: UserAssignedIdentitiesListResult
|
527
|
-
});
|
528
|
-
|
529
|
-
/*
|
530
|
-
* Copyright (c) Microsoft Corporation.
|
531
|
-
* Licensed under the MIT License.
|
532
|
-
*
|
533
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
534
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
535
|
-
*/
|
536
|
-
const accept = {
|
537
|
-
parameterPath: "accept",
|
538
|
-
mapper: {
|
539
|
-
defaultValue: "application/json",
|
540
|
-
isConstant: true,
|
541
|
-
serializedName: "Accept",
|
542
|
-
type: {
|
543
|
-
name: "String"
|
544
|
-
}
|
545
|
-
}
|
546
|
-
};
|
547
|
-
const $host = {
|
548
|
-
parameterPath: "$host",
|
549
|
-
mapper: {
|
550
|
-
serializedName: "$host",
|
551
|
-
required: true,
|
552
|
-
type: {
|
553
|
-
name: "String"
|
554
|
-
}
|
555
|
-
},
|
556
|
-
skipEncoding: true
|
557
|
-
};
|
558
|
-
const scope = {
|
559
|
-
parameterPath: "scope",
|
560
|
-
mapper: {
|
561
|
-
serializedName: "scope",
|
562
|
-
required: true,
|
563
|
-
type: {
|
564
|
-
name: "String"
|
565
|
-
}
|
566
|
-
},
|
567
|
-
skipEncoding: true
|
568
|
-
};
|
569
|
-
const apiVersion = {
|
570
|
-
parameterPath: "apiVersion",
|
571
|
-
mapper: {
|
572
|
-
defaultValue: "2023-01-31",
|
573
|
-
isConstant: true,
|
574
|
-
serializedName: "api-version",
|
575
|
-
type: {
|
576
|
-
name: "String"
|
577
|
-
}
|
578
|
-
}
|
579
|
-
};
|
580
|
-
const nextLink = {
|
581
|
-
parameterPath: "nextLink",
|
582
|
-
mapper: {
|
583
|
-
serializedName: "nextLink",
|
584
|
-
required: true,
|
585
|
-
type: {
|
586
|
-
name: "String"
|
587
|
-
}
|
588
|
-
},
|
589
|
-
skipEncoding: true
|
590
|
-
};
|
591
|
-
const subscriptionId = {
|
592
|
-
parameterPath: "subscriptionId",
|
593
|
-
mapper: {
|
594
|
-
serializedName: "subscriptionId",
|
595
|
-
required: true,
|
596
|
-
type: {
|
597
|
-
name: "String"
|
598
|
-
}
|
599
|
-
}
|
600
|
-
};
|
601
|
-
const resourceGroupName = {
|
602
|
-
parameterPath: "resourceGroupName",
|
603
|
-
mapper: {
|
604
|
-
serializedName: "resourceGroupName",
|
605
|
-
required: true,
|
606
|
-
type: {
|
607
|
-
name: "String"
|
608
|
-
}
|
609
|
-
}
|
610
|
-
};
|
611
|
-
const contentType = {
|
612
|
-
parameterPath: ["options", "contentType"],
|
613
|
-
mapper: {
|
614
|
-
defaultValue: "application/json",
|
615
|
-
isConstant: true,
|
616
|
-
serializedName: "Content-Type",
|
617
|
-
type: {
|
618
|
-
name: "String"
|
619
|
-
}
|
620
|
-
}
|
621
|
-
};
|
622
|
-
const parameters = {
|
623
|
-
parameterPath: "parameters",
|
624
|
-
mapper: Identity
|
625
|
-
};
|
626
|
-
const resourceName = {
|
627
|
-
parameterPath: "resourceName",
|
628
|
-
mapper: {
|
629
|
-
serializedName: "resourceName",
|
630
|
-
required: true,
|
631
|
-
type: {
|
632
|
-
name: "String"
|
633
|
-
}
|
634
|
-
}
|
635
|
-
};
|
636
|
-
const parameters1 = {
|
637
|
-
parameterPath: "parameters",
|
638
|
-
mapper: IdentityUpdate
|
639
|
-
};
|
640
|
-
const resourceGroupName1 = {
|
641
|
-
parameterPath: "resourceGroupName",
|
642
|
-
mapper: {
|
643
|
-
constraints: {
|
644
|
-
MaxLength: 90,
|
645
|
-
MinLength: 1
|
646
|
-
},
|
647
|
-
serializedName: "resourceGroupName",
|
648
|
-
required: true,
|
649
|
-
type: {
|
650
|
-
name: "String"
|
651
|
-
}
|
652
|
-
}
|
653
|
-
};
|
654
|
-
const top = {
|
655
|
-
parameterPath: ["options", "top"],
|
656
|
-
mapper: {
|
657
|
-
constraints: {
|
658
|
-
InclusiveMinimum: 1
|
659
|
-
},
|
660
|
-
serializedName: "$top",
|
661
|
-
type: {
|
662
|
-
name: "Number"
|
663
|
-
}
|
664
|
-
}
|
665
|
-
};
|
666
|
-
const skiptoken = {
|
667
|
-
parameterPath: ["options", "skiptoken"],
|
668
|
-
mapper: {
|
669
|
-
serializedName: "$skiptoken",
|
670
|
-
type: {
|
671
|
-
name: "String"
|
672
|
-
}
|
673
|
-
}
|
674
|
-
};
|
675
|
-
const parameters2 = {
|
676
|
-
parameterPath: "parameters",
|
677
|
-
mapper: FederatedIdentityCredential
|
678
|
-
};
|
679
|
-
const federatedIdentityCredentialResourceName = {
|
680
|
-
parameterPath: "federatedIdentityCredentialResourceName",
|
681
|
-
mapper: {
|
682
|
-
constraints: {
|
683
|
-
Pattern: new RegExp("^[a-zA-Z0-9]{1}[a-zA-Z0-9-_]{2,119}$")
|
684
|
-
},
|
685
|
-
serializedName: "federatedIdentityCredentialResourceName",
|
686
|
-
required: true,
|
687
|
-
type: {
|
688
|
-
name: "String"
|
689
|
-
}
|
690
|
-
}
|
691
|
-
};
|
692
|
-
|
693
|
-
/*
|
694
|
-
* Copyright (c) Microsoft Corporation.
|
695
|
-
* Licensed under the MIT License.
|
696
|
-
*
|
697
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
698
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
699
|
-
*/
|
700
|
-
/** Class containing SystemAssignedIdentities operations. */
|
701
|
-
class SystemAssignedIdentitiesImpl {
|
702
|
-
/**
|
703
|
-
* Initialize a new instance of the class SystemAssignedIdentities class.
|
704
|
-
* @param client Reference to the service client
|
705
|
-
*/
|
706
|
-
constructor(client) {
|
707
|
-
this.client = client;
|
708
|
-
}
|
709
|
-
/**
|
710
|
-
* Gets the systemAssignedIdentity available under the specified RP scope.
|
711
|
-
* @param scope The resource provider scope of the resource. Parent resource being extended by Managed
|
712
|
-
* Identities.
|
713
|
-
* @param options The options parameters.
|
714
|
-
*/
|
715
|
-
getByScope(scope, options) {
|
716
|
-
return this.client.sendOperationRequest({ scope, options }, getByScopeOperationSpec);
|
717
|
-
}
|
718
|
-
}
|
719
|
-
// Operation Specifications
|
720
|
-
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
721
|
-
const getByScopeOperationSpec = {
|
722
|
-
path: "/{scope}/providers/Microsoft.ManagedIdentity/identities/default",
|
723
|
-
httpMethod: "GET",
|
724
|
-
responses: {
|
725
|
-
200: {
|
726
|
-
bodyMapper: SystemAssignedIdentity
|
727
|
-
},
|
728
|
-
default: {
|
729
|
-
bodyMapper: CloudError
|
730
|
-
}
|
731
|
-
},
|
732
|
-
queryParameters: [apiVersion],
|
733
|
-
urlParameters: [$host, scope],
|
734
|
-
headerParameters: [accept],
|
735
|
-
serializer: serializer$3
|
736
|
-
};
|
737
|
-
|
738
|
-
/*
|
739
|
-
* Copyright (c) Microsoft Corporation.
|
740
|
-
* Licensed under the MIT License.
|
741
|
-
*
|
742
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
743
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
744
|
-
*/
|
745
|
-
/// <reference lib="esnext.asynciterable" />
|
746
|
-
/** Class containing Operations operations. */
|
747
|
-
class OperationsImpl {
|
748
|
-
/**
|
749
|
-
* Initialize a new instance of the class Operations class.
|
750
|
-
* @param client Reference to the service client
|
751
|
-
*/
|
752
|
-
constructor(client) {
|
753
|
-
this.client = client;
|
754
|
-
}
|
755
|
-
/**
|
756
|
-
* Lists available operations for the Microsoft.ManagedIdentity provider
|
757
|
-
* @param options The options parameters.
|
758
|
-
*/
|
759
|
-
list(options) {
|
760
|
-
const iter = this.listPagingAll(options);
|
761
|
-
return {
|
762
|
-
next() {
|
763
|
-
return iter.next();
|
764
|
-
},
|
765
|
-
[Symbol.asyncIterator]() {
|
766
|
-
return this;
|
767
|
-
},
|
768
|
-
byPage: (settings) => {
|
769
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
770
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
771
|
-
}
|
772
|
-
return this.listPagingPage(options, settings);
|
773
|
-
}
|
774
|
-
};
|
775
|
-
}
|
776
|
-
listPagingPage(options, settings) {
|
777
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
778
|
-
let result;
|
779
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
780
|
-
if (!continuationToken) {
|
781
|
-
result = yield tslib.__await(this._list(options));
|
782
|
-
let page = result.value || [];
|
783
|
-
continuationToken = result.nextLink;
|
784
|
-
setContinuationToken(page, continuationToken);
|
785
|
-
yield yield tslib.__await(page);
|
786
|
-
}
|
787
|
-
while (continuationToken) {
|
788
|
-
result = yield tslib.__await(this._listNext(continuationToken, options));
|
789
|
-
continuationToken = result.nextLink;
|
790
|
-
let page = result.value || [];
|
791
|
-
setContinuationToken(page, continuationToken);
|
792
|
-
yield yield tslib.__await(page);
|
793
|
-
}
|
794
|
-
});
|
795
|
-
}
|
796
|
-
listPagingAll(options) {
|
797
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
798
|
-
var _a, e_1, _b, _c;
|
799
|
-
try {
|
800
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
801
|
-
_c = _f.value;
|
802
|
-
_d = false;
|
803
|
-
const page = _c;
|
804
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
805
|
-
}
|
806
|
-
}
|
807
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
808
|
-
finally {
|
809
|
-
try {
|
810
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
811
|
-
}
|
812
|
-
finally { if (e_1) throw e_1.error; }
|
813
|
-
}
|
814
|
-
});
|
815
|
-
}
|
816
|
-
/**
|
817
|
-
* Lists available operations for the Microsoft.ManagedIdentity provider
|
818
|
-
* @param options The options parameters.
|
819
|
-
*/
|
820
|
-
_list(options) {
|
821
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
822
|
-
}
|
823
|
-
/**
|
824
|
-
* ListNext
|
825
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
826
|
-
* @param options The options parameters.
|
827
|
-
*/
|
828
|
-
_listNext(nextLink, options) {
|
829
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
|
830
|
-
}
|
831
|
-
}
|
832
|
-
// Operation Specifications
|
833
|
-
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
834
|
-
const listOperationSpec$1 = {
|
835
|
-
path: "/providers/Microsoft.ManagedIdentity/operations",
|
836
|
-
httpMethod: "GET",
|
837
|
-
responses: {
|
838
|
-
200: {
|
839
|
-
bodyMapper: OperationListResult
|
840
|
-
},
|
841
|
-
default: {
|
842
|
-
bodyMapper: CloudError
|
843
|
-
}
|
844
|
-
},
|
845
|
-
queryParameters: [apiVersion],
|
846
|
-
urlParameters: [$host],
|
847
|
-
headerParameters: [accept],
|
848
|
-
serializer: serializer$2
|
849
|
-
};
|
850
|
-
const listNextOperationSpec$1 = {
|
851
|
-
path: "{nextLink}",
|
852
|
-
httpMethod: "GET",
|
853
|
-
responses: {
|
854
|
-
200: {
|
855
|
-
bodyMapper: OperationListResult
|
856
|
-
},
|
857
|
-
default: {
|
858
|
-
bodyMapper: CloudError
|
859
|
-
}
|
860
|
-
},
|
861
|
-
urlParameters: [$host, nextLink],
|
862
|
-
headerParameters: [accept],
|
863
|
-
serializer: serializer$2
|
864
|
-
};
|
865
|
-
|
866
|
-
/*
|
867
|
-
* Copyright (c) Microsoft Corporation.
|
868
|
-
* Licensed under the MIT License.
|
869
|
-
*
|
870
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
871
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
872
|
-
*/
|
873
|
-
/// <reference lib="esnext.asynciterable" />
|
874
|
-
/** Class containing UserAssignedIdentities operations. */
|
875
|
-
class UserAssignedIdentitiesImpl {
|
876
|
-
/**
|
877
|
-
* Initialize a new instance of the class UserAssignedIdentities class.
|
878
|
-
* @param client Reference to the service client
|
879
|
-
*/
|
880
|
-
constructor(client) {
|
881
|
-
this.client = client;
|
882
|
-
}
|
883
|
-
/**
|
884
|
-
* Lists all the userAssignedIdentities available under the specified subscription.
|
885
|
-
* @param options The options parameters.
|
886
|
-
*/
|
887
|
-
listBySubscription(options) {
|
888
|
-
const iter = this.listBySubscriptionPagingAll(options);
|
889
|
-
return {
|
890
|
-
next() {
|
891
|
-
return iter.next();
|
892
|
-
},
|
893
|
-
[Symbol.asyncIterator]() {
|
894
|
-
return this;
|
895
|
-
},
|
896
|
-
byPage: (settings) => {
|
897
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
898
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
899
|
-
}
|
900
|
-
return this.listBySubscriptionPagingPage(options, settings);
|
901
|
-
}
|
902
|
-
};
|
903
|
-
}
|
904
|
-
listBySubscriptionPagingPage(options, settings) {
|
905
|
-
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
906
|
-
let result;
|
907
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
908
|
-
if (!continuationToken) {
|
909
|
-
result = yield tslib.__await(this._listBySubscription(options));
|
910
|
-
let page = result.value || [];
|
911
|
-
continuationToken = result.nextLink;
|
912
|
-
setContinuationToken(page, continuationToken);
|
913
|
-
yield yield tslib.__await(page);
|
914
|
-
}
|
915
|
-
while (continuationToken) {
|
916
|
-
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
917
|
-
continuationToken = result.nextLink;
|
918
|
-
let page = result.value || [];
|
919
|
-
setContinuationToken(page, continuationToken);
|
920
|
-
yield yield tslib.__await(page);
|
921
|
-
}
|
922
|
-
});
|
923
|
-
}
|
924
|
-
listBySubscriptionPagingAll(options) {
|
925
|
-
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
926
|
-
var _a, e_1, _b, _c;
|
927
|
-
try {
|
928
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
929
|
-
_c = _f.value;
|
930
|
-
_d = false;
|
931
|
-
const page = _c;
|
932
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
933
|
-
}
|
934
|
-
}
|
935
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
936
|
-
finally {
|
937
|
-
try {
|
938
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
939
|
-
}
|
940
|
-
finally { if (e_1) throw e_1.error; }
|
941
|
-
}
|
942
|
-
});
|
943
|
-
}
|
944
|
-
/**
|
945
|
-
* Lists all the userAssignedIdentities available under the specified ResourceGroup.
|
946
|
-
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
947
|
-
* @param options The options parameters.
|
948
|
-
*/
|
949
|
-
listByResourceGroup(resourceGroupName, options) {
|
950
|
-
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
951
|
-
return {
|
952
|
-
next() {
|
953
|
-
return iter.next();
|
954
|
-
},
|
955
|
-
[Symbol.asyncIterator]() {
|
956
|
-
return this;
|
957
|
-
},
|
958
|
-
byPage: (settings) => {
|
959
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
960
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
961
|
-
}
|
962
|
-
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
963
|
-
}
|
964
|
-
};
|
965
|
-
}
|
966
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
967
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
968
|
-
let result;
|
969
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
970
|
-
if (!continuationToken) {
|
971
|
-
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
972
|
-
let page = result.value || [];
|
973
|
-
continuationToken = result.nextLink;
|
974
|
-
setContinuationToken(page, continuationToken);
|
975
|
-
yield yield tslib.__await(page);
|
976
|
-
}
|
977
|
-
while (continuationToken) {
|
978
|
-
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
979
|
-
continuationToken = result.nextLink;
|
980
|
-
let page = result.value || [];
|
981
|
-
setContinuationToken(page, continuationToken);
|
982
|
-
yield yield tslib.__await(page);
|
983
|
-
}
|
984
|
-
});
|
985
|
-
}
|
986
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
987
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
988
|
-
var _a, e_2, _b, _c;
|
989
|
-
try {
|
990
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
991
|
-
_c = _f.value;
|
992
|
-
_d = false;
|
993
|
-
const page = _c;
|
994
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
995
|
-
}
|
996
|
-
}
|
997
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
998
|
-
finally {
|
999
|
-
try {
|
1000
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
1001
|
-
}
|
1002
|
-
finally { if (e_2) throw e_2.error; }
|
1003
|
-
}
|
1004
|
-
});
|
1005
|
-
}
|
1006
|
-
/**
|
1007
|
-
* Lists all the userAssignedIdentities available under the specified subscription.
|
1008
|
-
* @param options The options parameters.
|
1009
|
-
*/
|
1010
|
-
_listBySubscription(options) {
|
1011
|
-
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
1012
|
-
}
|
1013
|
-
/**
|
1014
|
-
* Lists all the userAssignedIdentities available under the specified ResourceGroup.
|
1015
|
-
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
1016
|
-
* @param options The options parameters.
|
1017
|
-
*/
|
1018
|
-
_listByResourceGroup(resourceGroupName, options) {
|
1019
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
1020
|
-
}
|
1021
|
-
/**
|
1022
|
-
* Create or update an identity in the specified subscription and resource group.
|
1023
|
-
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
1024
|
-
* @param resourceName The name of the identity resource.
|
1025
|
-
* @param parameters Parameters to create or update the identity
|
1026
|
-
* @param options The options parameters.
|
1027
|
-
*/
|
1028
|
-
createOrUpdate(resourceGroupName, resourceName, parameters, options) {
|
1029
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, parameters, options }, createOrUpdateOperationSpec$1);
|
1030
|
-
}
|
1031
|
-
/**
|
1032
|
-
* Update an identity in the specified subscription and resource group.
|
1033
|
-
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
1034
|
-
* @param resourceName The name of the identity resource.
|
1035
|
-
* @param parameters Parameters to update the identity
|
1036
|
-
* @param options The options parameters.
|
1037
|
-
*/
|
1038
|
-
update(resourceGroupName, resourceName, parameters, options) {
|
1039
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, parameters, options }, updateOperationSpec);
|
1040
|
-
}
|
1041
|
-
/**
|
1042
|
-
* Gets the identity.
|
1043
|
-
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
1044
|
-
* @param resourceName The name of the identity resource.
|
1045
|
-
* @param options The options parameters.
|
1046
|
-
*/
|
1047
|
-
get(resourceGroupName, resourceName, options) {
|
1048
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec$1);
|
1049
|
-
}
|
1050
|
-
/**
|
1051
|
-
* Deletes the identity.
|
1052
|
-
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
1053
|
-
* @param resourceName The name of the identity resource.
|
1054
|
-
* @param options The options parameters.
|
1055
|
-
*/
|
1056
|
-
delete(resourceGroupName, resourceName, options) {
|
1057
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, deleteOperationSpec$1);
|
1058
|
-
}
|
1059
|
-
/**
|
1060
|
-
* ListBySubscriptionNext
|
1061
|
-
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
1062
|
-
* @param options The options parameters.
|
1063
|
-
*/
|
1064
|
-
_listBySubscriptionNext(nextLink, options) {
|
1065
|
-
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
1066
|
-
}
|
1067
|
-
/**
|
1068
|
-
* ListByResourceGroupNext
|
1069
|
-
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
1070
|
-
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
1071
|
-
* @param options The options parameters.
|
1072
|
-
*/
|
1073
|
-
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
1074
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
1075
|
-
}
|
1076
|
-
}
|
1077
|
-
// Operation Specifications
|
1078
|
-
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
1079
|
-
const listBySubscriptionOperationSpec = {
|
1080
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ManagedIdentity/userAssignedIdentities",
|
1081
|
-
httpMethod: "GET",
|
1082
|
-
responses: {
|
1083
|
-
200: {
|
1084
|
-
bodyMapper: UserAssignedIdentitiesListResult
|
1085
|
-
},
|
1086
|
-
default: {
|
1087
|
-
bodyMapper: CloudError
|
1088
|
-
}
|
1089
|
-
},
|
1090
|
-
queryParameters: [apiVersion],
|
1091
|
-
urlParameters: [$host, subscriptionId],
|
1092
|
-
headerParameters: [accept],
|
1093
|
-
serializer: serializer$1
|
1094
|
-
};
|
1095
|
-
const listByResourceGroupOperationSpec = {
|
1096
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities",
|
1097
|
-
httpMethod: "GET",
|
1098
|
-
responses: {
|
1099
|
-
200: {
|
1100
|
-
bodyMapper: UserAssignedIdentitiesListResult
|
1101
|
-
},
|
1102
|
-
default: {
|
1103
|
-
bodyMapper: CloudError
|
1104
|
-
}
|
1105
|
-
},
|
1106
|
-
queryParameters: [apiVersion],
|
1107
|
-
urlParameters: [
|
1108
|
-
$host,
|
1109
|
-
subscriptionId,
|
1110
|
-
resourceGroupName
|
1111
|
-
],
|
1112
|
-
headerParameters: [accept],
|
1113
|
-
serializer: serializer$1
|
1114
|
-
};
|
1115
|
-
const createOrUpdateOperationSpec$1 = {
|
1116
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}",
|
1117
|
-
httpMethod: "PUT",
|
1118
|
-
responses: {
|
1119
|
-
200: {
|
1120
|
-
bodyMapper: Identity
|
1121
|
-
},
|
1122
|
-
201: {
|
1123
|
-
bodyMapper: Identity
|
1124
|
-
},
|
1125
|
-
default: {
|
1126
|
-
bodyMapper: CloudError
|
1127
|
-
}
|
1128
|
-
},
|
1129
|
-
requestBody: parameters,
|
1130
|
-
queryParameters: [apiVersion],
|
1131
|
-
urlParameters: [
|
1132
|
-
$host,
|
1133
|
-
subscriptionId,
|
1134
|
-
resourceGroupName,
|
1135
|
-
resourceName
|
1136
|
-
],
|
1137
|
-
headerParameters: [accept, contentType],
|
1138
|
-
mediaType: "json",
|
1139
|
-
serializer: serializer$1
|
1140
|
-
};
|
1141
|
-
const updateOperationSpec = {
|
1142
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}",
|
1143
|
-
httpMethod: "PATCH",
|
1144
|
-
responses: {
|
1145
|
-
200: {
|
1146
|
-
bodyMapper: Identity
|
1147
|
-
},
|
1148
|
-
default: {
|
1149
|
-
bodyMapper: CloudError
|
1150
|
-
}
|
1151
|
-
},
|
1152
|
-
requestBody: parameters1,
|
1153
|
-
queryParameters: [apiVersion],
|
1154
|
-
urlParameters: [
|
1155
|
-
$host,
|
1156
|
-
subscriptionId,
|
1157
|
-
resourceGroupName,
|
1158
|
-
resourceName
|
1159
|
-
],
|
1160
|
-
headerParameters: [accept, contentType],
|
1161
|
-
mediaType: "json",
|
1162
|
-
serializer: serializer$1
|
1163
|
-
};
|
1164
|
-
const getOperationSpec$1 = {
|
1165
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}",
|
1166
|
-
httpMethod: "GET",
|
1167
|
-
responses: {
|
1168
|
-
200: {
|
1169
|
-
bodyMapper: Identity
|
1170
|
-
},
|
1171
|
-
default: {
|
1172
|
-
bodyMapper: CloudError
|
1173
|
-
}
|
1174
|
-
},
|
1175
|
-
queryParameters: [apiVersion],
|
1176
|
-
urlParameters: [
|
1177
|
-
$host,
|
1178
|
-
subscriptionId,
|
1179
|
-
resourceGroupName,
|
1180
|
-
resourceName
|
1181
|
-
],
|
1182
|
-
headerParameters: [accept],
|
1183
|
-
serializer: serializer$1
|
1184
|
-
};
|
1185
|
-
const deleteOperationSpec$1 = {
|
1186
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}",
|
1187
|
-
httpMethod: "DELETE",
|
1188
|
-
responses: {
|
1189
|
-
200: {},
|
1190
|
-
204: {},
|
1191
|
-
default: {
|
1192
|
-
bodyMapper: CloudError
|
1193
|
-
}
|
1194
|
-
},
|
1195
|
-
queryParameters: [apiVersion],
|
1196
|
-
urlParameters: [
|
1197
|
-
$host,
|
1198
|
-
subscriptionId,
|
1199
|
-
resourceGroupName,
|
1200
|
-
resourceName
|
1201
|
-
],
|
1202
|
-
headerParameters: [accept],
|
1203
|
-
serializer: serializer$1
|
1204
|
-
};
|
1205
|
-
const listBySubscriptionNextOperationSpec = {
|
1206
|
-
path: "{nextLink}",
|
1207
|
-
httpMethod: "GET",
|
1208
|
-
responses: {
|
1209
|
-
200: {
|
1210
|
-
bodyMapper: UserAssignedIdentitiesListResult
|
1211
|
-
},
|
1212
|
-
default: {
|
1213
|
-
bodyMapper: CloudError
|
1214
|
-
}
|
1215
|
-
},
|
1216
|
-
urlParameters: [
|
1217
|
-
$host,
|
1218
|
-
nextLink,
|
1219
|
-
subscriptionId
|
1220
|
-
],
|
1221
|
-
headerParameters: [accept],
|
1222
|
-
serializer: serializer$1
|
1223
|
-
};
|
1224
|
-
const listByResourceGroupNextOperationSpec = {
|
1225
|
-
path: "{nextLink}",
|
1226
|
-
httpMethod: "GET",
|
1227
|
-
responses: {
|
1228
|
-
200: {
|
1229
|
-
bodyMapper: UserAssignedIdentitiesListResult
|
1230
|
-
},
|
1231
|
-
default: {
|
1232
|
-
bodyMapper: CloudError
|
1233
|
-
}
|
1234
|
-
},
|
1235
|
-
urlParameters: [
|
1236
|
-
$host,
|
1237
|
-
nextLink,
|
1238
|
-
subscriptionId,
|
1239
|
-
resourceGroupName
|
1240
|
-
],
|
1241
|
-
headerParameters: [accept],
|
1242
|
-
serializer: serializer$1
|
1243
|
-
};
|
1244
|
-
|
1245
|
-
/*
|
1246
|
-
* Copyright (c) Microsoft Corporation.
|
1247
|
-
* Licensed under the MIT License.
|
1248
|
-
*
|
1249
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
1250
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
1251
|
-
*/
|
1252
|
-
/// <reference lib="esnext.asynciterable" />
|
1253
|
-
/** Class containing FederatedIdentityCredentials operations. */
|
1254
|
-
class FederatedIdentityCredentialsImpl {
|
1255
|
-
/**
|
1256
|
-
* Initialize a new instance of the class FederatedIdentityCredentials class.
|
1257
|
-
* @param client Reference to the service client
|
1258
|
-
*/
|
1259
|
-
constructor(client) {
|
1260
|
-
this.client = client;
|
1261
|
-
}
|
1262
|
-
/**
|
1263
|
-
* Lists all the federated identity credentials under the specified user assigned identity.
|
1264
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1265
|
-
* @param resourceName The name of the identity resource.
|
1266
|
-
* @param options The options parameters.
|
1267
|
-
*/
|
1268
|
-
list(resourceGroupName, resourceName, options) {
|
1269
|
-
const iter = this.listPagingAll(resourceGroupName, resourceName, options);
|
1270
|
-
return {
|
1271
|
-
next() {
|
1272
|
-
return iter.next();
|
1273
|
-
},
|
1274
|
-
[Symbol.asyncIterator]() {
|
1275
|
-
return this;
|
1276
|
-
},
|
1277
|
-
byPage: (settings) => {
|
1278
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
1279
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
1280
|
-
}
|
1281
|
-
return this.listPagingPage(resourceGroupName, resourceName, options, settings);
|
1282
|
-
}
|
1283
|
-
};
|
1284
|
-
}
|
1285
|
-
listPagingPage(resourceGroupName, resourceName, options, settings) {
|
1286
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
1287
|
-
let result;
|
1288
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
1289
|
-
if (!continuationToken) {
|
1290
|
-
result = yield tslib.__await(this._list(resourceGroupName, resourceName, options));
|
1291
|
-
let page = result.value || [];
|
1292
|
-
continuationToken = result.nextLink;
|
1293
|
-
setContinuationToken(page, continuationToken);
|
1294
|
-
yield yield tslib.__await(page);
|
1295
|
-
}
|
1296
|
-
while (continuationToken) {
|
1297
|
-
result = yield tslib.__await(this._listNext(resourceGroupName, resourceName, continuationToken, options));
|
1298
|
-
continuationToken = result.nextLink;
|
1299
|
-
let page = result.value || [];
|
1300
|
-
setContinuationToken(page, continuationToken);
|
1301
|
-
yield yield tslib.__await(page);
|
1302
|
-
}
|
1303
|
-
});
|
1304
|
-
}
|
1305
|
-
listPagingAll(resourceGroupName, resourceName, options) {
|
1306
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
1307
|
-
var _a, e_1, _b, _c;
|
1308
|
-
try {
|
1309
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, resourceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
1310
|
-
_c = _f.value;
|
1311
|
-
_d = false;
|
1312
|
-
const page = _c;
|
1313
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
1314
|
-
}
|
1315
|
-
}
|
1316
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
1317
|
-
finally {
|
1318
|
-
try {
|
1319
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
1320
|
-
}
|
1321
|
-
finally { if (e_1) throw e_1.error; }
|
1322
|
-
}
|
1323
|
-
});
|
1324
|
-
}
|
1325
|
-
/**
|
1326
|
-
* Lists all the federated identity credentials under the specified user assigned identity.
|
1327
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1328
|
-
* @param resourceName The name of the identity resource.
|
1329
|
-
* @param options The options parameters.
|
1330
|
-
*/
|
1331
|
-
_list(resourceGroupName, resourceName, options) {
|
1332
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec);
|
1333
|
-
}
|
1334
|
-
/**
|
1335
|
-
* Create or update a federated identity credential under the specified user assigned identity.
|
1336
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1337
|
-
* @param resourceName The name of the identity resource.
|
1338
|
-
* @param federatedIdentityCredentialResourceName The name of the federated identity credential
|
1339
|
-
* resource.
|
1340
|
-
* @param parameters Parameters to create or update the federated identity credential.
|
1341
|
-
* @param options The options parameters.
|
1342
|
-
*/
|
1343
|
-
createOrUpdate(resourceGroupName, resourceName, federatedIdentityCredentialResourceName, parameters, options) {
|
1344
|
-
return this.client.sendOperationRequest({
|
1345
|
-
resourceGroupName,
|
1346
|
-
resourceName,
|
1347
|
-
federatedIdentityCredentialResourceName,
|
1348
|
-
parameters,
|
1349
|
-
options
|
1350
|
-
}, createOrUpdateOperationSpec);
|
1351
|
-
}
|
1352
|
-
/**
|
1353
|
-
* Gets the federated identity credential.
|
1354
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1355
|
-
* @param resourceName The name of the identity resource.
|
1356
|
-
* @param federatedIdentityCredentialResourceName The name of the federated identity credential
|
1357
|
-
* resource.
|
1358
|
-
* @param options The options parameters.
|
1359
|
-
*/
|
1360
|
-
get(resourceGroupName, resourceName, federatedIdentityCredentialResourceName, options) {
|
1361
|
-
return this.client.sendOperationRequest({
|
1362
|
-
resourceGroupName,
|
1363
|
-
resourceName,
|
1364
|
-
federatedIdentityCredentialResourceName,
|
1365
|
-
options
|
1366
|
-
}, getOperationSpec);
|
1367
|
-
}
|
1368
|
-
/**
|
1369
|
-
* Deletes the federated identity credential.
|
1370
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1371
|
-
* @param resourceName The name of the identity resource.
|
1372
|
-
* @param federatedIdentityCredentialResourceName The name of the federated identity credential
|
1373
|
-
* resource.
|
1374
|
-
* @param options The options parameters.
|
1375
|
-
*/
|
1376
|
-
delete(resourceGroupName, resourceName, federatedIdentityCredentialResourceName, options) {
|
1377
|
-
return this.client.sendOperationRequest({
|
1378
|
-
resourceGroupName,
|
1379
|
-
resourceName,
|
1380
|
-
federatedIdentityCredentialResourceName,
|
1381
|
-
options
|
1382
|
-
}, deleteOperationSpec);
|
1383
|
-
}
|
1384
|
-
/**
|
1385
|
-
* ListNext
|
1386
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1387
|
-
* @param resourceName The name of the identity resource.
|
1388
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
1389
|
-
* @param options The options parameters.
|
1390
|
-
*/
|
1391
|
-
_listNext(resourceGroupName, resourceName, nextLink, options) {
|
1392
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec);
|
1393
|
-
}
|
1394
|
-
}
|
1395
|
-
// Operation Specifications
|
1396
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
1397
|
-
const listOperationSpec = {
|
1398
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}/federatedIdentityCredentials",
|
1399
|
-
httpMethod: "GET",
|
1400
|
-
responses: {
|
1401
|
-
200: {
|
1402
|
-
bodyMapper: FederatedIdentityCredentialsListResult
|
1403
|
-
},
|
1404
|
-
default: {
|
1405
|
-
bodyMapper: CloudError
|
1406
|
-
}
|
1407
|
-
},
|
1408
|
-
queryParameters: [
|
1409
|
-
apiVersion,
|
1410
|
-
top,
|
1411
|
-
skiptoken
|
1412
|
-
],
|
1413
|
-
urlParameters: [
|
1414
|
-
$host,
|
1415
|
-
subscriptionId,
|
1416
|
-
resourceName,
|
1417
|
-
resourceGroupName1
|
1418
|
-
],
|
1419
|
-
headerParameters: [accept],
|
1420
|
-
serializer
|
1421
|
-
};
|
1422
|
-
const createOrUpdateOperationSpec = {
|
1423
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}/federatedIdentityCredentials/{federatedIdentityCredentialResourceName}",
|
1424
|
-
httpMethod: "PUT",
|
1425
|
-
responses: {
|
1426
|
-
200: {
|
1427
|
-
bodyMapper: FederatedIdentityCredential
|
1428
|
-
},
|
1429
|
-
201: {
|
1430
|
-
bodyMapper: FederatedIdentityCredential
|
1431
|
-
},
|
1432
|
-
default: {
|
1433
|
-
bodyMapper: CloudError
|
1434
|
-
}
|
1435
|
-
},
|
1436
|
-
requestBody: parameters2,
|
1437
|
-
queryParameters: [apiVersion],
|
1438
|
-
urlParameters: [
|
1439
|
-
$host,
|
1440
|
-
subscriptionId,
|
1441
|
-
resourceName,
|
1442
|
-
resourceGroupName1,
|
1443
|
-
federatedIdentityCredentialResourceName
|
1444
|
-
],
|
1445
|
-
headerParameters: [accept, contentType],
|
1446
|
-
mediaType: "json",
|
1447
|
-
serializer
|
1448
|
-
};
|
1449
|
-
const getOperationSpec = {
|
1450
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}/federatedIdentityCredentials/{federatedIdentityCredentialResourceName}",
|
1451
|
-
httpMethod: "GET",
|
1452
|
-
responses: {
|
1453
|
-
200: {
|
1454
|
-
bodyMapper: FederatedIdentityCredential
|
1455
|
-
},
|
1456
|
-
default: {
|
1457
|
-
bodyMapper: CloudError
|
1458
|
-
}
|
1459
|
-
},
|
1460
|
-
queryParameters: [apiVersion],
|
1461
|
-
urlParameters: [
|
1462
|
-
$host,
|
1463
|
-
subscriptionId,
|
1464
|
-
resourceName,
|
1465
|
-
resourceGroupName1,
|
1466
|
-
federatedIdentityCredentialResourceName
|
1467
|
-
],
|
1468
|
-
headerParameters: [accept],
|
1469
|
-
serializer
|
1470
|
-
};
|
1471
|
-
const deleteOperationSpec = {
|
1472
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}/federatedIdentityCredentials/{federatedIdentityCredentialResourceName}",
|
1473
|
-
httpMethod: "DELETE",
|
1474
|
-
responses: {
|
1475
|
-
200: {},
|
1476
|
-
204: {},
|
1477
|
-
default: {
|
1478
|
-
bodyMapper: CloudError
|
1479
|
-
}
|
1480
|
-
},
|
1481
|
-
queryParameters: [apiVersion],
|
1482
|
-
urlParameters: [
|
1483
|
-
$host,
|
1484
|
-
subscriptionId,
|
1485
|
-
resourceName,
|
1486
|
-
resourceGroupName1,
|
1487
|
-
federatedIdentityCredentialResourceName
|
1488
|
-
],
|
1489
|
-
headerParameters: [accept],
|
1490
|
-
serializer
|
1491
|
-
};
|
1492
|
-
const listNextOperationSpec = {
|
1493
|
-
path: "{nextLink}",
|
1494
|
-
httpMethod: "GET",
|
1495
|
-
responses: {
|
1496
|
-
200: {
|
1497
|
-
bodyMapper: FederatedIdentityCredentialsListResult
|
1498
|
-
},
|
1499
|
-
default: {
|
1500
|
-
bodyMapper: CloudError
|
1501
|
-
}
|
1502
|
-
},
|
1503
|
-
urlParameters: [
|
1504
|
-
$host,
|
1505
|
-
nextLink,
|
1506
|
-
subscriptionId,
|
1507
|
-
resourceName,
|
1508
|
-
resourceGroupName1
|
1509
|
-
],
|
1510
|
-
headerParameters: [accept],
|
1511
|
-
serializer
|
1512
|
-
};
|
1513
|
-
|
1514
|
-
/*
|
1515
|
-
* Copyright (c) Microsoft Corporation.
|
1516
|
-
* Licensed under the MIT License.
|
1517
|
-
*
|
1518
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
1519
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
1520
|
-
*/
|
1521
|
-
class ManagedServiceIdentityClient extends coreClient__namespace.ServiceClient {
|
1522
|
-
/**
|
1523
|
-
* Initializes a new instance of the ManagedServiceIdentityClient class.
|
1524
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
1525
|
-
* @param subscriptionId The Id of the Subscription to which the identity belongs.
|
1526
|
-
* @param options The parameter options
|
1527
|
-
*/
|
1528
|
-
constructor(credentials, subscriptionId, options) {
|
1529
|
-
var _a, _b, _c;
|
1530
|
-
if (credentials === undefined) {
|
1531
|
-
throw new Error("'credentials' cannot be null");
|
1532
|
-
}
|
1533
|
-
if (subscriptionId === undefined) {
|
1534
|
-
throw new Error("'subscriptionId' cannot be null");
|
1535
|
-
}
|
1536
|
-
// Initializing default values for options
|
1537
|
-
if (!options) {
|
1538
|
-
options = {};
|
1539
|
-
}
|
1540
|
-
const defaults = {
|
1541
|
-
requestContentType: "application/json; charset=utf-8",
|
1542
|
-
credential: credentials
|
1543
|
-
};
|
1544
|
-
const packageDetails = `azsdk-js-arm-msi/2.1.1`;
|
1545
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
1546
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
1547
|
-
: `${packageDetails}`;
|
1548
|
-
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
1549
|
-
userAgentPrefix
|
1550
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
1551
|
-
super(optionsWithDefaults);
|
1552
|
-
let bearerTokenAuthenticationPolicyFound = false;
|
1553
|
-
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
1554
|
-
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
1555
|
-
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
1556
|
-
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
1557
|
-
}
|
1558
|
-
if (!options ||
|
1559
|
-
!options.pipeline ||
|
1560
|
-
options.pipeline.getOrderedPolicies().length == 0 ||
|
1561
|
-
!bearerTokenAuthenticationPolicyFound) {
|
1562
|
-
this.pipeline.removePolicy({
|
1563
|
-
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
1564
|
-
});
|
1565
|
-
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
1566
|
-
credential: credentials,
|
1567
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
1568
|
-
challengeCallbacks: {
|
1569
|
-
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
1570
|
-
}
|
1571
|
-
}));
|
1572
|
-
}
|
1573
|
-
// Parameter assignments
|
1574
|
-
this.subscriptionId = subscriptionId;
|
1575
|
-
// Assigning values to Constant parameters
|
1576
|
-
this.$host = options.$host || "https://management.azure.com";
|
1577
|
-
this.apiVersion = options.apiVersion || "2023-01-31";
|
1578
|
-
this.systemAssignedIdentities = new SystemAssignedIdentitiesImpl(this);
|
1579
|
-
this.operations = new OperationsImpl(this);
|
1580
|
-
this.userAssignedIdentities = new UserAssignedIdentitiesImpl(this);
|
1581
|
-
this.federatedIdentityCredentials = new FederatedIdentityCredentialsImpl(this);
|
1582
|
-
this.addCustomApiVersionPolicy(options.apiVersion);
|
1583
|
-
}
|
1584
|
-
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
1585
|
-
addCustomApiVersionPolicy(apiVersion) {
|
1586
|
-
if (!apiVersion) {
|
1587
|
-
return;
|
1588
|
-
}
|
1589
|
-
const apiVersionPolicy = {
|
1590
|
-
name: "CustomApiVersionPolicy",
|
1591
|
-
sendRequest(request, next) {
|
1592
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
1593
|
-
const param = request.url.split("?");
|
1594
|
-
if (param.length > 1) {
|
1595
|
-
const newParams = param[1].split("&").map((item) => {
|
1596
|
-
if (item.indexOf("api-version") > -1) {
|
1597
|
-
return "api-version=" + apiVersion;
|
1598
|
-
}
|
1599
|
-
else {
|
1600
|
-
return item;
|
1601
|
-
}
|
1602
|
-
});
|
1603
|
-
request.url = param[0] + "?" + newParams.join("&");
|
1604
|
-
}
|
1605
|
-
return next(request);
|
1606
|
-
});
|
1607
|
-
}
|
1608
|
-
};
|
1609
|
-
this.pipeline.addPolicy(apiVersionPolicy);
|
1610
|
-
}
|
1611
|
-
}
|
1612
|
-
|
1613
|
-
exports.ManagedServiceIdentityClient = ManagedServiceIdentityClient;
|
1614
|
-
exports.getContinuationToken = getContinuationToken;
|
1615
|
-
//# sourceMappingURL=index.js.map
|