@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
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing RegulatoryComplianceAssessments operations. */
|
|
18
18
|
class RegulatoryComplianceAssessmentsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class RegulatoryComplianceAssessments class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -39,52 +40,35 @@ class RegulatoryComplianceAssessmentsImpl {
|
|
|
39
40
|
return this;
|
|
40
41
|
},
|
|
41
42
|
byPage: (settings) => {
|
|
42
|
-
if (settings
|
|
43
|
+
if (settings?.maxPageSize) {
|
|
43
44
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
45
|
}
|
|
45
46
|
return this.listPagingPage(regulatoryComplianceStandardName, regulatoryComplianceControlName, options, settings);
|
|
46
47
|
},
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
listPagingPage(regulatoryComplianceStandardName, regulatoryComplianceControlName, options, settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
});
|
|
50
|
+
async *listPagingPage(regulatoryComplianceStandardName, regulatoryComplianceControlName, options, settings) {
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings?.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = await this._list(regulatoryComplianceStandardName, regulatoryComplianceControlName, options);
|
|
55
|
+
let page = result.value || [];
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
58
|
+
yield page;
|
|
59
|
+
}
|
|
60
|
+
while (continuationToken) {
|
|
61
|
+
result = await this._listNext(regulatoryComplianceStandardName, regulatoryComplianceControlName, continuationToken, options);
|
|
62
|
+
continuationToken = result.nextLink;
|
|
63
|
+
let page = result.value || [];
|
|
64
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
65
|
+
yield page;
|
|
66
|
+
}
|
|
68
67
|
}
|
|
69
|
-
listPagingAll(regulatoryComplianceStandardName, regulatoryComplianceControlName, options) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(regulatoryComplianceStandardName, regulatoryComplianceControlName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
74
|
-
_c = _f.value;
|
|
75
|
-
_d = false;
|
|
76
|
-
const page = _c;
|
|
77
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
-
finally {
|
|
82
|
-
try {
|
|
83
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
84
|
-
}
|
|
85
|
-
finally { if (e_1) throw e_1.error; }
|
|
86
|
-
}
|
|
87
|
-
});
|
|
68
|
+
async *listPagingAll(regulatoryComplianceStandardName, regulatoryComplianceControlName, options) {
|
|
69
|
+
for await (const page of this.listPagingPage(regulatoryComplianceStandardName, regulatoryComplianceControlName, options)) {
|
|
70
|
+
yield* page;
|
|
71
|
+
}
|
|
88
72
|
}
|
|
89
73
|
/**
|
|
90
74
|
* Details and state of assessments mapped to selected regulatory compliance control
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regulatoryComplianceAssessments.js","sourceRoot":"","sources":["../../../src/operations/regulatoryComplianceAssessments.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAYtD,4CAA4C;AAC5C,mEAAmE;AACnE,MAAa,mCAAmC;IAK9C;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,gCAAwC,EACxC,+BAAuC,EACvC,OAA2D;QAE3D,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,gCAAgC,EAChC,+BAA+B,EAC/B,OAAO,CACR,CAAC;QACF,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,E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AU,CAAC,+BAA+B;KAC3C;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 { RegulatoryComplianceAssessments } 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 RegulatoryComplianceAssessment,\n RegulatoryComplianceAssessmentsListNextOptionalParams,\n RegulatoryComplianceAssessmentsListOptionalParams,\n RegulatoryComplianceAssessmentsListResponse,\n RegulatoryComplianceAssessmentsGetOptionalParams,\n RegulatoryComplianceAssessmentsGetResponse,\n RegulatoryComplianceAssessmentsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RegulatoryComplianceAssessments operations. */\nexport class RegulatoryComplianceAssessmentsImpl\n implements RegulatoryComplianceAssessments\n{\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class RegulatoryComplianceAssessments class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * Details and state of assessments mapped to selected regulatory compliance control\n * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object\n * @param regulatoryComplianceControlName Name of the regulatory compliance control object\n * @param options The options parameters.\n */\n public list(\n regulatoryComplianceStandardName: string,\n regulatoryComplianceControlName: string,\n options?: RegulatoryComplianceAssessmentsListOptionalParams,\n ): PagedAsyncIterableIterator<RegulatoryComplianceAssessment> {\n const iter = this.listPagingAll(\n regulatoryComplianceStandardName,\n regulatoryComplianceControlName,\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.listPagingPage(\n regulatoryComplianceStandardName,\n regulatoryComplianceControlName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n regulatoryComplianceStandardName: string,\n regulatoryComplianceControlName: string,\n options?: RegulatoryComplianceAssessmentsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<RegulatoryComplianceAssessment[]> {\n let result: RegulatoryComplianceAssessmentsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n regulatoryComplianceStandardName,\n regulatoryComplianceControlName,\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._listNext(\n regulatoryComplianceStandardName,\n regulatoryComplianceControlName,\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 *listPagingAll(\n regulatoryComplianceStandardName: string,\n regulatoryComplianceControlName: string,\n options?: RegulatoryComplianceAssessmentsListOptionalParams,\n ): AsyncIterableIterator<RegulatoryComplianceAssessment> {\n for await (const page of this.listPagingPage(\n regulatoryComplianceStandardName,\n regulatoryComplianceControlName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Details and state of assessments mapped to selected regulatory compliance control\n * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object\n * @param regulatoryComplianceControlName Name of the regulatory compliance control object\n * @param options The options parameters.\n */\n private _list(\n regulatoryComplianceStandardName: string,\n regulatoryComplianceControlName: string,\n options?: RegulatoryComplianceAssessmentsListOptionalParams,\n ): Promise<RegulatoryComplianceAssessmentsListResponse> {\n return this.client.sendOperationRequest(\n {\n regulatoryComplianceStandardName,\n regulatoryComplianceControlName,\n options,\n },\n listOperationSpec,\n );\n }\n\n /**\n * Supported regulatory compliance details and state for selected assessment\n * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object\n * @param regulatoryComplianceControlName Name of the regulatory compliance control object\n * @param regulatoryComplianceAssessmentName Name of the regulatory compliance assessment object\n * @param options The options parameters.\n */\n get(\n regulatoryComplianceStandardName: string,\n regulatoryComplianceControlName: string,\n regulatoryComplianceAssessmentName: string,\n options?: RegulatoryComplianceAssessmentsGetOptionalParams,\n ): Promise<RegulatoryComplianceAssessmentsGetResponse> {\n return this.client.sendOperationRequest(\n {\n regulatoryComplianceStandardName,\n regulatoryComplianceControlName,\n regulatoryComplianceAssessmentName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object\n * @param regulatoryComplianceControlName Name of the regulatory compliance control object\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 regulatoryComplianceStandardName: string,\n regulatoryComplianceControlName: string,\n nextLink: string,\n options?: RegulatoryComplianceAssessmentsListNextOptionalParams,\n ): Promise<RegulatoryComplianceAssessmentsListNextResponse> {\n return this.client.sendOperationRequest(\n {\n regulatoryComplianceStandardName,\n regulatoryComplianceControlName,\n nextLink,\n options,\n },\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/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls/{regulatoryComplianceControlName}/regulatoryComplianceAssessments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegulatoryComplianceAssessmentList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.filter, Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.regulatoryComplianceStandardName,\n Parameters.regulatoryComplianceControlName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls/{regulatoryComplianceControlName}/regulatoryComplianceAssessments/{regulatoryComplianceAssessmentName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegulatoryComplianceAssessment,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.regulatoryComplianceStandardName,\n Parameters.regulatoryComplianceControlName,\n Parameters.regulatoryComplianceAssessmentName,\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.RegulatoryComplianceAssessmentList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.regulatoryComplianceStandardName,\n Parameters.regulatoryComplianceControlName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"regulatoryComplianceAssessments.js","sourceRoot":"","sources":["../../../src/operations/regulatoryComplianceAssessments.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAYtD,4CAA4C;AAC5C,mEAAmE;AACnE,MAAa,mCAAmC;IAG7B,MAAM,CAAiB;IAExC;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,gCAAwC,EACxC,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UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,gCAAgC;QAC3C,UAAU,CAAC,+BAA+B;KAC3C;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 { RegulatoryComplianceAssessments } 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 RegulatoryComplianceAssessment,\n RegulatoryComplianceAssessmentsListNextOptionalParams,\n RegulatoryComplianceAssessmentsListOptionalParams,\n RegulatoryComplianceAssessmentsListResponse,\n RegulatoryComplianceAssessmentsGetOptionalParams,\n RegulatoryComplianceAssessmentsGetResponse,\n RegulatoryComplianceAssessmentsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RegulatoryComplianceAssessments operations. */\nexport class RegulatoryComplianceAssessmentsImpl\n implements RegulatoryComplianceAssessments\n{\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class RegulatoryComplianceAssessments class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * Details and state of assessments mapped to selected regulatory compliance control\n * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object\n * @param regulatoryComplianceControlName Name of the regulatory compliance control object\n * @param options The options parameters.\n */\n public list(\n regulatoryComplianceStandardName: string,\n regulatoryComplianceControlName: string,\n options?: RegulatoryComplianceAssessmentsListOptionalParams,\n ): PagedAsyncIterableIterator<RegulatoryComplianceAssessment> {\n const iter = this.listPagingAll(\n regulatoryComplianceStandardName,\n regulatoryComplianceControlName,\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.listPagingPage(\n regulatoryComplianceStandardName,\n regulatoryComplianceControlName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n regulatoryComplianceStandardName: string,\n regulatoryComplianceControlName: string,\n options?: RegulatoryComplianceAssessmentsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<RegulatoryComplianceAssessment[]> {\n let result: RegulatoryComplianceAssessmentsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n regulatoryComplianceStandardName,\n regulatoryComplianceControlName,\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._listNext(\n regulatoryComplianceStandardName,\n regulatoryComplianceControlName,\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 *listPagingAll(\n regulatoryComplianceStandardName: string,\n regulatoryComplianceControlName: string,\n options?: RegulatoryComplianceAssessmentsListOptionalParams,\n ): AsyncIterableIterator<RegulatoryComplianceAssessment> {\n for await (const page of this.listPagingPage(\n regulatoryComplianceStandardName,\n regulatoryComplianceControlName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Details and state of assessments mapped to selected regulatory compliance control\n * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object\n * @param regulatoryComplianceControlName Name of the regulatory compliance control object\n * @param options The options parameters.\n */\n private _list(\n regulatoryComplianceStandardName: string,\n regulatoryComplianceControlName: string,\n options?: RegulatoryComplianceAssessmentsListOptionalParams,\n ): Promise<RegulatoryComplianceAssessmentsListResponse> {\n return this.client.sendOperationRequest(\n {\n regulatoryComplianceStandardName,\n regulatoryComplianceControlName,\n options,\n },\n listOperationSpec,\n );\n }\n\n /**\n * Supported regulatory compliance details and state for selected assessment\n * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object\n * @param regulatoryComplianceControlName Name of the regulatory compliance control object\n * @param regulatoryComplianceAssessmentName Name of the regulatory compliance assessment object\n * @param options The options parameters.\n */\n get(\n regulatoryComplianceStandardName: string,\n regulatoryComplianceControlName: string,\n regulatoryComplianceAssessmentName: string,\n options?: RegulatoryComplianceAssessmentsGetOptionalParams,\n ): Promise<RegulatoryComplianceAssessmentsGetResponse> {\n return this.client.sendOperationRequest(\n {\n regulatoryComplianceStandardName,\n regulatoryComplianceControlName,\n regulatoryComplianceAssessmentName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object\n * @param regulatoryComplianceControlName Name of the regulatory compliance control object\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 regulatoryComplianceStandardName: string,\n regulatoryComplianceControlName: string,\n nextLink: string,\n options?: RegulatoryComplianceAssessmentsListNextOptionalParams,\n ): Promise<RegulatoryComplianceAssessmentsListNextResponse> {\n return this.client.sendOperationRequest(\n {\n regulatoryComplianceStandardName,\n regulatoryComplianceControlName,\n nextLink,\n options,\n },\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/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls/{regulatoryComplianceControlName}/regulatoryComplianceAssessments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegulatoryComplianceAssessmentList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.filter, Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.regulatoryComplianceStandardName,\n Parameters.regulatoryComplianceControlName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls/{regulatoryComplianceControlName}/regulatoryComplianceAssessments/{regulatoryComplianceAssessmentName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegulatoryComplianceAssessment,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.regulatoryComplianceStandardName,\n Parameters.regulatoryComplianceControlName,\n Parameters.regulatoryComplianceAssessmentName,\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.RegulatoryComplianceAssessmentList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.regulatoryComplianceStandardName,\n Parameters.regulatoryComplianceControlName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing RegulatoryComplianceControls operations. */
|
|
18
18
|
class RegulatoryComplianceControlsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class RegulatoryComplianceControls class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -38,52 +39,35 @@ class RegulatoryComplianceControlsImpl {
|
|
|
38
39
|
return this;
|
|
39
40
|
},
|
|
40
41
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
42
|
+
if (settings?.maxPageSize) {
|
|
42
43
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
44
|
}
|
|
44
45
|
return this.listPagingPage(regulatoryComplianceStandardName, options, settings);
|
|
45
46
|
},
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
|
-
listPagingPage(regulatoryComplianceStandardName, options, settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
});
|
|
49
|
+
async *listPagingPage(regulatoryComplianceStandardName, options, settings) {
|
|
50
|
+
let result;
|
|
51
|
+
let continuationToken = settings?.continuationToken;
|
|
52
|
+
if (!continuationToken) {
|
|
53
|
+
result = await this._list(regulatoryComplianceStandardName, options);
|
|
54
|
+
let page = result.value || [];
|
|
55
|
+
continuationToken = result.nextLink;
|
|
56
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
57
|
+
yield page;
|
|
58
|
+
}
|
|
59
|
+
while (continuationToken) {
|
|
60
|
+
result = await this._listNext(regulatoryComplianceStandardName, continuationToken, options);
|
|
61
|
+
continuationToken = result.nextLink;
|
|
62
|
+
let page = result.value || [];
|
|
63
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
64
|
+
yield page;
|
|
65
|
+
}
|
|
67
66
|
}
|
|
68
|
-
listPagingAll(regulatoryComplianceStandardName, options) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(regulatoryComplianceStandardName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
73
|
-
_c = _f.value;
|
|
74
|
-
_d = false;
|
|
75
|
-
const page = _c;
|
|
76
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
80
|
-
finally {
|
|
81
|
-
try {
|
|
82
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
83
|
-
}
|
|
84
|
-
finally { if (e_1) throw e_1.error; }
|
|
85
|
-
}
|
|
86
|
-
});
|
|
67
|
+
async *listPagingAll(regulatoryComplianceStandardName, options) {
|
|
68
|
+
for await (const page of this.listPagingPage(regulatoryComplianceStandardName, options)) {
|
|
69
|
+
yield* page;
|
|
70
|
+
}
|
|
87
71
|
}
|
|
88
72
|
/**
|
|
89
73
|
* All supported regulatory compliance controls details and state for selected standard
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regulatoryComplianceControls.js","sourceRoot":"","sources":["../../../src/operations/regulatoryComplianceControls.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAYtD,4CAA4C;AAC5C,gEAAgE;AAChE,MAAa,gCAAgC;IAK3C;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,gCAAwC,EACxC,OAAwD;QAExD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,gCAAgC,EAAE,OAAO,CAAC,CAAC;QAC3E,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,MA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AAU,CAAC,WAAW,CAAC;IAC5D,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,gCAAgC;KAC5C;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,8LAA8L;IACpM,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2BAA2B;SAChD;QACD,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,gCAAgC;QAC3C,UAAU,CAAC,+BAA+B;KAC3C;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,+BAA+B;SACpD;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;QACnB,UAAU,CAAC,gCAAgC;KAC5C;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 { RegulatoryComplianceControls } 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 RegulatoryComplianceControl,\n RegulatoryComplianceControlsListNextOptionalParams,\n RegulatoryComplianceControlsListOptionalParams,\n RegulatoryComplianceControlsListResponse,\n RegulatoryComplianceControlsGetOptionalParams,\n RegulatoryComplianceControlsGetResponse,\n RegulatoryComplianceControlsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RegulatoryComplianceControls operations. */\nexport class RegulatoryComplianceControlsImpl\n implements RegulatoryComplianceControls\n{\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class RegulatoryComplianceControls class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * All supported regulatory compliance controls details and state for selected standard\n * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object\n * @param options The options parameters.\n */\n public list(\n regulatoryComplianceStandardName: string,\n options?: RegulatoryComplianceControlsListOptionalParams,\n ): PagedAsyncIterableIterator<RegulatoryComplianceControl> {\n const iter = this.listPagingAll(regulatoryComplianceStandardName, 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(\n regulatoryComplianceStandardName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n regulatoryComplianceStandardName: string,\n options?: RegulatoryComplianceControlsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<RegulatoryComplianceControl[]> {\n let result: RegulatoryComplianceControlsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(regulatoryComplianceStandardName, 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(\n regulatoryComplianceStandardName,\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 *listPagingAll(\n regulatoryComplianceStandardName: string,\n options?: RegulatoryComplianceControlsListOptionalParams,\n ): AsyncIterableIterator<RegulatoryComplianceControl> {\n for await (const page of this.listPagingPage(\n regulatoryComplianceStandardName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * All supported regulatory compliance controls details and state for selected standard\n * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object\n * @param options The options parameters.\n */\n private _list(\n regulatoryComplianceStandardName: string,\n options?: RegulatoryComplianceControlsListOptionalParams,\n ): Promise<RegulatoryComplianceControlsListResponse> {\n return this.client.sendOperationRequest(\n { regulatoryComplianceStandardName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Selected regulatory compliance control details and state\n * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object\n * @param regulatoryComplianceControlName Name of the regulatory compliance control object\n * @param options The options parameters.\n */\n get(\n regulatoryComplianceStandardName: string,\n regulatoryComplianceControlName: string,\n options?: RegulatoryComplianceControlsGetOptionalParams,\n ): Promise<RegulatoryComplianceControlsGetResponse> {\n return this.client.sendOperationRequest(\n {\n regulatoryComplianceStandardName,\n regulatoryComplianceControlName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object\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 regulatoryComplianceStandardName: string,\n nextLink: string,\n options?: RegulatoryComplianceControlsListNextOptionalParams,\n ): Promise<RegulatoryComplianceControlsListNextResponse> {\n return this.client.sendOperationRequest(\n { regulatoryComplianceStandardName, 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/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegulatoryComplianceControlList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.filter, Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.regulatoryComplianceStandardName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls/{regulatoryComplianceControlName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegulatoryComplianceControl,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.regulatoryComplianceStandardName,\n Parameters.regulatoryComplianceControlName,\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.RegulatoryComplianceControlList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.regulatoryComplianceStandardName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"regulatoryComplianceControls.js","sourceRoot":"","sources":["../../../src/operations/regulatoryComplianceControls.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,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AAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,gCAAgC;KAC5C;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 { RegulatoryComplianceControls } 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 RegulatoryComplianceControl,\n RegulatoryComplianceControlsListNextOptionalParams,\n RegulatoryComplianceControlsListOptionalParams,\n RegulatoryComplianceControlsListResponse,\n RegulatoryComplianceControlsGetOptionalParams,\n RegulatoryComplianceControlsGetResponse,\n RegulatoryComplianceControlsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RegulatoryComplianceControls operations. */\nexport class RegulatoryComplianceControlsImpl\n implements RegulatoryComplianceControls\n{\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class RegulatoryComplianceControls class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * All supported regulatory compliance controls details and state for selected standard\n * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object\n * @param options The options parameters.\n */\n public list(\n regulatoryComplianceStandardName: string,\n options?: RegulatoryComplianceControlsListOptionalParams,\n ): PagedAsyncIterableIterator<RegulatoryComplianceControl> {\n const iter = this.listPagingAll(regulatoryComplianceStandardName, 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(\n regulatoryComplianceStandardName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n regulatoryComplianceStandardName: string,\n options?: RegulatoryComplianceControlsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<RegulatoryComplianceControl[]> {\n let result: RegulatoryComplianceControlsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(regulatoryComplianceStandardName, 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(\n regulatoryComplianceStandardName,\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 *listPagingAll(\n regulatoryComplianceStandardName: string,\n options?: RegulatoryComplianceControlsListOptionalParams,\n ): AsyncIterableIterator<RegulatoryComplianceControl> {\n for await (const page of this.listPagingPage(\n regulatoryComplianceStandardName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * All supported regulatory compliance controls details and state for selected standard\n * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object\n * @param options The options parameters.\n */\n private _list(\n regulatoryComplianceStandardName: string,\n options?: RegulatoryComplianceControlsListOptionalParams,\n ): Promise<RegulatoryComplianceControlsListResponse> {\n return this.client.sendOperationRequest(\n { regulatoryComplianceStandardName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Selected regulatory compliance control details and state\n * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object\n * @param regulatoryComplianceControlName Name of the regulatory compliance control object\n * @param options The options parameters.\n */\n get(\n regulatoryComplianceStandardName: string,\n regulatoryComplianceControlName: string,\n options?: RegulatoryComplianceControlsGetOptionalParams,\n ): Promise<RegulatoryComplianceControlsGetResponse> {\n return this.client.sendOperationRequest(\n {\n regulatoryComplianceStandardName,\n regulatoryComplianceControlName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object\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 regulatoryComplianceStandardName: string,\n nextLink: string,\n options?: RegulatoryComplianceControlsListNextOptionalParams,\n ): Promise<RegulatoryComplianceControlsListNextResponse> {\n return this.client.sendOperationRequest(\n { regulatoryComplianceStandardName, 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/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegulatoryComplianceControlList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.filter, Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.regulatoryComplianceStandardName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls/{regulatoryComplianceControlName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegulatoryComplianceControl,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.regulatoryComplianceStandardName,\n Parameters.regulatoryComplianceControlName,\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.RegulatoryComplianceControlList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.regulatoryComplianceStandardName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing RegulatoryComplianceStandards operations. */
|
|
18
18
|
class RegulatoryComplianceStandardsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class RegulatoryComplianceStandards class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -37,52 +38,35 @@ class RegulatoryComplianceStandardsImpl {
|
|
|
37
38
|
return this;
|
|
38
39
|
},
|
|
39
40
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
41
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
43
|
}
|
|
43
44
|
return this.listPagingPage(options, settings);
|
|
44
45
|
},
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
|
-
listPagingPage(options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
48
|
+
async *listPagingPage(options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._list(options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._listNext(continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
66
65
|
}
|
|
67
|
-
listPagingAll(options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
66
|
+
async *listPagingAll(options) {
|
|
67
|
+
for await (const page of this.listPagingPage(options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
86
70
|
}
|
|
87
71
|
/**
|
|
88
72
|
* Supported regulatory compliance standards details and state
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regulatoryComplianceStandards.js","sourceRoot":"","sources":["../../../src/operations/regulatoryComplianceStandards.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAYtD,4CAA4C;AAC5C,iEAAiE;AACjE,MAAa,iCAAiC;
|
|
1
|
+
{"version":3,"file":"regulatoryComplianceStandards.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ed 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 { RegulatoryComplianceStandards } 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 RegulatoryComplianceStandard,\n RegulatoryComplianceStandardsListNextOptionalParams,\n RegulatoryComplianceStandardsListOptionalParams,\n RegulatoryComplianceStandardsListResponse,\n RegulatoryComplianceStandardsGetOptionalParams,\n RegulatoryComplianceStandardsGetResponse,\n RegulatoryComplianceStandardsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RegulatoryComplianceStandards operations. */\nexport class RegulatoryComplianceStandardsImpl\n implements RegulatoryComplianceStandards\n{\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class RegulatoryComplianceStandards class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * Supported regulatory compliance standards details and state\n * @param options The options parameters.\n */\n public list(\n options?: RegulatoryComplianceStandardsListOptionalParams,\n ): PagedAsyncIterableIterator<RegulatoryComplianceStandard> {\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?: RegulatoryComplianceStandardsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<RegulatoryComplianceStandard[]> {\n let result: RegulatoryComplianceStandardsListResponse;\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?: RegulatoryComplianceStandardsListOptionalParams,\n ): AsyncIterableIterator<RegulatoryComplianceStandard> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Supported regulatory compliance standards details and state\n * @param options The options parameters.\n */\n private _list(\n options?: RegulatoryComplianceStandardsListOptionalParams,\n ): Promise<RegulatoryComplianceStandardsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Supported regulatory compliance details state for selected standard\n * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object\n * @param options The options parameters.\n */\n get(\n regulatoryComplianceStandardName: string,\n options?: RegulatoryComplianceStandardsGetOptionalParams,\n ): Promise<RegulatoryComplianceStandardsGetResponse> {\n return this.client.sendOperationRequest(\n { regulatoryComplianceStandardName, options },\n getOperationSpec,\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?: RegulatoryComplianceStandardsListNextOptionalParams,\n ): Promise<RegulatoryComplianceStandardsListNextResponse> {\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/regulatoryComplianceStandards\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegulatoryComplianceStandardList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.filter, Parameters.apiVersion2],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegulatoryComplianceStandard,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.regulatoryComplianceStandardName,\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.RegulatoryComplianceStandardList,\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"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing SecureScoreControlDefinitions operations. */
|
|
18
18
|
class SecureScoreControlDefinitionsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class SecureScoreControlDefinitions class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -37,52 +38,35 @@ class SecureScoreControlDefinitionsImpl {
|
|
|
37
38
|
return this;
|
|
38
39
|
},
|
|
39
40
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
41
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
43
|
}
|
|
43
44
|
return this.listPagingPage(options, settings);
|
|
44
45
|
},
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
|
-
listPagingPage(options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
48
|
+
async *listPagingPage(options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._list(options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._listNext(continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
66
65
|
}
|
|
67
|
-
listPagingAll(options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
66
|
+
async *listPagingAll(options) {
|
|
67
|
+
for await (const page of this.listPagingPage(options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
86
70
|
}
|
|
87
71
|
/**
|
|
88
72
|
* For a specified subscription, list the available security controls, their assessments, and the max
|
|
@@ -99,52 +83,35 @@ class SecureScoreControlDefinitionsImpl {
|
|
|
99
83
|
return this;
|
|
100
84
|
},
|
|
101
85
|
byPage: (settings) => {
|
|
102
|
-
if (settings
|
|
86
|
+
if (settings?.maxPageSize) {
|
|
103
87
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
104
88
|
}
|
|
105
89
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
106
90
|
},
|
|
107
91
|
};
|
|
108
92
|
}
|
|
109
|
-
listBySubscriptionPagingPage(options, settings) {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
});
|
|
93
|
+
async *listBySubscriptionPagingPage(options, settings) {
|
|
94
|
+
let result;
|
|
95
|
+
let continuationToken = settings?.continuationToken;
|
|
96
|
+
if (!continuationToken) {
|
|
97
|
+
result = await this._listBySubscription(options);
|
|
98
|
+
let page = result.value || [];
|
|
99
|
+
continuationToken = result.nextLink;
|
|
100
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
101
|
+
yield page;
|
|
102
|
+
}
|
|
103
|
+
while (continuationToken) {
|
|
104
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
105
|
+
continuationToken = result.nextLink;
|
|
106
|
+
let page = result.value || [];
|
|
107
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
108
|
+
yield page;
|
|
109
|
+
}
|
|
128
110
|
}
|
|
129
|
-
listBySubscriptionPagingAll(options) {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
134
|
-
_c = _f.value;
|
|
135
|
-
_d = false;
|
|
136
|
-
const page = _c;
|
|
137
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
141
|
-
finally {
|
|
142
|
-
try {
|
|
143
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
144
|
-
}
|
|
145
|
-
finally { if (e_2) throw e_2.error; }
|
|
146
|
-
}
|
|
147
|
-
});
|
|
111
|
+
async *listBySubscriptionPagingAll(options) {
|
|
112
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
113
|
+
yield* page;
|
|
114
|
+
}
|
|
148
115
|
}
|
|
149
116
|
/**
|
|
150
117
|
* List the available security controls, their assessments, and the max score
|