@azure/arm-authorization 10.0.0-alpha.20250619.1 → 10.0.0-alpha.20250718.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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.api.md → arm-authorization-node.api.md} +0 -0
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing AlertIncidents operations. */
|
|
18
18
|
class AlertIncidentsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class AlertIncidents class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -39,52 +40,35 @@ class AlertIncidentsImpl {
|
|
|
39
40
|
return this;
|
|
40
41
|
},
|
|
41
42
|
byPage: (settings) => {
|
|
42
|
-
if (settings
|
|
43
|
+
if (settings?.maxPageSize) {
|
|
43
44
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
45
|
}
|
|
45
46
|
return this.listForScopePagingPage(scope, alertId, options, settings);
|
|
46
47
|
}
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
listForScopePagingPage(scope, alertId, options, settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
});
|
|
50
|
+
async *listForScopePagingPage(scope, alertId, options, settings) {
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings?.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = await this._listForScope(scope, alertId, options);
|
|
55
|
+
let page = result.value || [];
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
58
|
+
yield page;
|
|
59
|
+
}
|
|
60
|
+
while (continuationToken) {
|
|
61
|
+
result = await this._listForScopeNext(scope, alertId, continuationToken, options);
|
|
62
|
+
continuationToken = result.nextLink;
|
|
63
|
+
let page = result.value || [];
|
|
64
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
65
|
+
yield page;
|
|
66
|
+
}
|
|
68
67
|
}
|
|
69
|
-
listForScopePagingAll(scope, alertId, options) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listForScopePagingPage(scope, alertId, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
74
|
-
_c = _f.value;
|
|
75
|
-
_d = false;
|
|
76
|
-
const page = _c;
|
|
77
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
-
finally {
|
|
82
|
-
try {
|
|
83
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
84
|
-
}
|
|
85
|
-
finally { if (e_1) throw e_1.error; }
|
|
86
|
-
}
|
|
87
|
-
});
|
|
68
|
+
async *listForScopePagingAll(scope, alertId, options) {
|
|
69
|
+
for await (const page of this.listForScopePagingPage(scope, alertId, options)) {
|
|
70
|
+
yield* page;
|
|
71
|
+
}
|
|
88
72
|
}
|
|
89
73
|
/**
|
|
90
74
|
* Get the specified alert incident.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alertIncidents.js","sourceRoot":"","sources":["../../../src/operations/alertIncidents.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAatD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAa,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,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,sBAAsB,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;YACxE,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,sBAAsB,CACnC,KAAa,EACb,OAAe,EACf,OAAkD,EAClD,QAAuB;;YAEvB,IAAI,MAA0C,CAAC;YAC/C,IAAI,iBAAiB,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,iBAAiB,CAAC;YACpD,IAAI,CAAC,iBAAiB,EAAE,CAAC;gBACvB,MAAM,GAAG,sBAAM,IAAI,CAAC,aAAa,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,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,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAatD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAa,kBAAkB;IACZ,MAAM,CAAgC;IAEvD;;;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,EAAE,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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"]}
|
|
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
|
14
14
|
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
15
|
/** Class containing AlertOperation operations. */
|
|
16
16
|
class AlertOperationImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class AlertOperation class.
|
|
19
20
|
* @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,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,kDAAkD;AAClD,MAAa,kBAAkB;
|
|
1
|
+
{"version":3,"file":"alertOperation.js","sourceRoot":"","sources":["../../../src/operations/alertOperation.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,kDAAkD;AAClD,MAAa,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;AA3BD,gDA2BC;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"]}
|
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing Alerts operations. */
|
|
20
20
|
class AlertsImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class Alerts class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -40,52 +41,35 @@ class AlertsImpl {
|
|
|
40
41
|
return this;
|
|
41
42
|
},
|
|
42
43
|
byPage: (settings) => {
|
|
43
|
-
if (settings
|
|
44
|
+
if (settings?.maxPageSize) {
|
|
44
45
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
45
46
|
}
|
|
46
47
|
return this.listForScopePagingPage(scope, options, settings);
|
|
47
48
|
}
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
|
-
listForScopePagingPage(scope, options, settings) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
});
|
|
51
|
+
async *listForScopePagingPage(scope, options, settings) {
|
|
52
|
+
let result;
|
|
53
|
+
let continuationToken = settings?.continuationToken;
|
|
54
|
+
if (!continuationToken) {
|
|
55
|
+
result = await this._listForScope(scope, options);
|
|
56
|
+
let page = result.value || [];
|
|
57
|
+
continuationToken = result.nextLink;
|
|
58
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
61
|
+
while (continuationToken) {
|
|
62
|
+
result = await this._listForScopeNext(scope, continuationToken, options);
|
|
63
|
+
continuationToken = result.nextLink;
|
|
64
|
+
let page = result.value || [];
|
|
65
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
66
|
+
yield page;
|
|
67
|
+
}
|
|
69
68
|
}
|
|
70
|
-
listForScopePagingAll(scope, options) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listForScopePagingPage(scope, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
75
|
-
_c = _f.value;
|
|
76
|
-
_d = false;
|
|
77
|
-
const page = _c;
|
|
78
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
82
|
-
finally {
|
|
83
|
-
try {
|
|
84
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
85
|
-
}
|
|
86
|
-
finally { if (e_1) throw e_1.error; }
|
|
87
|
-
}
|
|
88
|
-
});
|
|
69
|
+
async *listForScopePagingAll(scope, options) {
|
|
70
|
+
for await (const page of this.listForScopePagingPage(scope, options)) {
|
|
71
|
+
yield* page;
|
|
72
|
+
}
|
|
89
73
|
}
|
|
90
74
|
/**
|
|
91
75
|
* Get the specified alert.
|
|
@@ -130,14 +114,19 @@ class AlertsImpl {
|
|
|
130
114
|
return this.client.sendOperationRequest(args, spec);
|
|
131
115
|
};
|
|
132
116
|
const sendOperationFn = async (args, spec) => {
|
|
133
|
-
var _a;
|
|
134
117
|
let currentRawResponse = undefined;
|
|
135
|
-
const providedCallback =
|
|
118
|
+
const providedCallback = args.options?.onResponse;
|
|
136
119
|
const callback = (rawResponse, flatResponse) => {
|
|
137
120
|
currentRawResponse = rawResponse;
|
|
138
|
-
providedCallback
|
|
121
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
122
|
+
};
|
|
123
|
+
const updatedArgs = {
|
|
124
|
+
...args,
|
|
125
|
+
options: {
|
|
126
|
+
...args.options,
|
|
127
|
+
onResponse: callback
|
|
128
|
+
}
|
|
139
129
|
};
|
|
140
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
141
130
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
142
131
|
return {
|
|
143
132
|
flatResponse,
|
|
@@ -154,8 +143,8 @@ class AlertsImpl {
|
|
|
154
143
|
spec: refreshOperationSpec
|
|
155
144
|
});
|
|
156
145
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
157
|
-
restoreFrom: options
|
|
158
|
-
intervalInMs: options
|
|
146
|
+
restoreFrom: options?.resumeFrom,
|
|
147
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
159
148
|
resourceLocationConfig: "location"
|
|
160
149
|
});
|
|
161
150
|
await poller.poll();
|
|
@@ -181,14 +170,19 @@ class AlertsImpl {
|
|
|
181
170
|
return this.client.sendOperationRequest(args, spec);
|
|
182
171
|
};
|
|
183
172
|
const sendOperationFn = async (args, spec) => {
|
|
184
|
-
var _a;
|
|
185
173
|
let currentRawResponse = undefined;
|
|
186
|
-
const providedCallback =
|
|
174
|
+
const providedCallback = args.options?.onResponse;
|
|
187
175
|
const callback = (rawResponse, flatResponse) => {
|
|
188
176
|
currentRawResponse = rawResponse;
|
|
189
|
-
providedCallback
|
|
177
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
178
|
+
};
|
|
179
|
+
const updatedArgs = {
|
|
180
|
+
...args,
|
|
181
|
+
options: {
|
|
182
|
+
...args.options,
|
|
183
|
+
onResponse: callback
|
|
184
|
+
}
|
|
190
185
|
};
|
|
191
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
192
186
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
193
187
|
return {
|
|
194
188
|
flatResponse,
|
|
@@ -205,8 +199,8 @@ class AlertsImpl {
|
|
|
205
199
|
spec: refreshAllOperationSpec
|
|
206
200
|
});
|
|
207
201
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
208
|
-
restoreFrom: options
|
|
209
|
-
intervalInMs: options
|
|
202
|
+
restoreFrom: options?.resumeFrom,
|
|
203
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
210
204
|
resourceLocationConfig: "location"
|
|
211
205
|
});
|
|
212
206
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"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AC,oBAAoB;YACxC,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,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;YACxC,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,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAgB9C,4CAA4C;AAC5C,0CAA0C;AAC1C,MAAa,UAAU;IACJ,MAAM,CAAgC;IAEvD;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM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rC,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"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing ClassicAdministrators operations. */
|
|
18
18
|
class ClassicAdministratorsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class ClassicAdministrators class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -37,52 +38,35 @@ class ClassicAdministratorsImpl {
|
|
|
37
38
|
return this;
|
|
38
39
|
},
|
|
39
40
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
41
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
43
|
}
|
|
43
44
|
return this.listPagingPage(options, settings);
|
|
44
45
|
}
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
|
-
listPagingPage(options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
48
|
+
async *listPagingPage(options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._list(options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._listNext(continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
66
65
|
}
|
|
67
|
-
listPagingAll(options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__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 tslib_1.__await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
66
|
+
async *listPagingAll(options) {
|
|
67
|
+
for await (const page of this.listPagingPage(options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
86
70
|
}
|
|
87
71
|
/**
|
|
88
72
|
* Gets service administrator, account administrator, and co-administrators for the subscription.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classicAdministrators.js","sourceRoot":"","sources":["../../../src/operations/classicAdministrators.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,yDAAyD;AACzD,MAAa,yBAAyB;
|
|
1
|
+
{"version":3,"file":"classicAdministrators.js","sourceRoot":"","sources":["../../../src/operations/classicAdministrators.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,yDAAyD;AACzD,MAAa,yBAAyB;IACnB,MAAM,CAAgC;IAEvD;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAiD;QAEjD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,OAAiD,EACjD,QAAuB;QAEvB,IAAI,MAAyC,CAAC;QAC9C,IAAI,iBAAiB,GAAG,QAAQ,EAAE,iBAAiB,CAAC;QACpD,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACvB,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YACnC,IAAI,IAAI,GAAG,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC;YAC9B,iBAAiB,GAA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AA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;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 { ClassicAdministrators } 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 ClassicAdministrator,\n ClassicAdministratorsListNextOptionalParams,\n ClassicAdministratorsListOptionalParams,\n ClassicAdministratorsListResponse,\n ClassicAdministratorsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ClassicAdministrators operations. */\nexport class ClassicAdministratorsImpl implements ClassicAdministrators {\n private readonly client: AuthorizationManagementClient;\n\n /**\n * Initialize a new instance of the class ClassicAdministrators class.\n * @param client Reference to the service client\n */\n constructor(client: AuthorizationManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets service administrator, account administrator, and co-administrators for the subscription.\n * @param options The options parameters.\n */\n public list(\n options?: ClassicAdministratorsListOptionalParams\n ): PagedAsyncIterableIterator<ClassicAdministrator> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: ClassicAdministratorsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ClassicAdministrator[]> {\n let result: ClassicAdministratorsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: ClassicAdministratorsListOptionalParams\n ): AsyncIterableIterator<ClassicAdministrator> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets service administrator, account administrator, and co-administrators for the subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: ClassicAdministratorsListOptionalParams\n ): Promise<ClassicAdministratorsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: ClassicAdministratorsListNextOptionalParams\n ): Promise<ClassicAdministratorsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/classicAdministrators\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ClassicAdministratorListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ClassicAdministratorListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|