@azure/arm-authorization-profile-2020-09-01-hybrid 2.1.1-alpha.20241227.1 → 2.1.1-alpha.20250107.2
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/{dist-esm/src → dist/browser}/authorizationManagementClient.d.ts +2 -2
- package/dist/browser/authorizationManagementClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/authorizationManagementClient.js +15 -18
- package/dist/browser/authorizationManagementClient.js.map +1 -0
- 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/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/globalAdministrator.d.ts +3 -3
- package/dist/browser/operations/globalAdministrator.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/globalAdministrator.js +2 -2
- package/dist/browser/operations/globalAdministrator.js.map +1 -0
- package/dist/browser/operations/index.d.ts +6 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/dist/browser/operations/index.js +13 -0
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/permissions.d.ts +3 -3
- package/dist/browser/operations/permissions.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/permissions.js +3 -3
- package/dist/browser/operations/permissions.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/providerOperationsMetadataOperations.d.ts +3 -3
- package/dist/browser/operations/providerOperationsMetadataOperations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/providerOperationsMetadataOperations.js +3 -3
- package/dist/browser/operations/providerOperationsMetadataOperations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/roleAssignments.d.ts +3 -3
- package/dist/browser/operations/roleAssignments.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/roleAssignments.js +3 -3
- package/dist/browser/operations/roleAssignments.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/roleDefinitions.d.ts +3 -3
- package/dist/browser/operations/roleDefinitions.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/roleDefinitions.js +3 -3
- package/dist/browser/operations/roleDefinitions.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/globalAdministrator.d.ts +1 -1
- package/dist/browser/operationsInterfaces/globalAdministrator.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/globalAdministrator.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +6 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/index.js +13 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/permissions.d.ts +1 -1
- package/dist/browser/operationsInterfaces/permissions.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/permissions.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/providerOperationsMetadataOperations.d.ts +1 -1
- package/dist/browser/operationsInterfaces/providerOperationsMetadataOperations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/providerOperationsMetadataOperations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/roleAssignments.d.ts +1 -1
- package/dist/browser/operationsInterfaces/roleAssignments.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/roleAssignments.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/roleDefinitions.d.ts +1 -1
- package/dist/browser/operationsInterfaces/roleDefinitions.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/roleDefinitions.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/authorizationManagementClient.d.ts +24 -0
- package/dist/commonjs/authorizationManagementClient.d.ts.map +1 -0
- package/dist/commonjs/authorizationManagementClient.js +106 -0
- package/dist/commonjs/authorizationManagementClient.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/models/index.d.ts +360 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +10 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +20 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +562 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +22 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +216 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/globalAdministrator.d.ts +18 -0
- package/dist/commonjs/operations/globalAdministrator.d.ts.map +1 -0
- package/dist/commonjs/operations/globalAdministrator.js +49 -0
- package/dist/commonjs/operations/globalAdministrator.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +6 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +16 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/permissions.d.ts +68 -0
- package/dist/commonjs/operations/permissions.d.ts.map +1 -0
- package/dist/commonjs/operations/permissions.js +303 -0
- package/dist/commonjs/operations/permissions.js.map +1 -0
- package/dist/commonjs/operations/providerOperationsMetadataOperations.d.ts +38 -0
- package/dist/commonjs/operations/providerOperationsMetadataOperations.d.ts.map +1 -0
- package/dist/commonjs/operations/providerOperationsMetadataOperations.js +161 -0
- package/dist/commonjs/operations/providerOperationsMetadataOperations.js.map +1 -0
- package/dist/commonjs/operations/roleAssignments.d.ts +162 -0
- package/dist/commonjs/operations/roleAssignments.d.ts.map +1 -0
- package/dist/commonjs/operations/roleAssignments.js +705 -0
- package/dist/commonjs/operations/roleAssignments.js.map +1 -0
- package/dist/commonjs/operations/roleDefinitions.d.ts +67 -0
- package/dist/commonjs/operations/roleDefinitions.d.ts.map +1 -0
- package/dist/commonjs/operations/roleDefinitions.js +259 -0
- package/dist/commonjs/operations/roleDefinitions.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/globalAdministrator.d.ts +10 -0
- package/dist/commonjs/operationsInterfaces/globalAdministrator.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/globalAdministrator.js +10 -0
- package/dist/commonjs/operationsInterfaces/globalAdministrator.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +6 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +16 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/permissions.d.ts +22 -0
- package/dist/commonjs/operationsInterfaces/permissions.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/permissions.js +10 -0
- package/dist/commonjs/operationsInterfaces/permissions.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/providerOperationsMetadataOperations.d.ts +17 -0
- package/dist/commonjs/operationsInterfaces/providerOperationsMetadataOperations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/providerOperationsMetadataOperations.js +10 -0
- package/dist/commonjs/operationsInterfaces/providerOperationsMetadataOperations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/roleAssignments.d.ts +88 -0
- package/dist/commonjs/operationsInterfaces/roleAssignments.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/roleAssignments.js +10 -0
- package/dist/commonjs/operationsInterfaces/roleAssignments.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/roleDefinitions.d.ts +44 -0
- package/dist/commonjs/operationsInterfaces/roleDefinitions.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/roleDefinitions.js +10 -0
- package/dist/commonjs/operationsInterfaces/roleDefinitions.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/authorizationManagementClient.d.ts +24 -0
- package/dist/esm/authorizationManagementClient.d.ts.map +1 -0
- package/dist/esm/authorizationManagementClient.js +101 -0
- package/dist/esm/authorizationManagementClient.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/models/index.d.ts +360 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +9 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +20 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +559 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +22 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +213 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/globalAdministrator.d.ts +18 -0
- package/dist/esm/operations/globalAdministrator.d.ts.map +1 -0
- package/dist/esm/operations/globalAdministrator.js +44 -0
- package/dist/esm/operations/globalAdministrator.js.map +1 -0
- package/dist/esm/operations/index.d.ts +6 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +13 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/permissions.d.ts +68 -0
- package/dist/esm/operations/permissions.d.ts.map +1 -0
- package/dist/esm/operations/permissions.js +299 -0
- package/dist/esm/operations/permissions.js.map +1 -0
- package/dist/esm/operations/providerOperationsMetadataOperations.d.ts +38 -0
- package/dist/esm/operations/providerOperationsMetadataOperations.d.ts.map +1 -0
- package/dist/esm/operations/providerOperationsMetadataOperations.js +157 -0
- package/dist/esm/operations/providerOperationsMetadataOperations.js.map +1 -0
- package/dist/esm/operations/roleAssignments.d.ts +162 -0
- package/dist/esm/operations/roleAssignments.d.ts.map +1 -0
- package/dist/esm/operations/roleAssignments.js +701 -0
- package/dist/esm/operations/roleAssignments.js.map +1 -0
- package/dist/esm/operations/roleDefinitions.d.ts +67 -0
- package/dist/esm/operations/roleDefinitions.d.ts.map +1 -0
- package/dist/esm/operations/roleDefinitions.js +255 -0
- package/dist/esm/operations/roleDefinitions.js.map +1 -0
- package/dist/esm/operationsInterfaces/globalAdministrator.d.ts +10 -0
- package/dist/esm/operationsInterfaces/globalAdministrator.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/globalAdministrator.js +9 -0
- package/dist/esm/operationsInterfaces/globalAdministrator.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +6 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +13 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/permissions.d.ts +22 -0
- package/dist/esm/operationsInterfaces/permissions.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/permissions.js +9 -0
- package/dist/esm/operationsInterfaces/permissions.js.map +1 -0
- package/dist/esm/operationsInterfaces/providerOperationsMetadataOperations.d.ts +17 -0
- package/dist/esm/operationsInterfaces/providerOperationsMetadataOperations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/providerOperationsMetadataOperations.js +9 -0
- package/dist/esm/operationsInterfaces/providerOperationsMetadataOperations.js.map +1 -0
- package/dist/esm/operationsInterfaces/roleAssignments.d.ts +88 -0
- package/dist/esm/operationsInterfaces/roleAssignments.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/roleAssignments.js +9 -0
- package/dist/esm/operationsInterfaces/roleAssignments.js.map +1 -0
- package/dist/esm/operationsInterfaces/roleDefinitions.d.ts +44 -0
- package/dist/esm/operationsInterfaces/roleDefinitions.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/roleDefinitions.js +9 -0
- package/dist/esm/operationsInterfaces/roleDefinitions.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/authorizationManagementClient.d.ts +24 -0
- package/dist/react-native/authorizationManagementClient.d.ts.map +1 -0
- package/dist/react-native/authorizationManagementClient.js +101 -0
- package/dist/react-native/authorizationManagementClient.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/models/index.d.ts +360 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +9 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +20 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +559 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +22 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +213 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/globalAdministrator.d.ts +18 -0
- package/dist/react-native/operations/globalAdministrator.d.ts.map +1 -0
- package/dist/react-native/operations/globalAdministrator.js +44 -0
- package/dist/react-native/operations/globalAdministrator.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +6 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +13 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/permissions.d.ts +68 -0
- package/dist/react-native/operations/permissions.d.ts.map +1 -0
- package/dist/react-native/operations/permissions.js +299 -0
- package/dist/react-native/operations/permissions.js.map +1 -0
- package/dist/react-native/operations/providerOperationsMetadataOperations.d.ts +38 -0
- package/dist/react-native/operations/providerOperationsMetadataOperations.d.ts.map +1 -0
- package/dist/react-native/operations/providerOperationsMetadataOperations.js +157 -0
- package/dist/react-native/operations/providerOperationsMetadataOperations.js.map +1 -0
- package/dist/react-native/operations/roleAssignments.d.ts +162 -0
- package/dist/react-native/operations/roleAssignments.d.ts.map +1 -0
- package/dist/react-native/operations/roleAssignments.js +701 -0
- package/dist/react-native/operations/roleAssignments.js.map +1 -0
- package/dist/react-native/operations/roleDefinitions.d.ts +67 -0
- package/dist/react-native/operations/roleDefinitions.d.ts.map +1 -0
- package/dist/react-native/operations/roleDefinitions.js +255 -0
- package/dist/react-native/operations/roleDefinitions.js.map +1 -0
- package/dist/react-native/operationsInterfaces/globalAdministrator.d.ts +10 -0
- package/dist/react-native/operationsInterfaces/globalAdministrator.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/globalAdministrator.js +9 -0
- package/dist/react-native/operationsInterfaces/globalAdministrator.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +6 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +13 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/permissions.d.ts +22 -0
- package/dist/react-native/operationsInterfaces/permissions.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/permissions.js +9 -0
- package/dist/react-native/operationsInterfaces/permissions.js.map +1 -0
- package/dist/react-native/operationsInterfaces/providerOperationsMetadataOperations.d.ts +17 -0
- package/dist/react-native/operationsInterfaces/providerOperationsMetadataOperations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/providerOperationsMetadataOperations.js +9 -0
- package/dist/react-native/operationsInterfaces/providerOperationsMetadataOperations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/roleAssignments.d.ts +88 -0
- package/dist/react-native/operationsInterfaces/roleAssignments.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/roleAssignments.js +9 -0
- package/dist/react-native/operationsInterfaces/roleAssignments.js.map +1 -0
- package/dist/react-native/operationsInterfaces/roleDefinitions.d.ts +44 -0
- package/dist/react-native/operationsInterfaces/roleDefinitions.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/roleDefinitions.js +9 -0
- package/dist/react-native/operationsInterfaces/roleDefinitions.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 +58 -28
- package/dist/index.js +0 -2389
- 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/globalAdministratorElevateAccessSample.d.ts +0 -2
- package/dist-esm/samples-dev/globalAdministratorElevateAccessSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/globalAdministratorElevateAccessSample.js +0 -37
- package/dist-esm/samples-dev/globalAdministratorElevateAccessSample.js.map +0 -1
- package/dist-esm/samples-dev/permissionsListForResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/permissionsListForResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/permissionsListForResourceGroupSample.js +0 -53
- package/dist-esm/samples-dev/permissionsListForResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/permissionsListForResourceSample.d.ts +0 -2
- package/dist-esm/samples-dev/permissionsListForResourceSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/permissionsListForResourceSample.js +0 -57
- package/dist-esm/samples-dev/permissionsListForResourceSample.js.map +0 -1
- package/dist-esm/samples-dev/providerOperationsMetadataGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/providerOperationsMetadataGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/providerOperationsMetadataGetSample.js +0 -38
- package/dist-esm/samples-dev/providerOperationsMetadataGetSample.js.map +0 -1
- package/dist-esm/samples-dev/providerOperationsMetadataListSample.d.ts +0 -2
- package/dist-esm/samples-dev/providerOperationsMetadataListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/providerOperationsMetadataListSample.js +0 -53
- package/dist-esm/samples-dev/providerOperationsMetadataListSample.js.map +0 -1
- package/dist-esm/samples-dev/roleAssignmentsCreateByIdSample.d.ts +0 -2
- package/dist-esm/samples-dev/roleAssignmentsCreateByIdSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/roleAssignmentsCreateByIdSample.js +0 -44
- package/dist-esm/samples-dev/roleAssignmentsCreateByIdSample.js.map +0 -1
- package/dist-esm/samples-dev/roleAssignmentsCreateSample.d.ts +0 -2
- package/dist-esm/samples-dev/roleAssignmentsCreateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/roleAssignmentsCreateSample.js +0 -45
- package/dist-esm/samples-dev/roleAssignmentsCreateSample.js.map +0 -1
- package/dist-esm/samples-dev/roleAssignmentsDeleteByIdSample.d.ts +0 -2
- package/dist-esm/samples-dev/roleAssignmentsDeleteByIdSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/roleAssignmentsDeleteByIdSample.js +0 -38
- package/dist-esm/samples-dev/roleAssignmentsDeleteByIdSample.js.map +0 -1
- package/dist-esm/samples-dev/roleAssignmentsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/roleAssignmentsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/roleAssignmentsDeleteSample.js +0 -39
- package/dist-esm/samples-dev/roleAssignmentsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/roleAssignmentsGetByIdSample.d.ts +0 -2
- package/dist-esm/samples-dev/roleAssignmentsGetByIdSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/roleAssignmentsGetByIdSample.js +0 -38
- package/dist-esm/samples-dev/roleAssignmentsGetByIdSample.js.map +0 -1
- package/dist-esm/samples-dev/roleAssignmentsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/roleAssignmentsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/roleAssignmentsGetSample.js +0 -39
- package/dist-esm/samples-dev/roleAssignmentsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/roleAssignmentsListForResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/roleAssignmentsListForResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/roleAssignmentsListForResourceGroupSample.js +0 -53
- package/dist-esm/samples-dev/roleAssignmentsListForResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/roleAssignmentsListForResourceSample.d.ts +0 -2
- package/dist-esm/samples-dev/roleAssignmentsListForResourceSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/roleAssignmentsListForResourceSample.js +0 -57
- package/dist-esm/samples-dev/roleAssignmentsListForResourceSample.js.map +0 -1
- package/dist-esm/samples-dev/roleAssignmentsListForScopeSample.d.ts +0 -2
- package/dist-esm/samples-dev/roleAssignmentsListForScopeSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/roleAssignmentsListForScopeSample.js +0 -54
- package/dist-esm/samples-dev/roleAssignmentsListForScopeSample.js.map +0 -1
- package/dist-esm/samples-dev/roleAssignmentsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/roleAssignmentsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/roleAssignmentsListSample.js +0 -52
- package/dist-esm/samples-dev/roleAssignmentsListSample.js.map +0 -1
- package/dist-esm/samples-dev/roleDefinitionsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/roleDefinitionsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/roleDefinitionsCreateOrUpdateSample.js +0 -40
- package/dist-esm/samples-dev/roleDefinitionsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/roleDefinitionsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/roleDefinitionsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/roleDefinitionsDeleteSample.js +0 -39
- package/dist-esm/samples-dev/roleDefinitionsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/roleDefinitionsGetByIdSample.d.ts +0 -2
- package/dist-esm/samples-dev/roleDefinitionsGetByIdSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/roleDefinitionsGetByIdSample.js +0 -38
- package/dist-esm/samples-dev/roleDefinitionsGetByIdSample.js.map +0 -1
- package/dist-esm/samples-dev/roleDefinitionsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/roleDefinitionsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/roleDefinitionsGetSample.js +0 -39
- package/dist-esm/samples-dev/roleDefinitionsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/roleDefinitionsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/roleDefinitionsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/roleDefinitionsListSample.js +0 -54
- package/dist-esm/samples-dev/roleDefinitionsListSample.js.map +0 -1
- package/dist-esm/src/authorizationManagementClient.d.ts.map +0 -1
- package/dist-esm/src/authorizationManagementClient.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/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/globalAdministrator.d.ts.map +0 -1
- package/dist-esm/src/operations/globalAdministrator.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -6
- package/dist-esm/src/operations/index.js +0 -13
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/permissions.d.ts.map +0 -1
- package/dist-esm/src/operations/permissions.js.map +0 -1
- package/dist-esm/src/operations/providerOperationsMetadataOperations.d.ts.map +0 -1
- package/dist-esm/src/operations/providerOperationsMetadataOperations.js.map +0 -1
- package/dist-esm/src/operations/roleAssignments.d.ts.map +0 -1
- package/dist-esm/src/operations/roleAssignments.js.map +0 -1
- package/dist-esm/src/operations/roleDefinitions.d.ts.map +0 -1
- package/dist-esm/src/operations/roleDefinitions.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/globalAdministrator.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/globalAdministrator.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -6
- package/dist-esm/src/operationsInterfaces/index.js +0 -13
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/permissions.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/permissions.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/providerOperationsMetadataOperations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/providerOperationsMetadataOperations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/roleAssignments.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/roleAssignments.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/roleDefinitions.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/roleDefinitions.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/authorizationManagementClient.ts +0 -162
- package/src/models/index.ts +0 -449
- package/src/models/mappers.ts +0 -578
- package/src/models/parameters.ts +0 -241
- package/src/operations/globalAdministrator.ts +0 -57
- package/src/operations/index.ts +0 -13
- package/src/operations/permissions.ts +0 -408
- package/src/operations/providerOperationsMetadataOperations.ts +0 -184
- package/src/operations/roleAssignments.ts +0 -896
- package/src/operations/roleDefinitions.ts +0 -322
- package/src/operationsInterfaces/globalAdministrator.ts +0 -20
- package/src/operationsInterfaces/index.ts +0 -13
- package/src/operationsInterfaces/permissions.ts +0 -45
- package/src/operationsInterfaces/providerOperationsMetadataOperations.ts +0 -36
- package/src/operationsInterfaces/roleAssignments.ts +0 -154
- package/src/operationsInterfaces/roleDefinitions.ts +0 -83
- package/src/pagingHelper.ts +0 -39
- package/tsconfig.json +0 -33
- package/types/arm-authorization-profile-2020-09-01-hybrid.d.ts +0 -639
- /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/globalAdministrator.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/permissions.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/providerOperationsMetadataOperations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/roleAssignments.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/roleDefinitions.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,2389 +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
|
-
const PermissionGetResult = {
|
|
69
|
-
type: {
|
|
70
|
-
name: "Composite",
|
|
71
|
-
className: "PermissionGetResult",
|
|
72
|
-
modelProperties: {
|
|
73
|
-
value: {
|
|
74
|
-
serializedName: "value",
|
|
75
|
-
type: {
|
|
76
|
-
name: "Sequence",
|
|
77
|
-
element: {
|
|
78
|
-
type: {
|
|
79
|
-
name: "Composite",
|
|
80
|
-
className: "Permission"
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
nextLink: {
|
|
86
|
-
serializedName: "nextLink",
|
|
87
|
-
type: {
|
|
88
|
-
name: "String"
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
const Permission = {
|
|
95
|
-
type: {
|
|
96
|
-
name: "Composite",
|
|
97
|
-
className: "Permission",
|
|
98
|
-
modelProperties: {
|
|
99
|
-
actions: {
|
|
100
|
-
serializedName: "actions",
|
|
101
|
-
type: {
|
|
102
|
-
name: "Sequence",
|
|
103
|
-
element: {
|
|
104
|
-
type: {
|
|
105
|
-
name: "String"
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
notActions: {
|
|
111
|
-
serializedName: "notActions",
|
|
112
|
-
type: {
|
|
113
|
-
name: "Sequence",
|
|
114
|
-
element: {
|
|
115
|
-
type: {
|
|
116
|
-
name: "String"
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
const ErrorResponse = {
|
|
125
|
-
type: {
|
|
126
|
-
name: "Composite",
|
|
127
|
-
className: "ErrorResponse",
|
|
128
|
-
modelProperties: {
|
|
129
|
-
error: {
|
|
130
|
-
serializedName: "error",
|
|
131
|
-
type: {
|
|
132
|
-
name: "Composite",
|
|
133
|
-
className: "ErrorDetail"
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
};
|
|
139
|
-
const ErrorDetail = {
|
|
140
|
-
type: {
|
|
141
|
-
name: "Composite",
|
|
142
|
-
className: "ErrorDetail",
|
|
143
|
-
modelProperties: {
|
|
144
|
-
code: {
|
|
145
|
-
serializedName: "code",
|
|
146
|
-
readOnly: true,
|
|
147
|
-
type: {
|
|
148
|
-
name: "String"
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
message: {
|
|
152
|
-
serializedName: "message",
|
|
153
|
-
readOnly: true,
|
|
154
|
-
type: {
|
|
155
|
-
name: "String"
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
target: {
|
|
159
|
-
serializedName: "target",
|
|
160
|
-
readOnly: true,
|
|
161
|
-
type: {
|
|
162
|
-
name: "String"
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
details: {
|
|
166
|
-
serializedName: "details",
|
|
167
|
-
readOnly: true,
|
|
168
|
-
type: {
|
|
169
|
-
name: "Sequence",
|
|
170
|
-
element: {
|
|
171
|
-
type: {
|
|
172
|
-
name: "Composite",
|
|
173
|
-
className: "ErrorDetail"
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
additionalInfo: {
|
|
179
|
-
serializedName: "additionalInfo",
|
|
180
|
-
readOnly: true,
|
|
181
|
-
type: {
|
|
182
|
-
name: "Sequence",
|
|
183
|
-
element: {
|
|
184
|
-
type: {
|
|
185
|
-
name: "Composite",
|
|
186
|
-
className: "ErrorAdditionalInfo"
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
};
|
|
194
|
-
const ErrorAdditionalInfo = {
|
|
195
|
-
type: {
|
|
196
|
-
name: "Composite",
|
|
197
|
-
className: "ErrorAdditionalInfo",
|
|
198
|
-
modelProperties: {
|
|
199
|
-
type: {
|
|
200
|
-
serializedName: "type",
|
|
201
|
-
readOnly: true,
|
|
202
|
-
type: {
|
|
203
|
-
name: "String"
|
|
204
|
-
}
|
|
205
|
-
},
|
|
206
|
-
info: {
|
|
207
|
-
serializedName: "info",
|
|
208
|
-
readOnly: true,
|
|
209
|
-
type: {
|
|
210
|
-
name: "Dictionary",
|
|
211
|
-
value: { type: { name: "any" } }
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
};
|
|
217
|
-
const RoleDefinition = {
|
|
218
|
-
type: {
|
|
219
|
-
name: "Composite",
|
|
220
|
-
className: "RoleDefinition",
|
|
221
|
-
modelProperties: {
|
|
222
|
-
id: {
|
|
223
|
-
serializedName: "id",
|
|
224
|
-
readOnly: true,
|
|
225
|
-
type: {
|
|
226
|
-
name: "String"
|
|
227
|
-
}
|
|
228
|
-
},
|
|
229
|
-
name: {
|
|
230
|
-
serializedName: "name",
|
|
231
|
-
readOnly: true,
|
|
232
|
-
type: {
|
|
233
|
-
name: "String"
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
type: {
|
|
237
|
-
serializedName: "type",
|
|
238
|
-
readOnly: true,
|
|
239
|
-
type: {
|
|
240
|
-
name: "String"
|
|
241
|
-
}
|
|
242
|
-
},
|
|
243
|
-
roleName: {
|
|
244
|
-
serializedName: "properties.roleName",
|
|
245
|
-
type: {
|
|
246
|
-
name: "String"
|
|
247
|
-
}
|
|
248
|
-
},
|
|
249
|
-
description: {
|
|
250
|
-
serializedName: "properties.description",
|
|
251
|
-
type: {
|
|
252
|
-
name: "String"
|
|
253
|
-
}
|
|
254
|
-
},
|
|
255
|
-
roleType: {
|
|
256
|
-
serializedName: "properties.type",
|
|
257
|
-
type: {
|
|
258
|
-
name: "String"
|
|
259
|
-
}
|
|
260
|
-
},
|
|
261
|
-
permissions: {
|
|
262
|
-
serializedName: "properties.permissions",
|
|
263
|
-
type: {
|
|
264
|
-
name: "Sequence",
|
|
265
|
-
element: {
|
|
266
|
-
type: {
|
|
267
|
-
name: "Composite",
|
|
268
|
-
className: "Permission"
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
},
|
|
273
|
-
assignableScopes: {
|
|
274
|
-
serializedName: "properties.assignableScopes",
|
|
275
|
-
type: {
|
|
276
|
-
name: "Sequence",
|
|
277
|
-
element: {
|
|
278
|
-
type: {
|
|
279
|
-
name: "String"
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
};
|
|
287
|
-
const RoleDefinitionListResult = {
|
|
288
|
-
type: {
|
|
289
|
-
name: "Composite",
|
|
290
|
-
className: "RoleDefinitionListResult",
|
|
291
|
-
modelProperties: {
|
|
292
|
-
value: {
|
|
293
|
-
serializedName: "value",
|
|
294
|
-
type: {
|
|
295
|
-
name: "Sequence",
|
|
296
|
-
element: {
|
|
297
|
-
type: {
|
|
298
|
-
name: "Composite",
|
|
299
|
-
className: "RoleDefinition"
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
},
|
|
304
|
-
nextLink: {
|
|
305
|
-
serializedName: "nextLink",
|
|
306
|
-
type: {
|
|
307
|
-
name: "String"
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
};
|
|
313
|
-
const ProviderOperationsMetadata = {
|
|
314
|
-
type: {
|
|
315
|
-
name: "Composite",
|
|
316
|
-
className: "ProviderOperationsMetadata",
|
|
317
|
-
modelProperties: {
|
|
318
|
-
id: {
|
|
319
|
-
serializedName: "id",
|
|
320
|
-
type: {
|
|
321
|
-
name: "String"
|
|
322
|
-
}
|
|
323
|
-
},
|
|
324
|
-
name: {
|
|
325
|
-
serializedName: "name",
|
|
326
|
-
type: {
|
|
327
|
-
name: "String"
|
|
328
|
-
}
|
|
329
|
-
},
|
|
330
|
-
type: {
|
|
331
|
-
serializedName: "type",
|
|
332
|
-
type: {
|
|
333
|
-
name: "String"
|
|
334
|
-
}
|
|
335
|
-
},
|
|
336
|
-
displayName: {
|
|
337
|
-
serializedName: "displayName",
|
|
338
|
-
type: {
|
|
339
|
-
name: "String"
|
|
340
|
-
}
|
|
341
|
-
},
|
|
342
|
-
resourceTypes: {
|
|
343
|
-
serializedName: "resourceTypes",
|
|
344
|
-
type: {
|
|
345
|
-
name: "Sequence",
|
|
346
|
-
element: {
|
|
347
|
-
type: {
|
|
348
|
-
name: "Composite",
|
|
349
|
-
className: "ResourceType"
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
},
|
|
354
|
-
operations: {
|
|
355
|
-
serializedName: "operations",
|
|
356
|
-
type: {
|
|
357
|
-
name: "Sequence",
|
|
358
|
-
element: {
|
|
359
|
-
type: {
|
|
360
|
-
name: "Composite",
|
|
361
|
-
className: "ProviderOperation"
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
};
|
|
369
|
-
const ResourceType = {
|
|
370
|
-
type: {
|
|
371
|
-
name: "Composite",
|
|
372
|
-
className: "ResourceType",
|
|
373
|
-
modelProperties: {
|
|
374
|
-
name: {
|
|
375
|
-
serializedName: "name",
|
|
376
|
-
type: {
|
|
377
|
-
name: "String"
|
|
378
|
-
}
|
|
379
|
-
},
|
|
380
|
-
displayName: {
|
|
381
|
-
serializedName: "displayName",
|
|
382
|
-
type: {
|
|
383
|
-
name: "String"
|
|
384
|
-
}
|
|
385
|
-
},
|
|
386
|
-
operations: {
|
|
387
|
-
serializedName: "operations",
|
|
388
|
-
type: {
|
|
389
|
-
name: "Sequence",
|
|
390
|
-
element: {
|
|
391
|
-
type: {
|
|
392
|
-
name: "Composite",
|
|
393
|
-
className: "ProviderOperation"
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
};
|
|
401
|
-
const ProviderOperation = {
|
|
402
|
-
type: {
|
|
403
|
-
name: "Composite",
|
|
404
|
-
className: "ProviderOperation",
|
|
405
|
-
modelProperties: {
|
|
406
|
-
name: {
|
|
407
|
-
serializedName: "name",
|
|
408
|
-
type: {
|
|
409
|
-
name: "String"
|
|
410
|
-
}
|
|
411
|
-
},
|
|
412
|
-
displayName: {
|
|
413
|
-
serializedName: "displayName",
|
|
414
|
-
type: {
|
|
415
|
-
name: "String"
|
|
416
|
-
}
|
|
417
|
-
},
|
|
418
|
-
description: {
|
|
419
|
-
serializedName: "description",
|
|
420
|
-
type: {
|
|
421
|
-
name: "String"
|
|
422
|
-
}
|
|
423
|
-
},
|
|
424
|
-
origin: {
|
|
425
|
-
serializedName: "origin",
|
|
426
|
-
type: {
|
|
427
|
-
name: "String"
|
|
428
|
-
}
|
|
429
|
-
},
|
|
430
|
-
properties: {
|
|
431
|
-
serializedName: "properties",
|
|
432
|
-
type: {
|
|
433
|
-
name: "Dictionary",
|
|
434
|
-
value: { type: { name: "any" } }
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
};
|
|
440
|
-
const ProviderOperationsMetadataListResult = {
|
|
441
|
-
type: {
|
|
442
|
-
name: "Composite",
|
|
443
|
-
className: "ProviderOperationsMetadataListResult",
|
|
444
|
-
modelProperties: {
|
|
445
|
-
value: {
|
|
446
|
-
serializedName: "value",
|
|
447
|
-
type: {
|
|
448
|
-
name: "Sequence",
|
|
449
|
-
element: {
|
|
450
|
-
type: {
|
|
451
|
-
name: "Composite",
|
|
452
|
-
className: "ProviderOperationsMetadata"
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
},
|
|
457
|
-
nextLink: {
|
|
458
|
-
serializedName: "nextLink",
|
|
459
|
-
type: {
|
|
460
|
-
name: "String"
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
};
|
|
466
|
-
const RoleAssignmentListResult = {
|
|
467
|
-
type: {
|
|
468
|
-
name: "Composite",
|
|
469
|
-
className: "RoleAssignmentListResult",
|
|
470
|
-
modelProperties: {
|
|
471
|
-
value: {
|
|
472
|
-
serializedName: "value",
|
|
473
|
-
type: {
|
|
474
|
-
name: "Sequence",
|
|
475
|
-
element: {
|
|
476
|
-
type: {
|
|
477
|
-
name: "Composite",
|
|
478
|
-
className: "RoleAssignment"
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
},
|
|
483
|
-
nextLink: {
|
|
484
|
-
serializedName: "nextLink",
|
|
485
|
-
type: {
|
|
486
|
-
name: "String"
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
};
|
|
492
|
-
const RoleAssignment = {
|
|
493
|
-
type: {
|
|
494
|
-
name: "Composite",
|
|
495
|
-
className: "RoleAssignment",
|
|
496
|
-
modelProperties: {
|
|
497
|
-
id: {
|
|
498
|
-
serializedName: "id",
|
|
499
|
-
readOnly: true,
|
|
500
|
-
type: {
|
|
501
|
-
name: "String"
|
|
502
|
-
}
|
|
503
|
-
},
|
|
504
|
-
name: {
|
|
505
|
-
serializedName: "name",
|
|
506
|
-
readOnly: true,
|
|
507
|
-
type: {
|
|
508
|
-
name: "String"
|
|
509
|
-
}
|
|
510
|
-
},
|
|
511
|
-
type: {
|
|
512
|
-
serializedName: "type",
|
|
513
|
-
readOnly: true,
|
|
514
|
-
type: {
|
|
515
|
-
name: "String"
|
|
516
|
-
}
|
|
517
|
-
},
|
|
518
|
-
properties: {
|
|
519
|
-
serializedName: "properties",
|
|
520
|
-
type: {
|
|
521
|
-
name: "Composite",
|
|
522
|
-
className: "RoleAssignmentPropertiesWithScope"
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
};
|
|
528
|
-
const RoleAssignmentPropertiesWithScope = {
|
|
529
|
-
type: {
|
|
530
|
-
name: "Composite",
|
|
531
|
-
className: "RoleAssignmentPropertiesWithScope",
|
|
532
|
-
modelProperties: {
|
|
533
|
-
scope: {
|
|
534
|
-
serializedName: "scope",
|
|
535
|
-
type: {
|
|
536
|
-
name: "String"
|
|
537
|
-
}
|
|
538
|
-
},
|
|
539
|
-
roleDefinitionId: {
|
|
540
|
-
serializedName: "roleDefinitionId",
|
|
541
|
-
type: {
|
|
542
|
-
name: "String"
|
|
543
|
-
}
|
|
544
|
-
},
|
|
545
|
-
principalId: {
|
|
546
|
-
serializedName: "principalId",
|
|
547
|
-
type: {
|
|
548
|
-
name: "String"
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
};
|
|
554
|
-
const RoleAssignmentCreateParameters = {
|
|
555
|
-
type: {
|
|
556
|
-
name: "Composite",
|
|
557
|
-
className: "RoleAssignmentCreateParameters",
|
|
558
|
-
modelProperties: {
|
|
559
|
-
properties: {
|
|
560
|
-
serializedName: "properties",
|
|
561
|
-
type: {
|
|
562
|
-
name: "Composite",
|
|
563
|
-
className: "RoleAssignmentProperties"
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
};
|
|
569
|
-
const RoleAssignmentProperties = {
|
|
570
|
-
type: {
|
|
571
|
-
name: "Composite",
|
|
572
|
-
className: "RoleAssignmentProperties",
|
|
573
|
-
modelProperties: {
|
|
574
|
-
roleDefinitionId: {
|
|
575
|
-
serializedName: "roleDefinitionId",
|
|
576
|
-
required: true,
|
|
577
|
-
type: {
|
|
578
|
-
name: "String"
|
|
579
|
-
}
|
|
580
|
-
},
|
|
581
|
-
principalId: {
|
|
582
|
-
serializedName: "principalId",
|
|
583
|
-
required: true,
|
|
584
|
-
type: {
|
|
585
|
-
name: "String"
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
};
|
|
591
|
-
const RoleDefinitionFilter = {
|
|
592
|
-
type: {
|
|
593
|
-
name: "Composite",
|
|
594
|
-
className: "RoleDefinitionFilter",
|
|
595
|
-
modelProperties: {
|
|
596
|
-
roleName: {
|
|
597
|
-
serializedName: "roleName",
|
|
598
|
-
type: {
|
|
599
|
-
name: "String"
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
};
|
|
605
|
-
const RoleAssignmentFilter = {
|
|
606
|
-
type: {
|
|
607
|
-
name: "Composite",
|
|
608
|
-
className: "RoleAssignmentFilter",
|
|
609
|
-
modelProperties: {
|
|
610
|
-
principalId: {
|
|
611
|
-
serializedName: "principalId",
|
|
612
|
-
type: {
|
|
613
|
-
name: "String"
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
};
|
|
619
|
-
|
|
620
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
621
|
-
__proto__: null,
|
|
622
|
-
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
623
|
-
ErrorDetail: ErrorDetail,
|
|
624
|
-
ErrorResponse: ErrorResponse,
|
|
625
|
-
Permission: Permission,
|
|
626
|
-
PermissionGetResult: PermissionGetResult,
|
|
627
|
-
ProviderOperation: ProviderOperation,
|
|
628
|
-
ProviderOperationsMetadata: ProviderOperationsMetadata,
|
|
629
|
-
ProviderOperationsMetadataListResult: ProviderOperationsMetadataListResult,
|
|
630
|
-
ResourceType: ResourceType,
|
|
631
|
-
RoleAssignment: RoleAssignment,
|
|
632
|
-
RoleAssignmentCreateParameters: RoleAssignmentCreateParameters,
|
|
633
|
-
RoleAssignmentFilter: RoleAssignmentFilter,
|
|
634
|
-
RoleAssignmentListResult: RoleAssignmentListResult,
|
|
635
|
-
RoleAssignmentProperties: RoleAssignmentProperties,
|
|
636
|
-
RoleAssignmentPropertiesWithScope: RoleAssignmentPropertiesWithScope,
|
|
637
|
-
RoleDefinition: RoleDefinition,
|
|
638
|
-
RoleDefinitionFilter: RoleDefinitionFilter,
|
|
639
|
-
RoleDefinitionListResult: RoleDefinitionListResult
|
|
640
|
-
});
|
|
641
|
-
|
|
642
|
-
/*
|
|
643
|
-
* Copyright (c) Microsoft Corporation.
|
|
644
|
-
* Licensed under the MIT License.
|
|
645
|
-
*
|
|
646
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
647
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
648
|
-
*/
|
|
649
|
-
const accept = {
|
|
650
|
-
parameterPath: "accept",
|
|
651
|
-
mapper: {
|
|
652
|
-
defaultValue: "application/json",
|
|
653
|
-
isConstant: true,
|
|
654
|
-
serializedName: "Accept",
|
|
655
|
-
type: {
|
|
656
|
-
name: "String"
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
};
|
|
660
|
-
const $host = {
|
|
661
|
-
parameterPath: "$host",
|
|
662
|
-
mapper: {
|
|
663
|
-
serializedName: "$host",
|
|
664
|
-
required: true,
|
|
665
|
-
type: {
|
|
666
|
-
name: "String"
|
|
667
|
-
}
|
|
668
|
-
},
|
|
669
|
-
skipEncoding: true
|
|
670
|
-
};
|
|
671
|
-
const resourceGroupName = {
|
|
672
|
-
parameterPath: "resourceGroupName",
|
|
673
|
-
mapper: {
|
|
674
|
-
constraints: {
|
|
675
|
-
MaxLength: 90,
|
|
676
|
-
MinLength: 1
|
|
677
|
-
},
|
|
678
|
-
serializedName: "resourceGroupName",
|
|
679
|
-
required: true,
|
|
680
|
-
type: {
|
|
681
|
-
name: "String"
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
};
|
|
685
|
-
const apiVersion = {
|
|
686
|
-
parameterPath: "apiVersion",
|
|
687
|
-
mapper: {
|
|
688
|
-
defaultValue: "2015-07-01",
|
|
689
|
-
isConstant: true,
|
|
690
|
-
serializedName: "api-version",
|
|
691
|
-
type: {
|
|
692
|
-
name: "String"
|
|
693
|
-
}
|
|
694
|
-
}
|
|
695
|
-
};
|
|
696
|
-
const subscriptionId = {
|
|
697
|
-
parameterPath: "subscriptionId",
|
|
698
|
-
mapper: {
|
|
699
|
-
constraints: {
|
|
700
|
-
MinLength: 1
|
|
701
|
-
},
|
|
702
|
-
serializedName: "subscriptionId",
|
|
703
|
-
required: true,
|
|
704
|
-
type: {
|
|
705
|
-
name: "String"
|
|
706
|
-
}
|
|
707
|
-
}
|
|
708
|
-
};
|
|
709
|
-
const resourceProviderNamespace = {
|
|
710
|
-
parameterPath: "resourceProviderNamespace",
|
|
711
|
-
mapper: {
|
|
712
|
-
serializedName: "resourceProviderNamespace",
|
|
713
|
-
required: true,
|
|
714
|
-
type: {
|
|
715
|
-
name: "String"
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
};
|
|
719
|
-
const parentResourcePath = {
|
|
720
|
-
parameterPath: "parentResourcePath",
|
|
721
|
-
mapper: {
|
|
722
|
-
serializedName: "parentResourcePath",
|
|
723
|
-
required: true,
|
|
724
|
-
type: {
|
|
725
|
-
name: "String"
|
|
726
|
-
}
|
|
727
|
-
},
|
|
728
|
-
skipEncoding: true
|
|
729
|
-
};
|
|
730
|
-
const resourceType = {
|
|
731
|
-
parameterPath: "resourceType",
|
|
732
|
-
mapper: {
|
|
733
|
-
serializedName: "resourceType",
|
|
734
|
-
required: true,
|
|
735
|
-
type: {
|
|
736
|
-
name: "String"
|
|
737
|
-
}
|
|
738
|
-
},
|
|
739
|
-
skipEncoding: true
|
|
740
|
-
};
|
|
741
|
-
const resourceName = {
|
|
742
|
-
parameterPath: "resourceName",
|
|
743
|
-
mapper: {
|
|
744
|
-
serializedName: "resourceName",
|
|
745
|
-
required: true,
|
|
746
|
-
type: {
|
|
747
|
-
name: "String"
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
};
|
|
751
|
-
const nextLink = {
|
|
752
|
-
parameterPath: "nextLink",
|
|
753
|
-
mapper: {
|
|
754
|
-
serializedName: "nextLink",
|
|
755
|
-
required: true,
|
|
756
|
-
type: {
|
|
757
|
-
name: "String"
|
|
758
|
-
}
|
|
759
|
-
},
|
|
760
|
-
skipEncoding: true
|
|
761
|
-
};
|
|
762
|
-
const scope = {
|
|
763
|
-
parameterPath: "scope",
|
|
764
|
-
mapper: {
|
|
765
|
-
serializedName: "scope",
|
|
766
|
-
required: true,
|
|
767
|
-
type: {
|
|
768
|
-
name: "String"
|
|
769
|
-
}
|
|
770
|
-
},
|
|
771
|
-
skipEncoding: true
|
|
772
|
-
};
|
|
773
|
-
const roleDefinitionId = {
|
|
774
|
-
parameterPath: "roleDefinitionId",
|
|
775
|
-
mapper: {
|
|
776
|
-
serializedName: "roleDefinitionId",
|
|
777
|
-
required: true,
|
|
778
|
-
type: {
|
|
779
|
-
name: "String"
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
};
|
|
783
|
-
const contentType = {
|
|
784
|
-
parameterPath: ["options", "contentType"],
|
|
785
|
-
mapper: {
|
|
786
|
-
defaultValue: "application/json",
|
|
787
|
-
isConstant: true,
|
|
788
|
-
serializedName: "Content-Type",
|
|
789
|
-
type: {
|
|
790
|
-
name: "String"
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
};
|
|
794
|
-
const roleDefinition = {
|
|
795
|
-
parameterPath: "roleDefinition",
|
|
796
|
-
mapper: RoleDefinition
|
|
797
|
-
};
|
|
798
|
-
const filter = {
|
|
799
|
-
parameterPath: ["options", "filter"],
|
|
800
|
-
mapper: {
|
|
801
|
-
serializedName: "$filter",
|
|
802
|
-
type: {
|
|
803
|
-
name: "String"
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
};
|
|
807
|
-
const roleDefinitionId1 = {
|
|
808
|
-
parameterPath: "roleDefinitionId",
|
|
809
|
-
mapper: {
|
|
810
|
-
serializedName: "roleDefinitionId",
|
|
811
|
-
required: true,
|
|
812
|
-
type: {
|
|
813
|
-
name: "String"
|
|
814
|
-
}
|
|
815
|
-
},
|
|
816
|
-
skipEncoding: true
|
|
817
|
-
};
|
|
818
|
-
const expand = {
|
|
819
|
-
parameterPath: ["options", "expand"],
|
|
820
|
-
mapper: {
|
|
821
|
-
defaultValue: "resourceTypes",
|
|
822
|
-
serializedName: "$expand",
|
|
823
|
-
type: {
|
|
824
|
-
name: "String"
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
};
|
|
828
|
-
const roleAssignmentName = {
|
|
829
|
-
parameterPath: "roleAssignmentName",
|
|
830
|
-
mapper: {
|
|
831
|
-
serializedName: "roleAssignmentName",
|
|
832
|
-
required: true,
|
|
833
|
-
type: {
|
|
834
|
-
name: "String"
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
};
|
|
838
|
-
const parameters = {
|
|
839
|
-
parameterPath: "parameters",
|
|
840
|
-
mapper: RoleAssignmentCreateParameters
|
|
841
|
-
};
|
|
842
|
-
const roleAssignmentId = {
|
|
843
|
-
parameterPath: "roleAssignmentId",
|
|
844
|
-
mapper: {
|
|
845
|
-
serializedName: "roleAssignmentId",
|
|
846
|
-
required: true,
|
|
847
|
-
type: {
|
|
848
|
-
name: "String"
|
|
849
|
-
}
|
|
850
|
-
},
|
|
851
|
-
skipEncoding: true
|
|
852
|
-
};
|
|
853
|
-
|
|
854
|
-
/*
|
|
855
|
-
* Copyright (c) Microsoft Corporation.
|
|
856
|
-
* Licensed under the MIT License.
|
|
857
|
-
*
|
|
858
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
859
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
860
|
-
*/
|
|
861
|
-
/// <reference lib="esnext.asynciterable" />
|
|
862
|
-
/** Class containing Permissions operations. */
|
|
863
|
-
class PermissionsImpl {
|
|
864
|
-
/**
|
|
865
|
-
* Initialize a new instance of the class Permissions class.
|
|
866
|
-
* @param client Reference to the service client
|
|
867
|
-
*/
|
|
868
|
-
constructor(client) {
|
|
869
|
-
this.client = client;
|
|
870
|
-
}
|
|
871
|
-
/**
|
|
872
|
-
* Gets all permissions the caller has for a resource group.
|
|
873
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
874
|
-
* @param options The options parameters.
|
|
875
|
-
*/
|
|
876
|
-
listForResourceGroup(resourceGroupName, options) {
|
|
877
|
-
const iter = this.listForResourceGroupPagingAll(resourceGroupName, options);
|
|
878
|
-
return {
|
|
879
|
-
next() {
|
|
880
|
-
return iter.next();
|
|
881
|
-
},
|
|
882
|
-
[Symbol.asyncIterator]() {
|
|
883
|
-
return this;
|
|
884
|
-
},
|
|
885
|
-
byPage: (settings) => {
|
|
886
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
887
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
888
|
-
}
|
|
889
|
-
return this.listForResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
890
|
-
}
|
|
891
|
-
};
|
|
892
|
-
}
|
|
893
|
-
listForResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
894
|
-
return tslib.__asyncGenerator(this, arguments, function* listForResourceGroupPagingPage_1() {
|
|
895
|
-
let result;
|
|
896
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
897
|
-
if (!continuationToken) {
|
|
898
|
-
result = yield tslib.__await(this._listForResourceGroup(resourceGroupName, options));
|
|
899
|
-
let page = result.value || [];
|
|
900
|
-
continuationToken = result.nextLink;
|
|
901
|
-
setContinuationToken(page, continuationToken);
|
|
902
|
-
yield yield tslib.__await(page);
|
|
903
|
-
}
|
|
904
|
-
while (continuationToken) {
|
|
905
|
-
result = yield tslib.__await(this._listForResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
906
|
-
continuationToken = result.nextLink;
|
|
907
|
-
let page = result.value || [];
|
|
908
|
-
setContinuationToken(page, continuationToken);
|
|
909
|
-
yield yield tslib.__await(page);
|
|
910
|
-
}
|
|
911
|
-
});
|
|
912
|
-
}
|
|
913
|
-
listForResourceGroupPagingAll(resourceGroupName, options) {
|
|
914
|
-
return tslib.__asyncGenerator(this, arguments, function* listForResourceGroupPagingAll_1() {
|
|
915
|
-
var _a, e_1, _b, _c;
|
|
916
|
-
try {
|
|
917
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listForResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
918
|
-
_c = _f.value;
|
|
919
|
-
_d = false;
|
|
920
|
-
const page = _c;
|
|
921
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
922
|
-
}
|
|
923
|
-
}
|
|
924
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
925
|
-
finally {
|
|
926
|
-
try {
|
|
927
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
928
|
-
}
|
|
929
|
-
finally { if (e_1) throw e_1.error; }
|
|
930
|
-
}
|
|
931
|
-
});
|
|
932
|
-
}
|
|
933
|
-
/**
|
|
934
|
-
* Gets all permissions the caller has for a resource.
|
|
935
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
936
|
-
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
937
|
-
* @param parentResourcePath The parent resource identity.
|
|
938
|
-
* @param resourceType The resource type of the resource.
|
|
939
|
-
* @param resourceName The name of the resource to get the permissions for.
|
|
940
|
-
* @param options The options parameters.
|
|
941
|
-
*/
|
|
942
|
-
listForResource(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options) {
|
|
943
|
-
const iter = this.listForResourcePagingAll(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options);
|
|
944
|
-
return {
|
|
945
|
-
next() {
|
|
946
|
-
return iter.next();
|
|
947
|
-
},
|
|
948
|
-
[Symbol.asyncIterator]() {
|
|
949
|
-
return this;
|
|
950
|
-
},
|
|
951
|
-
byPage: (settings) => {
|
|
952
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
953
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
954
|
-
}
|
|
955
|
-
return this.listForResourcePagingPage(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options, settings);
|
|
956
|
-
}
|
|
957
|
-
};
|
|
958
|
-
}
|
|
959
|
-
listForResourcePagingPage(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options, settings) {
|
|
960
|
-
return tslib.__asyncGenerator(this, arguments, function* listForResourcePagingPage_1() {
|
|
961
|
-
let result;
|
|
962
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
963
|
-
if (!continuationToken) {
|
|
964
|
-
result = yield tslib.__await(this._listForResource(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options));
|
|
965
|
-
let page = result.value || [];
|
|
966
|
-
continuationToken = result.nextLink;
|
|
967
|
-
setContinuationToken(page, continuationToken);
|
|
968
|
-
yield yield tslib.__await(page);
|
|
969
|
-
}
|
|
970
|
-
while (continuationToken) {
|
|
971
|
-
result = yield tslib.__await(this._listForResourceNext(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, continuationToken, options));
|
|
972
|
-
continuationToken = result.nextLink;
|
|
973
|
-
let page = result.value || [];
|
|
974
|
-
setContinuationToken(page, continuationToken);
|
|
975
|
-
yield yield tslib.__await(page);
|
|
976
|
-
}
|
|
977
|
-
});
|
|
978
|
-
}
|
|
979
|
-
listForResourcePagingAll(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options) {
|
|
980
|
-
return tslib.__asyncGenerator(this, arguments, function* listForResourcePagingAll_1() {
|
|
981
|
-
var _a, e_2, _b, _c;
|
|
982
|
-
try {
|
|
983
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listForResourcePagingPage(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
984
|
-
_c = _f.value;
|
|
985
|
-
_d = false;
|
|
986
|
-
const page = _c;
|
|
987
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
991
|
-
finally {
|
|
992
|
-
try {
|
|
993
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
994
|
-
}
|
|
995
|
-
finally { if (e_2) throw e_2.error; }
|
|
996
|
-
}
|
|
997
|
-
});
|
|
998
|
-
}
|
|
999
|
-
/**
|
|
1000
|
-
* Gets all permissions the caller has for a resource group.
|
|
1001
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1002
|
-
* @param options The options parameters.
|
|
1003
|
-
*/
|
|
1004
|
-
_listForResourceGroup(resourceGroupName, options) {
|
|
1005
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listForResourceGroupOperationSpec$1);
|
|
1006
|
-
}
|
|
1007
|
-
/**
|
|
1008
|
-
* Gets all permissions the caller has for a resource.
|
|
1009
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1010
|
-
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
1011
|
-
* @param parentResourcePath The parent resource identity.
|
|
1012
|
-
* @param resourceType The resource type of the resource.
|
|
1013
|
-
* @param resourceName The name of the resource to get the permissions for.
|
|
1014
|
-
* @param options The options parameters.
|
|
1015
|
-
*/
|
|
1016
|
-
_listForResource(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options) {
|
|
1017
|
-
return this.client.sendOperationRequest({
|
|
1018
|
-
resourceGroupName,
|
|
1019
|
-
resourceProviderNamespace,
|
|
1020
|
-
parentResourcePath,
|
|
1021
|
-
resourceType,
|
|
1022
|
-
resourceName,
|
|
1023
|
-
options
|
|
1024
|
-
}, listForResourceOperationSpec$1);
|
|
1025
|
-
}
|
|
1026
|
-
/**
|
|
1027
|
-
* ListForResourceGroupNext
|
|
1028
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1029
|
-
* @param nextLink The nextLink from the previous successful call to the ListForResourceGroup method.
|
|
1030
|
-
* @param options The options parameters.
|
|
1031
|
-
*/
|
|
1032
|
-
_listForResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
1033
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listForResourceGroupNextOperationSpec$1);
|
|
1034
|
-
}
|
|
1035
|
-
/**
|
|
1036
|
-
* ListForResourceNext
|
|
1037
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1038
|
-
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
1039
|
-
* @param parentResourcePath The parent resource identity.
|
|
1040
|
-
* @param resourceType The resource type of the resource.
|
|
1041
|
-
* @param resourceName The name of the resource to get the permissions for.
|
|
1042
|
-
* @param nextLink The nextLink from the previous successful call to the ListForResource method.
|
|
1043
|
-
* @param options The options parameters.
|
|
1044
|
-
*/
|
|
1045
|
-
_listForResourceNext(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, nextLink, options) {
|
|
1046
|
-
return this.client.sendOperationRequest({
|
|
1047
|
-
resourceGroupName,
|
|
1048
|
-
resourceProviderNamespace,
|
|
1049
|
-
parentResourcePath,
|
|
1050
|
-
resourceType,
|
|
1051
|
-
resourceName,
|
|
1052
|
-
nextLink,
|
|
1053
|
-
options
|
|
1054
|
-
}, listForResourceNextOperationSpec$1);
|
|
1055
|
-
}
|
|
1056
|
-
}
|
|
1057
|
-
// Operation Specifications
|
|
1058
|
-
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1059
|
-
const listForResourceGroupOperationSpec$1 = {
|
|
1060
|
-
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Authorization/permissions",
|
|
1061
|
-
httpMethod: "GET",
|
|
1062
|
-
responses: {
|
|
1063
|
-
200: {
|
|
1064
|
-
bodyMapper: PermissionGetResult
|
|
1065
|
-
},
|
|
1066
|
-
default: {
|
|
1067
|
-
bodyMapper: ErrorResponse
|
|
1068
|
-
}
|
|
1069
|
-
},
|
|
1070
|
-
queryParameters: [apiVersion],
|
|
1071
|
-
urlParameters: [
|
|
1072
|
-
$host,
|
|
1073
|
-
resourceGroupName,
|
|
1074
|
-
subscriptionId
|
|
1075
|
-
],
|
|
1076
|
-
headerParameters: [accept],
|
|
1077
|
-
serializer: serializer$4
|
|
1078
|
-
};
|
|
1079
|
-
const listForResourceOperationSpec$1 = {
|
|
1080
|
-
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/permissions",
|
|
1081
|
-
httpMethod: "GET",
|
|
1082
|
-
responses: {
|
|
1083
|
-
200: {
|
|
1084
|
-
bodyMapper: PermissionGetResult
|
|
1085
|
-
},
|
|
1086
|
-
default: {
|
|
1087
|
-
bodyMapper: ErrorResponse
|
|
1088
|
-
}
|
|
1089
|
-
},
|
|
1090
|
-
queryParameters: [apiVersion],
|
|
1091
|
-
urlParameters: [
|
|
1092
|
-
$host,
|
|
1093
|
-
resourceGroupName,
|
|
1094
|
-
subscriptionId,
|
|
1095
|
-
resourceProviderNamespace,
|
|
1096
|
-
parentResourcePath,
|
|
1097
|
-
resourceType,
|
|
1098
|
-
resourceName
|
|
1099
|
-
],
|
|
1100
|
-
headerParameters: [accept],
|
|
1101
|
-
serializer: serializer$4
|
|
1102
|
-
};
|
|
1103
|
-
const listForResourceGroupNextOperationSpec$1 = {
|
|
1104
|
-
path: "{nextLink}",
|
|
1105
|
-
httpMethod: "GET",
|
|
1106
|
-
responses: {
|
|
1107
|
-
200: {
|
|
1108
|
-
bodyMapper: PermissionGetResult
|
|
1109
|
-
},
|
|
1110
|
-
default: {
|
|
1111
|
-
bodyMapper: ErrorResponse
|
|
1112
|
-
}
|
|
1113
|
-
},
|
|
1114
|
-
urlParameters: [
|
|
1115
|
-
$host,
|
|
1116
|
-
resourceGroupName,
|
|
1117
|
-
subscriptionId,
|
|
1118
|
-
nextLink
|
|
1119
|
-
],
|
|
1120
|
-
headerParameters: [accept],
|
|
1121
|
-
serializer: serializer$4
|
|
1122
|
-
};
|
|
1123
|
-
const listForResourceNextOperationSpec$1 = {
|
|
1124
|
-
path: "{nextLink}",
|
|
1125
|
-
httpMethod: "GET",
|
|
1126
|
-
responses: {
|
|
1127
|
-
200: {
|
|
1128
|
-
bodyMapper: PermissionGetResult
|
|
1129
|
-
},
|
|
1130
|
-
default: {
|
|
1131
|
-
bodyMapper: ErrorResponse
|
|
1132
|
-
}
|
|
1133
|
-
},
|
|
1134
|
-
urlParameters: [
|
|
1135
|
-
$host,
|
|
1136
|
-
resourceGroupName,
|
|
1137
|
-
subscriptionId,
|
|
1138
|
-
resourceProviderNamespace,
|
|
1139
|
-
parentResourcePath,
|
|
1140
|
-
resourceType,
|
|
1141
|
-
resourceName,
|
|
1142
|
-
nextLink
|
|
1143
|
-
],
|
|
1144
|
-
headerParameters: [accept],
|
|
1145
|
-
serializer: serializer$4
|
|
1146
|
-
};
|
|
1147
|
-
|
|
1148
|
-
/*
|
|
1149
|
-
* Copyright (c) Microsoft Corporation.
|
|
1150
|
-
* Licensed under the MIT License.
|
|
1151
|
-
*
|
|
1152
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1153
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1154
|
-
*/
|
|
1155
|
-
/// <reference lib="esnext.asynciterable" />
|
|
1156
|
-
/** Class containing RoleDefinitions operations. */
|
|
1157
|
-
class RoleDefinitionsImpl {
|
|
1158
|
-
/**
|
|
1159
|
-
* Initialize a new instance of the class RoleDefinitions class.
|
|
1160
|
-
* @param client Reference to the service client
|
|
1161
|
-
*/
|
|
1162
|
-
constructor(client) {
|
|
1163
|
-
this.client = client;
|
|
1164
|
-
}
|
|
1165
|
-
/**
|
|
1166
|
-
* Get all role definitions that are applicable at scope and above.
|
|
1167
|
-
* @param scope The scope of the role definition.
|
|
1168
|
-
* @param options The options parameters.
|
|
1169
|
-
*/
|
|
1170
|
-
list(scope, options) {
|
|
1171
|
-
const iter = this.listPagingAll(scope, options);
|
|
1172
|
-
return {
|
|
1173
|
-
next() {
|
|
1174
|
-
return iter.next();
|
|
1175
|
-
},
|
|
1176
|
-
[Symbol.asyncIterator]() {
|
|
1177
|
-
return this;
|
|
1178
|
-
},
|
|
1179
|
-
byPage: (settings) => {
|
|
1180
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1181
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1182
|
-
}
|
|
1183
|
-
return this.listPagingPage(scope, options, settings);
|
|
1184
|
-
}
|
|
1185
|
-
};
|
|
1186
|
-
}
|
|
1187
|
-
listPagingPage(scope, options, settings) {
|
|
1188
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1189
|
-
let result;
|
|
1190
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1191
|
-
if (!continuationToken) {
|
|
1192
|
-
result = yield tslib.__await(this._list(scope, options));
|
|
1193
|
-
let page = result.value || [];
|
|
1194
|
-
continuationToken = result.nextLink;
|
|
1195
|
-
setContinuationToken(page, continuationToken);
|
|
1196
|
-
yield yield tslib.__await(page);
|
|
1197
|
-
}
|
|
1198
|
-
while (continuationToken) {
|
|
1199
|
-
result = yield tslib.__await(this._listNext(scope, continuationToken, options));
|
|
1200
|
-
continuationToken = result.nextLink;
|
|
1201
|
-
let page = result.value || [];
|
|
1202
|
-
setContinuationToken(page, continuationToken);
|
|
1203
|
-
yield yield tslib.__await(page);
|
|
1204
|
-
}
|
|
1205
|
-
});
|
|
1206
|
-
}
|
|
1207
|
-
listPagingAll(scope, options) {
|
|
1208
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1209
|
-
var _a, e_1, _b, _c;
|
|
1210
|
-
try {
|
|
1211
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(scope, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
1212
|
-
_c = _f.value;
|
|
1213
|
-
_d = false;
|
|
1214
|
-
const page = _c;
|
|
1215
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1216
|
-
}
|
|
1217
|
-
}
|
|
1218
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1219
|
-
finally {
|
|
1220
|
-
try {
|
|
1221
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1222
|
-
}
|
|
1223
|
-
finally { if (e_1) throw e_1.error; }
|
|
1224
|
-
}
|
|
1225
|
-
});
|
|
1226
|
-
}
|
|
1227
|
-
/**
|
|
1228
|
-
* Deletes a role definition.
|
|
1229
|
-
* @param scope The scope of the role definition.
|
|
1230
|
-
* @param roleDefinitionId The ID of the role definition to delete.
|
|
1231
|
-
* @param options The options parameters.
|
|
1232
|
-
*/
|
|
1233
|
-
delete(scope, roleDefinitionId, options) {
|
|
1234
|
-
return this.client.sendOperationRequest({ scope, roleDefinitionId, options }, deleteOperationSpec$1);
|
|
1235
|
-
}
|
|
1236
|
-
/**
|
|
1237
|
-
* Get role definition by name (GUID).
|
|
1238
|
-
* @param scope The scope of the role definition.
|
|
1239
|
-
* @param roleDefinitionId The ID of the role definition.
|
|
1240
|
-
* @param options The options parameters.
|
|
1241
|
-
*/
|
|
1242
|
-
get(scope, roleDefinitionId, options) {
|
|
1243
|
-
return this.client.sendOperationRequest({ scope, roleDefinitionId, options }, getOperationSpec$2);
|
|
1244
|
-
}
|
|
1245
|
-
/**
|
|
1246
|
-
* Creates or updates a role definition.
|
|
1247
|
-
* @param scope The scope of the role definition.
|
|
1248
|
-
* @param roleDefinitionId The ID of the role definition.
|
|
1249
|
-
* @param roleDefinition The values for the role definition.
|
|
1250
|
-
* @param options The options parameters.
|
|
1251
|
-
*/
|
|
1252
|
-
createOrUpdate(scope, roleDefinitionId, roleDefinition, options) {
|
|
1253
|
-
return this.client.sendOperationRequest({ scope, roleDefinitionId, roleDefinition, options }, createOrUpdateOperationSpec);
|
|
1254
|
-
}
|
|
1255
|
-
/**
|
|
1256
|
-
* Get all role definitions that are applicable at scope and above.
|
|
1257
|
-
* @param scope The scope of the role definition.
|
|
1258
|
-
* @param options The options parameters.
|
|
1259
|
-
*/
|
|
1260
|
-
_list(scope, options) {
|
|
1261
|
-
return this.client.sendOperationRequest({ scope, options }, listOperationSpec$2);
|
|
1262
|
-
}
|
|
1263
|
-
/**
|
|
1264
|
-
* Gets a role definition by ID.
|
|
1265
|
-
* @param roleDefinitionId The fully qualified role definition ID. Use the format,
|
|
1266
|
-
* /subscriptions/{guid}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for
|
|
1267
|
-
* subscription level role definitions, or
|
|
1268
|
-
* /providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for tenant level role
|
|
1269
|
-
* definitions.
|
|
1270
|
-
* @param options The options parameters.
|
|
1271
|
-
*/
|
|
1272
|
-
getById(roleDefinitionId, options) {
|
|
1273
|
-
return this.client.sendOperationRequest({ roleDefinitionId, options }, getByIdOperationSpec$1);
|
|
1274
|
-
}
|
|
1275
|
-
/**
|
|
1276
|
-
* ListNext
|
|
1277
|
-
* @param scope The scope of the role definition.
|
|
1278
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
1279
|
-
* @param options The options parameters.
|
|
1280
|
-
*/
|
|
1281
|
-
_listNext(scope, nextLink, options) {
|
|
1282
|
-
return this.client.sendOperationRequest({ scope, nextLink, options }, listNextOperationSpec$2);
|
|
1283
|
-
}
|
|
1284
|
-
}
|
|
1285
|
-
// Operation Specifications
|
|
1286
|
-
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1287
|
-
const deleteOperationSpec$1 = {
|
|
1288
|
-
path: "/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}",
|
|
1289
|
-
httpMethod: "DELETE",
|
|
1290
|
-
responses: {
|
|
1291
|
-
200: {
|
|
1292
|
-
bodyMapper: RoleDefinition
|
|
1293
|
-
},
|
|
1294
|
-
204: {},
|
|
1295
|
-
default: {
|
|
1296
|
-
bodyMapper: ErrorResponse
|
|
1297
|
-
}
|
|
1298
|
-
},
|
|
1299
|
-
queryParameters: [apiVersion],
|
|
1300
|
-
urlParameters: [
|
|
1301
|
-
$host,
|
|
1302
|
-
scope,
|
|
1303
|
-
roleDefinitionId
|
|
1304
|
-
],
|
|
1305
|
-
headerParameters: [accept],
|
|
1306
|
-
serializer: serializer$3
|
|
1307
|
-
};
|
|
1308
|
-
const getOperationSpec$2 = {
|
|
1309
|
-
path: "/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}",
|
|
1310
|
-
httpMethod: "GET",
|
|
1311
|
-
responses: {
|
|
1312
|
-
200: {
|
|
1313
|
-
bodyMapper: RoleDefinition
|
|
1314
|
-
},
|
|
1315
|
-
default: {
|
|
1316
|
-
bodyMapper: ErrorResponse
|
|
1317
|
-
}
|
|
1318
|
-
},
|
|
1319
|
-
queryParameters: [apiVersion],
|
|
1320
|
-
urlParameters: [
|
|
1321
|
-
$host,
|
|
1322
|
-
scope,
|
|
1323
|
-
roleDefinitionId
|
|
1324
|
-
],
|
|
1325
|
-
headerParameters: [accept],
|
|
1326
|
-
serializer: serializer$3
|
|
1327
|
-
};
|
|
1328
|
-
const createOrUpdateOperationSpec = {
|
|
1329
|
-
path: "/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}",
|
|
1330
|
-
httpMethod: "PUT",
|
|
1331
|
-
responses: {
|
|
1332
|
-
201: {
|
|
1333
|
-
bodyMapper: RoleDefinition
|
|
1334
|
-
},
|
|
1335
|
-
default: {
|
|
1336
|
-
bodyMapper: ErrorResponse
|
|
1337
|
-
}
|
|
1338
|
-
},
|
|
1339
|
-
requestBody: roleDefinition,
|
|
1340
|
-
queryParameters: [apiVersion],
|
|
1341
|
-
urlParameters: [
|
|
1342
|
-
$host,
|
|
1343
|
-
scope,
|
|
1344
|
-
roleDefinitionId
|
|
1345
|
-
],
|
|
1346
|
-
headerParameters: [accept, contentType],
|
|
1347
|
-
mediaType: "json",
|
|
1348
|
-
serializer: serializer$3
|
|
1349
|
-
};
|
|
1350
|
-
const listOperationSpec$2 = {
|
|
1351
|
-
path: "/{scope}/providers/Microsoft.Authorization/roleDefinitions",
|
|
1352
|
-
httpMethod: "GET",
|
|
1353
|
-
responses: {
|
|
1354
|
-
200: {
|
|
1355
|
-
bodyMapper: RoleDefinitionListResult
|
|
1356
|
-
},
|
|
1357
|
-
default: {
|
|
1358
|
-
bodyMapper: ErrorResponse
|
|
1359
|
-
}
|
|
1360
|
-
},
|
|
1361
|
-
queryParameters: [apiVersion, filter],
|
|
1362
|
-
urlParameters: [$host, scope],
|
|
1363
|
-
headerParameters: [accept],
|
|
1364
|
-
serializer: serializer$3
|
|
1365
|
-
};
|
|
1366
|
-
const getByIdOperationSpec$1 = {
|
|
1367
|
-
path: "/{roleDefinitionId}",
|
|
1368
|
-
httpMethod: "GET",
|
|
1369
|
-
responses: {
|
|
1370
|
-
200: {
|
|
1371
|
-
bodyMapper: RoleDefinition
|
|
1372
|
-
},
|
|
1373
|
-
default: {
|
|
1374
|
-
bodyMapper: ErrorResponse
|
|
1375
|
-
}
|
|
1376
|
-
},
|
|
1377
|
-
queryParameters: [apiVersion],
|
|
1378
|
-
urlParameters: [$host, roleDefinitionId1],
|
|
1379
|
-
headerParameters: [accept],
|
|
1380
|
-
serializer: serializer$3
|
|
1381
|
-
};
|
|
1382
|
-
const listNextOperationSpec$2 = {
|
|
1383
|
-
path: "{nextLink}",
|
|
1384
|
-
httpMethod: "GET",
|
|
1385
|
-
responses: {
|
|
1386
|
-
200: {
|
|
1387
|
-
bodyMapper: RoleDefinitionListResult
|
|
1388
|
-
},
|
|
1389
|
-
default: {
|
|
1390
|
-
bodyMapper: ErrorResponse
|
|
1391
|
-
}
|
|
1392
|
-
},
|
|
1393
|
-
urlParameters: [$host, nextLink, scope],
|
|
1394
|
-
headerParameters: [accept],
|
|
1395
|
-
serializer: serializer$3
|
|
1396
|
-
};
|
|
1397
|
-
|
|
1398
|
-
/*
|
|
1399
|
-
* Copyright (c) Microsoft Corporation.
|
|
1400
|
-
* Licensed under the MIT License.
|
|
1401
|
-
*
|
|
1402
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1403
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1404
|
-
*/
|
|
1405
|
-
/// <reference lib="esnext.asynciterable" />
|
|
1406
|
-
/** Class containing ProviderOperationsMetadataOperations operations. */
|
|
1407
|
-
class ProviderOperationsMetadataOperationsImpl {
|
|
1408
|
-
/**
|
|
1409
|
-
* Initialize a new instance of the class ProviderOperationsMetadataOperations class.
|
|
1410
|
-
* @param client Reference to the service client
|
|
1411
|
-
*/
|
|
1412
|
-
constructor(client) {
|
|
1413
|
-
this.client = client;
|
|
1414
|
-
}
|
|
1415
|
-
/**
|
|
1416
|
-
* Gets provider operations metadata for all resource providers.
|
|
1417
|
-
* @param options The options parameters.
|
|
1418
|
-
*/
|
|
1419
|
-
list(options) {
|
|
1420
|
-
const iter = this.listPagingAll(options);
|
|
1421
|
-
return {
|
|
1422
|
-
next() {
|
|
1423
|
-
return iter.next();
|
|
1424
|
-
},
|
|
1425
|
-
[Symbol.asyncIterator]() {
|
|
1426
|
-
return this;
|
|
1427
|
-
},
|
|
1428
|
-
byPage: (settings) => {
|
|
1429
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1430
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1431
|
-
}
|
|
1432
|
-
return this.listPagingPage(options, settings);
|
|
1433
|
-
}
|
|
1434
|
-
};
|
|
1435
|
-
}
|
|
1436
|
-
listPagingPage(options, settings) {
|
|
1437
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1438
|
-
let result;
|
|
1439
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1440
|
-
if (!continuationToken) {
|
|
1441
|
-
result = yield tslib.__await(this._list(options));
|
|
1442
|
-
let page = result.value || [];
|
|
1443
|
-
continuationToken = result.nextLink;
|
|
1444
|
-
setContinuationToken(page, continuationToken);
|
|
1445
|
-
yield yield tslib.__await(page);
|
|
1446
|
-
}
|
|
1447
|
-
while (continuationToken) {
|
|
1448
|
-
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
1449
|
-
continuationToken = result.nextLink;
|
|
1450
|
-
let page = result.value || [];
|
|
1451
|
-
setContinuationToken(page, continuationToken);
|
|
1452
|
-
yield yield tslib.__await(page);
|
|
1453
|
-
}
|
|
1454
|
-
});
|
|
1455
|
-
}
|
|
1456
|
-
listPagingAll(options) {
|
|
1457
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1458
|
-
var _a, e_1, _b, _c;
|
|
1459
|
-
try {
|
|
1460
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
1461
|
-
_c = _f.value;
|
|
1462
|
-
_d = false;
|
|
1463
|
-
const page = _c;
|
|
1464
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1465
|
-
}
|
|
1466
|
-
}
|
|
1467
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1468
|
-
finally {
|
|
1469
|
-
try {
|
|
1470
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1471
|
-
}
|
|
1472
|
-
finally { if (e_1) throw e_1.error; }
|
|
1473
|
-
}
|
|
1474
|
-
});
|
|
1475
|
-
}
|
|
1476
|
-
/**
|
|
1477
|
-
* Gets provider operations metadata for the specified resource provider.
|
|
1478
|
-
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
1479
|
-
* @param options The options parameters.
|
|
1480
|
-
*/
|
|
1481
|
-
get(resourceProviderNamespace, options) {
|
|
1482
|
-
return this.client.sendOperationRequest({ resourceProviderNamespace, options }, getOperationSpec$1);
|
|
1483
|
-
}
|
|
1484
|
-
/**
|
|
1485
|
-
* Gets provider operations metadata for all resource providers.
|
|
1486
|
-
* @param options The options parameters.
|
|
1487
|
-
*/
|
|
1488
|
-
_list(options) {
|
|
1489
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
1490
|
-
}
|
|
1491
|
-
/**
|
|
1492
|
-
* ListNext
|
|
1493
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
1494
|
-
* @param options The options parameters.
|
|
1495
|
-
*/
|
|
1496
|
-
_listNext(nextLink, options) {
|
|
1497
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
|
|
1498
|
-
}
|
|
1499
|
-
}
|
|
1500
|
-
// Operation Specifications
|
|
1501
|
-
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1502
|
-
const getOperationSpec$1 = {
|
|
1503
|
-
path: "/providers/Microsoft.Authorization/providerOperations/{resourceProviderNamespace}",
|
|
1504
|
-
httpMethod: "GET",
|
|
1505
|
-
responses: {
|
|
1506
|
-
200: {
|
|
1507
|
-
bodyMapper: ProviderOperationsMetadata
|
|
1508
|
-
},
|
|
1509
|
-
default: {
|
|
1510
|
-
bodyMapper: ErrorResponse
|
|
1511
|
-
}
|
|
1512
|
-
},
|
|
1513
|
-
queryParameters: [apiVersion, expand],
|
|
1514
|
-
urlParameters: [$host, resourceProviderNamespace],
|
|
1515
|
-
headerParameters: [accept],
|
|
1516
|
-
serializer: serializer$2
|
|
1517
|
-
};
|
|
1518
|
-
const listOperationSpec$1 = {
|
|
1519
|
-
path: "/providers/Microsoft.Authorization/providerOperations",
|
|
1520
|
-
httpMethod: "GET",
|
|
1521
|
-
responses: {
|
|
1522
|
-
200: {
|
|
1523
|
-
bodyMapper: ProviderOperationsMetadataListResult
|
|
1524
|
-
},
|
|
1525
|
-
default: {
|
|
1526
|
-
bodyMapper: ErrorResponse
|
|
1527
|
-
}
|
|
1528
|
-
},
|
|
1529
|
-
queryParameters: [apiVersion, expand],
|
|
1530
|
-
urlParameters: [$host],
|
|
1531
|
-
headerParameters: [accept],
|
|
1532
|
-
serializer: serializer$2
|
|
1533
|
-
};
|
|
1534
|
-
const listNextOperationSpec$1 = {
|
|
1535
|
-
path: "{nextLink}",
|
|
1536
|
-
httpMethod: "GET",
|
|
1537
|
-
responses: {
|
|
1538
|
-
200: {
|
|
1539
|
-
bodyMapper: ProviderOperationsMetadataListResult
|
|
1540
|
-
},
|
|
1541
|
-
default: {
|
|
1542
|
-
bodyMapper: ErrorResponse
|
|
1543
|
-
}
|
|
1544
|
-
},
|
|
1545
|
-
urlParameters: [$host, nextLink],
|
|
1546
|
-
headerParameters: [accept],
|
|
1547
|
-
serializer: serializer$2
|
|
1548
|
-
};
|
|
1549
|
-
|
|
1550
|
-
/*
|
|
1551
|
-
* Copyright (c) Microsoft Corporation.
|
|
1552
|
-
* Licensed under the MIT License.
|
|
1553
|
-
*
|
|
1554
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1555
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1556
|
-
*/
|
|
1557
|
-
/** Class containing GlobalAdministrator operations. */
|
|
1558
|
-
class GlobalAdministratorImpl {
|
|
1559
|
-
/**
|
|
1560
|
-
* Initialize a new instance of the class GlobalAdministrator class.
|
|
1561
|
-
* @param client Reference to the service client
|
|
1562
|
-
*/
|
|
1563
|
-
constructor(client) {
|
|
1564
|
-
this.client = client;
|
|
1565
|
-
}
|
|
1566
|
-
/**
|
|
1567
|
-
* Elevates access for a Global Administrator.
|
|
1568
|
-
* @param options The options parameters.
|
|
1569
|
-
*/
|
|
1570
|
-
elevateAccess(options) {
|
|
1571
|
-
return this.client.sendOperationRequest({ options }, elevateAccessOperationSpec);
|
|
1572
|
-
}
|
|
1573
|
-
}
|
|
1574
|
-
// Operation Specifications
|
|
1575
|
-
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1576
|
-
const elevateAccessOperationSpec = {
|
|
1577
|
-
path: "/providers/Microsoft.Authorization/elevateAccess",
|
|
1578
|
-
httpMethod: "POST",
|
|
1579
|
-
responses: {
|
|
1580
|
-
200: {},
|
|
1581
|
-
default: {
|
|
1582
|
-
bodyMapper: ErrorResponse
|
|
1583
|
-
}
|
|
1584
|
-
},
|
|
1585
|
-
queryParameters: [apiVersion],
|
|
1586
|
-
urlParameters: [$host],
|
|
1587
|
-
headerParameters: [accept],
|
|
1588
|
-
serializer: serializer$1
|
|
1589
|
-
};
|
|
1590
|
-
|
|
1591
|
-
/*
|
|
1592
|
-
* Copyright (c) Microsoft Corporation.
|
|
1593
|
-
* Licensed under the MIT License.
|
|
1594
|
-
*
|
|
1595
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1596
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1597
|
-
*/
|
|
1598
|
-
/// <reference lib="esnext.asynciterable" />
|
|
1599
|
-
/** Class containing RoleAssignments operations. */
|
|
1600
|
-
class RoleAssignmentsImpl {
|
|
1601
|
-
/**
|
|
1602
|
-
* Initialize a new instance of the class RoleAssignments class.
|
|
1603
|
-
* @param client Reference to the service client
|
|
1604
|
-
*/
|
|
1605
|
-
constructor(client) {
|
|
1606
|
-
this.client = client;
|
|
1607
|
-
}
|
|
1608
|
-
/**
|
|
1609
|
-
* Gets role assignments for a resource.
|
|
1610
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1611
|
-
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
1612
|
-
* @param parentResourcePath The parent resource identity.
|
|
1613
|
-
* @param resourceType The resource type of the resource.
|
|
1614
|
-
* @param resourceName The name of the resource to get role assignments for.
|
|
1615
|
-
* @param options The options parameters.
|
|
1616
|
-
*/
|
|
1617
|
-
listForResource(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options) {
|
|
1618
|
-
const iter = this.listForResourcePagingAll(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options);
|
|
1619
|
-
return {
|
|
1620
|
-
next() {
|
|
1621
|
-
return iter.next();
|
|
1622
|
-
},
|
|
1623
|
-
[Symbol.asyncIterator]() {
|
|
1624
|
-
return this;
|
|
1625
|
-
},
|
|
1626
|
-
byPage: (settings) => {
|
|
1627
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1628
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1629
|
-
}
|
|
1630
|
-
return this.listForResourcePagingPage(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options, settings);
|
|
1631
|
-
}
|
|
1632
|
-
};
|
|
1633
|
-
}
|
|
1634
|
-
listForResourcePagingPage(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options, settings) {
|
|
1635
|
-
return tslib.__asyncGenerator(this, arguments, function* listForResourcePagingPage_1() {
|
|
1636
|
-
let result;
|
|
1637
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1638
|
-
if (!continuationToken) {
|
|
1639
|
-
result = yield tslib.__await(this._listForResource(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options));
|
|
1640
|
-
let page = result.value || [];
|
|
1641
|
-
continuationToken = result.nextLink;
|
|
1642
|
-
setContinuationToken(page, continuationToken);
|
|
1643
|
-
yield yield tslib.__await(page);
|
|
1644
|
-
}
|
|
1645
|
-
while (continuationToken) {
|
|
1646
|
-
result = yield tslib.__await(this._listForResourceNext(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, continuationToken, options));
|
|
1647
|
-
continuationToken = result.nextLink;
|
|
1648
|
-
let page = result.value || [];
|
|
1649
|
-
setContinuationToken(page, continuationToken);
|
|
1650
|
-
yield yield tslib.__await(page);
|
|
1651
|
-
}
|
|
1652
|
-
});
|
|
1653
|
-
}
|
|
1654
|
-
listForResourcePagingAll(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options) {
|
|
1655
|
-
return tslib.__asyncGenerator(this, arguments, function* listForResourcePagingAll_1() {
|
|
1656
|
-
var _a, e_1, _b, _c;
|
|
1657
|
-
try {
|
|
1658
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listForResourcePagingPage(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
1659
|
-
_c = _f.value;
|
|
1660
|
-
_d = false;
|
|
1661
|
-
const page = _c;
|
|
1662
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1663
|
-
}
|
|
1664
|
-
}
|
|
1665
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1666
|
-
finally {
|
|
1667
|
-
try {
|
|
1668
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1669
|
-
}
|
|
1670
|
-
finally { if (e_1) throw e_1.error; }
|
|
1671
|
-
}
|
|
1672
|
-
});
|
|
1673
|
-
}
|
|
1674
|
-
/**
|
|
1675
|
-
* Gets role assignments for a resource group.
|
|
1676
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1677
|
-
* @param options The options parameters.
|
|
1678
|
-
*/
|
|
1679
|
-
listForResourceGroup(resourceGroupName, options) {
|
|
1680
|
-
const iter = this.listForResourceGroupPagingAll(resourceGroupName, options);
|
|
1681
|
-
return {
|
|
1682
|
-
next() {
|
|
1683
|
-
return iter.next();
|
|
1684
|
-
},
|
|
1685
|
-
[Symbol.asyncIterator]() {
|
|
1686
|
-
return this;
|
|
1687
|
-
},
|
|
1688
|
-
byPage: (settings) => {
|
|
1689
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1690
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1691
|
-
}
|
|
1692
|
-
return this.listForResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
1693
|
-
}
|
|
1694
|
-
};
|
|
1695
|
-
}
|
|
1696
|
-
listForResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
1697
|
-
return tslib.__asyncGenerator(this, arguments, function* listForResourceGroupPagingPage_1() {
|
|
1698
|
-
let result;
|
|
1699
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1700
|
-
if (!continuationToken) {
|
|
1701
|
-
result = yield tslib.__await(this._listForResourceGroup(resourceGroupName, options));
|
|
1702
|
-
let page = result.value || [];
|
|
1703
|
-
continuationToken = result.nextLink;
|
|
1704
|
-
setContinuationToken(page, continuationToken);
|
|
1705
|
-
yield yield tslib.__await(page);
|
|
1706
|
-
}
|
|
1707
|
-
while (continuationToken) {
|
|
1708
|
-
result = yield tslib.__await(this._listForResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1709
|
-
continuationToken = result.nextLink;
|
|
1710
|
-
let page = result.value || [];
|
|
1711
|
-
setContinuationToken(page, continuationToken);
|
|
1712
|
-
yield yield tslib.__await(page);
|
|
1713
|
-
}
|
|
1714
|
-
});
|
|
1715
|
-
}
|
|
1716
|
-
listForResourceGroupPagingAll(resourceGroupName, options) {
|
|
1717
|
-
return tslib.__asyncGenerator(this, arguments, function* listForResourceGroupPagingAll_1() {
|
|
1718
|
-
var _a, e_2, _b, _c;
|
|
1719
|
-
try {
|
|
1720
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listForResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
1721
|
-
_c = _f.value;
|
|
1722
|
-
_d = false;
|
|
1723
|
-
const page = _c;
|
|
1724
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1725
|
-
}
|
|
1726
|
-
}
|
|
1727
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1728
|
-
finally {
|
|
1729
|
-
try {
|
|
1730
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1731
|
-
}
|
|
1732
|
-
finally { if (e_2) throw e_2.error; }
|
|
1733
|
-
}
|
|
1734
|
-
});
|
|
1735
|
-
}
|
|
1736
|
-
/**
|
|
1737
|
-
* Gets all role assignments for the subscription.
|
|
1738
|
-
* @param options The options parameters.
|
|
1739
|
-
*/
|
|
1740
|
-
list(options) {
|
|
1741
|
-
const iter = this.listPagingAll(options);
|
|
1742
|
-
return {
|
|
1743
|
-
next() {
|
|
1744
|
-
return iter.next();
|
|
1745
|
-
},
|
|
1746
|
-
[Symbol.asyncIterator]() {
|
|
1747
|
-
return this;
|
|
1748
|
-
},
|
|
1749
|
-
byPage: (settings) => {
|
|
1750
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1751
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1752
|
-
}
|
|
1753
|
-
return this.listPagingPage(options, settings);
|
|
1754
|
-
}
|
|
1755
|
-
};
|
|
1756
|
-
}
|
|
1757
|
-
listPagingPage(options, settings) {
|
|
1758
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1759
|
-
let result;
|
|
1760
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1761
|
-
if (!continuationToken) {
|
|
1762
|
-
result = yield tslib.__await(this._list(options));
|
|
1763
|
-
let page = result.value || [];
|
|
1764
|
-
continuationToken = result.nextLink;
|
|
1765
|
-
setContinuationToken(page, continuationToken);
|
|
1766
|
-
yield yield tslib.__await(page);
|
|
1767
|
-
}
|
|
1768
|
-
while (continuationToken) {
|
|
1769
|
-
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
1770
|
-
continuationToken = result.nextLink;
|
|
1771
|
-
let page = result.value || [];
|
|
1772
|
-
setContinuationToken(page, continuationToken);
|
|
1773
|
-
yield yield tslib.__await(page);
|
|
1774
|
-
}
|
|
1775
|
-
});
|
|
1776
|
-
}
|
|
1777
|
-
listPagingAll(options) {
|
|
1778
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1779
|
-
var _a, e_3, _b, _c;
|
|
1780
|
-
try {
|
|
1781
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
1782
|
-
_c = _f.value;
|
|
1783
|
-
_d = false;
|
|
1784
|
-
const page = _c;
|
|
1785
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1786
|
-
}
|
|
1787
|
-
}
|
|
1788
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
1789
|
-
finally {
|
|
1790
|
-
try {
|
|
1791
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1792
|
-
}
|
|
1793
|
-
finally { if (e_3) throw e_3.error; }
|
|
1794
|
-
}
|
|
1795
|
-
});
|
|
1796
|
-
}
|
|
1797
|
-
/**
|
|
1798
|
-
* Gets role assignments for a scope.
|
|
1799
|
-
* @param scope The scope of the role assignments.
|
|
1800
|
-
* @param options The options parameters.
|
|
1801
|
-
*/
|
|
1802
|
-
listForScope(scope, options) {
|
|
1803
|
-
const iter = this.listForScopePagingAll(scope, options);
|
|
1804
|
-
return {
|
|
1805
|
-
next() {
|
|
1806
|
-
return iter.next();
|
|
1807
|
-
},
|
|
1808
|
-
[Symbol.asyncIterator]() {
|
|
1809
|
-
return this;
|
|
1810
|
-
},
|
|
1811
|
-
byPage: (settings) => {
|
|
1812
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1813
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1814
|
-
}
|
|
1815
|
-
return this.listForScopePagingPage(scope, options, settings);
|
|
1816
|
-
}
|
|
1817
|
-
};
|
|
1818
|
-
}
|
|
1819
|
-
listForScopePagingPage(scope, options, settings) {
|
|
1820
|
-
return tslib.__asyncGenerator(this, arguments, function* listForScopePagingPage_1() {
|
|
1821
|
-
let result;
|
|
1822
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1823
|
-
if (!continuationToken) {
|
|
1824
|
-
result = yield tslib.__await(this._listForScope(scope, options));
|
|
1825
|
-
let page = result.value || [];
|
|
1826
|
-
continuationToken = result.nextLink;
|
|
1827
|
-
setContinuationToken(page, continuationToken);
|
|
1828
|
-
yield yield tslib.__await(page);
|
|
1829
|
-
}
|
|
1830
|
-
while (continuationToken) {
|
|
1831
|
-
result = yield tslib.__await(this._listForScopeNext(scope, continuationToken, options));
|
|
1832
|
-
continuationToken = result.nextLink;
|
|
1833
|
-
let page = result.value || [];
|
|
1834
|
-
setContinuationToken(page, continuationToken);
|
|
1835
|
-
yield yield tslib.__await(page);
|
|
1836
|
-
}
|
|
1837
|
-
});
|
|
1838
|
-
}
|
|
1839
|
-
listForScopePagingAll(scope, options) {
|
|
1840
|
-
return tslib.__asyncGenerator(this, arguments, function* listForScopePagingAll_1() {
|
|
1841
|
-
var _a, e_4, _b, _c;
|
|
1842
|
-
try {
|
|
1843
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listForScopePagingPage(scope, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
1844
|
-
_c = _f.value;
|
|
1845
|
-
_d = false;
|
|
1846
|
-
const page = _c;
|
|
1847
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1848
|
-
}
|
|
1849
|
-
}
|
|
1850
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
1851
|
-
finally {
|
|
1852
|
-
try {
|
|
1853
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1854
|
-
}
|
|
1855
|
-
finally { if (e_4) throw e_4.error; }
|
|
1856
|
-
}
|
|
1857
|
-
});
|
|
1858
|
-
}
|
|
1859
|
-
/**
|
|
1860
|
-
* Gets role assignments for a resource.
|
|
1861
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1862
|
-
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
1863
|
-
* @param parentResourcePath The parent resource identity.
|
|
1864
|
-
* @param resourceType The resource type of the resource.
|
|
1865
|
-
* @param resourceName The name of the resource to get role assignments for.
|
|
1866
|
-
* @param options The options parameters.
|
|
1867
|
-
*/
|
|
1868
|
-
_listForResource(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options) {
|
|
1869
|
-
return this.client.sendOperationRequest({
|
|
1870
|
-
resourceGroupName,
|
|
1871
|
-
resourceProviderNamespace,
|
|
1872
|
-
parentResourcePath,
|
|
1873
|
-
resourceType,
|
|
1874
|
-
resourceName,
|
|
1875
|
-
options
|
|
1876
|
-
}, listForResourceOperationSpec);
|
|
1877
|
-
}
|
|
1878
|
-
/**
|
|
1879
|
-
* Gets role assignments for a resource group.
|
|
1880
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1881
|
-
* @param options The options parameters.
|
|
1882
|
-
*/
|
|
1883
|
-
_listForResourceGroup(resourceGroupName, options) {
|
|
1884
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listForResourceGroupOperationSpec);
|
|
1885
|
-
}
|
|
1886
|
-
/**
|
|
1887
|
-
* Deletes a role assignment.
|
|
1888
|
-
* @param scope The scope of the role assignment to delete.
|
|
1889
|
-
* @param roleAssignmentName The name of the role assignment to delete.
|
|
1890
|
-
* @param options The options parameters.
|
|
1891
|
-
*/
|
|
1892
|
-
delete(scope, roleAssignmentName, options) {
|
|
1893
|
-
return this.client.sendOperationRequest({ scope, roleAssignmentName, options }, deleteOperationSpec);
|
|
1894
|
-
}
|
|
1895
|
-
/**
|
|
1896
|
-
* Creates a role assignment.
|
|
1897
|
-
* @param scope The scope of the role assignment to create. The scope can be any REST resource
|
|
1898
|
-
* instance. For example, use '/subscriptions/{subscription-id}/' for a subscription,
|
|
1899
|
-
* '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group, and
|
|
1900
|
-
* '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}'
|
|
1901
|
-
* for a resource.
|
|
1902
|
-
* @param roleAssignmentName A GUID for the role assignment to create. The name must be unique and
|
|
1903
|
-
* different for each role assignment.
|
|
1904
|
-
* @param parameters Parameters for the role assignment.
|
|
1905
|
-
* @param options The options parameters.
|
|
1906
|
-
*/
|
|
1907
|
-
create(scope, roleAssignmentName, parameters, options) {
|
|
1908
|
-
return this.client.sendOperationRequest({ scope, roleAssignmentName, parameters, options }, createOperationSpec);
|
|
1909
|
-
}
|
|
1910
|
-
/**
|
|
1911
|
-
* Get the specified role assignment.
|
|
1912
|
-
* @param scope The scope of the role assignment.
|
|
1913
|
-
* @param roleAssignmentName The name of the role assignment to get.
|
|
1914
|
-
* @param options The options parameters.
|
|
1915
|
-
*/
|
|
1916
|
-
get(scope, roleAssignmentName, options) {
|
|
1917
|
-
return this.client.sendOperationRequest({ scope, roleAssignmentName, options }, getOperationSpec);
|
|
1918
|
-
}
|
|
1919
|
-
/**
|
|
1920
|
-
* Deletes a role assignment.
|
|
1921
|
-
* @param roleAssignmentId The fully qualified ID of the role assignment, including the scope, resource
|
|
1922
|
-
* name and resource type. Use the format,
|
|
1923
|
-
* /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example:
|
|
1924
|
-
* /subscriptions/{subId}/resourcegroups/{rgname}//providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.
|
|
1925
|
-
* @param options The options parameters.
|
|
1926
|
-
*/
|
|
1927
|
-
deleteById(roleAssignmentId, options) {
|
|
1928
|
-
return this.client.sendOperationRequest({ roleAssignmentId, options }, deleteByIdOperationSpec);
|
|
1929
|
-
}
|
|
1930
|
-
/**
|
|
1931
|
-
* Creates a role assignment by ID.
|
|
1932
|
-
* @param roleAssignmentId The fully qualified ID of the role assignment, including the scope, resource
|
|
1933
|
-
* name and resource type. Use the format,
|
|
1934
|
-
* /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example:
|
|
1935
|
-
* /subscriptions/{subId}/resourcegroups/{rgname}//providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.
|
|
1936
|
-
* @param parameters Parameters for the role assignment.
|
|
1937
|
-
* @param options The options parameters.
|
|
1938
|
-
*/
|
|
1939
|
-
createById(roleAssignmentId, parameters, options) {
|
|
1940
|
-
return this.client.sendOperationRequest({ roleAssignmentId, parameters, options }, createByIdOperationSpec);
|
|
1941
|
-
}
|
|
1942
|
-
/**
|
|
1943
|
-
* Gets a role assignment by ID.
|
|
1944
|
-
* @param roleAssignmentId The fully qualified ID of the role assignment, including the scope, resource
|
|
1945
|
-
* name and resource type. Use the format,
|
|
1946
|
-
* /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example:
|
|
1947
|
-
* /subscriptions/{subId}/resourcegroups/{rgname}//providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.
|
|
1948
|
-
* @param options The options parameters.
|
|
1949
|
-
*/
|
|
1950
|
-
getById(roleAssignmentId, options) {
|
|
1951
|
-
return this.client.sendOperationRequest({ roleAssignmentId, options }, getByIdOperationSpec);
|
|
1952
|
-
}
|
|
1953
|
-
/**
|
|
1954
|
-
* Gets all role assignments for the subscription.
|
|
1955
|
-
* @param options The options parameters.
|
|
1956
|
-
*/
|
|
1957
|
-
_list(options) {
|
|
1958
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
1959
|
-
}
|
|
1960
|
-
/**
|
|
1961
|
-
* Gets role assignments for a scope.
|
|
1962
|
-
* @param scope The scope of the role assignments.
|
|
1963
|
-
* @param options The options parameters.
|
|
1964
|
-
*/
|
|
1965
|
-
_listForScope(scope, options) {
|
|
1966
|
-
return this.client.sendOperationRequest({ scope, options }, listForScopeOperationSpec);
|
|
1967
|
-
}
|
|
1968
|
-
/**
|
|
1969
|
-
* ListForResourceNext
|
|
1970
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1971
|
-
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
1972
|
-
* @param parentResourcePath The parent resource identity.
|
|
1973
|
-
* @param resourceType The resource type of the resource.
|
|
1974
|
-
* @param resourceName The name of the resource to get role assignments for.
|
|
1975
|
-
* @param nextLink The nextLink from the previous successful call to the ListForResource method.
|
|
1976
|
-
* @param options The options parameters.
|
|
1977
|
-
*/
|
|
1978
|
-
_listForResourceNext(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, nextLink, options) {
|
|
1979
|
-
return this.client.sendOperationRequest({
|
|
1980
|
-
resourceGroupName,
|
|
1981
|
-
resourceProviderNamespace,
|
|
1982
|
-
parentResourcePath,
|
|
1983
|
-
resourceType,
|
|
1984
|
-
resourceName,
|
|
1985
|
-
nextLink,
|
|
1986
|
-
options
|
|
1987
|
-
}, listForResourceNextOperationSpec);
|
|
1988
|
-
}
|
|
1989
|
-
/**
|
|
1990
|
-
* ListForResourceGroupNext
|
|
1991
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1992
|
-
* @param nextLink The nextLink from the previous successful call to the ListForResourceGroup method.
|
|
1993
|
-
* @param options The options parameters.
|
|
1994
|
-
*/
|
|
1995
|
-
_listForResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
1996
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listForResourceGroupNextOperationSpec);
|
|
1997
|
-
}
|
|
1998
|
-
/**
|
|
1999
|
-
* ListNext
|
|
2000
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
2001
|
-
* @param options The options parameters.
|
|
2002
|
-
*/
|
|
2003
|
-
_listNext(nextLink, options) {
|
|
2004
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
2005
|
-
}
|
|
2006
|
-
/**
|
|
2007
|
-
* ListForScopeNext
|
|
2008
|
-
* @param scope The scope of the role assignments.
|
|
2009
|
-
* @param nextLink The nextLink from the previous successful call to the ListForScope method.
|
|
2010
|
-
* @param options The options parameters.
|
|
2011
|
-
*/
|
|
2012
|
-
_listForScopeNext(scope, nextLink, options) {
|
|
2013
|
-
return this.client.sendOperationRequest({ scope, nextLink, options }, listForScopeNextOperationSpec);
|
|
2014
|
-
}
|
|
2015
|
-
}
|
|
2016
|
-
// Operation Specifications
|
|
2017
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2018
|
-
const listForResourceOperationSpec = {
|
|
2019
|
-
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/roleAssignments",
|
|
2020
|
-
httpMethod: "GET",
|
|
2021
|
-
responses: {
|
|
2022
|
-
200: {
|
|
2023
|
-
bodyMapper: RoleAssignmentListResult
|
|
2024
|
-
},
|
|
2025
|
-
default: {
|
|
2026
|
-
bodyMapper: ErrorResponse
|
|
2027
|
-
}
|
|
2028
|
-
},
|
|
2029
|
-
queryParameters: [apiVersion, filter],
|
|
2030
|
-
urlParameters: [
|
|
2031
|
-
$host,
|
|
2032
|
-
resourceGroupName,
|
|
2033
|
-
subscriptionId,
|
|
2034
|
-
resourceProviderNamespace,
|
|
2035
|
-
parentResourcePath,
|
|
2036
|
-
resourceType,
|
|
2037
|
-
resourceName
|
|
2038
|
-
],
|
|
2039
|
-
headerParameters: [accept],
|
|
2040
|
-
serializer
|
|
2041
|
-
};
|
|
2042
|
-
const listForResourceGroupOperationSpec = {
|
|
2043
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/roleAssignments",
|
|
2044
|
-
httpMethod: "GET",
|
|
2045
|
-
responses: {
|
|
2046
|
-
200: {
|
|
2047
|
-
bodyMapper: RoleAssignmentListResult
|
|
2048
|
-
},
|
|
2049
|
-
default: {
|
|
2050
|
-
bodyMapper: ErrorResponse
|
|
2051
|
-
}
|
|
2052
|
-
},
|
|
2053
|
-
queryParameters: [apiVersion, filter],
|
|
2054
|
-
urlParameters: [
|
|
2055
|
-
$host,
|
|
2056
|
-
resourceGroupName,
|
|
2057
|
-
subscriptionId
|
|
2058
|
-
],
|
|
2059
|
-
headerParameters: [accept],
|
|
2060
|
-
serializer
|
|
2061
|
-
};
|
|
2062
|
-
const deleteOperationSpec = {
|
|
2063
|
-
path: "/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}",
|
|
2064
|
-
httpMethod: "DELETE",
|
|
2065
|
-
responses: {
|
|
2066
|
-
200: {
|
|
2067
|
-
bodyMapper: RoleAssignment
|
|
2068
|
-
},
|
|
2069
|
-
204: {},
|
|
2070
|
-
default: {
|
|
2071
|
-
bodyMapper: ErrorResponse
|
|
2072
|
-
}
|
|
2073
|
-
},
|
|
2074
|
-
queryParameters: [apiVersion],
|
|
2075
|
-
urlParameters: [
|
|
2076
|
-
$host,
|
|
2077
|
-
scope,
|
|
2078
|
-
roleAssignmentName
|
|
2079
|
-
],
|
|
2080
|
-
headerParameters: [accept],
|
|
2081
|
-
serializer
|
|
2082
|
-
};
|
|
2083
|
-
const createOperationSpec = {
|
|
2084
|
-
path: "/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}",
|
|
2085
|
-
httpMethod: "PUT",
|
|
2086
|
-
responses: {
|
|
2087
|
-
201: {
|
|
2088
|
-
bodyMapper: RoleAssignment
|
|
2089
|
-
},
|
|
2090
|
-
default: {
|
|
2091
|
-
bodyMapper: ErrorResponse
|
|
2092
|
-
}
|
|
2093
|
-
},
|
|
2094
|
-
requestBody: parameters,
|
|
2095
|
-
queryParameters: [apiVersion],
|
|
2096
|
-
urlParameters: [
|
|
2097
|
-
$host,
|
|
2098
|
-
scope,
|
|
2099
|
-
roleAssignmentName
|
|
2100
|
-
],
|
|
2101
|
-
headerParameters: [accept, contentType],
|
|
2102
|
-
mediaType: "json",
|
|
2103
|
-
serializer
|
|
2104
|
-
};
|
|
2105
|
-
const getOperationSpec = {
|
|
2106
|
-
path: "/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}",
|
|
2107
|
-
httpMethod: "GET",
|
|
2108
|
-
responses: {
|
|
2109
|
-
200: {
|
|
2110
|
-
bodyMapper: RoleAssignment
|
|
2111
|
-
},
|
|
2112
|
-
default: {
|
|
2113
|
-
bodyMapper: ErrorResponse
|
|
2114
|
-
}
|
|
2115
|
-
},
|
|
2116
|
-
queryParameters: [apiVersion],
|
|
2117
|
-
urlParameters: [
|
|
2118
|
-
$host,
|
|
2119
|
-
scope,
|
|
2120
|
-
roleAssignmentName
|
|
2121
|
-
],
|
|
2122
|
-
headerParameters: [accept],
|
|
2123
|
-
serializer
|
|
2124
|
-
};
|
|
2125
|
-
const deleteByIdOperationSpec = {
|
|
2126
|
-
path: "/{roleAssignmentId}",
|
|
2127
|
-
httpMethod: "DELETE",
|
|
2128
|
-
responses: {
|
|
2129
|
-
200: {
|
|
2130
|
-
bodyMapper: RoleAssignment
|
|
2131
|
-
},
|
|
2132
|
-
204: {},
|
|
2133
|
-
default: {
|
|
2134
|
-
bodyMapper: ErrorResponse
|
|
2135
|
-
}
|
|
2136
|
-
},
|
|
2137
|
-
queryParameters: [apiVersion],
|
|
2138
|
-
urlParameters: [$host, roleAssignmentId],
|
|
2139
|
-
headerParameters: [accept],
|
|
2140
|
-
serializer
|
|
2141
|
-
};
|
|
2142
|
-
const createByIdOperationSpec = {
|
|
2143
|
-
path: "/{roleAssignmentId}",
|
|
2144
|
-
httpMethod: "PUT",
|
|
2145
|
-
responses: {
|
|
2146
|
-
201: {
|
|
2147
|
-
bodyMapper: RoleAssignment
|
|
2148
|
-
},
|
|
2149
|
-
default: {
|
|
2150
|
-
bodyMapper: ErrorResponse
|
|
2151
|
-
}
|
|
2152
|
-
},
|
|
2153
|
-
requestBody: parameters,
|
|
2154
|
-
queryParameters: [apiVersion],
|
|
2155
|
-
urlParameters: [$host, roleAssignmentId],
|
|
2156
|
-
headerParameters: [accept, contentType],
|
|
2157
|
-
mediaType: "json",
|
|
2158
|
-
serializer
|
|
2159
|
-
};
|
|
2160
|
-
const getByIdOperationSpec = {
|
|
2161
|
-
path: "/{roleAssignmentId}",
|
|
2162
|
-
httpMethod: "GET",
|
|
2163
|
-
responses: {
|
|
2164
|
-
200: {
|
|
2165
|
-
bodyMapper: RoleAssignment
|
|
2166
|
-
},
|
|
2167
|
-
default: {
|
|
2168
|
-
bodyMapper: ErrorResponse
|
|
2169
|
-
}
|
|
2170
|
-
},
|
|
2171
|
-
queryParameters: [apiVersion],
|
|
2172
|
-
urlParameters: [$host, roleAssignmentId],
|
|
2173
|
-
headerParameters: [accept],
|
|
2174
|
-
serializer
|
|
2175
|
-
};
|
|
2176
|
-
const listOperationSpec = {
|
|
2177
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/roleAssignments",
|
|
2178
|
-
httpMethod: "GET",
|
|
2179
|
-
responses: {
|
|
2180
|
-
200: {
|
|
2181
|
-
bodyMapper: RoleAssignmentListResult
|
|
2182
|
-
},
|
|
2183
|
-
default: {
|
|
2184
|
-
bodyMapper: ErrorResponse
|
|
2185
|
-
}
|
|
2186
|
-
},
|
|
2187
|
-
queryParameters: [apiVersion, filter],
|
|
2188
|
-
urlParameters: [$host, subscriptionId],
|
|
2189
|
-
headerParameters: [accept],
|
|
2190
|
-
serializer
|
|
2191
|
-
};
|
|
2192
|
-
const listForScopeOperationSpec = {
|
|
2193
|
-
path: "/{scope}/providers/Microsoft.Authorization/roleAssignments",
|
|
2194
|
-
httpMethod: "GET",
|
|
2195
|
-
responses: {
|
|
2196
|
-
200: {
|
|
2197
|
-
bodyMapper: RoleAssignmentListResult
|
|
2198
|
-
},
|
|
2199
|
-
default: {
|
|
2200
|
-
bodyMapper: ErrorResponse
|
|
2201
|
-
}
|
|
2202
|
-
},
|
|
2203
|
-
queryParameters: [apiVersion, filter],
|
|
2204
|
-
urlParameters: [$host, scope],
|
|
2205
|
-
headerParameters: [accept],
|
|
2206
|
-
serializer
|
|
2207
|
-
};
|
|
2208
|
-
const listForResourceNextOperationSpec = {
|
|
2209
|
-
path: "{nextLink}",
|
|
2210
|
-
httpMethod: "GET",
|
|
2211
|
-
responses: {
|
|
2212
|
-
200: {
|
|
2213
|
-
bodyMapper: RoleAssignmentListResult
|
|
2214
|
-
},
|
|
2215
|
-
default: {
|
|
2216
|
-
bodyMapper: ErrorResponse
|
|
2217
|
-
}
|
|
2218
|
-
},
|
|
2219
|
-
urlParameters: [
|
|
2220
|
-
$host,
|
|
2221
|
-
resourceGroupName,
|
|
2222
|
-
subscriptionId,
|
|
2223
|
-
resourceProviderNamespace,
|
|
2224
|
-
parentResourcePath,
|
|
2225
|
-
resourceType,
|
|
2226
|
-
resourceName,
|
|
2227
|
-
nextLink
|
|
2228
|
-
],
|
|
2229
|
-
headerParameters: [accept],
|
|
2230
|
-
serializer
|
|
2231
|
-
};
|
|
2232
|
-
const listForResourceGroupNextOperationSpec = {
|
|
2233
|
-
path: "{nextLink}",
|
|
2234
|
-
httpMethod: "GET",
|
|
2235
|
-
responses: {
|
|
2236
|
-
200: {
|
|
2237
|
-
bodyMapper: RoleAssignmentListResult
|
|
2238
|
-
},
|
|
2239
|
-
default: {
|
|
2240
|
-
bodyMapper: ErrorResponse
|
|
2241
|
-
}
|
|
2242
|
-
},
|
|
2243
|
-
urlParameters: [
|
|
2244
|
-
$host,
|
|
2245
|
-
resourceGroupName,
|
|
2246
|
-
subscriptionId,
|
|
2247
|
-
nextLink
|
|
2248
|
-
],
|
|
2249
|
-
headerParameters: [accept],
|
|
2250
|
-
serializer
|
|
2251
|
-
};
|
|
2252
|
-
const listNextOperationSpec = {
|
|
2253
|
-
path: "{nextLink}",
|
|
2254
|
-
httpMethod: "GET",
|
|
2255
|
-
responses: {
|
|
2256
|
-
200: {
|
|
2257
|
-
bodyMapper: RoleAssignmentListResult
|
|
2258
|
-
},
|
|
2259
|
-
default: {
|
|
2260
|
-
bodyMapper: ErrorResponse
|
|
2261
|
-
}
|
|
2262
|
-
},
|
|
2263
|
-
urlParameters: [
|
|
2264
|
-
$host,
|
|
2265
|
-
subscriptionId,
|
|
2266
|
-
nextLink
|
|
2267
|
-
],
|
|
2268
|
-
headerParameters: [accept],
|
|
2269
|
-
serializer
|
|
2270
|
-
};
|
|
2271
|
-
const listForScopeNextOperationSpec = {
|
|
2272
|
-
path: "{nextLink}",
|
|
2273
|
-
httpMethod: "GET",
|
|
2274
|
-
responses: {
|
|
2275
|
-
200: {
|
|
2276
|
-
bodyMapper: RoleAssignmentListResult
|
|
2277
|
-
},
|
|
2278
|
-
default: {
|
|
2279
|
-
bodyMapper: ErrorResponse
|
|
2280
|
-
}
|
|
2281
|
-
},
|
|
2282
|
-
urlParameters: [$host, nextLink, scope],
|
|
2283
|
-
headerParameters: [accept],
|
|
2284
|
-
serializer
|
|
2285
|
-
};
|
|
2286
|
-
|
|
2287
|
-
/*
|
|
2288
|
-
* Copyright (c) Microsoft Corporation.
|
|
2289
|
-
* Licensed under the MIT License.
|
|
2290
|
-
*
|
|
2291
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2292
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2293
|
-
*/
|
|
2294
|
-
class AuthorizationManagementClient extends coreClient__namespace.ServiceClient {
|
|
2295
|
-
/**
|
|
2296
|
-
* Initializes a new instance of the AuthorizationManagementClient class.
|
|
2297
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
2298
|
-
* @param subscriptionId The ID of the target subscription.
|
|
2299
|
-
* @param options The parameter options
|
|
2300
|
-
*/
|
|
2301
|
-
constructor(credentials, subscriptionId, options) {
|
|
2302
|
-
var _a, _b, _c;
|
|
2303
|
-
if (credentials === undefined) {
|
|
2304
|
-
throw new Error("'credentials' cannot be null");
|
|
2305
|
-
}
|
|
2306
|
-
if (subscriptionId === undefined) {
|
|
2307
|
-
throw new Error("'subscriptionId' cannot be null");
|
|
2308
|
-
}
|
|
2309
|
-
// Initializing default values for options
|
|
2310
|
-
if (!options) {
|
|
2311
|
-
options = {};
|
|
2312
|
-
}
|
|
2313
|
-
const defaults = {
|
|
2314
|
-
requestContentType: "application/json; charset=utf-8",
|
|
2315
|
-
credential: credentials
|
|
2316
|
-
};
|
|
2317
|
-
const packageDetails = `azsdk-js-arm-authorization-profile-2020-09-01-hybrid/2.1.1`;
|
|
2318
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
2319
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
2320
|
-
: `${packageDetails}`;
|
|
2321
|
-
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
2322
|
-
userAgentPrefix
|
|
2323
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
2324
|
-
super(optionsWithDefaults);
|
|
2325
|
-
let bearerTokenAuthenticationPolicyFound = false;
|
|
2326
|
-
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
2327
|
-
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
2328
|
-
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
2329
|
-
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
2330
|
-
}
|
|
2331
|
-
if (!options ||
|
|
2332
|
-
!options.pipeline ||
|
|
2333
|
-
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
2334
|
-
!bearerTokenAuthenticationPolicyFound) {
|
|
2335
|
-
this.pipeline.removePolicy({
|
|
2336
|
-
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
2337
|
-
});
|
|
2338
|
-
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
2339
|
-
credential: credentials,
|
|
2340
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
2341
|
-
challengeCallbacks: {
|
|
2342
|
-
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
2343
|
-
}
|
|
2344
|
-
}));
|
|
2345
|
-
}
|
|
2346
|
-
// Parameter assignments
|
|
2347
|
-
this.subscriptionId = subscriptionId;
|
|
2348
|
-
// Assigning values to Constant parameters
|
|
2349
|
-
this.$host = options.$host || "https://management.azure.com";
|
|
2350
|
-
this.apiVersion = options.apiVersion || "2015-07-01";
|
|
2351
|
-
this.permissions = new PermissionsImpl(this);
|
|
2352
|
-
this.roleDefinitions = new RoleDefinitionsImpl(this);
|
|
2353
|
-
this.providerOperationsMetadataOperations = new ProviderOperationsMetadataOperationsImpl(this);
|
|
2354
|
-
this.globalAdministrator = new GlobalAdministratorImpl(this);
|
|
2355
|
-
this.roleAssignments = new RoleAssignmentsImpl(this);
|
|
2356
|
-
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
2357
|
-
}
|
|
2358
|
-
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
2359
|
-
addCustomApiVersionPolicy(apiVersion) {
|
|
2360
|
-
if (!apiVersion) {
|
|
2361
|
-
return;
|
|
2362
|
-
}
|
|
2363
|
-
const apiVersionPolicy = {
|
|
2364
|
-
name: "CustomApiVersionPolicy",
|
|
2365
|
-
sendRequest(request, next) {
|
|
2366
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2367
|
-
const param = request.url.split("?");
|
|
2368
|
-
if (param.length > 1) {
|
|
2369
|
-
const newParams = param[1].split("&").map((item) => {
|
|
2370
|
-
if (item.indexOf("api-version") > -1) {
|
|
2371
|
-
return "api-version=" + apiVersion;
|
|
2372
|
-
}
|
|
2373
|
-
else {
|
|
2374
|
-
return item;
|
|
2375
|
-
}
|
|
2376
|
-
});
|
|
2377
|
-
request.url = param[0] + "?" + newParams.join("&");
|
|
2378
|
-
}
|
|
2379
|
-
return next(request);
|
|
2380
|
-
});
|
|
2381
|
-
}
|
|
2382
|
-
};
|
|
2383
|
-
this.pipeline.addPolicy(apiVersionPolicy);
|
|
2384
|
-
}
|
|
2385
|
-
}
|
|
2386
|
-
|
|
2387
|
-
exports.AuthorizationManagementClient = AuthorizationManagementClient;
|
|
2388
|
-
exports.getContinuationToken = getContinuationToken;
|
|
2389
|
-
//# sourceMappingURL=index.js.map
|