@azure/arm-authorization 10.0.0-alpha.20250717.1 → 10.0.0-alpha.20250729.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/authorizationManagementClient.js +58 -5
- package/dist/browser/authorizationManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +118 -51
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/accessReviewDefaultSettingsOperations.js +1 -0
- package/dist/browser/operations/accessReviewDefaultSettingsOperations.js.map +1 -1
- package/dist/browser/operations/accessReviewHistoryDefinitionInstance.js +1 -0
- package/dist/browser/operations/accessReviewHistoryDefinitionInstance.js.map +1 -1
- package/dist/browser/operations/accessReviewHistoryDefinitionInstances.js +23 -40
- package/dist/browser/operations/accessReviewHistoryDefinitionInstances.js.map +1 -1
- package/dist/browser/operations/accessReviewHistoryDefinitionOperations.js +1 -0
- package/dist/browser/operations/accessReviewHistoryDefinitionOperations.js.map +1 -1
- package/dist/browser/operations/accessReviewHistoryDefinitions.js +23 -40
- package/dist/browser/operations/accessReviewHistoryDefinitions.js.map +1 -1
- package/dist/browser/operations/accessReviewInstanceContactedReviewers.js +23 -40
- package/dist/browser/operations/accessReviewInstanceContactedReviewers.js.map +1 -1
- package/dist/browser/operations/accessReviewInstanceDecisions.js +23 -40
- package/dist/browser/operations/accessReviewInstanceDecisions.js.map +1 -1
- package/dist/browser/operations/accessReviewInstanceMyDecisions.js +23 -40
- package/dist/browser/operations/accessReviewInstanceMyDecisions.js.map +1 -1
- package/dist/browser/operations/accessReviewInstanceOperations.js +1 -0
- package/dist/browser/operations/accessReviewInstanceOperations.js.map +1 -1
- package/dist/browser/operations/accessReviewInstances.js +23 -40
- package/dist/browser/operations/accessReviewInstances.js.map +1 -1
- package/dist/browser/operations/accessReviewInstancesAssignedForMyApproval.js +23 -40
- package/dist/browser/operations/accessReviewInstancesAssignedForMyApproval.js.map +1 -1
- package/dist/browser/operations/accessReviewScheduleDefinitions.js +23 -40
- package/dist/browser/operations/accessReviewScheduleDefinitions.js.map +1 -1
- package/dist/browser/operations/accessReviewScheduleDefinitionsAssignedForMyApproval.js +23 -40
- package/dist/browser/operations/accessReviewScheduleDefinitionsAssignedForMyApproval.js.map +1 -1
- package/dist/browser/operations/alertConfigurations.js +23 -40
- package/dist/browser/operations/alertConfigurations.js.map +1 -1
- package/dist/browser/operations/alertDefinitions.js +23 -40
- package/dist/browser/operations/alertDefinitions.js.map +1 -1
- package/dist/browser/operations/alertIncidents.js +23 -40
- package/dist/browser/operations/alertIncidents.js.map +1 -1
- package/dist/browser/operations/alertOperation.js +1 -0
- package/dist/browser/operations/alertOperation.js.map +1 -1
- package/dist/browser/operations/alerts.js +45 -52
- package/dist/browser/operations/alerts.js.map +1 -1
- package/dist/browser/operations/classicAdministrators.js +23 -40
- package/dist/browser/operations/classicAdministrators.js.map +1 -1
- package/dist/browser/operations/denyAssignments.js +89 -157
- package/dist/browser/operations/denyAssignments.js.map +1 -1
- package/dist/browser/operations/eligibleChildResources.js +23 -40
- package/dist/browser/operations/eligibleChildResources.js.map +1 -1
- package/dist/browser/operations/globalAdministrator.js +1 -0
- package/dist/browser/operations/globalAdministrator.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/permissions.js +45 -79
- package/dist/browser/operations/permissions.js.map +1 -1
- package/dist/browser/operations/providerOperationsMetadataOperations.js +23 -40
- package/dist/browser/operations/providerOperationsMetadataOperations.js.map +1 -1
- package/dist/browser/operations/roleAssignmentScheduleInstances.js +23 -40
- package/dist/browser/operations/roleAssignmentScheduleInstances.js.map +1 -1
- package/dist/browser/operations/roleAssignmentScheduleRequests.js +23 -40
- package/dist/browser/operations/roleAssignmentScheduleRequests.js.map +1 -1
- package/dist/browser/operations/roleAssignmentSchedules.js +23 -40
- package/dist/browser/operations/roleAssignmentSchedules.js.map +1 -1
- package/dist/browser/operations/roleAssignments.js +89 -157
- package/dist/browser/operations/roleAssignments.js.map +1 -1
- package/dist/browser/operations/roleDefinitions.js +23 -40
- package/dist/browser/operations/roleDefinitions.js.map +1 -1
- package/dist/browser/operations/roleEligibilityScheduleInstances.js +23 -40
- package/dist/browser/operations/roleEligibilityScheduleInstances.js.map +1 -1
- package/dist/browser/operations/roleEligibilityScheduleRequests.js +23 -40
- package/dist/browser/operations/roleEligibilityScheduleRequests.js.map +1 -1
- package/dist/browser/operations/roleEligibilitySchedules.js +23 -40
- package/dist/browser/operations/roleEligibilitySchedules.js.map +1 -1
- package/dist/browser/operations/roleManagementPolicies.js +23 -40
- package/dist/browser/operations/roleManagementPolicies.js.map +1 -1
- package/dist/browser/operations/roleManagementPolicyAssignments.js +23 -40
- package/dist/browser/operations/roleManagementPolicyAssignments.js.map +1 -1
- package/dist/browser/operations/scopeAccessReviewDefaultSettings.js +1 -0
- package/dist/browser/operations/scopeAccessReviewDefaultSettings.js.map +1 -1
- package/dist/browser/operations/scopeAccessReviewHistoryDefinition.js +1 -0
- package/dist/browser/operations/scopeAccessReviewHistoryDefinition.js.map +1 -1
- package/dist/browser/operations/scopeAccessReviewHistoryDefinitionInstance.js +1 -0
- package/dist/browser/operations/scopeAccessReviewHistoryDefinitionInstance.js.map +1 -1
- package/dist/browser/operations/scopeAccessReviewHistoryDefinitionInstances.js +23 -40
- package/dist/browser/operations/scopeAccessReviewHistoryDefinitionInstances.js.map +1 -1
- package/dist/browser/operations/scopeAccessReviewHistoryDefinitions.js +23 -40
- package/dist/browser/operations/scopeAccessReviewHistoryDefinitions.js.map +1 -1
- package/dist/browser/operations/scopeAccessReviewInstance.js +1 -0
- package/dist/browser/operations/scopeAccessReviewInstance.js.map +1 -1
- package/dist/browser/operations/scopeAccessReviewInstanceContactedReviewers.js +23 -40
- package/dist/browser/operations/scopeAccessReviewInstanceContactedReviewers.js.map +1 -1
- package/dist/browser/operations/scopeAccessReviewInstanceDecisions.js +23 -40
- package/dist/browser/operations/scopeAccessReviewInstanceDecisions.js.map +1 -1
- package/dist/browser/operations/scopeAccessReviewInstances.js +23 -40
- package/dist/browser/operations/scopeAccessReviewInstances.js.map +1 -1
- package/dist/browser/operations/scopeAccessReviewScheduleDefinitions.js +23 -40
- package/dist/browser/operations/scopeAccessReviewScheduleDefinitions.js.map +1 -1
- package/dist/browser/operations/tenantLevelAccessReviewInstanceContactedReviewers.js +23 -40
- package/dist/browser/operations/tenantLevelAccessReviewInstanceContactedReviewers.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/authorizationManagementClient.js +58 -5
- package/dist/commonjs/authorizationManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +118 -51
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/accessReviewDefaultSettingsOperations.js +1 -0
- package/dist/commonjs/operations/accessReviewDefaultSettingsOperations.js.map +1 -1
- package/dist/commonjs/operations/accessReviewHistoryDefinitionInstance.js +1 -0
- package/dist/commonjs/operations/accessReviewHistoryDefinitionInstance.js.map +1 -1
- package/dist/commonjs/operations/accessReviewHistoryDefinitionInstances.js +23 -39
- package/dist/commonjs/operations/accessReviewHistoryDefinitionInstances.js.map +1 -1
- package/dist/commonjs/operations/accessReviewHistoryDefinitionOperations.js +1 -0
- package/dist/commonjs/operations/accessReviewHistoryDefinitionOperations.js.map +1 -1
- package/dist/commonjs/operations/accessReviewHistoryDefinitions.js +23 -39
- package/dist/commonjs/operations/accessReviewHistoryDefinitions.js.map +1 -1
- package/dist/commonjs/operations/accessReviewInstanceContactedReviewers.js +23 -39
- package/dist/commonjs/operations/accessReviewInstanceContactedReviewers.js.map +1 -1
- package/dist/commonjs/operations/accessReviewInstanceDecisions.js +23 -39
- package/dist/commonjs/operations/accessReviewInstanceDecisions.js.map +1 -1
- package/dist/commonjs/operations/accessReviewInstanceMyDecisions.js +23 -39
- package/dist/commonjs/operations/accessReviewInstanceMyDecisions.js.map +1 -1
- package/dist/commonjs/operations/accessReviewInstanceOperations.js +1 -0
- package/dist/commonjs/operations/accessReviewInstanceOperations.js.map +1 -1
- package/dist/commonjs/operations/accessReviewInstances.js +23 -39
- package/dist/commonjs/operations/accessReviewInstances.js.map +1 -1
- package/dist/commonjs/operations/accessReviewInstancesAssignedForMyApproval.js +23 -39
- package/dist/commonjs/operations/accessReviewInstancesAssignedForMyApproval.js.map +1 -1
- package/dist/commonjs/operations/accessReviewScheduleDefinitions.js +23 -39
- package/dist/commonjs/operations/accessReviewScheduleDefinitions.js.map +1 -1
- package/dist/commonjs/operations/accessReviewScheduleDefinitionsAssignedForMyApproval.js +23 -39
- package/dist/commonjs/operations/accessReviewScheduleDefinitionsAssignedForMyApproval.js.map +1 -1
- package/dist/commonjs/operations/alertConfigurations.js +23 -39
- package/dist/commonjs/operations/alertConfigurations.js.map +1 -1
- package/dist/commonjs/operations/alertDefinitions.js +23 -39
- package/dist/commonjs/operations/alertDefinitions.js.map +1 -1
- package/dist/commonjs/operations/alertIncidents.js +23 -39
- package/dist/commonjs/operations/alertIncidents.js.map +1 -1
- package/dist/commonjs/operations/alertOperation.js +1 -0
- package/dist/commonjs/operations/alertOperation.js.map +1 -1
- package/dist/commonjs/operations/alerts.js +45 -51
- package/dist/commonjs/operations/alerts.js.map +1 -1
- package/dist/commonjs/operations/classicAdministrators.js +23 -39
- package/dist/commonjs/operations/classicAdministrators.js.map +1 -1
- package/dist/commonjs/operations/denyAssignments.js +89 -156
- package/dist/commonjs/operations/denyAssignments.js.map +1 -1
- package/dist/commonjs/operations/eligibleChildResources.js +23 -39
- package/dist/commonjs/operations/eligibleChildResources.js.map +1 -1
- package/dist/commonjs/operations/globalAdministrator.js +1 -0
- package/dist/commonjs/operations/globalAdministrator.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/permissions.js +45 -78
- package/dist/commonjs/operations/permissions.js.map +1 -1
- package/dist/commonjs/operations/providerOperationsMetadataOperations.js +23 -39
- package/dist/commonjs/operations/providerOperationsMetadataOperations.js.map +1 -1
- package/dist/commonjs/operations/roleAssignmentScheduleInstances.js +23 -39
- package/dist/commonjs/operations/roleAssignmentScheduleInstances.js.map +1 -1
- package/dist/commonjs/operations/roleAssignmentScheduleRequests.js +23 -39
- package/dist/commonjs/operations/roleAssignmentScheduleRequests.js.map +1 -1
- package/dist/commonjs/operations/roleAssignmentSchedules.js +23 -39
- package/dist/commonjs/operations/roleAssignmentSchedules.js.map +1 -1
- package/dist/commonjs/operations/roleAssignments.js +89 -156
- package/dist/commonjs/operations/roleAssignments.js.map +1 -1
- package/dist/commonjs/operations/roleDefinitions.js +23 -39
- package/dist/commonjs/operations/roleDefinitions.js.map +1 -1
- package/dist/commonjs/operations/roleEligibilityScheduleInstances.js +23 -39
- package/dist/commonjs/operations/roleEligibilityScheduleInstances.js.map +1 -1
- package/dist/commonjs/operations/roleEligibilityScheduleRequests.js +23 -39
- package/dist/commonjs/operations/roleEligibilityScheduleRequests.js.map +1 -1
- package/dist/commonjs/operations/roleEligibilitySchedules.js +23 -39
- package/dist/commonjs/operations/roleEligibilitySchedules.js.map +1 -1
- package/dist/commonjs/operations/roleManagementPolicies.js +23 -39
- package/dist/commonjs/operations/roleManagementPolicies.js.map +1 -1
- package/dist/commonjs/operations/roleManagementPolicyAssignments.js +23 -39
- package/dist/commonjs/operations/roleManagementPolicyAssignments.js.map +1 -1
- package/dist/commonjs/operations/scopeAccessReviewDefaultSettings.js +1 -0
- package/dist/commonjs/operations/scopeAccessReviewDefaultSettings.js.map +1 -1
- package/dist/commonjs/operations/scopeAccessReviewHistoryDefinition.js +1 -0
- package/dist/commonjs/operations/scopeAccessReviewHistoryDefinition.js.map +1 -1
- package/dist/commonjs/operations/scopeAccessReviewHistoryDefinitionInstance.js +1 -0
- package/dist/commonjs/operations/scopeAccessReviewHistoryDefinitionInstance.js.map +1 -1
- package/dist/commonjs/operations/scopeAccessReviewHistoryDefinitionInstances.js +23 -39
- package/dist/commonjs/operations/scopeAccessReviewHistoryDefinitionInstances.js.map +1 -1
- package/dist/commonjs/operations/scopeAccessReviewHistoryDefinitions.js +23 -39
- package/dist/commonjs/operations/scopeAccessReviewHistoryDefinitions.js.map +1 -1
- package/dist/commonjs/operations/scopeAccessReviewInstance.js +1 -0
- package/dist/commonjs/operations/scopeAccessReviewInstance.js.map +1 -1
- package/dist/commonjs/operations/scopeAccessReviewInstanceContactedReviewers.js +23 -39
- package/dist/commonjs/operations/scopeAccessReviewInstanceContactedReviewers.js.map +1 -1
- package/dist/commonjs/operations/scopeAccessReviewInstanceDecisions.js +23 -39
- package/dist/commonjs/operations/scopeAccessReviewInstanceDecisions.js.map +1 -1
- package/dist/commonjs/operations/scopeAccessReviewInstances.js +23 -39
- package/dist/commonjs/operations/scopeAccessReviewInstances.js.map +1 -1
- package/dist/commonjs/operations/scopeAccessReviewScheduleDefinitions.js +23 -39
- package/dist/commonjs/operations/scopeAccessReviewScheduleDefinitions.js.map +1 -1
- package/dist/commonjs/operations/tenantLevelAccessReviewInstanceContactedReviewers.js +23 -39
- package/dist/commonjs/operations/tenantLevelAccessReviewInstanceContactedReviewers.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/authorizationManagementClient.js +58 -5
- package/dist/esm/authorizationManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +118 -51
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/accessReviewDefaultSettingsOperations.js +1 -0
- package/dist/esm/operations/accessReviewDefaultSettingsOperations.js.map +1 -1
- package/dist/esm/operations/accessReviewHistoryDefinitionInstance.js +1 -0
- package/dist/esm/operations/accessReviewHistoryDefinitionInstance.js.map +1 -1
- package/dist/esm/operations/accessReviewHistoryDefinitionInstances.js +23 -40
- package/dist/esm/operations/accessReviewHistoryDefinitionInstances.js.map +1 -1
- package/dist/esm/operations/accessReviewHistoryDefinitionOperations.js +1 -0
- package/dist/esm/operations/accessReviewHistoryDefinitionOperations.js.map +1 -1
- package/dist/esm/operations/accessReviewHistoryDefinitions.js +23 -40
- package/dist/esm/operations/accessReviewHistoryDefinitions.js.map +1 -1
- package/dist/esm/operations/accessReviewInstanceContactedReviewers.js +23 -40
- package/dist/esm/operations/accessReviewInstanceContactedReviewers.js.map +1 -1
- package/dist/esm/operations/accessReviewInstanceDecisions.js +23 -40
- package/dist/esm/operations/accessReviewInstanceDecisions.js.map +1 -1
- package/dist/esm/operations/accessReviewInstanceMyDecisions.js +23 -40
- package/dist/esm/operations/accessReviewInstanceMyDecisions.js.map +1 -1
- package/dist/esm/operations/accessReviewInstanceOperations.js +1 -0
- package/dist/esm/operations/accessReviewInstanceOperations.js.map +1 -1
- package/dist/esm/operations/accessReviewInstances.js +23 -40
- package/dist/esm/operations/accessReviewInstances.js.map +1 -1
- package/dist/esm/operations/accessReviewInstancesAssignedForMyApproval.js +23 -40
- package/dist/esm/operations/accessReviewInstancesAssignedForMyApproval.js.map +1 -1
- package/dist/esm/operations/accessReviewScheduleDefinitions.js +23 -40
- package/dist/esm/operations/accessReviewScheduleDefinitions.js.map +1 -1
- package/dist/esm/operations/accessReviewScheduleDefinitionsAssignedForMyApproval.js +23 -40
- package/dist/esm/operations/accessReviewScheduleDefinitionsAssignedForMyApproval.js.map +1 -1
- package/dist/esm/operations/alertConfigurations.js +23 -40
- package/dist/esm/operations/alertConfigurations.js.map +1 -1
- package/dist/esm/operations/alertDefinitions.js +23 -40
- package/dist/esm/operations/alertDefinitions.js.map +1 -1
- package/dist/esm/operations/alertIncidents.js +23 -40
- package/dist/esm/operations/alertIncidents.js.map +1 -1
- package/dist/esm/operations/alertOperation.js +1 -0
- package/dist/esm/operations/alertOperation.js.map +1 -1
- package/dist/esm/operations/alerts.js +45 -52
- package/dist/esm/operations/alerts.js.map +1 -1
- package/dist/esm/operations/classicAdministrators.js +23 -40
- package/dist/esm/operations/classicAdministrators.js.map +1 -1
- package/dist/esm/operations/denyAssignments.js +89 -157
- package/dist/esm/operations/denyAssignments.js.map +1 -1
- package/dist/esm/operations/eligibleChildResources.js +23 -40
- package/dist/esm/operations/eligibleChildResources.js.map +1 -1
- package/dist/esm/operations/globalAdministrator.js +1 -0
- package/dist/esm/operations/globalAdministrator.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/permissions.js +45 -79
- package/dist/esm/operations/permissions.js.map +1 -1
- package/dist/esm/operations/providerOperationsMetadataOperations.js +23 -40
- package/dist/esm/operations/providerOperationsMetadataOperations.js.map +1 -1
- package/dist/esm/operations/roleAssignmentScheduleInstances.js +23 -40
- package/dist/esm/operations/roleAssignmentScheduleInstances.js.map +1 -1
- package/dist/esm/operations/roleAssignmentScheduleRequests.js +23 -40
- package/dist/esm/operations/roleAssignmentScheduleRequests.js.map +1 -1
- package/dist/esm/operations/roleAssignmentSchedules.js +23 -40
- package/dist/esm/operations/roleAssignmentSchedules.js.map +1 -1
- package/dist/esm/operations/roleAssignments.js +89 -157
- package/dist/esm/operations/roleAssignments.js.map +1 -1
- package/dist/esm/operations/roleDefinitions.js +23 -40
- package/dist/esm/operations/roleDefinitions.js.map +1 -1
- package/dist/esm/operations/roleEligibilityScheduleInstances.js +23 -40
- package/dist/esm/operations/roleEligibilityScheduleInstances.js.map +1 -1
- package/dist/esm/operations/roleEligibilityScheduleRequests.js +23 -40
- package/dist/esm/operations/roleEligibilityScheduleRequests.js.map +1 -1
- package/dist/esm/operations/roleEligibilitySchedules.js +23 -40
- package/dist/esm/operations/roleEligibilitySchedules.js.map +1 -1
- package/dist/esm/operations/roleManagementPolicies.js +23 -40
- package/dist/esm/operations/roleManagementPolicies.js.map +1 -1
- package/dist/esm/operations/roleManagementPolicyAssignments.js +23 -40
- package/dist/esm/operations/roleManagementPolicyAssignments.js.map +1 -1
- package/dist/esm/operations/scopeAccessReviewDefaultSettings.js +1 -0
- package/dist/esm/operations/scopeAccessReviewDefaultSettings.js.map +1 -1
- package/dist/esm/operations/scopeAccessReviewHistoryDefinition.js +1 -0
- package/dist/esm/operations/scopeAccessReviewHistoryDefinition.js.map +1 -1
- package/dist/esm/operations/scopeAccessReviewHistoryDefinitionInstance.js +1 -0
- package/dist/esm/operations/scopeAccessReviewHistoryDefinitionInstance.js.map +1 -1
- package/dist/esm/operations/scopeAccessReviewHistoryDefinitionInstances.js +23 -40
- package/dist/esm/operations/scopeAccessReviewHistoryDefinitionInstances.js.map +1 -1
- package/dist/esm/operations/scopeAccessReviewHistoryDefinitions.js +23 -40
- package/dist/esm/operations/scopeAccessReviewHistoryDefinitions.js.map +1 -1
- package/dist/esm/operations/scopeAccessReviewInstance.js +1 -0
- package/dist/esm/operations/scopeAccessReviewInstance.js.map +1 -1
- package/dist/esm/operations/scopeAccessReviewInstanceContactedReviewers.js +23 -40
- package/dist/esm/operations/scopeAccessReviewInstanceContactedReviewers.js.map +1 -1
- package/dist/esm/operations/scopeAccessReviewInstanceDecisions.js +23 -40
- package/dist/esm/operations/scopeAccessReviewInstanceDecisions.js.map +1 -1
- package/dist/esm/operations/scopeAccessReviewInstances.js +23 -40
- package/dist/esm/operations/scopeAccessReviewInstances.js.map +1 -1
- package/dist/esm/operations/scopeAccessReviewScheduleDefinitions.js +23 -40
- package/dist/esm/operations/scopeAccessReviewScheduleDefinitions.js.map +1 -1
- package/dist/esm/operations/tenantLevelAccessReviewInstanceContactedReviewers.js +23 -40
- package/dist/esm/operations/tenantLevelAccessReviewInstanceContactedReviewers.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/authorizationManagementClient.js +58 -5
- package/dist/react-native/authorizationManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +118 -51
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/accessReviewDefaultSettingsOperations.js +1 -0
- package/dist/react-native/operations/accessReviewDefaultSettingsOperations.js.map +1 -1
- package/dist/react-native/operations/accessReviewHistoryDefinitionInstance.js +1 -0
- package/dist/react-native/operations/accessReviewHistoryDefinitionInstance.js.map +1 -1
- package/dist/react-native/operations/accessReviewHistoryDefinitionInstances.js +23 -40
- package/dist/react-native/operations/accessReviewHistoryDefinitionInstances.js.map +1 -1
- package/dist/react-native/operations/accessReviewHistoryDefinitionOperations.js +1 -0
- package/dist/react-native/operations/accessReviewHistoryDefinitionOperations.js.map +1 -1
- package/dist/react-native/operations/accessReviewHistoryDefinitions.js +23 -40
- package/dist/react-native/operations/accessReviewHistoryDefinitions.js.map +1 -1
- package/dist/react-native/operations/accessReviewInstanceContactedReviewers.js +23 -40
- package/dist/react-native/operations/accessReviewInstanceContactedReviewers.js.map +1 -1
- package/dist/react-native/operations/accessReviewInstanceDecisions.js +23 -40
- package/dist/react-native/operations/accessReviewInstanceDecisions.js.map +1 -1
- package/dist/react-native/operations/accessReviewInstanceMyDecisions.js +23 -40
- package/dist/react-native/operations/accessReviewInstanceMyDecisions.js.map +1 -1
- package/dist/react-native/operations/accessReviewInstanceOperations.js +1 -0
- package/dist/react-native/operations/accessReviewInstanceOperations.js.map +1 -1
- package/dist/react-native/operations/accessReviewInstances.js +23 -40
- package/dist/react-native/operations/accessReviewInstances.js.map +1 -1
- package/dist/react-native/operations/accessReviewInstancesAssignedForMyApproval.js +23 -40
- package/dist/react-native/operations/accessReviewInstancesAssignedForMyApproval.js.map +1 -1
- package/dist/react-native/operations/accessReviewScheduleDefinitions.js +23 -40
- package/dist/react-native/operations/accessReviewScheduleDefinitions.js.map +1 -1
- package/dist/react-native/operations/accessReviewScheduleDefinitionsAssignedForMyApproval.js +23 -40
- package/dist/react-native/operations/accessReviewScheduleDefinitionsAssignedForMyApproval.js.map +1 -1
- package/dist/react-native/operations/alertConfigurations.js +23 -40
- package/dist/react-native/operations/alertConfigurations.js.map +1 -1
- package/dist/react-native/operations/alertDefinitions.js +23 -40
- package/dist/react-native/operations/alertDefinitions.js.map +1 -1
- package/dist/react-native/operations/alertIncidents.js +23 -40
- package/dist/react-native/operations/alertIncidents.js.map +1 -1
- package/dist/react-native/operations/alertOperation.js +1 -0
- package/dist/react-native/operations/alertOperation.js.map +1 -1
- package/dist/react-native/operations/alerts.js +45 -52
- package/dist/react-native/operations/alerts.js.map +1 -1
- package/dist/react-native/operations/classicAdministrators.js +23 -40
- package/dist/react-native/operations/classicAdministrators.js.map +1 -1
- package/dist/react-native/operations/denyAssignments.js +89 -157
- package/dist/react-native/operations/denyAssignments.js.map +1 -1
- package/dist/react-native/operations/eligibleChildResources.js +23 -40
- package/dist/react-native/operations/eligibleChildResources.js.map +1 -1
- package/dist/react-native/operations/globalAdministrator.js +1 -0
- package/dist/react-native/operations/globalAdministrator.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/permissions.js +45 -79
- package/dist/react-native/operations/permissions.js.map +1 -1
- package/dist/react-native/operations/providerOperationsMetadataOperations.js +23 -40
- package/dist/react-native/operations/providerOperationsMetadataOperations.js.map +1 -1
- package/dist/react-native/operations/roleAssignmentScheduleInstances.js +23 -40
- package/dist/react-native/operations/roleAssignmentScheduleInstances.js.map +1 -1
- package/dist/react-native/operations/roleAssignmentScheduleRequests.js +23 -40
- package/dist/react-native/operations/roleAssignmentScheduleRequests.js.map +1 -1
- package/dist/react-native/operations/roleAssignmentSchedules.js +23 -40
- package/dist/react-native/operations/roleAssignmentSchedules.js.map +1 -1
- package/dist/react-native/operations/roleAssignments.js +89 -157
- package/dist/react-native/operations/roleAssignments.js.map +1 -1
- package/dist/react-native/operations/roleDefinitions.js +23 -40
- package/dist/react-native/operations/roleDefinitions.js.map +1 -1
- package/dist/react-native/operations/roleEligibilityScheduleInstances.js +23 -40
- package/dist/react-native/operations/roleEligibilityScheduleInstances.js.map +1 -1
- package/dist/react-native/operations/roleEligibilityScheduleRequests.js +23 -40
- package/dist/react-native/operations/roleEligibilityScheduleRequests.js.map +1 -1
- package/dist/react-native/operations/roleEligibilitySchedules.js +23 -40
- package/dist/react-native/operations/roleEligibilitySchedules.js.map +1 -1
- package/dist/react-native/operations/roleManagementPolicies.js +23 -40
- package/dist/react-native/operations/roleManagementPolicies.js.map +1 -1
- package/dist/react-native/operations/roleManagementPolicyAssignments.js +23 -40
- package/dist/react-native/operations/roleManagementPolicyAssignments.js.map +1 -1
- package/dist/react-native/operations/scopeAccessReviewDefaultSettings.js +1 -0
- package/dist/react-native/operations/scopeAccessReviewDefaultSettings.js.map +1 -1
- package/dist/react-native/operations/scopeAccessReviewHistoryDefinition.js +1 -0
- package/dist/react-native/operations/scopeAccessReviewHistoryDefinition.js.map +1 -1
- package/dist/react-native/operations/scopeAccessReviewHistoryDefinitionInstance.js +1 -0
- package/dist/react-native/operations/scopeAccessReviewHistoryDefinitionInstance.js.map +1 -1
- package/dist/react-native/operations/scopeAccessReviewHistoryDefinitionInstances.js +23 -40
- package/dist/react-native/operations/scopeAccessReviewHistoryDefinitionInstances.js.map +1 -1
- package/dist/react-native/operations/scopeAccessReviewHistoryDefinitions.js +23 -40
- package/dist/react-native/operations/scopeAccessReviewHistoryDefinitions.js.map +1 -1
- package/dist/react-native/operations/scopeAccessReviewInstance.js +1 -0
- package/dist/react-native/operations/scopeAccessReviewInstance.js.map +1 -1
- package/dist/react-native/operations/scopeAccessReviewInstanceContactedReviewers.js +23 -40
- package/dist/react-native/operations/scopeAccessReviewInstanceContactedReviewers.js.map +1 -1
- package/dist/react-native/operations/scopeAccessReviewInstanceDecisions.js +23 -40
- package/dist/react-native/operations/scopeAccessReviewInstanceDecisions.js.map +1 -1
- package/dist/react-native/operations/scopeAccessReviewInstances.js +23 -40
- package/dist/react-native/operations/scopeAccessReviewInstances.js.map +1 -1
- package/dist/react-native/operations/scopeAccessReviewScheduleDefinitions.js +23 -40
- package/dist/react-native/operations/scopeAccessReviewScheduleDefinitions.js.map +1 -1
- package/dist/react-native/operations/tenantLevelAccessReviewInstanceContactedReviewers.js +23 -40
- package/dist/react-native/operations/tenantLevelAccessReviewInstanceContactedReviewers.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-authorization-node.api.md +3229 -3229
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alertDefinitions.js","sourceRoot":"","sources":["../../../src/operations/alertDefinitions.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,oDAAoD;AACpD,MAAM,OAAO,oBAAoB;IAG/B;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,YAAY,CACjB,KAAa,EACb,OAAoD;QAEpD,MAAM,IAAI,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QACxD,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,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ACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,yBAAyB,GAA6B;IAC1D,IAAI,EACF,2EAA2E;IAC7E,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC;IACnD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,6BAA6B,GAA6B;IAC9D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,KAAK,CAAC;IACxE,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 { AlertDefinitions } 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 AlertDefinition,\n AlertDefinitionsListForScopeNextOptionalParams,\n AlertDefinitionsListForScopeOptionalParams,\n AlertDefinitionsListForScopeResponse,\n AlertDefinitionsGetOptionalParams,\n AlertDefinitionsGetResponse,\n AlertDefinitionsListForScopeNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AlertDefinitions operations. */\nexport class AlertDefinitionsImpl implements AlertDefinitions {\n private readonly client: AuthorizationManagementClient;\n\n /**\n * Initialize a new instance of the class AlertDefinitions class.\n * @param client Reference to the service client\n */\n constructor(client: AuthorizationManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets alert definitions for a resource scope.\n * @param scope The scope of the alert definition.\n * @param options The options parameters.\n */\n public listForScope(\n scope: string,\n options?: AlertDefinitionsListForScopeOptionalParams\n ): PagedAsyncIterableIterator<AlertDefinition> {\n const iter = this.listForScopePagingAll(scope, 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.listForScopePagingPage(scope, options, settings);\n }\n };\n }\n\n private async *listForScopePagingPage(\n scope: string,\n options?: AlertDefinitionsListForScopeOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AlertDefinition[]> {\n let result: AlertDefinitionsListForScopeResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listForScope(scope, 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._listForScopeNext(scope, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listForScopePagingAll(\n scope: string,\n options?: AlertDefinitionsListForScopeOptionalParams\n ): AsyncIterableIterator<AlertDefinition> {\n for await (const page of this.listForScopePagingPage(scope, options)) {\n yield* page;\n }\n }\n\n /**\n * Get the specified alert definition.\n * @param scope The scope of the alert definition. The scope can be any REST resource instance. For\n * example, use '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/' for a\n * subscription,\n * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}'\n * for a resource group, and\n * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}'\n * for a resource.\n * @param alertDefinitionId The name of the alert definition to get.\n * @param options The options parameters.\n */\n get(\n scope: string,\n alertDefinitionId: string,\n options?: AlertDefinitionsGetOptionalParams\n ): Promise<AlertDefinitionsGetResponse> {\n return this.client.sendOperationRequest(\n { scope, alertDefinitionId, options },\n getOperationSpec\n );\n }\n\n /**\n * Gets alert definitions for a resource scope.\n * @param scope The scope of the alert definition.\n * @param options The options parameters.\n */\n private _listForScope(\n scope: string,\n options?: AlertDefinitionsListForScopeOptionalParams\n ): Promise<AlertDefinitionsListForScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listForScopeOperationSpec\n );\n }\n\n /**\n * ListForScopeNext\n * @param scope The scope of the alert definition.\n * @param nextLink The nextLink from the previous successful call to the ListForScope method.\n * @param options The options parameters.\n */\n private _listForScopeNext(\n scope: string,\n nextLink: string,\n options?: AlertDefinitionsListForScopeNextOptionalParams\n ): Promise<AlertDefinitionsListForScopeNextResponse> {\n return this.client.sendOperationRequest(\n { scope, nextLink, options },\n listForScopeNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleManagementAlertDefinitions/{alertDefinitionId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertDefinition\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.alertDefinitionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listForScopeOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleManagementAlertDefinitions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertDefinitionListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listForScopeNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertDefinitionListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"alertDefinitions.js","sourceRoot":"","sources":["../../../src/operations/alertDefinitions.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,oDAAoD;AACpD,MAAM,OAAO,oBAAoB;IACd,MAAM,CAAgC;IAEvD;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,YAAY,CACjB,KAAa,EACb,OAAoD;QAEpD,MAAM,IAAI,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QACxD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,E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,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,yBAAyB,GAA6B;IAC1D,IAAI,EACF,2EAA2E;IAC7E,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC;IACnD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,6BAA6B,GAA6B;IAC9D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,KAAK,CAAC;IACxE,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 { AlertDefinitions } 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 AlertDefinition,\n AlertDefinitionsListForScopeNextOptionalParams,\n AlertDefinitionsListForScopeOptionalParams,\n AlertDefinitionsListForScopeResponse,\n AlertDefinitionsGetOptionalParams,\n AlertDefinitionsGetResponse,\n AlertDefinitionsListForScopeNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AlertDefinitions operations. */\nexport class AlertDefinitionsImpl implements AlertDefinitions {\n private readonly client: AuthorizationManagementClient;\n\n /**\n * Initialize a new instance of the class AlertDefinitions class.\n * @param client Reference to the service client\n */\n constructor(client: AuthorizationManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets alert definitions for a resource scope.\n * @param scope The scope of the alert definition.\n * @param options The options parameters.\n */\n public listForScope(\n scope: string,\n options?: AlertDefinitionsListForScopeOptionalParams\n ): PagedAsyncIterableIterator<AlertDefinition> {\n const iter = this.listForScopePagingAll(scope, 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.listForScopePagingPage(scope, options, settings);\n }\n };\n }\n\n private async *listForScopePagingPage(\n scope: string,\n options?: AlertDefinitionsListForScopeOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AlertDefinition[]> {\n let result: AlertDefinitionsListForScopeResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listForScope(scope, 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._listForScopeNext(scope, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listForScopePagingAll(\n scope: string,\n options?: AlertDefinitionsListForScopeOptionalParams\n ): AsyncIterableIterator<AlertDefinition> {\n for await (const page of this.listForScopePagingPage(scope, options)) {\n yield* page;\n }\n }\n\n /**\n * Get the specified alert definition.\n * @param scope The scope of the alert definition. The scope can be any REST resource instance. For\n * example, use '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/' for a\n * subscription,\n * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}'\n * for a resource group, and\n * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}'\n * for a resource.\n * @param alertDefinitionId The name of the alert definition to get.\n * @param options The options parameters.\n */\n get(\n scope: string,\n alertDefinitionId: string,\n options?: AlertDefinitionsGetOptionalParams\n ): Promise<AlertDefinitionsGetResponse> {\n return this.client.sendOperationRequest(\n { scope, alertDefinitionId, options },\n getOperationSpec\n );\n }\n\n /**\n * Gets alert definitions for a resource scope.\n * @param scope The scope of the alert definition.\n * @param options The options parameters.\n */\n private _listForScope(\n scope: string,\n options?: AlertDefinitionsListForScopeOptionalParams\n ): Promise<AlertDefinitionsListForScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listForScopeOperationSpec\n );\n }\n\n /**\n * ListForScopeNext\n * @param scope The scope of the alert definition.\n * @param nextLink The nextLink from the previous successful call to the ListForScope method.\n * @param options The options parameters.\n */\n private _listForScopeNext(\n scope: string,\n nextLink: string,\n options?: AlertDefinitionsListForScopeNextOptionalParams\n ): Promise<AlertDefinitionsListForScopeNextResponse> {\n return this.client.sendOperationRequest(\n { scope, nextLink, options },\n listForScopeNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleManagementAlertDefinitions/{alertDefinitionId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertDefinition\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.alertDefinitionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listForScopeOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleManagementAlertDefinitions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertDefinitionListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listForScopeNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertDefinitionListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing AlertIncidents operations. */
|
|
15
14
|
export class AlertIncidentsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class AlertIncidents class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -36,52 +36,35 @@ export class AlertIncidentsImpl {
|
|
|
36
36
|
return this;
|
|
37
37
|
},
|
|
38
38
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
39
|
+
if (settings?.maxPageSize) {
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
41
|
}
|
|
42
42
|
return this.listForScopePagingPage(scope, alertId, options, settings);
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
listForScopePagingPage(scope, alertId, options, settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
});
|
|
46
|
+
async *listForScopePagingPage(scope, alertId, options, settings) {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings?.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = await this._listForScope(scope, alertId, options);
|
|
51
|
+
let page = result.value || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield page;
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = await this._listForScopeNext(scope, alertId, continuationToken, options);
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
65
63
|
}
|
|
66
|
-
listForScopePagingAll(scope, alertId, options) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
for (var _d = true, _e = __asyncValues(this.listForScopePagingPage(scope, alertId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
-
_c = _f.value;
|
|
72
|
-
_d = false;
|
|
73
|
-
const page = _c;
|
|
74
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
-
finally {
|
|
79
|
-
try {
|
|
80
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
-
}
|
|
82
|
-
finally { if (e_1) throw e_1.error; }
|
|
83
|
-
}
|
|
84
|
-
});
|
|
64
|
+
async *listForScopePagingAll(scope, alertId, options) {
|
|
65
|
+
for await (const page of this.listForScopePagingPage(scope, alertId, options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
/**
|
|
87
70
|
* Get the specified alert incident.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alertIncidents.js","sourceRoot":"","sources":["../../../src/operations/alertIncidents.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;AAatD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IAG7B;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,YAAY,CACjB,KAAa,EACb,OAAe,EACf,OAAkD;QAElD,MAAM,IAAI,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QACjE,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,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C,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,6BAA6B,GAA6B;IAC9D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,OAAO;KACnB;IACD,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 { AlertIncidents } 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 AlertIncident,\n AlertIncidentsListForScopeNextOptionalParams,\n AlertIncidentsListForScopeOptionalParams,\n AlertIncidentsListForScopeResponse,\n AlertIncidentsGetOptionalParams,\n AlertIncidentsGetResponse,\n AlertIncidentsRemediateOptionalParams,\n AlertIncidentsListForScopeNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AlertIncidents operations. */\nexport class AlertIncidentsImpl implements AlertIncidents {\n private readonly client: AuthorizationManagementClient;\n\n /**\n * Initialize a new instance of the class AlertIncidents class.\n * @param client Reference to the service client\n */\n constructor(client: AuthorizationManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets alert incidents for a resource scope.\n * @param scope The scope of the alert incident.\n * @param alertId The name of the alert.\n * @param options The options parameters.\n */\n public listForScope(\n scope: string,\n alertId: string,\n options?: AlertIncidentsListForScopeOptionalParams\n ): PagedAsyncIterableIterator<AlertIncident> {\n const iter = this.listForScopePagingAll(scope, alertId, 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.listForScopePagingPage(scope, alertId, options, settings);\n }\n };\n }\n\n private async *listForScopePagingPage(\n scope: string,\n alertId: string,\n options?: AlertIncidentsListForScopeOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AlertIncident[]> {\n let result: AlertIncidentsListForScopeResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listForScope(scope, alertId, 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._listForScopeNext(\n scope,\n alertId,\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 *listForScopePagingAll(\n scope: string,\n alertId: string,\n options?: AlertIncidentsListForScopeOptionalParams\n ): AsyncIterableIterator<AlertIncident> {\n for await (const page of this.listForScopePagingPage(\n scope,\n alertId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get the specified alert incident.\n * @param scope The scope of the alert incident. The scope can be any REST resource instance. For\n * example, use '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/' for a\n * subscription,\n * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}'\n * for a resource group, and\n * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}'\n * for a resource.\n * @param alertId The name of the alert.\n * @param alertIncidentId The name of the alert incident to get.\n * @param options The options parameters.\n */\n get(\n scope: string,\n alertId: string,\n alertIncidentId: string,\n options?: AlertIncidentsGetOptionalParams\n ): Promise<AlertIncidentsGetResponse> {\n return this.client.sendOperationRequest(\n { scope, alertId, alertIncidentId, options },\n getOperationSpec\n );\n }\n\n /**\n * Gets alert incidents for a resource scope.\n * @param scope The scope of the alert incident.\n * @param alertId The name of the alert.\n * @param options The options parameters.\n */\n private _listForScope(\n scope: string,\n alertId: string,\n options?: AlertIncidentsListForScopeOptionalParams\n ): Promise<AlertIncidentsListForScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, alertId, options },\n listForScopeOperationSpec\n );\n }\n\n /**\n * Remediate an alert incident.\n * @param scope The scope of the alert incident.\n * @param alertId The name of the alert.\n * @param alertIncidentId The name of the alert incident to remediate.\n * @param options The options parameters.\n */\n remediate(\n scope: string,\n alertId: string,\n alertIncidentId: string,\n options?: AlertIncidentsRemediateOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { scope, alertId, alertIncidentId, options },\n remediateOperationSpec\n );\n }\n\n /**\n * ListForScopeNext\n * @param scope The scope of the alert incident.\n * @param alertId The name of the alert.\n * @param nextLink The nextLink from the previous successful call to the ListForScope method.\n * @param options The options parameters.\n */\n private _listForScopeNext(\n scope: string,\n alertId: string,\n nextLink: string,\n options?: AlertIncidentsListForScopeNextOptionalParams\n ): Promise<AlertIncidentsListForScopeNextResponse> {\n return this.client.sendOperationRequest(\n { scope, alertId, nextLink, options },\n listForScopeNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/alertIncidents/{alertIncidentId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertIncident\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.alertId,\n Parameters.alertIncidentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listForScopeOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/alertIncidents\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertIncidentListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [Parameters.$host, Parameters.scope, Parameters.alertId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst remediateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/alertIncidents/{alertIncidentId}/remediate\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.alertId,\n Parameters.alertIncidentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listForScopeNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertIncidentListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.scope,\n Parameters.alertId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"alertIncidents.js","sourceRoot":"","sources":["../../../src/operations/alertIncidents.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,U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C,UAAU;CACX,CAAC;AACF,MAAM,sBAAsB,GAA6B;IACvD,IAAI,EACF,sHAAsH;IACxH,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,6BAA6B,GAA6B;IAC9D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,OAAO;KACnB;IACD,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 { AlertIncidents } 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 AlertIncident,\n AlertIncidentsListForScopeNextOptionalParams,\n AlertIncidentsListForScopeOptionalParams,\n AlertIncidentsListForScopeResponse,\n AlertIncidentsGetOptionalParams,\n AlertIncidentsGetResponse,\n AlertIncidentsRemediateOptionalParams,\n AlertIncidentsListForScopeNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AlertIncidents operations. */\nexport class AlertIncidentsImpl implements AlertIncidents {\n private readonly client: AuthorizationManagementClient;\n\n /**\n * Initialize a new instance of the class AlertIncidents class.\n * @param client Reference to the service client\n */\n constructor(client: AuthorizationManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets alert incidents for a resource scope.\n * @param scope The scope of the alert incident.\n * @param alertId The name of the alert.\n * @param options The options parameters.\n */\n public listForScope(\n scope: string,\n alertId: string,\n options?: AlertIncidentsListForScopeOptionalParams\n ): PagedAsyncIterableIterator<AlertIncident> {\n const iter = this.listForScopePagingAll(scope, alertId, 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.listForScopePagingPage(scope, alertId, options, settings);\n }\n };\n }\n\n private async *listForScopePagingPage(\n scope: string,\n alertId: string,\n options?: AlertIncidentsListForScopeOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AlertIncident[]> {\n let result: AlertIncidentsListForScopeResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listForScope(scope, alertId, 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._listForScopeNext(\n scope,\n alertId,\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 *listForScopePagingAll(\n scope: string,\n alertId: string,\n options?: AlertIncidentsListForScopeOptionalParams\n ): AsyncIterableIterator<AlertIncident> {\n for await (const page of this.listForScopePagingPage(\n scope,\n alertId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get the specified alert incident.\n * @param scope The scope of the alert incident. The scope can be any REST resource instance. For\n * example, use '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/' for a\n * subscription,\n * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}'\n * for a resource group, and\n * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}'\n * for a resource.\n * @param alertId The name of the alert.\n * @param alertIncidentId The name of the alert incident to get.\n * @param options The options parameters.\n */\n get(\n scope: string,\n alertId: string,\n alertIncidentId: string,\n options?: AlertIncidentsGetOptionalParams\n ): Promise<AlertIncidentsGetResponse> {\n return this.client.sendOperationRequest(\n { scope, alertId, alertIncidentId, options },\n getOperationSpec\n );\n }\n\n /**\n * Gets alert incidents for a resource scope.\n * @param scope The scope of the alert incident.\n * @param alertId The name of the alert.\n * @param options The options parameters.\n */\n private _listForScope(\n scope: string,\n alertId: string,\n options?: AlertIncidentsListForScopeOptionalParams\n ): Promise<AlertIncidentsListForScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, alertId, options },\n listForScopeOperationSpec\n );\n }\n\n /**\n * Remediate an alert incident.\n * @param scope The scope of the alert incident.\n * @param alertId The name of the alert.\n * @param alertIncidentId The name of the alert incident to remediate.\n * @param options The options parameters.\n */\n remediate(\n scope: string,\n alertId: string,\n alertIncidentId: string,\n options?: AlertIncidentsRemediateOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { scope, alertId, alertIncidentId, options },\n remediateOperationSpec\n );\n }\n\n /**\n * ListForScopeNext\n * @param scope The scope of the alert incident.\n * @param alertId The name of the alert.\n * @param nextLink The nextLink from the previous successful call to the ListForScope method.\n * @param options The options parameters.\n */\n private _listForScopeNext(\n scope: string,\n alertId: string,\n nextLink: string,\n options?: AlertIncidentsListForScopeNextOptionalParams\n ): Promise<AlertIncidentsListForScopeNextResponse> {\n return this.client.sendOperationRequest(\n { scope, alertId, nextLink, options },\n listForScopeNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/alertIncidents/{alertIncidentId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertIncident\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.alertId,\n Parameters.alertIncidentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listForScopeOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/alertIncidents\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertIncidentListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [Parameters.$host, Parameters.scope, Parameters.alertId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst remediateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/alertIncidents/{alertIncidentId}/remediate\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.alertId,\n Parameters.alertIncidentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listForScopeNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertIncidentListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.scope,\n Parameters.alertId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
|
|
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing AlertOperation operations. */
|
|
12
12
|
export class AlertOperationImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class AlertOperation class.
|
|
15
16
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alertOperation.js","sourceRoot":"","sources":["../../../src/operations/alertOperation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAOtD,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;
|
|
1
|
+
{"version":3,"file":"alertOperation.js","sourceRoot":"","sources":["../../../src/operations/alertOperation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAOtD,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IACZ,MAAM,CAAgC;IAEvD;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,KAAa,EACb,WAAmB,EACnB,OAAyC;QAEzC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,EAC/B,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EACF,wFAAwF;IAC1F,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC;IAC3E,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 { AlertOperation } 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 AlertOperationGetOptionalParams,\n AlertOperationGetResponse\n} from \"../models/index.js\";\n\n/** Class containing AlertOperation operations. */\nexport class AlertOperationImpl implements AlertOperation {\n private readonly client: AuthorizationManagementClient;\n\n /**\n * Initialize a new instance of the class AlertOperation class.\n * @param client Reference to the service client\n */\n constructor(client: AuthorizationManagementClient) {\n this.client = client;\n }\n\n /**\n * Get the specified alert operation.\n * @param scope The scope of the alert operation.\n * @param operationId The id of the alert operation.\n * @param options The options parameters.\n */\n get(\n scope: string,\n operationId: string,\n options?: AlertOperationGetOptionalParams\n ): Promise<AlertOperationGetResponse> {\n return this.client.sendOperationRequest(\n { scope, operationId, options },\n getOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleManagementAlertOperations/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertOperationResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [Parameters.$host, Parameters.scope, Parameters.operationId],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing Alerts operations. */
|
|
17
16
|
export class AlertsImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class Alerts class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -37,52 +37,35 @@ export class AlertsImpl {
|
|
|
37
37
|
return this;
|
|
38
38
|
},
|
|
39
39
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
40
|
+
if (settings?.maxPageSize) {
|
|
41
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
42
|
}
|
|
43
43
|
return this.listForScopePagingPage(scope, options, settings);
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
listForScopePagingPage(scope, options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
47
|
+
async *listForScopePagingPage(scope, options, settings) {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings?.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = await this._listForScope(scope, options);
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield page;
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = await this._listForScopeNext(scope, continuationToken, options);
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield page;
|
|
63
|
+
}
|
|
66
64
|
}
|
|
67
|
-
listForScopePagingAll(scope, options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = __asyncValues(this.listForScopePagingPage(scope, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
65
|
+
async *listForScopePagingAll(scope, options) {
|
|
66
|
+
for await (const page of this.listForScopePagingPage(scope, options)) {
|
|
67
|
+
yield* page;
|
|
68
|
+
}
|
|
86
69
|
}
|
|
87
70
|
/**
|
|
88
71
|
* Get the specified alert.
|
|
@@ -127,14 +110,19 @@ export class AlertsImpl {
|
|
|
127
110
|
return this.client.sendOperationRequest(args, spec);
|
|
128
111
|
};
|
|
129
112
|
const sendOperationFn = async (args, spec) => {
|
|
130
|
-
var _a;
|
|
131
113
|
let currentRawResponse = undefined;
|
|
132
|
-
const providedCallback =
|
|
114
|
+
const providedCallback = args.options?.onResponse;
|
|
133
115
|
const callback = (rawResponse, flatResponse) => {
|
|
134
116
|
currentRawResponse = rawResponse;
|
|
135
|
-
providedCallback
|
|
117
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
118
|
+
};
|
|
119
|
+
const updatedArgs = {
|
|
120
|
+
...args,
|
|
121
|
+
options: {
|
|
122
|
+
...args.options,
|
|
123
|
+
onResponse: callback
|
|
124
|
+
}
|
|
136
125
|
};
|
|
137
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
138
126
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
139
127
|
return {
|
|
140
128
|
flatResponse,
|
|
@@ -151,8 +139,8 @@ export class AlertsImpl {
|
|
|
151
139
|
spec: refreshOperationSpec
|
|
152
140
|
});
|
|
153
141
|
const poller = await createHttpPoller(lro, {
|
|
154
|
-
restoreFrom: options
|
|
155
|
-
intervalInMs: options
|
|
142
|
+
restoreFrom: options?.resumeFrom,
|
|
143
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
156
144
|
resourceLocationConfig: "location"
|
|
157
145
|
});
|
|
158
146
|
await poller.poll();
|
|
@@ -178,14 +166,19 @@ export class AlertsImpl {
|
|
|
178
166
|
return this.client.sendOperationRequest(args, spec);
|
|
179
167
|
};
|
|
180
168
|
const sendOperationFn = async (args, spec) => {
|
|
181
|
-
var _a;
|
|
182
169
|
let currentRawResponse = undefined;
|
|
183
|
-
const providedCallback =
|
|
170
|
+
const providedCallback = args.options?.onResponse;
|
|
184
171
|
const callback = (rawResponse, flatResponse) => {
|
|
185
172
|
currentRawResponse = rawResponse;
|
|
186
|
-
providedCallback
|
|
173
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
174
|
+
};
|
|
175
|
+
const updatedArgs = {
|
|
176
|
+
...args,
|
|
177
|
+
options: {
|
|
178
|
+
...args.options,
|
|
179
|
+
onResponse: callback
|
|
180
|
+
}
|
|
187
181
|
};
|
|
188
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
189
182
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
190
183
|
return {
|
|
191
184
|
flatResponse,
|
|
@@ -202,8 +195,8 @@ export class AlertsImpl {
|
|
|
202
195
|
spec: refreshAllOperationSpec
|
|
203
196
|
});
|
|
204
197
|
const poller = await createHttpPoller(lro, {
|
|
205
|
-
restoreFrom: options
|
|
206
|
-
intervalInMs: options
|
|
198
|
+
restoreFrom: options?.resumeFrom,
|
|
199
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
207
200
|
resourceLocationConfig: "location"
|
|
208
201
|
});
|
|
209
202
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alerts.js","sourceRoot":"","sources":["../../../src/operations/alerts.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;AAEtD,OAAO,EAGL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,C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C,aAAa,EAAE,OAAO,CAAC,uBAAuB;SAC/C;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;YACxC,aAAa,EAAE,OAAO,CAAC,uBAAuB;SAC/C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC;IACnD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,6BAA6B,GAA6B;IAC9D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,KAAK,CAAC;IACxE,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 { Alerts } 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 SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Alert,\n AlertsListForScopeNextOptionalParams,\n AlertsListForScopeOptionalParams,\n AlertsListForScopeResponse,\n AlertsGetOptionalParams,\n AlertsGetResponse,\n AlertsUpdateOptionalParams,\n AlertsRefreshOptionalParams,\n AlertsRefreshResponse,\n AlertsRefreshAllOptionalParams,\n AlertsRefreshAllResponse,\n AlertsListForScopeNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Alerts operations. */\nexport class AlertsImpl implements Alerts {\n private readonly client: AuthorizationManagementClient;\n\n /**\n * Initialize a new instance of the class Alerts class.\n * @param client Reference to the service client\n */\n constructor(client: AuthorizationManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets alerts for a resource scope.\n * @param scope The scope of the alert.\n * @param options The options parameters.\n */\n public listForScope(\n scope: string,\n options?: AlertsListForScopeOptionalParams\n ): PagedAsyncIterableIterator<Alert> {\n const iter = this.listForScopePagingAll(scope, 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.listForScopePagingPage(scope, options, settings);\n }\n };\n }\n\n private async *listForScopePagingPage(\n scope: string,\n options?: AlertsListForScopeOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Alert[]> {\n let result: AlertsListForScopeResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listForScope(scope, 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._listForScopeNext(scope, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listForScopePagingAll(\n scope: string,\n options?: AlertsListForScopeOptionalParams\n ): AsyncIterableIterator<Alert> {\n for await (const page of this.listForScopePagingPage(scope, options)) {\n yield* page;\n }\n }\n\n /**\n * Get the specified alert.\n * @param scope The scope of the alert. The scope can be any REST resource instance. For example, use\n * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/' for a subscription,\n * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}'\n * for a resource group, and\n * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}'\n * for a resource.\n * @param alertId The name of the alert to get.\n * @param options The options parameters.\n */\n get(\n scope: string,\n alertId: string,\n options?: AlertsGetOptionalParams\n ): Promise<AlertsGetResponse> {\n return this.client.sendOperationRequest(\n { scope, alertId, options },\n getOperationSpec\n );\n }\n\n /**\n * Update an alert.\n * @param scope The scope of the alert.\n * @param alertId The name of the alert to dismiss.\n * @param parameters Parameters for the alert.\n * @param options The options parameters.\n */\n update(\n scope: string,\n alertId: string,\n parameters: Alert,\n options?: AlertsUpdateOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { scope, alertId, parameters, options },\n updateOperationSpec\n );\n }\n\n /**\n * Gets alerts for a resource scope.\n * @param scope The scope of the alert.\n * @param options The options parameters.\n */\n private _listForScope(\n scope: string,\n options?: AlertsListForScopeOptionalParams\n ): Promise<AlertsListForScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listForScopeOperationSpec\n );\n }\n\n /**\n * Refresh an alert.\n * @param scope The scope of the alert.\n * @param alertId The name of the alert to refresh.\n * @param options The options parameters.\n */\n async beginRefresh(\n scope: string,\n alertId: string,\n options?: AlertsRefreshOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<AlertsRefreshResponse>,\n AlertsRefreshResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<AlertsRefreshResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { scope, alertId, options },\n spec: refreshOperationSpec\n });\n const poller = await createHttpPoller<\n AlertsRefreshResponse,\n OperationState<AlertsRefreshResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Refresh an alert.\n * @param scope The scope of the alert.\n * @param alertId The name of the alert to refresh.\n * @param options The options parameters.\n */\n async beginRefreshAndWait(\n scope: string,\n alertId: string,\n options?: AlertsRefreshOptionalParams\n ): Promise<AlertsRefreshResponse> {\n const poller = await this.beginRefresh(scope, alertId, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Refresh all alerts for a resource scope.\n * @param scope The scope of the alert.\n * @param options The options parameters.\n */\n async beginRefreshAll(\n scope: string,\n options?: AlertsRefreshAllOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<AlertsRefreshAllResponse>,\n AlertsRefreshAllResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<AlertsRefreshAllResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { scope, options },\n spec: refreshAllOperationSpec\n });\n const poller = await createHttpPoller<\n AlertsRefreshAllResponse,\n OperationState<AlertsRefreshAllResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Refresh all alerts for a resource scope.\n * @param scope The scope of the alert.\n * @param options The options parameters.\n */\n async beginRefreshAllAndWait(\n scope: string,\n options?: AlertsRefreshAllOptionalParams\n ): Promise<AlertsRefreshAllResponse> {\n const poller = await this.beginRefreshAll(scope, options);\n return poller.pollUntilDone();\n }\n\n /**\n * ListForScopeNext\n * @param scope The scope of the alert.\n * @param nextLink The nextLink from the previous successful call to the ListForScope method.\n * @param options The options parameters.\n */\n private _listForScopeNext(\n scope: string,\n nextLink: string,\n options?: AlertsListForScopeNextOptionalParams\n ): Promise<AlertsListForScopeNextResponse> {\n return this.client.sendOperationRequest(\n { scope, nextLink, options },\n listForScopeNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Alert\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [Parameters.$host, Parameters.scope, Parameters.alertId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}\",\n httpMethod: \"PATCH\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters5,\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [Parameters.$host, Parameters.scope, Parameters.alertId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listForScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst refreshOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/refresh\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertOperationResult,\n headersMapper: Mappers.AlertsRefreshHeaders\n },\n 201: {\n bodyMapper: Mappers.AlertOperationResult,\n headersMapper: Mappers.AlertsRefreshHeaders\n },\n 202: {\n bodyMapper: Mappers.AlertOperationResult,\n headersMapper: Mappers.AlertsRefreshHeaders\n },\n 204: {\n bodyMapper: Mappers.AlertOperationResult,\n headersMapper: Mappers.AlertsRefreshHeaders\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [Parameters.$host, Parameters.scope, Parameters.alertId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst refreshAllOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/refresh\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertOperationResult,\n headersMapper: Mappers.AlertsRefreshAllHeaders\n },\n 201: {\n bodyMapper: Mappers.AlertOperationResult,\n headersMapper: Mappers.AlertsRefreshAllHeaders\n },\n 202: {\n bodyMapper: Mappers.AlertOperationResult,\n headersMapper: Mappers.AlertsRefreshAllHeaders\n },\n 204: {\n bodyMapper: Mappers.AlertOperationResult,\n headersMapper: Mappers.AlertsRefreshAllHeaders\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listForScopeNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"alerts.js","sourceRoot":"","sources":["../../../src/operations/alerts.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;AAEtD,OAAO,EAGL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAgB9C,4CAA4C;AAC5C,0CAA0C;AAC1C,MAAM,OAAO,UAAU;IACJ,MAAM,CAAgC;IAEvD;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB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YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,KAAK,CAAC;IACxE,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 { Alerts } 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 SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Alert,\n AlertsListForScopeNextOptionalParams,\n AlertsListForScopeOptionalParams,\n AlertsListForScopeResponse,\n AlertsGetOptionalParams,\n AlertsGetResponse,\n AlertsUpdateOptionalParams,\n AlertsRefreshOptionalParams,\n AlertsRefreshResponse,\n AlertsRefreshAllOptionalParams,\n AlertsRefreshAllResponse,\n AlertsListForScopeNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Alerts operations. */\nexport class AlertsImpl implements Alerts {\n private readonly client: AuthorizationManagementClient;\n\n /**\n * Initialize a new instance of the class Alerts class.\n * @param client Reference to the service client\n */\n constructor(client: AuthorizationManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets alerts for a resource scope.\n * @param scope The scope of the alert.\n * @param options The options parameters.\n */\n public listForScope(\n scope: string,\n options?: AlertsListForScopeOptionalParams\n ): PagedAsyncIterableIterator<Alert> {\n const iter = this.listForScopePagingAll(scope, 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.listForScopePagingPage(scope, options, settings);\n }\n };\n }\n\n private async *listForScopePagingPage(\n scope: string,\n options?: AlertsListForScopeOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Alert[]> {\n let result: AlertsListForScopeResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listForScope(scope, 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._listForScopeNext(scope, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listForScopePagingAll(\n scope: string,\n options?: AlertsListForScopeOptionalParams\n ): AsyncIterableIterator<Alert> {\n for await (const page of this.listForScopePagingPage(scope, options)) {\n yield* page;\n }\n }\n\n /**\n * Get the specified alert.\n * @param scope The scope of the alert. The scope can be any REST resource instance. For example, use\n * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/' for a subscription,\n * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}'\n * for a resource group, and\n * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}'\n * for a resource.\n * @param alertId The name of the alert to get.\n * @param options The options parameters.\n */\n get(\n scope: string,\n alertId: string,\n options?: AlertsGetOptionalParams\n ): Promise<AlertsGetResponse> {\n return this.client.sendOperationRequest(\n { scope, alertId, options },\n getOperationSpec\n );\n }\n\n /**\n * Update an alert.\n * @param scope The scope of the alert.\n * @param alertId The name of the alert to dismiss.\n * @param parameters Parameters for the alert.\n * @param options The options parameters.\n */\n update(\n scope: string,\n alertId: string,\n parameters: Alert,\n options?: AlertsUpdateOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { scope, alertId, parameters, options },\n updateOperationSpec\n );\n }\n\n /**\n * Gets alerts for a resource scope.\n * @param scope The scope of the alert.\n * @param options The options parameters.\n */\n private _listForScope(\n scope: string,\n options?: AlertsListForScopeOptionalParams\n ): Promise<AlertsListForScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listForScopeOperationSpec\n );\n }\n\n /**\n * Refresh an alert.\n * @param scope The scope of the alert.\n * @param alertId The name of the alert to refresh.\n * @param options The options parameters.\n */\n async beginRefresh(\n scope: string,\n alertId: string,\n options?: AlertsRefreshOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<AlertsRefreshResponse>,\n AlertsRefreshResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<AlertsRefreshResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { scope, alertId, options },\n spec: refreshOperationSpec\n });\n const poller = await createHttpPoller<\n AlertsRefreshResponse,\n OperationState<AlertsRefreshResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Refresh an alert.\n * @param scope The scope of the alert.\n * @param alertId The name of the alert to refresh.\n * @param options The options parameters.\n */\n async beginRefreshAndWait(\n scope: string,\n alertId: string,\n options?: AlertsRefreshOptionalParams\n ): Promise<AlertsRefreshResponse> {\n const poller = await this.beginRefresh(scope, alertId, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Refresh all alerts for a resource scope.\n * @param scope The scope of the alert.\n * @param options The options parameters.\n */\n async beginRefreshAll(\n scope: string,\n options?: AlertsRefreshAllOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<AlertsRefreshAllResponse>,\n AlertsRefreshAllResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<AlertsRefreshAllResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { scope, options },\n spec: refreshAllOperationSpec\n });\n const poller = await createHttpPoller<\n AlertsRefreshAllResponse,\n OperationState<AlertsRefreshAllResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Refresh all alerts for a resource scope.\n * @param scope The scope of the alert.\n * @param options The options parameters.\n */\n async beginRefreshAllAndWait(\n scope: string,\n options?: AlertsRefreshAllOptionalParams\n ): Promise<AlertsRefreshAllResponse> {\n const poller = await this.beginRefreshAll(scope, options);\n return poller.pollUntilDone();\n }\n\n /**\n * ListForScopeNext\n * @param scope The scope of the alert.\n * @param nextLink The nextLink from the previous successful call to the ListForScope method.\n * @param options The options parameters.\n */\n private _listForScopeNext(\n scope: string,\n nextLink: string,\n options?: AlertsListForScopeNextOptionalParams\n ): Promise<AlertsListForScopeNextResponse> {\n return this.client.sendOperationRequest(\n { scope, nextLink, options },\n listForScopeNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Alert\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [Parameters.$host, Parameters.scope, Parameters.alertId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}\",\n httpMethod: \"PATCH\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters5,\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [Parameters.$host, Parameters.scope, Parameters.alertId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listForScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst refreshOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/refresh\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertOperationResult,\n headersMapper: Mappers.AlertsRefreshHeaders\n },\n 201: {\n bodyMapper: Mappers.AlertOperationResult,\n headersMapper: Mappers.AlertsRefreshHeaders\n },\n 202: {\n bodyMapper: Mappers.AlertOperationResult,\n headersMapper: Mappers.AlertsRefreshHeaders\n },\n 204: {\n bodyMapper: Mappers.AlertOperationResult,\n headersMapper: Mappers.AlertsRefreshHeaders\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [Parameters.$host, Parameters.scope, Parameters.alertId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst refreshAllOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/refresh\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertOperationResult,\n headersMapper: Mappers.AlertsRefreshAllHeaders\n },\n 201: {\n bodyMapper: Mappers.AlertOperationResult,\n headersMapper: Mappers.AlertsRefreshAllHeaders\n },\n 202: {\n bodyMapper: Mappers.AlertOperationResult,\n headersMapper: Mappers.AlertsRefreshAllHeaders\n },\n 204: {\n bodyMapper: Mappers.AlertOperationResult,\n headersMapper: Mappers.AlertsRefreshAllHeaders\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listForScopeNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing ClassicAdministrators operations. */
|
|
15
14
|
export class ClassicAdministratorsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class ClassicAdministrators class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -34,52 +34,35 @@ export class ClassicAdministratorsImpl {
|
|
|
34
34
|
return this;
|
|
35
35
|
},
|
|
36
36
|
byPage: (settings) => {
|
|
37
|
-
if (settings
|
|
37
|
+
if (settings?.maxPageSize) {
|
|
38
38
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
39
39
|
}
|
|
40
40
|
return this.listPagingPage(options, settings);
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
listPagingPage(options, settings) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
});
|
|
44
|
+
async *listPagingPage(options, settings) {
|
|
45
|
+
let result;
|
|
46
|
+
let continuationToken = settings?.continuationToken;
|
|
47
|
+
if (!continuationToken) {
|
|
48
|
+
result = await this._list(options);
|
|
49
|
+
let page = result.value || [];
|
|
50
|
+
continuationToken = result.nextLink;
|
|
51
|
+
setContinuationToken(page, continuationToken);
|
|
52
|
+
yield page;
|
|
53
|
+
}
|
|
54
|
+
while (continuationToken) {
|
|
55
|
+
result = await this._listNext(continuationToken, options);
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
setContinuationToken(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
63
61
|
}
|
|
64
|
-
listPagingAll(options) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
-
});
|
|
62
|
+
async *listPagingAll(options) {
|
|
63
|
+
for await (const page of this.listPagingPage(options)) {
|
|
64
|
+
yield* page;
|
|
65
|
+
}
|
|
83
66
|
}
|
|
84
67
|
/**
|
|
85
68
|
* Gets service administrator, account administrator, and co-administrators for the subscription.
|