@azure/arm-security 6.0.0-alpha.20250718.1 → 6.0.0-alpha.20250730.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +1479 -655
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/aPICollections.js +78 -124
- package/dist/browser/operations/aPICollections.js.map +1 -1
- package/dist/browser/operations/adaptiveApplicationControls.js +1 -0
- package/dist/browser/operations/adaptiveApplicationControls.js.map +1 -1
- package/dist/browser/operations/adaptiveNetworkHardenings.js +34 -46
- package/dist/browser/operations/adaptiveNetworkHardenings.js.map +1 -1
- package/dist/browser/operations/advancedThreatProtection.js +1 -0
- package/dist/browser/operations/advancedThreatProtection.js.map +1 -1
- package/dist/browser/operations/alerts.js +104 -167
- package/dist/browser/operations/alerts.js.map +1 -1
- package/dist/browser/operations/alertsSuppressionRules.js +23 -40
- package/dist/browser/operations/alertsSuppressionRules.js.map +1 -1
- package/dist/browser/operations/allowedConnections.js +45 -79
- package/dist/browser/operations/allowedConnections.js.map +1 -1
- package/dist/browser/operations/applicationOperations.js +1 -0
- package/dist/browser/operations/applicationOperations.js.map +1 -1
- package/dist/browser/operations/applications.js +23 -40
- package/dist/browser/operations/applications.js.map +1 -1
- package/dist/browser/operations/assessments.js +23 -40
- package/dist/browser/operations/assessments.js.map +1 -1
- package/dist/browser/operations/assessmentsMetadata.js +45 -79
- package/dist/browser/operations/assessmentsMetadata.js.map +1 -1
- package/dist/browser/operations/autoProvisioningSettings.js +23 -40
- package/dist/browser/operations/autoProvisioningSettings.js.map +1 -1
- package/dist/browser/operations/automations.js +45 -79
- package/dist/browser/operations/automations.js.map +1 -1
- package/dist/browser/operations/azureDevOpsOrgs.js +45 -52
- package/dist/browser/operations/azureDevOpsOrgs.js.map +1 -1
- package/dist/browser/operations/azureDevOpsProjects.js +45 -52
- package/dist/browser/operations/azureDevOpsProjects.js.map +1 -1
- package/dist/browser/operations/azureDevOpsRepos.js +45 -52
- package/dist/browser/operations/azureDevOpsRepos.js.map +1 -1
- package/dist/browser/operations/complianceResults.js +23 -40
- package/dist/browser/operations/complianceResults.js.map +1 -1
- package/dist/browser/operations/compliances.js +23 -40
- package/dist/browser/operations/compliances.js.map +1 -1
- package/dist/browser/operations/connectors.js +23 -40
- package/dist/browser/operations/connectors.js.map +1 -1
- package/dist/browser/operations/customAssessmentAutomations.js +45 -79
- package/dist/browser/operations/customAssessmentAutomations.js.map +1 -1
- package/dist/browser/operations/customEntityStoreAssignments.js +45 -79
- package/dist/browser/operations/customEntityStoreAssignments.js.map +1 -1
- package/dist/browser/operations/defenderForStorage.js +1 -0
- package/dist/browser/operations/defenderForStorage.js.map +1 -1
- package/dist/browser/operations/devOpsConfigurations.js +56 -58
- package/dist/browser/operations/devOpsConfigurations.js.map +1 -1
- package/dist/browser/operations/devOpsOperationResults.js +1 -0
- package/dist/browser/operations/devOpsOperationResults.js.map +1 -1
- package/dist/browser/operations/deviceSecurityGroups.js +23 -40
- package/dist/browser/operations/deviceSecurityGroups.js.map +1 -1
- package/dist/browser/operations/discoveredSecuritySolutions.js +45 -79
- package/dist/browser/operations/discoveredSecuritySolutions.js.map +1 -1
- package/dist/browser/operations/externalSecuritySolutions.js +45 -79
- package/dist/browser/operations/externalSecuritySolutions.js.map +1 -1
- package/dist/browser/operations/gitHubOwners.js +23 -40
- package/dist/browser/operations/gitHubOwners.js.map +1 -1
- package/dist/browser/operations/gitHubRepos.js +23 -40
- package/dist/browser/operations/gitHubRepos.js.map +1 -1
- package/dist/browser/operations/gitLabGroups.js +23 -40
- package/dist/browser/operations/gitLabGroups.js.map +1 -1
- package/dist/browser/operations/gitLabProjects.js +23 -40
- package/dist/browser/operations/gitLabProjects.js.map +1 -1
- package/dist/browser/operations/gitLabSubgroups.js +1 -0
- package/dist/browser/operations/gitLabSubgroups.js.map +1 -1
- package/dist/browser/operations/governanceAssignments.js +23 -40
- package/dist/browser/operations/governanceAssignments.js.map +1 -1
- package/dist/browser/operations/governanceRules.js +45 -52
- package/dist/browser/operations/governanceRules.js.map +1 -1
- package/dist/browser/operations/healthReports.js +23 -40
- package/dist/browser/operations/healthReports.js.map +1 -1
- package/dist/browser/operations/informationProtectionPolicies.js +23 -40
- package/dist/browser/operations/informationProtectionPolicies.js.map +1 -1
- package/dist/browser/operations/iotSecuritySolution.js +45 -79
- package/dist/browser/operations/iotSecuritySolution.js.map +1 -1
- package/dist/browser/operations/iotSecuritySolutionAnalytics.js +1 -0
- package/dist/browser/operations/iotSecuritySolutionAnalytics.js.map +1 -1
- package/dist/browser/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.js +23 -40
- package/dist/browser/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.js.map +1 -1
- package/dist/browser/operations/iotSecuritySolutionsAnalyticsRecommendation.js +23 -40
- package/dist/browser/operations/iotSecuritySolutionsAnalyticsRecommendation.js.map +1 -1
- package/dist/browser/operations/jitNetworkAccessPolicies.js +89 -157
- package/dist/browser/operations/jitNetworkAccessPolicies.js.map +1 -1
- package/dist/browser/operations/locations.js +23 -40
- package/dist/browser/operations/locations.js.map +1 -1
- package/dist/browser/operations/mdeOnboardings.js +1 -0
- package/dist/browser/operations/mdeOnboardings.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/pricings.js +1 -0
- package/dist/browser/operations/pricings.js.map +1 -1
- package/dist/browser/operations/regulatoryComplianceAssessments.js +23 -40
- package/dist/browser/operations/regulatoryComplianceAssessments.js.map +1 -1
- package/dist/browser/operations/regulatoryComplianceControls.js +23 -40
- package/dist/browser/operations/regulatoryComplianceControls.js.map +1 -1
- package/dist/browser/operations/regulatoryComplianceStandards.js +23 -40
- package/dist/browser/operations/regulatoryComplianceStandards.js.map +1 -1
- package/dist/browser/operations/secureScoreControlDefinitions.js +45 -79
- package/dist/browser/operations/secureScoreControlDefinitions.js.map +1 -1
- package/dist/browser/operations/secureScoreControls.js +45 -79
- package/dist/browser/operations/secureScoreControls.js.map +1 -1
- package/dist/browser/operations/secureScores.js +23 -40
- package/dist/browser/operations/secureScores.js.map +1 -1
- package/dist/browser/operations/securityConnectorApplication.js +1 -0
- package/dist/browser/operations/securityConnectorApplication.js.map +1 -1
- package/dist/browser/operations/securityConnectorApplications.js +23 -40
- package/dist/browser/operations/securityConnectorApplications.js.map +1 -1
- package/dist/browser/operations/securityConnectors.js +45 -79
- package/dist/browser/operations/securityConnectors.js.map +1 -1
- package/dist/browser/operations/securityContacts.js +23 -40
- package/dist/browser/operations/securityContacts.js.map +1 -1
- package/dist/browser/operations/securityOperators.js +1 -0
- package/dist/browser/operations/securityOperators.js.map +1 -1
- package/dist/browser/operations/securitySolutions.js +23 -40
- package/dist/browser/operations/securitySolutions.js.map +1 -1
- package/dist/browser/operations/securitySolutionsReferenceDataOperations.js +1 -0
- package/dist/browser/operations/securitySolutionsReferenceDataOperations.js.map +1 -1
- package/dist/browser/operations/sensitivitySettings.js +1 -0
- package/dist/browser/operations/sensitivitySettings.js.map +1 -1
- package/dist/browser/operations/serverVulnerabilityAssessmentOperations.js +12 -6
- package/dist/browser/operations/serverVulnerabilityAssessmentOperations.js.map +1 -1
- package/dist/browser/operations/serverVulnerabilityAssessmentsSettings.js +23 -40
- package/dist/browser/operations/serverVulnerabilityAssessmentsSettings.js.map +1 -1
- package/dist/browser/operations/settings.js +23 -40
- package/dist/browser/operations/settings.js.map +1 -1
- package/dist/browser/operations/softwareInventories.js +45 -79
- package/dist/browser/operations/softwareInventories.js.map +1 -1
- package/dist/browser/operations/sqlVulnerabilityAssessmentBaselineRules.js +1 -0
- package/dist/browser/operations/sqlVulnerabilityAssessmentBaselineRules.js.map +1 -1
- package/dist/browser/operations/sqlVulnerabilityAssessmentScanResults.js +1 -0
- package/dist/browser/operations/sqlVulnerabilityAssessmentScanResults.js.map +1 -1
- package/dist/browser/operations/sqlVulnerabilityAssessmentScans.js +1 -0
- package/dist/browser/operations/sqlVulnerabilityAssessmentScans.js.map +1 -1
- package/dist/browser/operations/subAssessments.js +45 -79
- package/dist/browser/operations/subAssessments.js.map +1 -1
- package/dist/browser/operations/tasks.js +67 -118
- package/dist/browser/operations/tasks.js.map +1 -1
- package/dist/browser/operations/topology.js +45 -79
- package/dist/browser/operations/topology.js.map +1 -1
- package/dist/browser/operations/workspaceSettings.js +23 -40
- package/dist/browser/operations/workspaceSettings.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/securityCenter.js +82 -5
- package/dist/browser/securityCenter.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 +1479 -655
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/aPICollections.js +78 -123
- package/dist/commonjs/operations/aPICollections.js.map +1 -1
- package/dist/commonjs/operations/adaptiveApplicationControls.js +1 -0
- package/dist/commonjs/operations/adaptiveApplicationControls.js.map +1 -1
- package/dist/commonjs/operations/adaptiveNetworkHardenings.js +34 -45
- package/dist/commonjs/operations/adaptiveNetworkHardenings.js.map +1 -1
- package/dist/commonjs/operations/advancedThreatProtection.js +1 -0
- package/dist/commonjs/operations/advancedThreatProtection.js.map +1 -1
- package/dist/commonjs/operations/alerts.js +104 -166
- package/dist/commonjs/operations/alerts.js.map +1 -1
- package/dist/commonjs/operations/alertsSuppressionRules.js +23 -39
- package/dist/commonjs/operations/alertsSuppressionRules.js.map +1 -1
- package/dist/commonjs/operations/allowedConnections.js +45 -78
- package/dist/commonjs/operations/allowedConnections.js.map +1 -1
- package/dist/commonjs/operations/applicationOperations.js +1 -0
- package/dist/commonjs/operations/applicationOperations.js.map +1 -1
- package/dist/commonjs/operations/applications.js +23 -39
- package/dist/commonjs/operations/applications.js.map +1 -1
- package/dist/commonjs/operations/assessments.js +23 -39
- package/dist/commonjs/operations/assessments.js.map +1 -1
- package/dist/commonjs/operations/assessmentsMetadata.js +45 -78
- package/dist/commonjs/operations/assessmentsMetadata.js.map +1 -1
- package/dist/commonjs/operations/autoProvisioningSettings.js +23 -39
- package/dist/commonjs/operations/autoProvisioningSettings.js.map +1 -1
- package/dist/commonjs/operations/automations.js +45 -78
- package/dist/commonjs/operations/automations.js.map +1 -1
- package/dist/commonjs/operations/azureDevOpsOrgs.js +45 -51
- package/dist/commonjs/operations/azureDevOpsOrgs.js.map +1 -1
- package/dist/commonjs/operations/azureDevOpsProjects.js +45 -51
- package/dist/commonjs/operations/azureDevOpsProjects.js.map +1 -1
- package/dist/commonjs/operations/azureDevOpsRepos.js +45 -51
- package/dist/commonjs/operations/azureDevOpsRepos.js.map +1 -1
- package/dist/commonjs/operations/complianceResults.js +23 -39
- package/dist/commonjs/operations/complianceResults.js.map +1 -1
- package/dist/commonjs/operations/compliances.js +23 -39
- package/dist/commonjs/operations/compliances.js.map +1 -1
- package/dist/commonjs/operations/connectors.js +23 -39
- package/dist/commonjs/operations/connectors.js.map +1 -1
- package/dist/commonjs/operations/customAssessmentAutomations.js +45 -78
- package/dist/commonjs/operations/customAssessmentAutomations.js.map +1 -1
- package/dist/commonjs/operations/customEntityStoreAssignments.js +45 -78
- package/dist/commonjs/operations/customEntityStoreAssignments.js.map +1 -1
- package/dist/commonjs/operations/defenderForStorage.js +1 -0
- package/dist/commonjs/operations/defenderForStorage.js.map +1 -1
- package/dist/commonjs/operations/devOpsConfigurations.js +56 -57
- package/dist/commonjs/operations/devOpsConfigurations.js.map +1 -1
- package/dist/commonjs/operations/devOpsOperationResults.js +1 -0
- package/dist/commonjs/operations/devOpsOperationResults.js.map +1 -1
- package/dist/commonjs/operations/deviceSecurityGroups.js +23 -39
- package/dist/commonjs/operations/deviceSecurityGroups.js.map +1 -1
- package/dist/commonjs/operations/discoveredSecuritySolutions.js +45 -78
- package/dist/commonjs/operations/discoveredSecuritySolutions.js.map +1 -1
- package/dist/commonjs/operations/externalSecuritySolutions.js +45 -78
- package/dist/commonjs/operations/externalSecuritySolutions.js.map +1 -1
- package/dist/commonjs/operations/gitHubOwners.js +23 -39
- package/dist/commonjs/operations/gitHubOwners.js.map +1 -1
- package/dist/commonjs/operations/gitHubRepos.js +23 -39
- package/dist/commonjs/operations/gitHubRepos.js.map +1 -1
- package/dist/commonjs/operations/gitLabGroups.js +23 -39
- package/dist/commonjs/operations/gitLabGroups.js.map +1 -1
- package/dist/commonjs/operations/gitLabProjects.js +23 -39
- package/dist/commonjs/operations/gitLabProjects.js.map +1 -1
- package/dist/commonjs/operations/gitLabSubgroups.js +1 -0
- package/dist/commonjs/operations/gitLabSubgroups.js.map +1 -1
- package/dist/commonjs/operations/governanceAssignments.js +23 -39
- package/dist/commonjs/operations/governanceAssignments.js.map +1 -1
- package/dist/commonjs/operations/governanceRules.js +45 -51
- package/dist/commonjs/operations/governanceRules.js.map +1 -1
- package/dist/commonjs/operations/healthReports.js +23 -39
- package/dist/commonjs/operations/healthReports.js.map +1 -1
- package/dist/commonjs/operations/informationProtectionPolicies.js +23 -39
- package/dist/commonjs/operations/informationProtectionPolicies.js.map +1 -1
- package/dist/commonjs/operations/iotSecuritySolution.js +45 -78
- package/dist/commonjs/operations/iotSecuritySolution.js.map +1 -1
- package/dist/commonjs/operations/iotSecuritySolutionAnalytics.js +1 -0
- package/dist/commonjs/operations/iotSecuritySolutionAnalytics.js.map +1 -1
- package/dist/commonjs/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.js +23 -39
- package/dist/commonjs/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.js.map +1 -1
- package/dist/commonjs/operations/iotSecuritySolutionsAnalyticsRecommendation.js +23 -39
- package/dist/commonjs/operations/iotSecuritySolutionsAnalyticsRecommendation.js.map +1 -1
- package/dist/commonjs/operations/jitNetworkAccessPolicies.js +89 -156
- package/dist/commonjs/operations/jitNetworkAccessPolicies.js.map +1 -1
- package/dist/commonjs/operations/locations.js +23 -39
- package/dist/commonjs/operations/locations.js.map +1 -1
- package/dist/commonjs/operations/mdeOnboardings.js +1 -0
- package/dist/commonjs/operations/mdeOnboardings.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/pricings.js +1 -0
- package/dist/commonjs/operations/pricings.js.map +1 -1
- package/dist/commonjs/operations/regulatoryComplianceAssessments.js +23 -39
- package/dist/commonjs/operations/regulatoryComplianceAssessments.js.map +1 -1
- package/dist/commonjs/operations/regulatoryComplianceControls.js +23 -39
- package/dist/commonjs/operations/regulatoryComplianceControls.js.map +1 -1
- package/dist/commonjs/operations/regulatoryComplianceStandards.js +23 -39
- package/dist/commonjs/operations/regulatoryComplianceStandards.js.map +1 -1
- package/dist/commonjs/operations/secureScoreControlDefinitions.js +45 -78
- package/dist/commonjs/operations/secureScoreControlDefinitions.js.map +1 -1
- package/dist/commonjs/operations/secureScoreControls.js +45 -78
- package/dist/commonjs/operations/secureScoreControls.js.map +1 -1
- package/dist/commonjs/operations/secureScores.js +23 -39
- package/dist/commonjs/operations/secureScores.js.map +1 -1
- package/dist/commonjs/operations/securityConnectorApplication.js +1 -0
- package/dist/commonjs/operations/securityConnectorApplication.js.map +1 -1
- package/dist/commonjs/operations/securityConnectorApplications.js +23 -39
- package/dist/commonjs/operations/securityConnectorApplications.js.map +1 -1
- package/dist/commonjs/operations/securityConnectors.js +45 -78
- package/dist/commonjs/operations/securityConnectors.js.map +1 -1
- package/dist/commonjs/operations/securityContacts.js +23 -39
- package/dist/commonjs/operations/securityContacts.js.map +1 -1
- package/dist/commonjs/operations/securityOperators.js +1 -0
- package/dist/commonjs/operations/securityOperators.js.map +1 -1
- package/dist/commonjs/operations/securitySolutions.js +23 -39
- package/dist/commonjs/operations/securitySolutions.js.map +1 -1
- package/dist/commonjs/operations/securitySolutionsReferenceDataOperations.js +1 -0
- package/dist/commonjs/operations/securitySolutionsReferenceDataOperations.js.map +1 -1
- package/dist/commonjs/operations/sensitivitySettings.js +1 -0
- package/dist/commonjs/operations/sensitivitySettings.js.map +1 -1
- package/dist/commonjs/operations/serverVulnerabilityAssessmentOperations.js +12 -6
- package/dist/commonjs/operations/serverVulnerabilityAssessmentOperations.js.map +1 -1
- package/dist/commonjs/operations/serverVulnerabilityAssessmentsSettings.js +23 -39
- package/dist/commonjs/operations/serverVulnerabilityAssessmentsSettings.js.map +1 -1
- package/dist/commonjs/operations/settings.js +23 -39
- package/dist/commonjs/operations/settings.js.map +1 -1
- package/dist/commonjs/operations/softwareInventories.js +45 -78
- package/dist/commonjs/operations/softwareInventories.js.map +1 -1
- package/dist/commonjs/operations/sqlVulnerabilityAssessmentBaselineRules.js +1 -0
- package/dist/commonjs/operations/sqlVulnerabilityAssessmentBaselineRules.js.map +1 -1
- package/dist/commonjs/operations/sqlVulnerabilityAssessmentScanResults.js +1 -0
- package/dist/commonjs/operations/sqlVulnerabilityAssessmentScanResults.js.map +1 -1
- package/dist/commonjs/operations/sqlVulnerabilityAssessmentScans.js +1 -0
- package/dist/commonjs/operations/sqlVulnerabilityAssessmentScans.js.map +1 -1
- package/dist/commonjs/operations/subAssessments.js +45 -78
- package/dist/commonjs/operations/subAssessments.js.map +1 -1
- package/dist/commonjs/operations/tasks.js +67 -117
- package/dist/commonjs/operations/tasks.js.map +1 -1
- package/dist/commonjs/operations/topology.js +45 -78
- package/dist/commonjs/operations/topology.js.map +1 -1
- package/dist/commonjs/operations/workspaceSettings.js +23 -39
- package/dist/commonjs/operations/workspaceSettings.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/securityCenter.js +82 -5
- package/dist/commonjs/securityCenter.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +1479 -655
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/aPICollections.js +78 -124
- package/dist/esm/operations/aPICollections.js.map +1 -1
- package/dist/esm/operations/adaptiveApplicationControls.js +1 -0
- package/dist/esm/operations/adaptiveApplicationControls.js.map +1 -1
- package/dist/esm/operations/adaptiveNetworkHardenings.js +34 -46
- package/dist/esm/operations/adaptiveNetworkHardenings.js.map +1 -1
- package/dist/esm/operations/advancedThreatProtection.js +1 -0
- package/dist/esm/operations/advancedThreatProtection.js.map +1 -1
- package/dist/esm/operations/alerts.js +104 -167
- package/dist/esm/operations/alerts.js.map +1 -1
- package/dist/esm/operations/alertsSuppressionRules.js +23 -40
- package/dist/esm/operations/alertsSuppressionRules.js.map +1 -1
- package/dist/esm/operations/allowedConnections.js +45 -79
- package/dist/esm/operations/allowedConnections.js.map +1 -1
- package/dist/esm/operations/applicationOperations.js +1 -0
- package/dist/esm/operations/applicationOperations.js.map +1 -1
- package/dist/esm/operations/applications.js +23 -40
- package/dist/esm/operations/applications.js.map +1 -1
- package/dist/esm/operations/assessments.js +23 -40
- package/dist/esm/operations/assessments.js.map +1 -1
- package/dist/esm/operations/assessmentsMetadata.js +45 -79
- package/dist/esm/operations/assessmentsMetadata.js.map +1 -1
- package/dist/esm/operations/autoProvisioningSettings.js +23 -40
- package/dist/esm/operations/autoProvisioningSettings.js.map +1 -1
- package/dist/esm/operations/automations.js +45 -79
- package/dist/esm/operations/automations.js.map +1 -1
- package/dist/esm/operations/azureDevOpsOrgs.js +45 -52
- package/dist/esm/operations/azureDevOpsOrgs.js.map +1 -1
- package/dist/esm/operations/azureDevOpsProjects.js +45 -52
- package/dist/esm/operations/azureDevOpsProjects.js.map +1 -1
- package/dist/esm/operations/azureDevOpsRepos.js +45 -52
- package/dist/esm/operations/azureDevOpsRepos.js.map +1 -1
- package/dist/esm/operations/complianceResults.js +23 -40
- package/dist/esm/operations/complianceResults.js.map +1 -1
- package/dist/esm/operations/compliances.js +23 -40
- package/dist/esm/operations/compliances.js.map +1 -1
- package/dist/esm/operations/connectors.js +23 -40
- package/dist/esm/operations/connectors.js.map +1 -1
- package/dist/esm/operations/customAssessmentAutomations.js +45 -79
- package/dist/esm/operations/customAssessmentAutomations.js.map +1 -1
- package/dist/esm/operations/customEntityStoreAssignments.js +45 -79
- package/dist/esm/operations/customEntityStoreAssignments.js.map +1 -1
- package/dist/esm/operations/defenderForStorage.js +1 -0
- package/dist/esm/operations/defenderForStorage.js.map +1 -1
- package/dist/esm/operations/devOpsConfigurations.js +56 -58
- package/dist/esm/operations/devOpsConfigurations.js.map +1 -1
- package/dist/esm/operations/devOpsOperationResults.js +1 -0
- package/dist/esm/operations/devOpsOperationResults.js.map +1 -1
- package/dist/esm/operations/deviceSecurityGroups.js +23 -40
- package/dist/esm/operations/deviceSecurityGroups.js.map +1 -1
- package/dist/esm/operations/discoveredSecuritySolutions.js +45 -79
- package/dist/esm/operations/discoveredSecuritySolutions.js.map +1 -1
- package/dist/esm/operations/externalSecuritySolutions.js +45 -79
- package/dist/esm/operations/externalSecuritySolutions.js.map +1 -1
- package/dist/esm/operations/gitHubOwners.js +23 -40
- package/dist/esm/operations/gitHubOwners.js.map +1 -1
- package/dist/esm/operations/gitHubRepos.js +23 -40
- package/dist/esm/operations/gitHubRepos.js.map +1 -1
- package/dist/esm/operations/gitLabGroups.js +23 -40
- package/dist/esm/operations/gitLabGroups.js.map +1 -1
- package/dist/esm/operations/gitLabProjects.js +23 -40
- package/dist/esm/operations/gitLabProjects.js.map +1 -1
- package/dist/esm/operations/gitLabSubgroups.js +1 -0
- package/dist/esm/operations/gitLabSubgroups.js.map +1 -1
- package/dist/esm/operations/governanceAssignments.js +23 -40
- package/dist/esm/operations/governanceAssignments.js.map +1 -1
- package/dist/esm/operations/governanceRules.js +45 -52
- package/dist/esm/operations/governanceRules.js.map +1 -1
- package/dist/esm/operations/healthReports.js +23 -40
- package/dist/esm/operations/healthReports.js.map +1 -1
- package/dist/esm/operations/informationProtectionPolicies.js +23 -40
- package/dist/esm/operations/informationProtectionPolicies.js.map +1 -1
- package/dist/esm/operations/iotSecuritySolution.js +45 -79
- package/dist/esm/operations/iotSecuritySolution.js.map +1 -1
- package/dist/esm/operations/iotSecuritySolutionAnalytics.js +1 -0
- package/dist/esm/operations/iotSecuritySolutionAnalytics.js.map +1 -1
- package/dist/esm/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.js +23 -40
- package/dist/esm/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.js.map +1 -1
- package/dist/esm/operations/iotSecuritySolutionsAnalyticsRecommendation.js +23 -40
- package/dist/esm/operations/iotSecuritySolutionsAnalyticsRecommendation.js.map +1 -1
- package/dist/esm/operations/jitNetworkAccessPolicies.js +89 -157
- package/dist/esm/operations/jitNetworkAccessPolicies.js.map +1 -1
- package/dist/esm/operations/locations.js +23 -40
- package/dist/esm/operations/locations.js.map +1 -1
- package/dist/esm/operations/mdeOnboardings.js +1 -0
- package/dist/esm/operations/mdeOnboardings.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/pricings.js +1 -0
- package/dist/esm/operations/pricings.js.map +1 -1
- package/dist/esm/operations/regulatoryComplianceAssessments.js +23 -40
- package/dist/esm/operations/regulatoryComplianceAssessments.js.map +1 -1
- package/dist/esm/operations/regulatoryComplianceControls.js +23 -40
- package/dist/esm/operations/regulatoryComplianceControls.js.map +1 -1
- package/dist/esm/operations/regulatoryComplianceStandards.js +23 -40
- package/dist/esm/operations/regulatoryComplianceStandards.js.map +1 -1
- package/dist/esm/operations/secureScoreControlDefinitions.js +45 -79
- package/dist/esm/operations/secureScoreControlDefinitions.js.map +1 -1
- package/dist/esm/operations/secureScoreControls.js +45 -79
- package/dist/esm/operations/secureScoreControls.js.map +1 -1
- package/dist/esm/operations/secureScores.js +23 -40
- package/dist/esm/operations/secureScores.js.map +1 -1
- package/dist/esm/operations/securityConnectorApplication.js +1 -0
- package/dist/esm/operations/securityConnectorApplication.js.map +1 -1
- package/dist/esm/operations/securityConnectorApplications.js +23 -40
- package/dist/esm/operations/securityConnectorApplications.js.map +1 -1
- package/dist/esm/operations/securityConnectors.js +45 -79
- package/dist/esm/operations/securityConnectors.js.map +1 -1
- package/dist/esm/operations/securityContacts.js +23 -40
- package/dist/esm/operations/securityContacts.js.map +1 -1
- package/dist/esm/operations/securityOperators.js +1 -0
- package/dist/esm/operations/securityOperators.js.map +1 -1
- package/dist/esm/operations/securitySolutions.js +23 -40
- package/dist/esm/operations/securitySolutions.js.map +1 -1
- package/dist/esm/operations/securitySolutionsReferenceDataOperations.js +1 -0
- package/dist/esm/operations/securitySolutionsReferenceDataOperations.js.map +1 -1
- package/dist/esm/operations/sensitivitySettings.js +1 -0
- package/dist/esm/operations/sensitivitySettings.js.map +1 -1
- package/dist/esm/operations/serverVulnerabilityAssessmentOperations.js +12 -6
- package/dist/esm/operations/serverVulnerabilityAssessmentOperations.js.map +1 -1
- package/dist/esm/operations/serverVulnerabilityAssessmentsSettings.js +23 -40
- package/dist/esm/operations/serverVulnerabilityAssessmentsSettings.js.map +1 -1
- package/dist/esm/operations/settings.js +23 -40
- package/dist/esm/operations/settings.js.map +1 -1
- package/dist/esm/operations/softwareInventories.js +45 -79
- package/dist/esm/operations/softwareInventories.js.map +1 -1
- package/dist/esm/operations/sqlVulnerabilityAssessmentBaselineRules.js +1 -0
- package/dist/esm/operations/sqlVulnerabilityAssessmentBaselineRules.js.map +1 -1
- package/dist/esm/operations/sqlVulnerabilityAssessmentScanResults.js +1 -0
- package/dist/esm/operations/sqlVulnerabilityAssessmentScanResults.js.map +1 -1
- package/dist/esm/operations/sqlVulnerabilityAssessmentScans.js +1 -0
- package/dist/esm/operations/sqlVulnerabilityAssessmentScans.js.map +1 -1
- package/dist/esm/operations/subAssessments.js +45 -79
- package/dist/esm/operations/subAssessments.js.map +1 -1
- package/dist/esm/operations/tasks.js +67 -118
- package/dist/esm/operations/tasks.js.map +1 -1
- package/dist/esm/operations/topology.js +45 -79
- package/dist/esm/operations/topology.js.map +1 -1
- package/dist/esm/operations/workspaceSettings.js +23 -40
- package/dist/esm/operations/workspaceSettings.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/securityCenter.js +82 -5
- package/dist/esm/securityCenter.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 +1479 -655
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/aPICollections.js +78 -124
- package/dist/react-native/operations/aPICollections.js.map +1 -1
- package/dist/react-native/operations/adaptiveApplicationControls.js +1 -0
- package/dist/react-native/operations/adaptiveApplicationControls.js.map +1 -1
- package/dist/react-native/operations/adaptiveNetworkHardenings.js +34 -46
- package/dist/react-native/operations/adaptiveNetworkHardenings.js.map +1 -1
- package/dist/react-native/operations/advancedThreatProtection.js +1 -0
- package/dist/react-native/operations/advancedThreatProtection.js.map +1 -1
- package/dist/react-native/operations/alerts.js +104 -167
- package/dist/react-native/operations/alerts.js.map +1 -1
- package/dist/react-native/operations/alertsSuppressionRules.js +23 -40
- package/dist/react-native/operations/alertsSuppressionRules.js.map +1 -1
- package/dist/react-native/operations/allowedConnections.js +45 -79
- package/dist/react-native/operations/allowedConnections.js.map +1 -1
- package/dist/react-native/operations/applicationOperations.js +1 -0
- package/dist/react-native/operations/applicationOperations.js.map +1 -1
- package/dist/react-native/operations/applications.js +23 -40
- package/dist/react-native/operations/applications.js.map +1 -1
- package/dist/react-native/operations/assessments.js +23 -40
- package/dist/react-native/operations/assessments.js.map +1 -1
- package/dist/react-native/operations/assessmentsMetadata.js +45 -79
- package/dist/react-native/operations/assessmentsMetadata.js.map +1 -1
- package/dist/react-native/operations/autoProvisioningSettings.js +23 -40
- package/dist/react-native/operations/autoProvisioningSettings.js.map +1 -1
- package/dist/react-native/operations/automations.js +45 -79
- package/dist/react-native/operations/automations.js.map +1 -1
- package/dist/react-native/operations/azureDevOpsOrgs.js +45 -52
- package/dist/react-native/operations/azureDevOpsOrgs.js.map +1 -1
- package/dist/react-native/operations/azureDevOpsProjects.js +45 -52
- package/dist/react-native/operations/azureDevOpsProjects.js.map +1 -1
- package/dist/react-native/operations/azureDevOpsRepos.js +45 -52
- package/dist/react-native/operations/azureDevOpsRepos.js.map +1 -1
- package/dist/react-native/operations/complianceResults.js +23 -40
- package/dist/react-native/operations/complianceResults.js.map +1 -1
- package/dist/react-native/operations/compliances.js +23 -40
- package/dist/react-native/operations/compliances.js.map +1 -1
- package/dist/react-native/operations/connectors.js +23 -40
- package/dist/react-native/operations/connectors.js.map +1 -1
- package/dist/react-native/operations/customAssessmentAutomations.js +45 -79
- package/dist/react-native/operations/customAssessmentAutomations.js.map +1 -1
- package/dist/react-native/operations/customEntityStoreAssignments.js +45 -79
- package/dist/react-native/operations/customEntityStoreAssignments.js.map +1 -1
- package/dist/react-native/operations/defenderForStorage.js +1 -0
- package/dist/react-native/operations/defenderForStorage.js.map +1 -1
- package/dist/react-native/operations/devOpsConfigurations.js +56 -58
- package/dist/react-native/operations/devOpsConfigurations.js.map +1 -1
- package/dist/react-native/operations/devOpsOperationResults.js +1 -0
- package/dist/react-native/operations/devOpsOperationResults.js.map +1 -1
- package/dist/react-native/operations/deviceSecurityGroups.js +23 -40
- package/dist/react-native/operations/deviceSecurityGroups.js.map +1 -1
- package/dist/react-native/operations/discoveredSecuritySolutions.js +45 -79
- package/dist/react-native/operations/discoveredSecuritySolutions.js.map +1 -1
- package/dist/react-native/operations/externalSecuritySolutions.js +45 -79
- package/dist/react-native/operations/externalSecuritySolutions.js.map +1 -1
- package/dist/react-native/operations/gitHubOwners.js +23 -40
- package/dist/react-native/operations/gitHubOwners.js.map +1 -1
- package/dist/react-native/operations/gitHubRepos.js +23 -40
- package/dist/react-native/operations/gitHubRepos.js.map +1 -1
- package/dist/react-native/operations/gitLabGroups.js +23 -40
- package/dist/react-native/operations/gitLabGroups.js.map +1 -1
- package/dist/react-native/operations/gitLabProjects.js +23 -40
- package/dist/react-native/operations/gitLabProjects.js.map +1 -1
- package/dist/react-native/operations/gitLabSubgroups.js +1 -0
- package/dist/react-native/operations/gitLabSubgroups.js.map +1 -1
- package/dist/react-native/operations/governanceAssignments.js +23 -40
- package/dist/react-native/operations/governanceAssignments.js.map +1 -1
- package/dist/react-native/operations/governanceRules.js +45 -52
- package/dist/react-native/operations/governanceRules.js.map +1 -1
- package/dist/react-native/operations/healthReports.js +23 -40
- package/dist/react-native/operations/healthReports.js.map +1 -1
- package/dist/react-native/operations/informationProtectionPolicies.js +23 -40
- package/dist/react-native/operations/informationProtectionPolicies.js.map +1 -1
- package/dist/react-native/operations/iotSecuritySolution.js +45 -79
- package/dist/react-native/operations/iotSecuritySolution.js.map +1 -1
- package/dist/react-native/operations/iotSecuritySolutionAnalytics.js +1 -0
- package/dist/react-native/operations/iotSecuritySolutionAnalytics.js.map +1 -1
- package/dist/react-native/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.js +23 -40
- package/dist/react-native/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.js.map +1 -1
- package/dist/react-native/operations/iotSecuritySolutionsAnalyticsRecommendation.js +23 -40
- package/dist/react-native/operations/iotSecuritySolutionsAnalyticsRecommendation.js.map +1 -1
- package/dist/react-native/operations/jitNetworkAccessPolicies.js +89 -157
- package/dist/react-native/operations/jitNetworkAccessPolicies.js.map +1 -1
- package/dist/react-native/operations/locations.js +23 -40
- package/dist/react-native/operations/locations.js.map +1 -1
- package/dist/react-native/operations/mdeOnboardings.js +1 -0
- package/dist/react-native/operations/mdeOnboardings.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/pricings.js +1 -0
- package/dist/react-native/operations/pricings.js.map +1 -1
- package/dist/react-native/operations/regulatoryComplianceAssessments.js +23 -40
- package/dist/react-native/operations/regulatoryComplianceAssessments.js.map +1 -1
- package/dist/react-native/operations/regulatoryComplianceControls.js +23 -40
- package/dist/react-native/operations/regulatoryComplianceControls.js.map +1 -1
- package/dist/react-native/operations/regulatoryComplianceStandards.js +23 -40
- package/dist/react-native/operations/regulatoryComplianceStandards.js.map +1 -1
- package/dist/react-native/operations/secureScoreControlDefinitions.js +45 -79
- package/dist/react-native/operations/secureScoreControlDefinitions.js.map +1 -1
- package/dist/react-native/operations/secureScoreControls.js +45 -79
- package/dist/react-native/operations/secureScoreControls.js.map +1 -1
- package/dist/react-native/operations/secureScores.js +23 -40
- package/dist/react-native/operations/secureScores.js.map +1 -1
- package/dist/react-native/operations/securityConnectorApplication.js +1 -0
- package/dist/react-native/operations/securityConnectorApplication.js.map +1 -1
- package/dist/react-native/operations/securityConnectorApplications.js +23 -40
- package/dist/react-native/operations/securityConnectorApplications.js.map +1 -1
- package/dist/react-native/operations/securityConnectors.js +45 -79
- package/dist/react-native/operations/securityConnectors.js.map +1 -1
- package/dist/react-native/operations/securityContacts.js +23 -40
- package/dist/react-native/operations/securityContacts.js.map +1 -1
- package/dist/react-native/operations/securityOperators.js +1 -0
- package/dist/react-native/operations/securityOperators.js.map +1 -1
- package/dist/react-native/operations/securitySolutions.js +23 -40
- package/dist/react-native/operations/securitySolutions.js.map +1 -1
- package/dist/react-native/operations/securitySolutionsReferenceDataOperations.js +1 -0
- package/dist/react-native/operations/securitySolutionsReferenceDataOperations.js.map +1 -1
- package/dist/react-native/operations/sensitivitySettings.js +1 -0
- package/dist/react-native/operations/sensitivitySettings.js.map +1 -1
- package/dist/react-native/operations/serverVulnerabilityAssessmentOperations.js +12 -6
- package/dist/react-native/operations/serverVulnerabilityAssessmentOperations.js.map +1 -1
- package/dist/react-native/operations/serverVulnerabilityAssessmentsSettings.js +23 -40
- package/dist/react-native/operations/serverVulnerabilityAssessmentsSettings.js.map +1 -1
- package/dist/react-native/operations/settings.js +23 -40
- package/dist/react-native/operations/settings.js.map +1 -1
- package/dist/react-native/operations/softwareInventories.js +45 -79
- package/dist/react-native/operations/softwareInventories.js.map +1 -1
- package/dist/react-native/operations/sqlVulnerabilityAssessmentBaselineRules.js +1 -0
- package/dist/react-native/operations/sqlVulnerabilityAssessmentBaselineRules.js.map +1 -1
- package/dist/react-native/operations/sqlVulnerabilityAssessmentScanResults.js +1 -0
- package/dist/react-native/operations/sqlVulnerabilityAssessmentScanResults.js.map +1 -1
- package/dist/react-native/operations/sqlVulnerabilityAssessmentScans.js +1 -0
- package/dist/react-native/operations/sqlVulnerabilityAssessmentScans.js.map +1 -1
- package/dist/react-native/operations/subAssessments.js +45 -79
- package/dist/react-native/operations/subAssessments.js.map +1 -1
- package/dist/react-native/operations/tasks.js +67 -118
- package/dist/react-native/operations/tasks.js.map +1 -1
- package/dist/react-native/operations/topology.js +45 -79
- package/dist/react-native/operations/topology.js.map +1 -1
- package/dist/react-native/operations/workspaceSettings.js +23 -40
- package/dist/react-native/operations/workspaceSettings.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/securityCenter.js +82 -5
- package/dist/react-native/securityCenter.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-security-node.api.md +7369 -7369
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alerts.js","sourceRoot":"","sources":["../../../src/operations/alerts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAmC9C,4CAA4C;AAC5C,0CAA0C;AAC1C,MAAM,OAAO,UAAU;IAGrB;;;OAGG;IACH,YAAY,MAAsB;QA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BAAgB,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 { SecurityCenter } from \"../securityCenter.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Alert,\n AlertsListNextOptionalParams,\n AlertsListOptionalParams,\n AlertsListResponse,\n AlertsListByResourceGroupNextOptionalParams,\n AlertsListByResourceGroupOptionalParams,\n AlertsListByResourceGroupResponse,\n AlertsListSubscriptionLevelByRegionNextOptionalParams,\n AlertsListSubscriptionLevelByRegionOptionalParams,\n AlertsListSubscriptionLevelByRegionResponse,\n AlertsListResourceGroupLevelByRegionNextOptionalParams,\n AlertsListResourceGroupLevelByRegionOptionalParams,\n AlertsListResourceGroupLevelByRegionResponse,\n AlertsGetSubscriptionLevelOptionalParams,\n AlertsGetSubscriptionLevelResponse,\n AlertsGetResourceGroupLevelOptionalParams,\n AlertsGetResourceGroupLevelResponse,\n AlertsUpdateSubscriptionLevelStateToDismissOptionalParams,\n AlertsUpdateSubscriptionLevelStateToResolveOptionalParams,\n AlertsUpdateSubscriptionLevelStateToActivateOptionalParams,\n AlertsUpdateSubscriptionLevelStateToInProgressOptionalParams,\n AlertsUpdateResourceGroupLevelStateToResolveOptionalParams,\n AlertsUpdateResourceGroupLevelStateToDismissOptionalParams,\n AlertsUpdateResourceGroupLevelStateToActivateOptionalParams,\n AlertsUpdateResourceGroupLevelStateToInProgressOptionalParams,\n AlertSimulatorRequestBody,\n AlertsSimulateOptionalParams,\n AlertsListNextResponse,\n AlertsListByResourceGroupNextResponse,\n AlertsListSubscriptionLevelByRegionNextResponse,\n AlertsListResourceGroupLevelByRegionNextResponse,\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: SecurityCenter;\n\n /**\n * Initialize a new instance of the class Alerts class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * List all the alerts that are associated with the subscription\n * @param options The options parameters.\n */\n public list(\n options?: AlertsListOptionalParams,\n ): PagedAsyncIterableIterator<Alert> {\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?: AlertsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Alert[]> {\n let result: AlertsListResponse;\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?: AlertsListOptionalParams,\n ): AsyncIterableIterator<Alert> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List all the alerts that are associated with the resource group\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: AlertsListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<Alert> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: AlertsListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Alert[]> {\n let result: AlertsListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: AlertsListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<Alert> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List all the alerts that are associated with the subscription that are stored in a specific location\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param options The options parameters.\n */\n public listSubscriptionLevelByRegion(\n ascLocation: string,\n options?: AlertsListSubscriptionLevelByRegionOptionalParams,\n ): PagedAsyncIterableIterator<Alert> {\n const iter = this.listSubscriptionLevelByRegionPagingAll(\n ascLocation,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listSubscriptionLevelByRegionPagingPage(\n ascLocation,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listSubscriptionLevelByRegionPagingPage(\n ascLocation: string,\n options?: AlertsListSubscriptionLevelByRegionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Alert[]> {\n let result: AlertsListSubscriptionLevelByRegionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listSubscriptionLevelByRegion(ascLocation, 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._listSubscriptionLevelByRegionNext(\n ascLocation,\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 *listSubscriptionLevelByRegionPagingAll(\n ascLocation: string,\n options?: AlertsListSubscriptionLevelByRegionOptionalParams,\n ): AsyncIterableIterator<Alert> {\n for await (const page of this.listSubscriptionLevelByRegionPagingPage(\n ascLocation,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List all the alerts that are associated with the resource group that are stored in a specific\n * location\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n public listResourceGroupLevelByRegion(\n ascLocation: string,\n resourceGroupName: string,\n options?: AlertsListResourceGroupLevelByRegionOptionalParams,\n ): PagedAsyncIterableIterator<Alert> {\n const iter = this.listResourceGroupLevelByRegionPagingAll(\n ascLocation,\n resourceGroupName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listResourceGroupLevelByRegionPagingPage(\n ascLocation,\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listResourceGroupLevelByRegionPagingPage(\n ascLocation: string,\n resourceGroupName: string,\n options?: AlertsListResourceGroupLevelByRegionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Alert[]> {\n let result: AlertsListResourceGroupLevelByRegionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listResourceGroupLevelByRegion(\n ascLocation,\n resourceGroupName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listResourceGroupLevelByRegionNext(\n ascLocation,\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listResourceGroupLevelByRegionPagingAll(\n ascLocation: string,\n resourceGroupName: string,\n options?: AlertsListResourceGroupLevelByRegionOptionalParams,\n ): AsyncIterableIterator<Alert> {\n for await (const page of this.listResourceGroupLevelByRegionPagingPage(\n ascLocation,\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List all the alerts that are associated with the subscription\n * @param options The options parameters.\n */\n private _list(\n options?: AlertsListOptionalParams,\n ): Promise<AlertsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * List all the alerts that are associated with the resource group\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: AlertsListByResourceGroupOptionalParams,\n ): Promise<AlertsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * List all the alerts that are associated with the subscription that are stored in a specific location\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param options The options parameters.\n */\n private _listSubscriptionLevelByRegion(\n ascLocation: string,\n options?: AlertsListSubscriptionLevelByRegionOptionalParams,\n ): Promise<AlertsListSubscriptionLevelByRegionResponse> {\n return this.client.sendOperationRequest(\n { ascLocation, options },\n listSubscriptionLevelByRegionOperationSpec,\n );\n }\n\n /**\n * List all the alerts that are associated with the resource group that are stored in a specific\n * location\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n private _listResourceGroupLevelByRegion(\n ascLocation: string,\n resourceGroupName: string,\n options?: AlertsListResourceGroupLevelByRegionOptionalParams,\n ): Promise<AlertsListResourceGroupLevelByRegionResponse> {\n return this.client.sendOperationRequest(\n { ascLocation, resourceGroupName, options },\n listResourceGroupLevelByRegionOperationSpec,\n );\n }\n\n /**\n * Get an alert that is associated with a subscription\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param alertName Name of the alert object\n * @param options The options parameters.\n */\n getSubscriptionLevel(\n ascLocation: string,\n alertName: string,\n options?: AlertsGetSubscriptionLevelOptionalParams,\n ): Promise<AlertsGetSubscriptionLevelResponse> {\n return this.client.sendOperationRequest(\n { ascLocation, alertName, options },\n getSubscriptionLevelOperationSpec,\n );\n }\n\n /**\n * Get an alert that is associated a resource group or a resource in a resource group\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param alertName Name of the alert object\n * @param options The options parameters.\n */\n getResourceGroupLevel(\n resourceGroupName: string,\n ascLocation: string,\n alertName: string,\n options?: AlertsGetResourceGroupLevelOptionalParams,\n ): Promise<AlertsGetResourceGroupLevelResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, ascLocation, alertName, options },\n getResourceGroupLevelOperationSpec,\n );\n }\n\n /**\n * Update the alert's state\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param alertName Name of the alert object\n * @param options The options parameters.\n */\n updateSubscriptionLevelStateToDismiss(\n ascLocation: string,\n alertName: string,\n options?: AlertsUpdateSubscriptionLevelStateToDismissOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { ascLocation, alertName, options },\n updateSubscriptionLevelStateToDismissOperationSpec,\n );\n }\n\n /**\n * Update the alert's state\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param alertName Name of the alert object\n * @param options The options parameters.\n */\n updateSubscriptionLevelStateToResolve(\n ascLocation: string,\n alertName: string,\n options?: AlertsUpdateSubscriptionLevelStateToResolveOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { ascLocation, alertName, options },\n updateSubscriptionLevelStateToResolveOperationSpec,\n );\n }\n\n /**\n * Update the alert's state\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param alertName Name of the alert object\n * @param options The options parameters.\n */\n updateSubscriptionLevelStateToActivate(\n ascLocation: string,\n alertName: string,\n options?: AlertsUpdateSubscriptionLevelStateToActivateOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { ascLocation, alertName, options },\n updateSubscriptionLevelStateToActivateOperationSpec,\n );\n }\n\n /**\n * Update the alert's state\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param alertName Name of the alert object\n * @param options The options parameters.\n */\n updateSubscriptionLevelStateToInProgress(\n ascLocation: string,\n alertName: string,\n options?: AlertsUpdateSubscriptionLevelStateToInProgressOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { ascLocation, alertName, options },\n updateSubscriptionLevelStateToInProgressOperationSpec,\n );\n }\n\n /**\n * Update the alert's state\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param alertName Name of the alert object\n * @param options The options parameters.\n */\n updateResourceGroupLevelStateToResolve(\n resourceGroupName: string,\n ascLocation: string,\n alertName: string,\n options?: AlertsUpdateResourceGroupLevelStateToResolveOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, ascLocation, alertName, options },\n updateResourceGroupLevelStateToResolveOperationSpec,\n );\n }\n\n /**\n * Update the alert's state\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param alertName Name of the alert object\n * @param options The options parameters.\n */\n updateResourceGroupLevelStateToDismiss(\n resourceGroupName: string,\n ascLocation: string,\n alertName: string,\n options?: AlertsUpdateResourceGroupLevelStateToDismissOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, ascLocation, alertName, options },\n updateResourceGroupLevelStateToDismissOperationSpec,\n );\n }\n\n /**\n * Update the alert's state\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param alertName Name of the alert object\n * @param options The options parameters.\n */\n updateResourceGroupLevelStateToActivate(\n resourceGroupName: string,\n ascLocation: string,\n alertName: string,\n options?: AlertsUpdateResourceGroupLevelStateToActivateOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, ascLocation, alertName, options },\n updateResourceGroupLevelStateToActivateOperationSpec,\n );\n }\n\n /**\n * Update the alert's state\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param alertName Name of the alert object\n * @param options The options parameters.\n */\n updateResourceGroupLevelStateToInProgress(\n resourceGroupName: string,\n ascLocation: string,\n alertName: string,\n options?: AlertsUpdateResourceGroupLevelStateToInProgressOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, ascLocation, alertName, options },\n updateResourceGroupLevelStateToInProgressOperationSpec,\n );\n }\n\n /**\n * Simulate security alerts\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param alertSimulatorRequestBody Alert Simulator Request Properties\n * @param options The options parameters.\n */\n async beginSimulate(\n ascLocation: string,\n alertSimulatorRequestBody: AlertSimulatorRequestBody,\n options?: AlertsSimulateOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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: { ascLocation, alertSimulatorRequestBody, options },\n spec: simulateOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"original-uri\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Simulate security alerts\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param alertSimulatorRequestBody Alert Simulator Request Properties\n * @param options The options parameters.\n */\n async beginSimulateAndWait(\n ascLocation: string,\n alertSimulatorRequestBody: AlertSimulatorRequestBody,\n options?: AlertsSimulateOptionalParams,\n ): Promise<void> {\n const poller = await this.beginSimulate(\n ascLocation,\n alertSimulatorRequestBody,\n options,\n );\n return poller.pollUntilDone();\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?: AlertsListNextOptionalParams,\n ): Promise<AlertsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: AlertsListByResourceGroupNextOptionalParams,\n ): Promise<AlertsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n\n /**\n * ListSubscriptionLevelByRegionNext\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param nextLink The nextLink from the previous successful call to the ListSubscriptionLevelByRegion\n * method.\n * @param options The options parameters.\n */\n private _listSubscriptionLevelByRegionNext(\n ascLocation: string,\n nextLink: string,\n options?: AlertsListSubscriptionLevelByRegionNextOptionalParams,\n ): Promise<AlertsListSubscriptionLevelByRegionNextResponse> {\n return this.client.sendOperationRequest(\n { ascLocation, nextLink, options },\n listSubscriptionLevelByRegionNextOperationSpec,\n );\n }\n\n /**\n * ListResourceGroupLevelByRegionNext\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListResourceGroupLevelByRegion\n * method.\n * @param options The options parameters.\n */\n private _listResourceGroupLevelByRegionNext(\n ascLocation: string,\n resourceGroupName: string,\n nextLink: string,\n options?: AlertsListResourceGroupLevelByRegionNextOptionalParams,\n ): Promise<AlertsListResourceGroupLevelByRegionNextResponse> {\n return this.client.sendOperationRequest(\n { ascLocation, resourceGroupName, nextLink, options },\n listResourceGroupLevelByRegionNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/alerts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/alerts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listSubscriptionLevelByRegionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listResourceGroupLevelByRegionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getSubscriptionLevelOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Alert,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.alertName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getResourceGroupLevelOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Alert,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.resourceGroupName,\n Parameters.alertName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateSubscriptionLevelStateToDismissOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/dismiss\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.alertName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst updateSubscriptionLevelStateToResolveOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/resolve\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.alertName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst updateSubscriptionLevelStateToActivateOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/activate\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.alertName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst updateSubscriptionLevelStateToInProgressOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/inProgress\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.alertName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst updateResourceGroupLevelStateToResolveOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/resolve\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.resourceGroupName,\n Parameters.alertName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst updateResourceGroupLevelStateToDismissOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/dismiss\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.resourceGroupName,\n Parameters.alertName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst updateResourceGroupLevelStateToActivateOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/activate\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.resourceGroupName,\n Parameters.alertName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst updateResourceGroupLevelStateToInProgressOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/inProgress\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.resourceGroupName,\n Parameters.alertName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst simulateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/default/simulate\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.alertSimulatorRequestBody,\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listSubscriptionLevelByRegionNextOperationSpec: coreClient.OperationSpec =\n {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst listResourceGroupLevelByRegionNextOperationSpec: coreClient.OperationSpec =\n {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.nextLink,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\n"]}
|
|
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Ac;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,8CAA8C,GAClD;IACE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,SAAS;SAC9B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACJ,MAAM,+CAA+C,GACnD;IACE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,SAAS;SAC9B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,iBAAiB;KAC7B;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 { 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 { SecurityCenter } from \"../securityCenter.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Alert,\n AlertsListNextOptionalParams,\n AlertsListOptionalParams,\n AlertsListResponse,\n AlertsListByResourceGroupNextOptionalParams,\n AlertsListByResourceGroupOptionalParams,\n AlertsListByResourceGroupResponse,\n AlertsListSubscriptionLevelByRegionNextOptionalParams,\n AlertsListSubscriptionLevelByRegionOptionalParams,\n AlertsListSubscriptionLevelByRegionResponse,\n AlertsListResourceGroupLevelByRegionNextOptionalParams,\n AlertsListResourceGroupLevelByRegionOptionalParams,\n AlertsListResourceGroupLevelByRegionResponse,\n AlertsGetSubscriptionLevelOptionalParams,\n AlertsGetSubscriptionLevelResponse,\n AlertsGetResourceGroupLevelOptionalParams,\n AlertsGetResourceGroupLevelResponse,\n AlertsUpdateSubscriptionLevelStateToDismissOptionalParams,\n AlertsUpdateSubscriptionLevelStateToResolveOptionalParams,\n AlertsUpdateSubscriptionLevelStateToActivateOptionalParams,\n AlertsUpdateSubscriptionLevelStateToInProgressOptionalParams,\n AlertsUpdateResourceGroupLevelStateToResolveOptionalParams,\n AlertsUpdateResourceGroupLevelStateToDismissOptionalParams,\n AlertsUpdateResourceGroupLevelStateToActivateOptionalParams,\n AlertsUpdateResourceGroupLevelStateToInProgressOptionalParams,\n AlertSimulatorRequestBody,\n AlertsSimulateOptionalParams,\n AlertsListNextResponse,\n AlertsListByResourceGroupNextResponse,\n AlertsListSubscriptionLevelByRegionNextResponse,\n AlertsListResourceGroupLevelByRegionNextResponse,\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: SecurityCenter;\n\n /**\n * Initialize a new instance of the class Alerts class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * List all the alerts that are associated with the subscription\n * @param options The options parameters.\n */\n public list(\n options?: AlertsListOptionalParams,\n ): PagedAsyncIterableIterator<Alert> {\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?: AlertsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Alert[]> {\n let result: AlertsListResponse;\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?: AlertsListOptionalParams,\n ): AsyncIterableIterator<Alert> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List all the alerts that are associated with the resource group\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: AlertsListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<Alert> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: AlertsListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Alert[]> {\n let result: AlertsListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: AlertsListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<Alert> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List all the alerts that are associated with the subscription that are stored in a specific location\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param options The options parameters.\n */\n public listSubscriptionLevelByRegion(\n ascLocation: string,\n options?: AlertsListSubscriptionLevelByRegionOptionalParams,\n ): PagedAsyncIterableIterator<Alert> {\n const iter = this.listSubscriptionLevelByRegionPagingAll(\n ascLocation,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listSubscriptionLevelByRegionPagingPage(\n ascLocation,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listSubscriptionLevelByRegionPagingPage(\n ascLocation: string,\n options?: AlertsListSubscriptionLevelByRegionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Alert[]> {\n let result: AlertsListSubscriptionLevelByRegionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listSubscriptionLevelByRegion(ascLocation, 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._listSubscriptionLevelByRegionNext(\n ascLocation,\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 *listSubscriptionLevelByRegionPagingAll(\n ascLocation: string,\n options?: AlertsListSubscriptionLevelByRegionOptionalParams,\n ): AsyncIterableIterator<Alert> {\n for await (const page of this.listSubscriptionLevelByRegionPagingPage(\n ascLocation,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List all the alerts that are associated with the resource group that are stored in a specific\n * location\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n public listResourceGroupLevelByRegion(\n ascLocation: string,\n resourceGroupName: string,\n options?: AlertsListResourceGroupLevelByRegionOptionalParams,\n ): PagedAsyncIterableIterator<Alert> {\n const iter = this.listResourceGroupLevelByRegionPagingAll(\n ascLocation,\n resourceGroupName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listResourceGroupLevelByRegionPagingPage(\n ascLocation,\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listResourceGroupLevelByRegionPagingPage(\n ascLocation: string,\n resourceGroupName: string,\n options?: AlertsListResourceGroupLevelByRegionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Alert[]> {\n let result: AlertsListResourceGroupLevelByRegionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listResourceGroupLevelByRegion(\n ascLocation,\n resourceGroupName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listResourceGroupLevelByRegionNext(\n ascLocation,\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listResourceGroupLevelByRegionPagingAll(\n ascLocation: string,\n resourceGroupName: string,\n options?: AlertsListResourceGroupLevelByRegionOptionalParams,\n ): AsyncIterableIterator<Alert> {\n for await (const page of this.listResourceGroupLevelByRegionPagingPage(\n ascLocation,\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List all the alerts that are associated with the subscription\n * @param options The options parameters.\n */\n private _list(\n options?: AlertsListOptionalParams,\n ): Promise<AlertsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * List all the alerts that are associated with the resource group\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: AlertsListByResourceGroupOptionalParams,\n ): Promise<AlertsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * List all the alerts that are associated with the subscription that are stored in a specific location\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param options The options parameters.\n */\n private _listSubscriptionLevelByRegion(\n ascLocation: string,\n options?: AlertsListSubscriptionLevelByRegionOptionalParams,\n ): Promise<AlertsListSubscriptionLevelByRegionResponse> {\n return this.client.sendOperationRequest(\n { ascLocation, options },\n listSubscriptionLevelByRegionOperationSpec,\n );\n }\n\n /**\n * List all the alerts that are associated with the resource group that are stored in a specific\n * location\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n private _listResourceGroupLevelByRegion(\n ascLocation: string,\n resourceGroupName: string,\n options?: AlertsListResourceGroupLevelByRegionOptionalParams,\n ): Promise<AlertsListResourceGroupLevelByRegionResponse> {\n return this.client.sendOperationRequest(\n { ascLocation, resourceGroupName, options },\n listResourceGroupLevelByRegionOperationSpec,\n );\n }\n\n /**\n * Get an alert that is associated with a subscription\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param alertName Name of the alert object\n * @param options The options parameters.\n */\n getSubscriptionLevel(\n ascLocation: string,\n alertName: string,\n options?: AlertsGetSubscriptionLevelOptionalParams,\n ): Promise<AlertsGetSubscriptionLevelResponse> {\n return this.client.sendOperationRequest(\n { ascLocation, alertName, options },\n getSubscriptionLevelOperationSpec,\n );\n }\n\n /**\n * Get an alert that is associated a resource group or a resource in a resource group\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param alertName Name of the alert object\n * @param options The options parameters.\n */\n getResourceGroupLevel(\n resourceGroupName: string,\n ascLocation: string,\n alertName: string,\n options?: AlertsGetResourceGroupLevelOptionalParams,\n ): Promise<AlertsGetResourceGroupLevelResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, ascLocation, alertName, options },\n getResourceGroupLevelOperationSpec,\n );\n }\n\n /**\n * Update the alert's state\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param alertName Name of the alert object\n * @param options The options parameters.\n */\n updateSubscriptionLevelStateToDismiss(\n ascLocation: string,\n alertName: string,\n options?: AlertsUpdateSubscriptionLevelStateToDismissOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { ascLocation, alertName, options },\n updateSubscriptionLevelStateToDismissOperationSpec,\n );\n }\n\n /**\n * Update the alert's state\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param alertName Name of the alert object\n * @param options The options parameters.\n */\n updateSubscriptionLevelStateToResolve(\n ascLocation: string,\n alertName: string,\n options?: AlertsUpdateSubscriptionLevelStateToResolveOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { ascLocation, alertName, options },\n updateSubscriptionLevelStateToResolveOperationSpec,\n );\n }\n\n /**\n * Update the alert's state\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param alertName Name of the alert object\n * @param options The options parameters.\n */\n updateSubscriptionLevelStateToActivate(\n ascLocation: string,\n alertName: string,\n options?: AlertsUpdateSubscriptionLevelStateToActivateOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { ascLocation, alertName, options },\n updateSubscriptionLevelStateToActivateOperationSpec,\n );\n }\n\n /**\n * Update the alert's state\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param alertName Name of the alert object\n * @param options The options parameters.\n */\n updateSubscriptionLevelStateToInProgress(\n ascLocation: string,\n alertName: string,\n options?: AlertsUpdateSubscriptionLevelStateToInProgressOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { ascLocation, alertName, options },\n updateSubscriptionLevelStateToInProgressOperationSpec,\n );\n }\n\n /**\n * Update the alert's state\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param alertName Name of the alert object\n * @param options The options parameters.\n */\n updateResourceGroupLevelStateToResolve(\n resourceGroupName: string,\n ascLocation: string,\n alertName: string,\n options?: AlertsUpdateResourceGroupLevelStateToResolveOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, ascLocation, alertName, options },\n updateResourceGroupLevelStateToResolveOperationSpec,\n );\n }\n\n /**\n * Update the alert's state\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param alertName Name of the alert object\n * @param options The options parameters.\n */\n updateResourceGroupLevelStateToDismiss(\n resourceGroupName: string,\n ascLocation: string,\n alertName: string,\n options?: AlertsUpdateResourceGroupLevelStateToDismissOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, ascLocation, alertName, options },\n updateResourceGroupLevelStateToDismissOperationSpec,\n );\n }\n\n /**\n * Update the alert's state\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param alertName Name of the alert object\n * @param options The options parameters.\n */\n updateResourceGroupLevelStateToActivate(\n resourceGroupName: string,\n ascLocation: string,\n alertName: string,\n options?: AlertsUpdateResourceGroupLevelStateToActivateOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, ascLocation, alertName, options },\n updateResourceGroupLevelStateToActivateOperationSpec,\n );\n }\n\n /**\n * Update the alert's state\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param alertName Name of the alert object\n * @param options The options parameters.\n */\n updateResourceGroupLevelStateToInProgress(\n resourceGroupName: string,\n ascLocation: string,\n alertName: string,\n options?: AlertsUpdateResourceGroupLevelStateToInProgressOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, ascLocation, alertName, options },\n updateResourceGroupLevelStateToInProgressOperationSpec,\n );\n }\n\n /**\n * Simulate security alerts\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param alertSimulatorRequestBody Alert Simulator Request Properties\n * @param options The options parameters.\n */\n async beginSimulate(\n ascLocation: string,\n alertSimulatorRequestBody: AlertSimulatorRequestBody,\n options?: AlertsSimulateOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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: { ascLocation, alertSimulatorRequestBody, options },\n spec: simulateOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"original-uri\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Simulate security alerts\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param alertSimulatorRequestBody Alert Simulator Request Properties\n * @param options The options parameters.\n */\n async beginSimulateAndWait(\n ascLocation: string,\n alertSimulatorRequestBody: AlertSimulatorRequestBody,\n options?: AlertsSimulateOptionalParams,\n ): Promise<void> {\n const poller = await this.beginSimulate(\n ascLocation,\n alertSimulatorRequestBody,\n options,\n );\n return poller.pollUntilDone();\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?: AlertsListNextOptionalParams,\n ): Promise<AlertsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: AlertsListByResourceGroupNextOptionalParams,\n ): Promise<AlertsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n\n /**\n * ListSubscriptionLevelByRegionNext\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param nextLink The nextLink from the previous successful call to the ListSubscriptionLevelByRegion\n * method.\n * @param options The options parameters.\n */\n private _listSubscriptionLevelByRegionNext(\n ascLocation: string,\n nextLink: string,\n options?: AlertsListSubscriptionLevelByRegionNextOptionalParams,\n ): Promise<AlertsListSubscriptionLevelByRegionNextResponse> {\n return this.client.sendOperationRequest(\n { ascLocation, nextLink, options },\n listSubscriptionLevelByRegionNextOperationSpec,\n );\n }\n\n /**\n * ListResourceGroupLevelByRegionNext\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListResourceGroupLevelByRegion\n * method.\n * @param options The options parameters.\n */\n private _listResourceGroupLevelByRegionNext(\n ascLocation: string,\n resourceGroupName: string,\n nextLink: string,\n options?: AlertsListResourceGroupLevelByRegionNextOptionalParams,\n ): Promise<AlertsListResourceGroupLevelByRegionNextResponse> {\n return this.client.sendOperationRequest(\n { ascLocation, resourceGroupName, nextLink, options },\n listResourceGroupLevelByRegionNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/alerts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/alerts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listSubscriptionLevelByRegionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listResourceGroupLevelByRegionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getSubscriptionLevelOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Alert,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.alertName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getResourceGroupLevelOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Alert,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.resourceGroupName,\n Parameters.alertName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateSubscriptionLevelStateToDismissOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/dismiss\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.alertName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst updateSubscriptionLevelStateToResolveOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/resolve\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.alertName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst updateSubscriptionLevelStateToActivateOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/activate\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.alertName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst updateSubscriptionLevelStateToInProgressOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/inProgress\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.alertName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst updateResourceGroupLevelStateToResolveOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/resolve\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.resourceGroupName,\n Parameters.alertName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst updateResourceGroupLevelStateToDismissOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/dismiss\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.resourceGroupName,\n Parameters.alertName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst updateResourceGroupLevelStateToActivateOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/activate\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.resourceGroupName,\n Parameters.alertName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst updateResourceGroupLevelStateToInProgressOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/inProgress\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.resourceGroupName,\n Parameters.alertName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst simulateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/default/simulate\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.alertSimulatorRequestBody,\n queryParameters: [Parameters.apiVersion22],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listSubscriptionLevelByRegionNextOperationSpec: coreClient.OperationSpec =\n {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst listResourceGroupLevelByRegionNextOperationSpec: coreClient.OperationSpec =\n {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.nextLink,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing AlertsSuppressionRules operations. */
|
|
15
14
|
export class AlertsSuppressionRulesImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class AlertsSuppressionRules class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -34,52 +34,35 @@ export class AlertsSuppressionRulesImpl {
|
|
|
34
34
|
return this;
|
|
35
35
|
},
|
|
36
36
|
byPage: (settings) => {
|
|
37
|
-
if (settings
|
|
37
|
+
if (settings?.maxPageSize) {
|
|
38
38
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
39
39
|
}
|
|
40
40
|
return this.listPagingPage(options, settings);
|
|
41
41
|
},
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
listPagingPage(options, settings) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
});
|
|
44
|
+
async *listPagingPage(options, settings) {
|
|
45
|
+
let result;
|
|
46
|
+
let continuationToken = settings?.continuationToken;
|
|
47
|
+
if (!continuationToken) {
|
|
48
|
+
result = await this._list(options);
|
|
49
|
+
let page = result.value || [];
|
|
50
|
+
continuationToken = result.nextLink;
|
|
51
|
+
setContinuationToken(page, continuationToken);
|
|
52
|
+
yield page;
|
|
53
|
+
}
|
|
54
|
+
while (continuationToken) {
|
|
55
|
+
result = await this._listNext(continuationToken, options);
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
setContinuationToken(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
63
61
|
}
|
|
64
|
-
listPagingAll(options) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
69
|
-
_c = _f.value;
|
|
70
|
-
_d = false;
|
|
71
|
-
const page = _c;
|
|
72
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
76
|
-
finally {
|
|
77
|
-
try {
|
|
78
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
79
|
-
}
|
|
80
|
-
finally { if (e_1) throw e_1.error; }
|
|
81
|
-
}
|
|
82
|
-
});
|
|
62
|
+
async *listPagingAll(options) {
|
|
63
|
+
for await (const page of this.listPagingPage(options)) {
|
|
64
|
+
yield* page;
|
|
65
|
+
}
|
|
83
66
|
}
|
|
84
67
|
/**
|
|
85
68
|
* List of all the dismiss rules for the given subscription
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alertsSuppressionRules.js","sourceRoot":"","sources":["../../../src/operations/alertsSuppressionRules.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,4CAA4C;AAC5C,0DAA0D;AAC1D,MAAM,OAAO,0BAA0B;IAGrC;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAkD;QAElD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAA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Aa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,yBAAyB;KACrC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,iHAAiH;IACvH,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,yBAAyB;KACrC;IACD,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,0BAA0B;SAC/C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;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 { AlertsSuppressionRules } 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 { SecurityCenter } from \"../securityCenter.js\";\nimport {\n AlertsSuppressionRule,\n AlertsSuppressionRulesListNextOptionalParams,\n AlertsSuppressionRulesListOptionalParams,\n AlertsSuppressionRulesListResponse,\n AlertsSuppressionRulesGetOptionalParams,\n AlertsSuppressionRulesGetResponse,\n AlertsSuppressionRulesUpdateOptionalParams,\n AlertsSuppressionRulesUpdateResponse,\n AlertsSuppressionRulesDeleteOptionalParams,\n AlertsSuppressionRulesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AlertsSuppressionRules operations. */\nexport class AlertsSuppressionRulesImpl implements AlertsSuppressionRules {\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class AlertsSuppressionRules class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * List of all the dismiss rules for the given subscription\n * @param options The options parameters.\n */\n public list(\n options?: AlertsSuppressionRulesListOptionalParams,\n ): PagedAsyncIterableIterator<AlertsSuppressionRule> {\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?: AlertsSuppressionRulesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AlertsSuppressionRule[]> {\n let result: AlertsSuppressionRulesListResponse;\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?: AlertsSuppressionRulesListOptionalParams,\n ): AsyncIterableIterator<AlertsSuppressionRule> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List of all the dismiss rules for the given subscription\n * @param options The options parameters.\n */\n private _list(\n options?: AlertsSuppressionRulesListOptionalParams,\n ): Promise<AlertsSuppressionRulesListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Get dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription\n * @param alertsSuppressionRuleName The unique name of the suppression alert rule\n * @param options The options parameters.\n */\n get(\n alertsSuppressionRuleName: string,\n options?: AlertsSuppressionRulesGetOptionalParams,\n ): Promise<AlertsSuppressionRulesGetResponse> {\n return this.client.sendOperationRequest(\n { alertsSuppressionRuleName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Update existing rule or create new rule if it doesn't exist\n * @param alertsSuppressionRuleName The unique name of the suppression alert rule\n * @param alertsSuppressionRule Suppression rule object\n * @param options The options parameters.\n */\n update(\n alertsSuppressionRuleName: string,\n alertsSuppressionRule: AlertsSuppressionRule,\n options?: AlertsSuppressionRulesUpdateOptionalParams,\n ): Promise<AlertsSuppressionRulesUpdateResponse> {\n return this.client.sendOperationRequest(\n { alertsSuppressionRuleName, alertsSuppressionRule, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Delete dismiss alert rule for this subscription.\n * @param alertsSuppressionRuleName The unique name of the suppression alert rule\n * @param options The options parameters.\n */\n delete(\n alertsSuppressionRuleName: string,\n options?: AlertsSuppressionRulesDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { alertsSuppressionRuleName, options },\n deleteOperationSpec,\n );\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?: AlertsSuppressionRulesListNextOptionalParams,\n ): Promise<AlertsSuppressionRulesListNextResponse> {\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: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/alertsSuppressionRules\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertsSuppressionRulesList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion2, Parameters.alertType],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/alertsSuppressionRules/{alertsSuppressionRuleName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertsSuppressionRule,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.alertsSuppressionRuleName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/alertsSuppressionRules/{alertsSuppressionRuleName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertsSuppressionRule,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.alertsSuppressionRule,\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.alertsSuppressionRuleName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/alertsSuppressionRules/{alertsSuppressionRuleName}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.alertsSuppressionRuleName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertsSuppressionRulesList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"alertsSuppressionRules.js","sourceRoot":"","sources":["../../../src/operations/alertsSuppressionRules.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,4CAA4C;AAC5C,0DAA0D;AAC1D,MAAM,OAAO,0BAA0B;IACpB,MAAM,CAAiB;IAExC;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAkD;QAElD,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,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,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,yBAAyB;KACrC;IACD,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,0BAA0B;SAC/C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;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 { AlertsSuppressionRules } 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 { SecurityCenter } from \"../securityCenter.js\";\nimport {\n AlertsSuppressionRule,\n AlertsSuppressionRulesListNextOptionalParams,\n AlertsSuppressionRulesListOptionalParams,\n AlertsSuppressionRulesListResponse,\n AlertsSuppressionRulesGetOptionalParams,\n AlertsSuppressionRulesGetResponse,\n AlertsSuppressionRulesUpdateOptionalParams,\n AlertsSuppressionRulesUpdateResponse,\n AlertsSuppressionRulesDeleteOptionalParams,\n AlertsSuppressionRulesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AlertsSuppressionRules operations. */\nexport class AlertsSuppressionRulesImpl implements AlertsSuppressionRules {\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class AlertsSuppressionRules class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * List of all the dismiss rules for the given subscription\n * @param options The options parameters.\n */\n public list(\n options?: AlertsSuppressionRulesListOptionalParams,\n ): PagedAsyncIterableIterator<AlertsSuppressionRule> {\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?: AlertsSuppressionRulesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AlertsSuppressionRule[]> {\n let result: AlertsSuppressionRulesListResponse;\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?: AlertsSuppressionRulesListOptionalParams,\n ): AsyncIterableIterator<AlertsSuppressionRule> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List of all the dismiss rules for the given subscription\n * @param options The options parameters.\n */\n private _list(\n options?: AlertsSuppressionRulesListOptionalParams,\n ): Promise<AlertsSuppressionRulesListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Get dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription\n * @param alertsSuppressionRuleName The unique name of the suppression alert rule\n * @param options The options parameters.\n */\n get(\n alertsSuppressionRuleName: string,\n options?: AlertsSuppressionRulesGetOptionalParams,\n ): Promise<AlertsSuppressionRulesGetResponse> {\n return this.client.sendOperationRequest(\n { alertsSuppressionRuleName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Update existing rule or create new rule if it doesn't exist\n * @param alertsSuppressionRuleName The unique name of the suppression alert rule\n * @param alertsSuppressionRule Suppression rule object\n * @param options The options parameters.\n */\n update(\n alertsSuppressionRuleName: string,\n alertsSuppressionRule: AlertsSuppressionRule,\n options?: AlertsSuppressionRulesUpdateOptionalParams,\n ): Promise<AlertsSuppressionRulesUpdateResponse> {\n return this.client.sendOperationRequest(\n { alertsSuppressionRuleName, alertsSuppressionRule, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Delete dismiss alert rule for this subscription.\n * @param alertsSuppressionRuleName The unique name of the suppression alert rule\n * @param options The options parameters.\n */\n delete(\n alertsSuppressionRuleName: string,\n options?: AlertsSuppressionRulesDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { alertsSuppressionRuleName, options },\n deleteOperationSpec,\n );\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?: AlertsSuppressionRulesListNextOptionalParams,\n ): Promise<AlertsSuppressionRulesListNextResponse> {\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: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/alertsSuppressionRules\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertsSuppressionRulesList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion2, Parameters.alertType],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/alertsSuppressionRules/{alertsSuppressionRuleName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertsSuppressionRule,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.alertsSuppressionRuleName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/alertsSuppressionRules/{alertsSuppressionRuleName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertsSuppressionRule,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.alertsSuppressionRule,\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.alertsSuppressionRuleName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/alertsSuppressionRules/{alertsSuppressionRuleName}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.alertsSuppressionRuleName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertsSuppressionRulesList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing AllowedConnections operations. */
|
|
15
14
|
export class AllowedConnectionsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class AllowedConnections class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -34,52 +34,35 @@ export class AllowedConnectionsImpl {
|
|
|
34
34
|
return this;
|
|
35
35
|
},
|
|
36
36
|
byPage: (settings) => {
|
|
37
|
-
if (settings
|
|
37
|
+
if (settings?.maxPageSize) {
|
|
38
38
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
39
39
|
}
|
|
40
40
|
return this.listPagingPage(options, settings);
|
|
41
41
|
},
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
listPagingPage(options, settings) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
});
|
|
44
|
+
async *listPagingPage(options, settings) {
|
|
45
|
+
let result;
|
|
46
|
+
let continuationToken = settings?.continuationToken;
|
|
47
|
+
if (!continuationToken) {
|
|
48
|
+
result = await this._list(options);
|
|
49
|
+
let page = result.value || [];
|
|
50
|
+
continuationToken = result.nextLink;
|
|
51
|
+
setContinuationToken(page, continuationToken);
|
|
52
|
+
yield page;
|
|
53
|
+
}
|
|
54
|
+
while (continuationToken) {
|
|
55
|
+
result = await this._listNext(continuationToken, options);
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
setContinuationToken(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
63
61
|
}
|
|
64
|
-
listPagingAll(options) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
69
|
-
_c = _f.value;
|
|
70
|
-
_d = false;
|
|
71
|
-
const page = _c;
|
|
72
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
76
|
-
finally {
|
|
77
|
-
try {
|
|
78
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
79
|
-
}
|
|
80
|
-
finally { if (e_1) throw e_1.error; }
|
|
81
|
-
}
|
|
82
|
-
});
|
|
62
|
+
async *listPagingAll(options) {
|
|
63
|
+
for await (const page of this.listPagingPage(options)) {
|
|
64
|
+
yield* page;
|
|
65
|
+
}
|
|
83
66
|
}
|
|
84
67
|
/**
|
|
85
68
|
* Gets the list of all possible traffic between resources for the subscription and location.
|
|
@@ -97,52 +80,35 @@ export class AllowedConnectionsImpl {
|
|
|
97
80
|
return this;
|
|
98
81
|
},
|
|
99
82
|
byPage: (settings) => {
|
|
100
|
-
if (settings
|
|
83
|
+
if (settings?.maxPageSize) {
|
|
101
84
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
102
85
|
}
|
|
103
86
|
return this.listByHomeRegionPagingPage(ascLocation, options, settings);
|
|
104
87
|
},
|
|
105
88
|
};
|
|
106
89
|
}
|
|
107
|
-
listByHomeRegionPagingPage(ascLocation, options, settings) {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
125
|
-
});
|
|
90
|
+
async *listByHomeRegionPagingPage(ascLocation, options, settings) {
|
|
91
|
+
let result;
|
|
92
|
+
let continuationToken = settings?.continuationToken;
|
|
93
|
+
if (!continuationToken) {
|
|
94
|
+
result = await this._listByHomeRegion(ascLocation, options);
|
|
95
|
+
let page = result.value || [];
|
|
96
|
+
continuationToken = result.nextLink;
|
|
97
|
+
setContinuationToken(page, continuationToken);
|
|
98
|
+
yield page;
|
|
99
|
+
}
|
|
100
|
+
while (continuationToken) {
|
|
101
|
+
result = await this._listByHomeRegionNext(ascLocation, continuationToken, options);
|
|
102
|
+
continuationToken = result.nextLink;
|
|
103
|
+
let page = result.value || [];
|
|
104
|
+
setContinuationToken(page, continuationToken);
|
|
105
|
+
yield page;
|
|
106
|
+
}
|
|
126
107
|
}
|
|
127
|
-
listByHomeRegionPagingAll(ascLocation, options) {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
for (var _d = true, _e = __asyncValues(this.listByHomeRegionPagingPage(ascLocation, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
132
|
-
_c = _f.value;
|
|
133
|
-
_d = false;
|
|
134
|
-
const page = _c;
|
|
135
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
139
|
-
finally {
|
|
140
|
-
try {
|
|
141
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
142
|
-
}
|
|
143
|
-
finally { if (e_2) throw e_2.error; }
|
|
144
|
-
}
|
|
145
|
-
});
|
|
108
|
+
async *listByHomeRegionPagingAll(ascLocation, options) {
|
|
109
|
+
for await (const page of this.listByHomeRegionPagingPage(ascLocation, options)) {
|
|
110
|
+
yield* page;
|
|
111
|
+
}
|
|
146
112
|
}
|
|
147
113
|
/**
|
|
148
114
|
* Gets the list of all possible traffic between resources for the subscription
|