@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
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers.js";
|
|
12
|
+
import * as Parameters from "../models/parameters.js";
|
|
13
|
+
/// <reference lib="esnext.asynciterable" />
|
|
14
|
+
/** Class containing Permissions operations. */
|
|
15
|
+
export class PermissionsImpl {
|
|
16
|
+
/**
|
|
17
|
+
* Initialize a new instance of the class Permissions class.
|
|
18
|
+
* @param client Reference to the service client
|
|
19
|
+
*/
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Gets all permissions the caller has for a resource group.
|
|
25
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
listForResourceGroup(resourceGroupName, options) {
|
|
29
|
+
const iter = this.listForResourceGroupPagingAll(resourceGroupName, options);
|
|
30
|
+
return {
|
|
31
|
+
next() {
|
|
32
|
+
return iter.next();
|
|
33
|
+
},
|
|
34
|
+
[Symbol.asyncIterator]() {
|
|
35
|
+
return this;
|
|
36
|
+
},
|
|
37
|
+
byPage: (settings) => {
|
|
38
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
39
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
40
|
+
}
|
|
41
|
+
return this.listForResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
listForResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
46
|
+
return __asyncGenerator(this, arguments, function* listForResourceGroupPagingPage_1() {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = yield __await(this._listForResourceGroup(resourceGroupName, options));
|
|
51
|
+
let page = result.value || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield yield __await(page);
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = yield __await(this._listForResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield yield __await(page);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
listForResourceGroupPagingAll(resourceGroupName, options) {
|
|
66
|
+
return __asyncGenerator(this, arguments, function* listForResourceGroupPagingAll_1() {
|
|
67
|
+
var _a, e_1, _b, _c;
|
|
68
|
+
try {
|
|
69
|
+
for (var _d = true, _e = __asyncValues(this.listForResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
70
|
+
_c = _f.value;
|
|
71
|
+
_d = false;
|
|
72
|
+
const page = _c;
|
|
73
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
77
|
+
finally {
|
|
78
|
+
try {
|
|
79
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
80
|
+
}
|
|
81
|
+
finally { if (e_1) throw e_1.error; }
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Gets all permissions the caller has for a resource.
|
|
87
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
88
|
+
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
89
|
+
* @param parentResourcePath The parent resource identity.
|
|
90
|
+
* @param resourceType The resource type of the resource.
|
|
91
|
+
* @param resourceName The name of the resource to get the permissions for.
|
|
92
|
+
* @param options The options parameters.
|
|
93
|
+
*/
|
|
94
|
+
listForResource(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options) {
|
|
95
|
+
const iter = this.listForResourcePagingAll(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options);
|
|
96
|
+
return {
|
|
97
|
+
next() {
|
|
98
|
+
return iter.next();
|
|
99
|
+
},
|
|
100
|
+
[Symbol.asyncIterator]() {
|
|
101
|
+
return this;
|
|
102
|
+
},
|
|
103
|
+
byPage: (settings) => {
|
|
104
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
105
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
106
|
+
}
|
|
107
|
+
return this.listForResourcePagingPage(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options, settings);
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
listForResourcePagingPage(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options, settings) {
|
|
112
|
+
return __asyncGenerator(this, arguments, function* listForResourcePagingPage_1() {
|
|
113
|
+
let result;
|
|
114
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
115
|
+
if (!continuationToken) {
|
|
116
|
+
result = yield __await(this._listForResource(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options));
|
|
117
|
+
let page = result.value || [];
|
|
118
|
+
continuationToken = result.nextLink;
|
|
119
|
+
setContinuationToken(page, continuationToken);
|
|
120
|
+
yield yield __await(page);
|
|
121
|
+
}
|
|
122
|
+
while (continuationToken) {
|
|
123
|
+
result = yield __await(this._listForResourceNext(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, continuationToken, options));
|
|
124
|
+
continuationToken = result.nextLink;
|
|
125
|
+
let page = result.value || [];
|
|
126
|
+
setContinuationToken(page, continuationToken);
|
|
127
|
+
yield yield __await(page);
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
listForResourcePagingAll(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options) {
|
|
132
|
+
return __asyncGenerator(this, arguments, function* listForResourcePagingAll_1() {
|
|
133
|
+
var _a, e_2, _b, _c;
|
|
134
|
+
try {
|
|
135
|
+
for (var _d = true, _e = __asyncValues(this.listForResourcePagingPage(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
136
|
+
_c = _f.value;
|
|
137
|
+
_d = false;
|
|
138
|
+
const page = _c;
|
|
139
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
143
|
+
finally {
|
|
144
|
+
try {
|
|
145
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
146
|
+
}
|
|
147
|
+
finally { if (e_2) throw e_2.error; }
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Gets all permissions the caller has for a resource group.
|
|
153
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
154
|
+
* @param options The options parameters.
|
|
155
|
+
*/
|
|
156
|
+
_listForResourceGroup(resourceGroupName, options) {
|
|
157
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listForResourceGroupOperationSpec);
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Gets all permissions the caller has for a resource.
|
|
161
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
162
|
+
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
163
|
+
* @param parentResourcePath The parent resource identity.
|
|
164
|
+
* @param resourceType The resource type of the resource.
|
|
165
|
+
* @param resourceName The name of the resource to get the permissions for.
|
|
166
|
+
* @param options The options parameters.
|
|
167
|
+
*/
|
|
168
|
+
_listForResource(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options) {
|
|
169
|
+
return this.client.sendOperationRequest({
|
|
170
|
+
resourceGroupName,
|
|
171
|
+
resourceProviderNamespace,
|
|
172
|
+
parentResourcePath,
|
|
173
|
+
resourceType,
|
|
174
|
+
resourceName,
|
|
175
|
+
options
|
|
176
|
+
}, listForResourceOperationSpec);
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* ListForResourceGroupNext
|
|
180
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
181
|
+
* @param nextLink The nextLink from the previous successful call to the ListForResourceGroup method.
|
|
182
|
+
* @param options The options parameters.
|
|
183
|
+
*/
|
|
184
|
+
_listForResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
185
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listForResourceGroupNextOperationSpec);
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* ListForResourceNext
|
|
189
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
190
|
+
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
191
|
+
* @param parentResourcePath The parent resource identity.
|
|
192
|
+
* @param resourceType The resource type of the resource.
|
|
193
|
+
* @param resourceName The name of the resource to get the permissions for.
|
|
194
|
+
* @param nextLink The nextLink from the previous successful call to the ListForResource method.
|
|
195
|
+
* @param options The options parameters.
|
|
196
|
+
*/
|
|
197
|
+
_listForResourceNext(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, nextLink, options) {
|
|
198
|
+
return this.client.sendOperationRequest({
|
|
199
|
+
resourceGroupName,
|
|
200
|
+
resourceProviderNamespace,
|
|
201
|
+
parentResourcePath,
|
|
202
|
+
resourceType,
|
|
203
|
+
resourceName,
|
|
204
|
+
nextLink,
|
|
205
|
+
options
|
|
206
|
+
}, listForResourceNextOperationSpec);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
// Operation Specifications
|
|
210
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
211
|
+
const listForResourceGroupOperationSpec = {
|
|
212
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Authorization/permissions",
|
|
213
|
+
httpMethod: "GET",
|
|
214
|
+
responses: {
|
|
215
|
+
200: {
|
|
216
|
+
bodyMapper: Mappers.PermissionGetResult
|
|
217
|
+
},
|
|
218
|
+
default: {
|
|
219
|
+
bodyMapper: Mappers.ErrorResponse
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
queryParameters: [Parameters.apiVersion],
|
|
223
|
+
urlParameters: [
|
|
224
|
+
Parameters.$host,
|
|
225
|
+
Parameters.resourceGroupName,
|
|
226
|
+
Parameters.subscriptionId
|
|
227
|
+
],
|
|
228
|
+
headerParameters: [Parameters.accept],
|
|
229
|
+
serializer
|
|
230
|
+
};
|
|
231
|
+
const listForResourceOperationSpec = {
|
|
232
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/permissions",
|
|
233
|
+
httpMethod: "GET",
|
|
234
|
+
responses: {
|
|
235
|
+
200: {
|
|
236
|
+
bodyMapper: Mappers.PermissionGetResult
|
|
237
|
+
},
|
|
238
|
+
default: {
|
|
239
|
+
bodyMapper: Mappers.ErrorResponse
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
queryParameters: [Parameters.apiVersion],
|
|
243
|
+
urlParameters: [
|
|
244
|
+
Parameters.$host,
|
|
245
|
+
Parameters.resourceGroupName,
|
|
246
|
+
Parameters.subscriptionId,
|
|
247
|
+
Parameters.resourceProviderNamespace,
|
|
248
|
+
Parameters.parentResourcePath,
|
|
249
|
+
Parameters.resourceType,
|
|
250
|
+
Parameters.resourceName
|
|
251
|
+
],
|
|
252
|
+
headerParameters: [Parameters.accept],
|
|
253
|
+
serializer
|
|
254
|
+
};
|
|
255
|
+
const listForResourceGroupNextOperationSpec = {
|
|
256
|
+
path: "{nextLink}",
|
|
257
|
+
httpMethod: "GET",
|
|
258
|
+
responses: {
|
|
259
|
+
200: {
|
|
260
|
+
bodyMapper: Mappers.PermissionGetResult
|
|
261
|
+
},
|
|
262
|
+
default: {
|
|
263
|
+
bodyMapper: Mappers.ErrorResponse
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
urlParameters: [
|
|
267
|
+
Parameters.$host,
|
|
268
|
+
Parameters.resourceGroupName,
|
|
269
|
+
Parameters.subscriptionId,
|
|
270
|
+
Parameters.nextLink
|
|
271
|
+
],
|
|
272
|
+
headerParameters: [Parameters.accept],
|
|
273
|
+
serializer
|
|
274
|
+
};
|
|
275
|
+
const listForResourceNextOperationSpec = {
|
|
276
|
+
path: "{nextLink}",
|
|
277
|
+
httpMethod: "GET",
|
|
278
|
+
responses: {
|
|
279
|
+
200: {
|
|
280
|
+
bodyMapper: Mappers.PermissionGetResult
|
|
281
|
+
},
|
|
282
|
+
default: {
|
|
283
|
+
bodyMapper: Mappers.ErrorResponse
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
urlParameters: [
|
|
287
|
+
Parameters.$host,
|
|
288
|
+
Parameters.resourceGroupName,
|
|
289
|
+
Parameters.subscriptionId,
|
|
290
|
+
Parameters.resourceProviderNamespace,
|
|
291
|
+
Parameters.parentResourcePath,
|
|
292
|
+
Parameters.resourceType,
|
|
293
|
+
Parameters.resourceName,
|
|
294
|
+
Parameters.nextLink
|
|
295
|
+
],
|
|
296
|
+
headerParameters: [Parameters.accept],
|
|
297
|
+
serializer
|
|
298
|
+
};
|
|
299
|
+
//# sourceMappingURL=permissions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permissions.js","sourceRoot":"","sources":["../../../src/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(c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Permissions } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AuthorizationManagementClient } from \"../authorizationManagementClient.js\";\nimport {\n Permission,\n PermissionsListForResourceGroupNextOptionalParams,\n PermissionsListForResourceGroupOptionalParams,\n PermissionsListForResourceGroupResponse,\n PermissionsListForResourceNextOptionalParams,\n PermissionsListForResourceOptionalParams,\n PermissionsListForResourceResponse,\n PermissionsListForResourceGroupNextResponse,\n PermissionsListForResourceNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Permissions operations. */\nexport class PermissionsImpl implements Permissions {\n private readonly client: AuthorizationManagementClient;\n\n /**\n * Initialize a new instance of the class Permissions class.\n * @param client Reference to the service client\n */\n constructor(client: AuthorizationManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all permissions the caller has for a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listForResourceGroup(\n resourceGroupName: string,\n options?: PermissionsListForResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<Permission> {\n const iter = this.listForResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listForResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listForResourceGroupPagingPage(\n resourceGroupName: string,\n options?: PermissionsListForResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Permission[]> {\n let result: PermissionsListForResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listForResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listForResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listForResourceGroupPagingAll(\n resourceGroupName: string,\n options?: PermissionsListForResourceGroupOptionalParams\n ): AsyncIterableIterator<Permission> {\n for await (const page of this.listForResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all permissions the caller has for a resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param parentResourcePath The parent resource identity.\n * @param resourceType The resource type of the resource.\n * @param resourceName The name of the resource to get the permissions for.\n * @param options The options parameters.\n */\n public listForResource(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourcePath: string,\n resourceType: string,\n resourceName: string,\n options?: PermissionsListForResourceOptionalParams\n ): PagedAsyncIterableIterator<Permission> {\n const iter = this.listForResourcePagingAll(\n resourceGroupName,\n resourceProviderNamespace,\n parentResourcePath,\n resourceType,\n resourceName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listForResourcePagingPage(\n resourceGroupName,\n resourceProviderNamespace,\n parentResourcePath,\n resourceType,\n resourceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listForResourcePagingPage(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourcePath: string,\n resourceType: string,\n resourceName: string,\n options?: PermissionsListForResourceOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Permission[]> {\n let result: PermissionsListForResourceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listForResource(\n resourceGroupName,\n resourceProviderNamespace,\n parentResourcePath,\n resourceType,\n resourceName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listForResourceNext(\n resourceGroupName,\n resourceProviderNamespace,\n parentResourcePath,\n resourceType,\n resourceName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listForResourcePagingAll(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourcePath: string,\n resourceType: string,\n resourceName: string,\n options?: PermissionsListForResourceOptionalParams\n ): AsyncIterableIterator<Permission> {\n for await (const page of this.listForResourcePagingPage(\n resourceGroupName,\n resourceProviderNamespace,\n parentResourcePath,\n resourceType,\n resourceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all permissions the caller has for a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listForResourceGroup(\n resourceGroupName: string,\n options?: PermissionsListForResourceGroupOptionalParams\n ): Promise<PermissionsListForResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listForResourceGroupOperationSpec\n );\n }\n\n /**\n * Gets all permissions the caller has for a resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param parentResourcePath The parent resource identity.\n * @param resourceType The resource type of the resource.\n * @param resourceName The name of the resource to get the permissions for.\n * @param options The options parameters.\n */\n private _listForResource(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourcePath: string,\n resourceType: string,\n resourceName: string,\n options?: PermissionsListForResourceOptionalParams\n ): Promise<PermissionsListForResourceResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceProviderNamespace,\n parentResourcePath,\n resourceType,\n resourceName,\n options\n },\n listForResourceOperationSpec\n );\n }\n\n /**\n * ListForResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListForResourceGroup method.\n * @param options The options parameters.\n */\n private _listForResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: PermissionsListForResourceGroupNextOptionalParams\n ): Promise<PermissionsListForResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listForResourceGroupNextOperationSpec\n );\n }\n\n /**\n * ListForResourceNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param parentResourcePath The parent resource identity.\n * @param resourceType The resource type of the resource.\n * @param resourceName The name of the resource to get the permissions for.\n * @param nextLink The nextLink from the previous successful call to the ListForResource method.\n * @param options The options parameters.\n */\n private _listForResourceNext(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourcePath: string,\n resourceType: string,\n resourceName: string,\n nextLink: string,\n options?: PermissionsListForResourceNextOptionalParams\n ): Promise<PermissionsListForResourceNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceProviderNamespace,\n parentResourcePath,\n resourceType,\n resourceName,\n nextLink,\n options\n },\n listForResourceNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listForResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Authorization/permissions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PermissionGetResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listForResourceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/permissions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PermissionGetResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceProviderNamespace,\n Parameters.parentResourcePath,\n Parameters.resourceType,\n Parameters.resourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listForResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PermissionGetResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listForResourceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PermissionGetResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceProviderNamespace,\n Parameters.parentResourcePath,\n Parameters.resourceType,\n Parameters.resourceName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { ProviderOperationsMetadataOperations } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { AuthorizationManagementClient } from "../authorizationManagementClient.js";
|
|
4
|
+
import { ProviderOperationsMetadata, ProviderOperationsMetadataListOptionalParams, ProviderOperationsMetadataGetOptionalParams, ProviderOperationsMetadataGetResponse } from "../models/index.js";
|
|
5
|
+
/** Class containing ProviderOperationsMetadataOperations operations. */
|
|
6
|
+
export declare class ProviderOperationsMetadataOperationsImpl implements ProviderOperationsMetadataOperations {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class ProviderOperationsMetadataOperations class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: AuthorizationManagementClient);
|
|
13
|
+
/**
|
|
14
|
+
* Gets provider operations metadata for all resource providers.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
list(options?: ProviderOperationsMetadataListOptionalParams): PagedAsyncIterableIterator<ProviderOperationsMetadata>;
|
|
18
|
+
private listPagingPage;
|
|
19
|
+
private listPagingAll;
|
|
20
|
+
/**
|
|
21
|
+
* Gets provider operations metadata for the specified resource provider.
|
|
22
|
+
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
23
|
+
* @param options The options parameters.
|
|
24
|
+
*/
|
|
25
|
+
get(resourceProviderNamespace: string, options?: ProviderOperationsMetadataGetOptionalParams): Promise<ProviderOperationsMetadataGetResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Gets provider operations metadata for all resource providers.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
private _list;
|
|
31
|
+
/**
|
|
32
|
+
* ListNext
|
|
33
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
34
|
+
* @param options The options parameters.
|
|
35
|
+
*/
|
|
36
|
+
private _listNext;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=providerOperationsMetadataOperations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providerOperationsMetadataOperations.d.ts","sourceRoot":"","sources":["../../../src/operations/providerOperationsMetadataOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,oCAAoC,EAAE,MAAM,kCAAkC,CAAC;AAIxF,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EACL,0BAA0B,EAE1B,4CAA4C,EAE5C,2CAA2C,EAC3C,qCAAqC,EAEtC,MAAM,oBAAoB,CAAC;AAG5B,wEAAwE;AACxE,qBAAa,wCACX,YAAW,oCAAoC;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgC;IAEvD;;;OAGG;gBACS,MAAM,EAAE,6BAA6B;IAIjD;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4CAA4C,GACrD,0BAA0B,CAAC,0BAA0B,CAAC;YAkB1C,cAAc;YAsBd,aAAa;IAQ5B;;;;OAIG;IACH,GAAG,CACD,yBAAyB,EAAE,MAAM,EACjC,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,qCAAqC,CAAC;IAOjD;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers.js";
|
|
12
|
+
import * as Parameters from "../models/parameters.js";
|
|
13
|
+
/// <reference lib="esnext.asynciterable" />
|
|
14
|
+
/** Class containing ProviderOperationsMetadataOperations operations. */
|
|
15
|
+
export class ProviderOperationsMetadataOperationsImpl {
|
|
16
|
+
/**
|
|
17
|
+
* Initialize a new instance of the class ProviderOperationsMetadataOperations class.
|
|
18
|
+
* @param client Reference to the service client
|
|
19
|
+
*/
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Gets provider operations metadata for all resource providers.
|
|
25
|
+
* @param options The options parameters.
|
|
26
|
+
*/
|
|
27
|
+
list(options) {
|
|
28
|
+
const iter = this.listPagingAll(options);
|
|
29
|
+
return {
|
|
30
|
+
next() {
|
|
31
|
+
return iter.next();
|
|
32
|
+
},
|
|
33
|
+
[Symbol.asyncIterator]() {
|
|
34
|
+
return this;
|
|
35
|
+
},
|
|
36
|
+
byPage: (settings) => {
|
|
37
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
38
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
39
|
+
}
|
|
40
|
+
return this.listPagingPage(options, settings);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
listPagingPage(options, settings) {
|
|
45
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
46
|
+
let result;
|
|
47
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
48
|
+
if (!continuationToken) {
|
|
49
|
+
result = yield __await(this._list(options));
|
|
50
|
+
let page = result.value || [];
|
|
51
|
+
continuationToken = result.nextLink;
|
|
52
|
+
setContinuationToken(page, continuationToken);
|
|
53
|
+
yield yield __await(page);
|
|
54
|
+
}
|
|
55
|
+
while (continuationToken) {
|
|
56
|
+
result = yield __await(this._listNext(continuationToken, options));
|
|
57
|
+
continuationToken = result.nextLink;
|
|
58
|
+
let page = result.value || [];
|
|
59
|
+
setContinuationToken(page, continuationToken);
|
|
60
|
+
yield yield __await(page);
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
listPagingAll(options) {
|
|
65
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
66
|
+
var _a, e_1, _b, _c;
|
|
67
|
+
try {
|
|
68
|
+
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
69
|
+
_c = _f.value;
|
|
70
|
+
_d = false;
|
|
71
|
+
const page = _c;
|
|
72
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
76
|
+
finally {
|
|
77
|
+
try {
|
|
78
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
79
|
+
}
|
|
80
|
+
finally { if (e_1) throw e_1.error; }
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Gets provider operations metadata for the specified resource provider.
|
|
86
|
+
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
87
|
+
* @param options The options parameters.
|
|
88
|
+
*/
|
|
89
|
+
get(resourceProviderNamespace, options) {
|
|
90
|
+
return this.client.sendOperationRequest({ resourceProviderNamespace, options }, getOperationSpec);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Gets provider operations metadata for all resource providers.
|
|
94
|
+
* @param options The options parameters.
|
|
95
|
+
*/
|
|
96
|
+
_list(options) {
|
|
97
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* ListNext
|
|
101
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
102
|
+
* @param options The options parameters.
|
|
103
|
+
*/
|
|
104
|
+
_listNext(nextLink, options) {
|
|
105
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
// Operation Specifications
|
|
109
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
110
|
+
const getOperationSpec = {
|
|
111
|
+
path: "/providers/Microsoft.Authorization/providerOperations/{resourceProviderNamespace}",
|
|
112
|
+
httpMethod: "GET",
|
|
113
|
+
responses: {
|
|
114
|
+
200: {
|
|
115
|
+
bodyMapper: Mappers.ProviderOperationsMetadata
|
|
116
|
+
},
|
|
117
|
+
default: {
|
|
118
|
+
bodyMapper: Mappers.ErrorResponse
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
|
122
|
+
urlParameters: [Parameters.$host, Parameters.resourceProviderNamespace],
|
|
123
|
+
headerParameters: [Parameters.accept],
|
|
124
|
+
serializer
|
|
125
|
+
};
|
|
126
|
+
const listOperationSpec = {
|
|
127
|
+
path: "/providers/Microsoft.Authorization/providerOperations",
|
|
128
|
+
httpMethod: "GET",
|
|
129
|
+
responses: {
|
|
130
|
+
200: {
|
|
131
|
+
bodyMapper: Mappers.ProviderOperationsMetadataListResult
|
|
132
|
+
},
|
|
133
|
+
default: {
|
|
134
|
+
bodyMapper: Mappers.ErrorResponse
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
|
138
|
+
urlParameters: [Parameters.$host],
|
|
139
|
+
headerParameters: [Parameters.accept],
|
|
140
|
+
serializer
|
|
141
|
+
};
|
|
142
|
+
const listNextOperationSpec = {
|
|
143
|
+
path: "{nextLink}",
|
|
144
|
+
httpMethod: "GET",
|
|
145
|
+
responses: {
|
|
146
|
+
200: {
|
|
147
|
+
bodyMapper: Mappers.ProviderOperationsMetadataListResult
|
|
148
|
+
},
|
|
149
|
+
default: {
|
|
150
|
+
bodyMapper: Mappers.ErrorResponse
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
154
|
+
headerParameters: [Parameters.accept],
|
|
155
|
+
serializer
|
|
156
|
+
};
|
|
157
|
+
//# sourceMappingURL=providerOperationsMetadataOperations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providerOperationsMetadataOperations.js","sourceRoot":"","sources":["../../../src/operations/providerOperationsMetadataOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAYtD,4CAA4C;AAC5C,wEAAwE;AACxE,MAAM,OAAO,wCAAwC;IAInD;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsD;QAEtD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAAsD,EACtD,QAAuB;;YAEvB,IAAI,MAA8C,CAAC;YACnD,IAAI,iBAAiB,GAAG,QAAQ,aAAR,QAAQ,uBA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,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oCAAoC;SACzD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ProviderOperationsMetadataOperations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AuthorizationManagementClient } from \"../authorizationManagementClient.js\";\nimport {\n ProviderOperationsMetadata,\n ProviderOperationsMetadataListNextOptionalParams,\n ProviderOperationsMetadataListOptionalParams,\n ProviderOperationsMetadataListResponse,\n ProviderOperationsMetadataGetOptionalParams,\n ProviderOperationsMetadataGetResponse,\n ProviderOperationsMetadataListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ProviderOperationsMetadataOperations operations. */\nexport class ProviderOperationsMetadataOperationsImpl\n implements ProviderOperationsMetadataOperations {\n private readonly client: AuthorizationManagementClient;\n\n /**\n * Initialize a new instance of the class ProviderOperationsMetadataOperations class.\n * @param client Reference to the service client\n */\n constructor(client: AuthorizationManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets provider operations metadata for all resource providers.\n * @param options The options parameters.\n */\n public list(\n options?: ProviderOperationsMetadataListOptionalParams\n ): PagedAsyncIterableIterator<ProviderOperationsMetadata> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: ProviderOperationsMetadataListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ProviderOperationsMetadata[]> {\n let result: ProviderOperationsMetadataListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: ProviderOperationsMetadataListOptionalParams\n ): AsyncIterableIterator<ProviderOperationsMetadata> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets provider operations metadata for the specified resource provider.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param options The options parameters.\n */\n get(\n resourceProviderNamespace: string,\n options?: ProviderOperationsMetadataGetOptionalParams\n ): Promise<ProviderOperationsMetadataGetResponse> {\n return this.client.sendOperationRequest(\n { resourceProviderNamespace, options },\n getOperationSpec\n );\n }\n\n /**\n * Gets provider operations metadata for all resource providers.\n * @param options The options parameters.\n */\n private _list(\n options?: ProviderOperationsMetadataListOptionalParams\n ): Promise<ProviderOperationsMetadataListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: ProviderOperationsMetadataListNextOptionalParams\n ): Promise<ProviderOperationsMetadataListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Authorization/providerOperations/{resourceProviderNamespace}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProviderOperationsMetadata\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [Parameters.$host, Parameters.resourceProviderNamespace],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Authorization/providerOperations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProviderOperationsMetadataListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProviderOperationsMetadataListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|