@azure/arm-security 6.0.0-alpha.20250718.1 → 6.0.0-alpha.20250730.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +1479 -655
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/aPICollections.js +78 -124
- package/dist/browser/operations/aPICollections.js.map +1 -1
- package/dist/browser/operations/adaptiveApplicationControls.js +1 -0
- package/dist/browser/operations/adaptiveApplicationControls.js.map +1 -1
- package/dist/browser/operations/adaptiveNetworkHardenings.js +34 -46
- package/dist/browser/operations/adaptiveNetworkHardenings.js.map +1 -1
- package/dist/browser/operations/advancedThreatProtection.js +1 -0
- package/dist/browser/operations/advancedThreatProtection.js.map +1 -1
- package/dist/browser/operations/alerts.js +104 -167
- package/dist/browser/operations/alerts.js.map +1 -1
- package/dist/browser/operations/alertsSuppressionRules.js +23 -40
- package/dist/browser/operations/alertsSuppressionRules.js.map +1 -1
- package/dist/browser/operations/allowedConnections.js +45 -79
- package/dist/browser/operations/allowedConnections.js.map +1 -1
- package/dist/browser/operations/applicationOperations.js +1 -0
- package/dist/browser/operations/applicationOperations.js.map +1 -1
- package/dist/browser/operations/applications.js +23 -40
- package/dist/browser/operations/applications.js.map +1 -1
- package/dist/browser/operations/assessments.js +23 -40
- package/dist/browser/operations/assessments.js.map +1 -1
- package/dist/browser/operations/assessmentsMetadata.js +45 -79
- package/dist/browser/operations/assessmentsMetadata.js.map +1 -1
- package/dist/browser/operations/autoProvisioningSettings.js +23 -40
- package/dist/browser/operations/autoProvisioningSettings.js.map +1 -1
- package/dist/browser/operations/automations.js +45 -79
- package/dist/browser/operations/automations.js.map +1 -1
- package/dist/browser/operations/azureDevOpsOrgs.js +45 -52
- package/dist/browser/operations/azureDevOpsOrgs.js.map +1 -1
- package/dist/browser/operations/azureDevOpsProjects.js +45 -52
- package/dist/browser/operations/azureDevOpsProjects.js.map +1 -1
- package/dist/browser/operations/azureDevOpsRepos.js +45 -52
- package/dist/browser/operations/azureDevOpsRepos.js.map +1 -1
- package/dist/browser/operations/complianceResults.js +23 -40
- package/dist/browser/operations/complianceResults.js.map +1 -1
- package/dist/browser/operations/compliances.js +23 -40
- package/dist/browser/operations/compliances.js.map +1 -1
- package/dist/browser/operations/connectors.js +23 -40
- package/dist/browser/operations/connectors.js.map +1 -1
- package/dist/browser/operations/customAssessmentAutomations.js +45 -79
- package/dist/browser/operations/customAssessmentAutomations.js.map +1 -1
- package/dist/browser/operations/customEntityStoreAssignments.js +45 -79
- package/dist/browser/operations/customEntityStoreAssignments.js.map +1 -1
- package/dist/browser/operations/defenderForStorage.js +1 -0
- package/dist/browser/operations/defenderForStorage.js.map +1 -1
- package/dist/browser/operations/devOpsConfigurations.js +56 -58
- package/dist/browser/operations/devOpsConfigurations.js.map +1 -1
- package/dist/browser/operations/devOpsOperationResults.js +1 -0
- package/dist/browser/operations/devOpsOperationResults.js.map +1 -1
- package/dist/browser/operations/deviceSecurityGroups.js +23 -40
- package/dist/browser/operations/deviceSecurityGroups.js.map +1 -1
- package/dist/browser/operations/discoveredSecuritySolutions.js +45 -79
- package/dist/browser/operations/discoveredSecuritySolutions.js.map +1 -1
- package/dist/browser/operations/externalSecuritySolutions.js +45 -79
- package/dist/browser/operations/externalSecuritySolutions.js.map +1 -1
- package/dist/browser/operations/gitHubOwners.js +23 -40
- package/dist/browser/operations/gitHubOwners.js.map +1 -1
- package/dist/browser/operations/gitHubRepos.js +23 -40
- package/dist/browser/operations/gitHubRepos.js.map +1 -1
- package/dist/browser/operations/gitLabGroups.js +23 -40
- package/dist/browser/operations/gitLabGroups.js.map +1 -1
- package/dist/browser/operations/gitLabProjects.js +23 -40
- package/dist/browser/operations/gitLabProjects.js.map +1 -1
- package/dist/browser/operations/gitLabSubgroups.js +1 -0
- package/dist/browser/operations/gitLabSubgroups.js.map +1 -1
- package/dist/browser/operations/governanceAssignments.js +23 -40
- package/dist/browser/operations/governanceAssignments.js.map +1 -1
- package/dist/browser/operations/governanceRules.js +45 -52
- package/dist/browser/operations/governanceRules.js.map +1 -1
- package/dist/browser/operations/healthReports.js +23 -40
- package/dist/browser/operations/healthReports.js.map +1 -1
- package/dist/browser/operations/informationProtectionPolicies.js +23 -40
- package/dist/browser/operations/informationProtectionPolicies.js.map +1 -1
- package/dist/browser/operations/iotSecuritySolution.js +45 -79
- package/dist/browser/operations/iotSecuritySolution.js.map +1 -1
- package/dist/browser/operations/iotSecuritySolutionAnalytics.js +1 -0
- package/dist/browser/operations/iotSecuritySolutionAnalytics.js.map +1 -1
- package/dist/browser/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.js +23 -40
- package/dist/browser/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.js.map +1 -1
- package/dist/browser/operations/iotSecuritySolutionsAnalyticsRecommendation.js +23 -40
- package/dist/browser/operations/iotSecuritySolutionsAnalyticsRecommendation.js.map +1 -1
- package/dist/browser/operations/jitNetworkAccessPolicies.js +89 -157
- package/dist/browser/operations/jitNetworkAccessPolicies.js.map +1 -1
- package/dist/browser/operations/locations.js +23 -40
- package/dist/browser/operations/locations.js.map +1 -1
- package/dist/browser/operations/mdeOnboardings.js +1 -0
- package/dist/browser/operations/mdeOnboardings.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/pricings.js +1 -0
- package/dist/browser/operations/pricings.js.map +1 -1
- package/dist/browser/operations/regulatoryComplianceAssessments.js +23 -40
- package/dist/browser/operations/regulatoryComplianceAssessments.js.map +1 -1
- package/dist/browser/operations/regulatoryComplianceControls.js +23 -40
- package/dist/browser/operations/regulatoryComplianceControls.js.map +1 -1
- package/dist/browser/operations/regulatoryComplianceStandards.js +23 -40
- package/dist/browser/operations/regulatoryComplianceStandards.js.map +1 -1
- package/dist/browser/operations/secureScoreControlDefinitions.js +45 -79
- package/dist/browser/operations/secureScoreControlDefinitions.js.map +1 -1
- package/dist/browser/operations/secureScoreControls.js +45 -79
- package/dist/browser/operations/secureScoreControls.js.map +1 -1
- package/dist/browser/operations/secureScores.js +23 -40
- package/dist/browser/operations/secureScores.js.map +1 -1
- package/dist/browser/operations/securityConnectorApplication.js +1 -0
- package/dist/browser/operations/securityConnectorApplication.js.map +1 -1
- package/dist/browser/operations/securityConnectorApplications.js +23 -40
- package/dist/browser/operations/securityConnectorApplications.js.map +1 -1
- package/dist/browser/operations/securityConnectors.js +45 -79
- package/dist/browser/operations/securityConnectors.js.map +1 -1
- package/dist/browser/operations/securityContacts.js +23 -40
- package/dist/browser/operations/securityContacts.js.map +1 -1
- package/dist/browser/operations/securityOperators.js +1 -0
- package/dist/browser/operations/securityOperators.js.map +1 -1
- package/dist/browser/operations/securitySolutions.js +23 -40
- package/dist/browser/operations/securitySolutions.js.map +1 -1
- package/dist/browser/operations/securitySolutionsReferenceDataOperations.js +1 -0
- package/dist/browser/operations/securitySolutionsReferenceDataOperations.js.map +1 -1
- package/dist/browser/operations/sensitivitySettings.js +1 -0
- package/dist/browser/operations/sensitivitySettings.js.map +1 -1
- package/dist/browser/operations/serverVulnerabilityAssessmentOperations.js +12 -6
- package/dist/browser/operations/serverVulnerabilityAssessmentOperations.js.map +1 -1
- package/dist/browser/operations/serverVulnerabilityAssessmentsSettings.js +23 -40
- package/dist/browser/operations/serverVulnerabilityAssessmentsSettings.js.map +1 -1
- package/dist/browser/operations/settings.js +23 -40
- package/dist/browser/operations/settings.js.map +1 -1
- package/dist/browser/operations/softwareInventories.js +45 -79
- package/dist/browser/operations/softwareInventories.js.map +1 -1
- package/dist/browser/operations/sqlVulnerabilityAssessmentBaselineRules.js +1 -0
- package/dist/browser/operations/sqlVulnerabilityAssessmentBaselineRules.js.map +1 -1
- package/dist/browser/operations/sqlVulnerabilityAssessmentScanResults.js +1 -0
- package/dist/browser/operations/sqlVulnerabilityAssessmentScanResults.js.map +1 -1
- package/dist/browser/operations/sqlVulnerabilityAssessmentScans.js +1 -0
- package/dist/browser/operations/sqlVulnerabilityAssessmentScans.js.map +1 -1
- package/dist/browser/operations/subAssessments.js +45 -79
- package/dist/browser/operations/subAssessments.js.map +1 -1
- package/dist/browser/operations/tasks.js +67 -118
- package/dist/browser/operations/tasks.js.map +1 -1
- package/dist/browser/operations/topology.js +45 -79
- package/dist/browser/operations/topology.js.map +1 -1
- package/dist/browser/operations/workspaceSettings.js +23 -40
- package/dist/browser/operations/workspaceSettings.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/securityCenter.js +82 -5
- package/dist/browser/securityCenter.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +1479 -655
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/aPICollections.js +78 -123
- package/dist/commonjs/operations/aPICollections.js.map +1 -1
- package/dist/commonjs/operations/adaptiveApplicationControls.js +1 -0
- package/dist/commonjs/operations/adaptiveApplicationControls.js.map +1 -1
- package/dist/commonjs/operations/adaptiveNetworkHardenings.js +34 -45
- package/dist/commonjs/operations/adaptiveNetworkHardenings.js.map +1 -1
- package/dist/commonjs/operations/advancedThreatProtection.js +1 -0
- package/dist/commonjs/operations/advancedThreatProtection.js.map +1 -1
- package/dist/commonjs/operations/alerts.js +104 -166
- package/dist/commonjs/operations/alerts.js.map +1 -1
- package/dist/commonjs/operations/alertsSuppressionRules.js +23 -39
- package/dist/commonjs/operations/alertsSuppressionRules.js.map +1 -1
- package/dist/commonjs/operations/allowedConnections.js +45 -78
- package/dist/commonjs/operations/allowedConnections.js.map +1 -1
- package/dist/commonjs/operations/applicationOperations.js +1 -0
- package/dist/commonjs/operations/applicationOperations.js.map +1 -1
- package/dist/commonjs/operations/applications.js +23 -39
- package/dist/commonjs/operations/applications.js.map +1 -1
- package/dist/commonjs/operations/assessments.js +23 -39
- package/dist/commonjs/operations/assessments.js.map +1 -1
- package/dist/commonjs/operations/assessmentsMetadata.js +45 -78
- package/dist/commonjs/operations/assessmentsMetadata.js.map +1 -1
- package/dist/commonjs/operations/autoProvisioningSettings.js +23 -39
- package/dist/commonjs/operations/autoProvisioningSettings.js.map +1 -1
- package/dist/commonjs/operations/automations.js +45 -78
- package/dist/commonjs/operations/automations.js.map +1 -1
- package/dist/commonjs/operations/azureDevOpsOrgs.js +45 -51
- package/dist/commonjs/operations/azureDevOpsOrgs.js.map +1 -1
- package/dist/commonjs/operations/azureDevOpsProjects.js +45 -51
- package/dist/commonjs/operations/azureDevOpsProjects.js.map +1 -1
- package/dist/commonjs/operations/azureDevOpsRepos.js +45 -51
- package/dist/commonjs/operations/azureDevOpsRepos.js.map +1 -1
- package/dist/commonjs/operations/complianceResults.js +23 -39
- package/dist/commonjs/operations/complianceResults.js.map +1 -1
- package/dist/commonjs/operations/compliances.js +23 -39
- package/dist/commonjs/operations/compliances.js.map +1 -1
- package/dist/commonjs/operations/connectors.js +23 -39
- package/dist/commonjs/operations/connectors.js.map +1 -1
- package/dist/commonjs/operations/customAssessmentAutomations.js +45 -78
- package/dist/commonjs/operations/customAssessmentAutomations.js.map +1 -1
- package/dist/commonjs/operations/customEntityStoreAssignments.js +45 -78
- package/dist/commonjs/operations/customEntityStoreAssignments.js.map +1 -1
- package/dist/commonjs/operations/defenderForStorage.js +1 -0
- package/dist/commonjs/operations/defenderForStorage.js.map +1 -1
- package/dist/commonjs/operations/devOpsConfigurations.js +56 -57
- package/dist/commonjs/operations/devOpsConfigurations.js.map +1 -1
- package/dist/commonjs/operations/devOpsOperationResults.js +1 -0
- package/dist/commonjs/operations/devOpsOperationResults.js.map +1 -1
- package/dist/commonjs/operations/deviceSecurityGroups.js +23 -39
- package/dist/commonjs/operations/deviceSecurityGroups.js.map +1 -1
- package/dist/commonjs/operations/discoveredSecuritySolutions.js +45 -78
- package/dist/commonjs/operations/discoveredSecuritySolutions.js.map +1 -1
- package/dist/commonjs/operations/externalSecuritySolutions.js +45 -78
- package/dist/commonjs/operations/externalSecuritySolutions.js.map +1 -1
- package/dist/commonjs/operations/gitHubOwners.js +23 -39
- package/dist/commonjs/operations/gitHubOwners.js.map +1 -1
- package/dist/commonjs/operations/gitHubRepos.js +23 -39
- package/dist/commonjs/operations/gitHubRepos.js.map +1 -1
- package/dist/commonjs/operations/gitLabGroups.js +23 -39
- package/dist/commonjs/operations/gitLabGroups.js.map +1 -1
- package/dist/commonjs/operations/gitLabProjects.js +23 -39
- package/dist/commonjs/operations/gitLabProjects.js.map +1 -1
- package/dist/commonjs/operations/gitLabSubgroups.js +1 -0
- package/dist/commonjs/operations/gitLabSubgroups.js.map +1 -1
- package/dist/commonjs/operations/governanceAssignments.js +23 -39
- package/dist/commonjs/operations/governanceAssignments.js.map +1 -1
- package/dist/commonjs/operations/governanceRules.js +45 -51
- package/dist/commonjs/operations/governanceRules.js.map +1 -1
- package/dist/commonjs/operations/healthReports.js +23 -39
- package/dist/commonjs/operations/healthReports.js.map +1 -1
- package/dist/commonjs/operations/informationProtectionPolicies.js +23 -39
- package/dist/commonjs/operations/informationProtectionPolicies.js.map +1 -1
- package/dist/commonjs/operations/iotSecuritySolution.js +45 -78
- package/dist/commonjs/operations/iotSecuritySolution.js.map +1 -1
- package/dist/commonjs/operations/iotSecuritySolutionAnalytics.js +1 -0
- package/dist/commonjs/operations/iotSecuritySolutionAnalytics.js.map +1 -1
- package/dist/commonjs/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.js +23 -39
- package/dist/commonjs/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.js.map +1 -1
- package/dist/commonjs/operations/iotSecuritySolutionsAnalyticsRecommendation.js +23 -39
- package/dist/commonjs/operations/iotSecuritySolutionsAnalyticsRecommendation.js.map +1 -1
- package/dist/commonjs/operations/jitNetworkAccessPolicies.js +89 -156
- package/dist/commonjs/operations/jitNetworkAccessPolicies.js.map +1 -1
- package/dist/commonjs/operations/locations.js +23 -39
- package/dist/commonjs/operations/locations.js.map +1 -1
- package/dist/commonjs/operations/mdeOnboardings.js +1 -0
- package/dist/commonjs/operations/mdeOnboardings.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/pricings.js +1 -0
- package/dist/commonjs/operations/pricings.js.map +1 -1
- package/dist/commonjs/operations/regulatoryComplianceAssessments.js +23 -39
- package/dist/commonjs/operations/regulatoryComplianceAssessments.js.map +1 -1
- package/dist/commonjs/operations/regulatoryComplianceControls.js +23 -39
- package/dist/commonjs/operations/regulatoryComplianceControls.js.map +1 -1
- package/dist/commonjs/operations/regulatoryComplianceStandards.js +23 -39
- package/dist/commonjs/operations/regulatoryComplianceStandards.js.map +1 -1
- package/dist/commonjs/operations/secureScoreControlDefinitions.js +45 -78
- package/dist/commonjs/operations/secureScoreControlDefinitions.js.map +1 -1
- package/dist/commonjs/operations/secureScoreControls.js +45 -78
- package/dist/commonjs/operations/secureScoreControls.js.map +1 -1
- package/dist/commonjs/operations/secureScores.js +23 -39
- package/dist/commonjs/operations/secureScores.js.map +1 -1
- package/dist/commonjs/operations/securityConnectorApplication.js +1 -0
- package/dist/commonjs/operations/securityConnectorApplication.js.map +1 -1
- package/dist/commonjs/operations/securityConnectorApplications.js +23 -39
- package/dist/commonjs/operations/securityConnectorApplications.js.map +1 -1
- package/dist/commonjs/operations/securityConnectors.js +45 -78
- package/dist/commonjs/operations/securityConnectors.js.map +1 -1
- package/dist/commonjs/operations/securityContacts.js +23 -39
- package/dist/commonjs/operations/securityContacts.js.map +1 -1
- package/dist/commonjs/operations/securityOperators.js +1 -0
- package/dist/commonjs/operations/securityOperators.js.map +1 -1
- package/dist/commonjs/operations/securitySolutions.js +23 -39
- package/dist/commonjs/operations/securitySolutions.js.map +1 -1
- package/dist/commonjs/operations/securitySolutionsReferenceDataOperations.js +1 -0
- package/dist/commonjs/operations/securitySolutionsReferenceDataOperations.js.map +1 -1
- package/dist/commonjs/operations/sensitivitySettings.js +1 -0
- package/dist/commonjs/operations/sensitivitySettings.js.map +1 -1
- package/dist/commonjs/operations/serverVulnerabilityAssessmentOperations.js +12 -6
- package/dist/commonjs/operations/serverVulnerabilityAssessmentOperations.js.map +1 -1
- package/dist/commonjs/operations/serverVulnerabilityAssessmentsSettings.js +23 -39
- package/dist/commonjs/operations/serverVulnerabilityAssessmentsSettings.js.map +1 -1
- package/dist/commonjs/operations/settings.js +23 -39
- package/dist/commonjs/operations/settings.js.map +1 -1
- package/dist/commonjs/operations/softwareInventories.js +45 -78
- package/dist/commonjs/operations/softwareInventories.js.map +1 -1
- package/dist/commonjs/operations/sqlVulnerabilityAssessmentBaselineRules.js +1 -0
- package/dist/commonjs/operations/sqlVulnerabilityAssessmentBaselineRules.js.map +1 -1
- package/dist/commonjs/operations/sqlVulnerabilityAssessmentScanResults.js +1 -0
- package/dist/commonjs/operations/sqlVulnerabilityAssessmentScanResults.js.map +1 -1
- package/dist/commonjs/operations/sqlVulnerabilityAssessmentScans.js +1 -0
- package/dist/commonjs/operations/sqlVulnerabilityAssessmentScans.js.map +1 -1
- package/dist/commonjs/operations/subAssessments.js +45 -78
- package/dist/commonjs/operations/subAssessments.js.map +1 -1
- package/dist/commonjs/operations/tasks.js +67 -117
- package/dist/commonjs/operations/tasks.js.map +1 -1
- package/dist/commonjs/operations/topology.js +45 -78
- package/dist/commonjs/operations/topology.js.map +1 -1
- package/dist/commonjs/operations/workspaceSettings.js +23 -39
- package/dist/commonjs/operations/workspaceSettings.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/securityCenter.js +82 -5
- package/dist/commonjs/securityCenter.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +1479 -655
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/aPICollections.js +78 -124
- package/dist/esm/operations/aPICollections.js.map +1 -1
- package/dist/esm/operations/adaptiveApplicationControls.js +1 -0
- package/dist/esm/operations/adaptiveApplicationControls.js.map +1 -1
- package/dist/esm/operations/adaptiveNetworkHardenings.js +34 -46
- package/dist/esm/operations/adaptiveNetworkHardenings.js.map +1 -1
- package/dist/esm/operations/advancedThreatProtection.js +1 -0
- package/dist/esm/operations/advancedThreatProtection.js.map +1 -1
- package/dist/esm/operations/alerts.js +104 -167
- package/dist/esm/operations/alerts.js.map +1 -1
- package/dist/esm/operations/alertsSuppressionRules.js +23 -40
- package/dist/esm/operations/alertsSuppressionRules.js.map +1 -1
- package/dist/esm/operations/allowedConnections.js +45 -79
- package/dist/esm/operations/allowedConnections.js.map +1 -1
- package/dist/esm/operations/applicationOperations.js +1 -0
- package/dist/esm/operations/applicationOperations.js.map +1 -1
- package/dist/esm/operations/applications.js +23 -40
- package/dist/esm/operations/applications.js.map +1 -1
- package/dist/esm/operations/assessments.js +23 -40
- package/dist/esm/operations/assessments.js.map +1 -1
- package/dist/esm/operations/assessmentsMetadata.js +45 -79
- package/dist/esm/operations/assessmentsMetadata.js.map +1 -1
- package/dist/esm/operations/autoProvisioningSettings.js +23 -40
- package/dist/esm/operations/autoProvisioningSettings.js.map +1 -1
- package/dist/esm/operations/automations.js +45 -79
- package/dist/esm/operations/automations.js.map +1 -1
- package/dist/esm/operations/azureDevOpsOrgs.js +45 -52
- package/dist/esm/operations/azureDevOpsOrgs.js.map +1 -1
- package/dist/esm/operations/azureDevOpsProjects.js +45 -52
- package/dist/esm/operations/azureDevOpsProjects.js.map +1 -1
- package/dist/esm/operations/azureDevOpsRepos.js +45 -52
- package/dist/esm/operations/azureDevOpsRepos.js.map +1 -1
- package/dist/esm/operations/complianceResults.js +23 -40
- package/dist/esm/operations/complianceResults.js.map +1 -1
- package/dist/esm/operations/compliances.js +23 -40
- package/dist/esm/operations/compliances.js.map +1 -1
- package/dist/esm/operations/connectors.js +23 -40
- package/dist/esm/operations/connectors.js.map +1 -1
- package/dist/esm/operations/customAssessmentAutomations.js +45 -79
- package/dist/esm/operations/customAssessmentAutomations.js.map +1 -1
- package/dist/esm/operations/customEntityStoreAssignments.js +45 -79
- package/dist/esm/operations/customEntityStoreAssignments.js.map +1 -1
- package/dist/esm/operations/defenderForStorage.js +1 -0
- package/dist/esm/operations/defenderForStorage.js.map +1 -1
- package/dist/esm/operations/devOpsConfigurations.js +56 -58
- package/dist/esm/operations/devOpsConfigurations.js.map +1 -1
- package/dist/esm/operations/devOpsOperationResults.js +1 -0
- package/dist/esm/operations/devOpsOperationResults.js.map +1 -1
- package/dist/esm/operations/deviceSecurityGroups.js +23 -40
- package/dist/esm/operations/deviceSecurityGroups.js.map +1 -1
- package/dist/esm/operations/discoveredSecuritySolutions.js +45 -79
- package/dist/esm/operations/discoveredSecuritySolutions.js.map +1 -1
- package/dist/esm/operations/externalSecuritySolutions.js +45 -79
- package/dist/esm/operations/externalSecuritySolutions.js.map +1 -1
- package/dist/esm/operations/gitHubOwners.js +23 -40
- package/dist/esm/operations/gitHubOwners.js.map +1 -1
- package/dist/esm/operations/gitHubRepos.js +23 -40
- package/dist/esm/operations/gitHubRepos.js.map +1 -1
- package/dist/esm/operations/gitLabGroups.js +23 -40
- package/dist/esm/operations/gitLabGroups.js.map +1 -1
- package/dist/esm/operations/gitLabProjects.js +23 -40
- package/dist/esm/operations/gitLabProjects.js.map +1 -1
- package/dist/esm/operations/gitLabSubgroups.js +1 -0
- package/dist/esm/operations/gitLabSubgroups.js.map +1 -1
- package/dist/esm/operations/governanceAssignments.js +23 -40
- package/dist/esm/operations/governanceAssignments.js.map +1 -1
- package/dist/esm/operations/governanceRules.js +45 -52
- package/dist/esm/operations/governanceRules.js.map +1 -1
- package/dist/esm/operations/healthReports.js +23 -40
- package/dist/esm/operations/healthReports.js.map +1 -1
- package/dist/esm/operations/informationProtectionPolicies.js +23 -40
- package/dist/esm/operations/informationProtectionPolicies.js.map +1 -1
- package/dist/esm/operations/iotSecuritySolution.js +45 -79
- package/dist/esm/operations/iotSecuritySolution.js.map +1 -1
- package/dist/esm/operations/iotSecuritySolutionAnalytics.js +1 -0
- package/dist/esm/operations/iotSecuritySolutionAnalytics.js.map +1 -1
- package/dist/esm/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.js +23 -40
- package/dist/esm/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.js.map +1 -1
- package/dist/esm/operations/iotSecuritySolutionsAnalyticsRecommendation.js +23 -40
- package/dist/esm/operations/iotSecuritySolutionsAnalyticsRecommendation.js.map +1 -1
- package/dist/esm/operations/jitNetworkAccessPolicies.js +89 -157
- package/dist/esm/operations/jitNetworkAccessPolicies.js.map +1 -1
- package/dist/esm/operations/locations.js +23 -40
- package/dist/esm/operations/locations.js.map +1 -1
- package/dist/esm/operations/mdeOnboardings.js +1 -0
- package/dist/esm/operations/mdeOnboardings.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/pricings.js +1 -0
- package/dist/esm/operations/pricings.js.map +1 -1
- package/dist/esm/operations/regulatoryComplianceAssessments.js +23 -40
- package/dist/esm/operations/regulatoryComplianceAssessments.js.map +1 -1
- package/dist/esm/operations/regulatoryComplianceControls.js +23 -40
- package/dist/esm/operations/regulatoryComplianceControls.js.map +1 -1
- package/dist/esm/operations/regulatoryComplianceStandards.js +23 -40
- package/dist/esm/operations/regulatoryComplianceStandards.js.map +1 -1
- package/dist/esm/operations/secureScoreControlDefinitions.js +45 -79
- package/dist/esm/operations/secureScoreControlDefinitions.js.map +1 -1
- package/dist/esm/operations/secureScoreControls.js +45 -79
- package/dist/esm/operations/secureScoreControls.js.map +1 -1
- package/dist/esm/operations/secureScores.js +23 -40
- package/dist/esm/operations/secureScores.js.map +1 -1
- package/dist/esm/operations/securityConnectorApplication.js +1 -0
- package/dist/esm/operations/securityConnectorApplication.js.map +1 -1
- package/dist/esm/operations/securityConnectorApplications.js +23 -40
- package/dist/esm/operations/securityConnectorApplications.js.map +1 -1
- package/dist/esm/operations/securityConnectors.js +45 -79
- package/dist/esm/operations/securityConnectors.js.map +1 -1
- package/dist/esm/operations/securityContacts.js +23 -40
- package/dist/esm/operations/securityContacts.js.map +1 -1
- package/dist/esm/operations/securityOperators.js +1 -0
- package/dist/esm/operations/securityOperators.js.map +1 -1
- package/dist/esm/operations/securitySolutions.js +23 -40
- package/dist/esm/operations/securitySolutions.js.map +1 -1
- package/dist/esm/operations/securitySolutionsReferenceDataOperations.js +1 -0
- package/dist/esm/operations/securitySolutionsReferenceDataOperations.js.map +1 -1
- package/dist/esm/operations/sensitivitySettings.js +1 -0
- package/dist/esm/operations/sensitivitySettings.js.map +1 -1
- package/dist/esm/operations/serverVulnerabilityAssessmentOperations.js +12 -6
- package/dist/esm/operations/serverVulnerabilityAssessmentOperations.js.map +1 -1
- package/dist/esm/operations/serverVulnerabilityAssessmentsSettings.js +23 -40
- package/dist/esm/operations/serverVulnerabilityAssessmentsSettings.js.map +1 -1
- package/dist/esm/operations/settings.js +23 -40
- package/dist/esm/operations/settings.js.map +1 -1
- package/dist/esm/operations/softwareInventories.js +45 -79
- package/dist/esm/operations/softwareInventories.js.map +1 -1
- package/dist/esm/operations/sqlVulnerabilityAssessmentBaselineRules.js +1 -0
- package/dist/esm/operations/sqlVulnerabilityAssessmentBaselineRules.js.map +1 -1
- package/dist/esm/operations/sqlVulnerabilityAssessmentScanResults.js +1 -0
- package/dist/esm/operations/sqlVulnerabilityAssessmentScanResults.js.map +1 -1
- package/dist/esm/operations/sqlVulnerabilityAssessmentScans.js +1 -0
- package/dist/esm/operations/sqlVulnerabilityAssessmentScans.js.map +1 -1
- package/dist/esm/operations/subAssessments.js +45 -79
- package/dist/esm/operations/subAssessments.js.map +1 -1
- package/dist/esm/operations/tasks.js +67 -118
- package/dist/esm/operations/tasks.js.map +1 -1
- package/dist/esm/operations/topology.js +45 -79
- package/dist/esm/operations/topology.js.map +1 -1
- package/dist/esm/operations/workspaceSettings.js +23 -40
- package/dist/esm/operations/workspaceSettings.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/securityCenter.js +82 -5
- package/dist/esm/securityCenter.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +1479 -655
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/aPICollections.js +78 -124
- package/dist/react-native/operations/aPICollections.js.map +1 -1
- package/dist/react-native/operations/adaptiveApplicationControls.js +1 -0
- package/dist/react-native/operations/adaptiveApplicationControls.js.map +1 -1
- package/dist/react-native/operations/adaptiveNetworkHardenings.js +34 -46
- package/dist/react-native/operations/adaptiveNetworkHardenings.js.map +1 -1
- package/dist/react-native/operations/advancedThreatProtection.js +1 -0
- package/dist/react-native/operations/advancedThreatProtection.js.map +1 -1
- package/dist/react-native/operations/alerts.js +104 -167
- package/dist/react-native/operations/alerts.js.map +1 -1
- package/dist/react-native/operations/alertsSuppressionRules.js +23 -40
- package/dist/react-native/operations/alertsSuppressionRules.js.map +1 -1
- package/dist/react-native/operations/allowedConnections.js +45 -79
- package/dist/react-native/operations/allowedConnections.js.map +1 -1
- package/dist/react-native/operations/applicationOperations.js +1 -0
- package/dist/react-native/operations/applicationOperations.js.map +1 -1
- package/dist/react-native/operations/applications.js +23 -40
- package/dist/react-native/operations/applications.js.map +1 -1
- package/dist/react-native/operations/assessments.js +23 -40
- package/dist/react-native/operations/assessments.js.map +1 -1
- package/dist/react-native/operations/assessmentsMetadata.js +45 -79
- package/dist/react-native/operations/assessmentsMetadata.js.map +1 -1
- package/dist/react-native/operations/autoProvisioningSettings.js +23 -40
- package/dist/react-native/operations/autoProvisioningSettings.js.map +1 -1
- package/dist/react-native/operations/automations.js +45 -79
- package/dist/react-native/operations/automations.js.map +1 -1
- package/dist/react-native/operations/azureDevOpsOrgs.js +45 -52
- package/dist/react-native/operations/azureDevOpsOrgs.js.map +1 -1
- package/dist/react-native/operations/azureDevOpsProjects.js +45 -52
- package/dist/react-native/operations/azureDevOpsProjects.js.map +1 -1
- package/dist/react-native/operations/azureDevOpsRepos.js +45 -52
- package/dist/react-native/operations/azureDevOpsRepos.js.map +1 -1
- package/dist/react-native/operations/complianceResults.js +23 -40
- package/dist/react-native/operations/complianceResults.js.map +1 -1
- package/dist/react-native/operations/compliances.js +23 -40
- package/dist/react-native/operations/compliances.js.map +1 -1
- package/dist/react-native/operations/connectors.js +23 -40
- package/dist/react-native/operations/connectors.js.map +1 -1
- package/dist/react-native/operations/customAssessmentAutomations.js +45 -79
- package/dist/react-native/operations/customAssessmentAutomations.js.map +1 -1
- package/dist/react-native/operations/customEntityStoreAssignments.js +45 -79
- package/dist/react-native/operations/customEntityStoreAssignments.js.map +1 -1
- package/dist/react-native/operations/defenderForStorage.js +1 -0
- package/dist/react-native/operations/defenderForStorage.js.map +1 -1
- package/dist/react-native/operations/devOpsConfigurations.js +56 -58
- package/dist/react-native/operations/devOpsConfigurations.js.map +1 -1
- package/dist/react-native/operations/devOpsOperationResults.js +1 -0
- package/dist/react-native/operations/devOpsOperationResults.js.map +1 -1
- package/dist/react-native/operations/deviceSecurityGroups.js +23 -40
- package/dist/react-native/operations/deviceSecurityGroups.js.map +1 -1
- package/dist/react-native/operations/discoveredSecuritySolutions.js +45 -79
- package/dist/react-native/operations/discoveredSecuritySolutions.js.map +1 -1
- package/dist/react-native/operations/externalSecuritySolutions.js +45 -79
- package/dist/react-native/operations/externalSecuritySolutions.js.map +1 -1
- package/dist/react-native/operations/gitHubOwners.js +23 -40
- package/dist/react-native/operations/gitHubOwners.js.map +1 -1
- package/dist/react-native/operations/gitHubRepos.js +23 -40
- package/dist/react-native/operations/gitHubRepos.js.map +1 -1
- package/dist/react-native/operations/gitLabGroups.js +23 -40
- package/dist/react-native/operations/gitLabGroups.js.map +1 -1
- package/dist/react-native/operations/gitLabProjects.js +23 -40
- package/dist/react-native/operations/gitLabProjects.js.map +1 -1
- package/dist/react-native/operations/gitLabSubgroups.js +1 -0
- package/dist/react-native/operations/gitLabSubgroups.js.map +1 -1
- package/dist/react-native/operations/governanceAssignments.js +23 -40
- package/dist/react-native/operations/governanceAssignments.js.map +1 -1
- package/dist/react-native/operations/governanceRules.js +45 -52
- package/dist/react-native/operations/governanceRules.js.map +1 -1
- package/dist/react-native/operations/healthReports.js +23 -40
- package/dist/react-native/operations/healthReports.js.map +1 -1
- package/dist/react-native/operations/informationProtectionPolicies.js +23 -40
- package/dist/react-native/operations/informationProtectionPolicies.js.map +1 -1
- package/dist/react-native/operations/iotSecuritySolution.js +45 -79
- package/dist/react-native/operations/iotSecuritySolution.js.map +1 -1
- package/dist/react-native/operations/iotSecuritySolutionAnalytics.js +1 -0
- package/dist/react-native/operations/iotSecuritySolutionAnalytics.js.map +1 -1
- package/dist/react-native/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.js +23 -40
- package/dist/react-native/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.js.map +1 -1
- package/dist/react-native/operations/iotSecuritySolutionsAnalyticsRecommendation.js +23 -40
- package/dist/react-native/operations/iotSecuritySolutionsAnalyticsRecommendation.js.map +1 -1
- package/dist/react-native/operations/jitNetworkAccessPolicies.js +89 -157
- package/dist/react-native/operations/jitNetworkAccessPolicies.js.map +1 -1
- package/dist/react-native/operations/locations.js +23 -40
- package/dist/react-native/operations/locations.js.map +1 -1
- package/dist/react-native/operations/mdeOnboardings.js +1 -0
- package/dist/react-native/operations/mdeOnboardings.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/pricings.js +1 -0
- package/dist/react-native/operations/pricings.js.map +1 -1
- package/dist/react-native/operations/regulatoryComplianceAssessments.js +23 -40
- package/dist/react-native/operations/regulatoryComplianceAssessments.js.map +1 -1
- package/dist/react-native/operations/regulatoryComplianceControls.js +23 -40
- package/dist/react-native/operations/regulatoryComplianceControls.js.map +1 -1
- package/dist/react-native/operations/regulatoryComplianceStandards.js +23 -40
- package/dist/react-native/operations/regulatoryComplianceStandards.js.map +1 -1
- package/dist/react-native/operations/secureScoreControlDefinitions.js +45 -79
- package/dist/react-native/operations/secureScoreControlDefinitions.js.map +1 -1
- package/dist/react-native/operations/secureScoreControls.js +45 -79
- package/dist/react-native/operations/secureScoreControls.js.map +1 -1
- package/dist/react-native/operations/secureScores.js +23 -40
- package/dist/react-native/operations/secureScores.js.map +1 -1
- package/dist/react-native/operations/securityConnectorApplication.js +1 -0
- package/dist/react-native/operations/securityConnectorApplication.js.map +1 -1
- package/dist/react-native/operations/securityConnectorApplications.js +23 -40
- package/dist/react-native/operations/securityConnectorApplications.js.map +1 -1
- package/dist/react-native/operations/securityConnectors.js +45 -79
- package/dist/react-native/operations/securityConnectors.js.map +1 -1
- package/dist/react-native/operations/securityContacts.js +23 -40
- package/dist/react-native/operations/securityContacts.js.map +1 -1
- package/dist/react-native/operations/securityOperators.js +1 -0
- package/dist/react-native/operations/securityOperators.js.map +1 -1
- package/dist/react-native/operations/securitySolutions.js +23 -40
- package/dist/react-native/operations/securitySolutions.js.map +1 -1
- package/dist/react-native/operations/securitySolutionsReferenceDataOperations.js +1 -0
- package/dist/react-native/operations/securitySolutionsReferenceDataOperations.js.map +1 -1
- package/dist/react-native/operations/sensitivitySettings.js +1 -0
- package/dist/react-native/operations/sensitivitySettings.js.map +1 -1
- package/dist/react-native/operations/serverVulnerabilityAssessmentOperations.js +12 -6
- package/dist/react-native/operations/serverVulnerabilityAssessmentOperations.js.map +1 -1
- package/dist/react-native/operations/serverVulnerabilityAssessmentsSettings.js +23 -40
- package/dist/react-native/operations/serverVulnerabilityAssessmentsSettings.js.map +1 -1
- package/dist/react-native/operations/settings.js +23 -40
- package/dist/react-native/operations/settings.js.map +1 -1
- package/dist/react-native/operations/softwareInventories.js +45 -79
- package/dist/react-native/operations/softwareInventories.js.map +1 -1
- package/dist/react-native/operations/sqlVulnerabilityAssessmentBaselineRules.js +1 -0
- package/dist/react-native/operations/sqlVulnerabilityAssessmentBaselineRules.js.map +1 -1
- package/dist/react-native/operations/sqlVulnerabilityAssessmentScanResults.js +1 -0
- package/dist/react-native/operations/sqlVulnerabilityAssessmentScanResults.js.map +1 -1
- package/dist/react-native/operations/sqlVulnerabilityAssessmentScans.js +1 -0
- package/dist/react-native/operations/sqlVulnerabilityAssessmentScans.js.map +1 -1
- package/dist/react-native/operations/subAssessments.js +45 -79
- package/dist/react-native/operations/subAssessments.js.map +1 -1
- package/dist/react-native/operations/tasks.js +67 -118
- package/dist/react-native/operations/tasks.js.map +1 -1
- package/dist/react-native/operations/topology.js +45 -79
- package/dist/react-native/operations/topology.js.map +1 -1
- package/dist/react-native/operations/workspaceSettings.js +23 -40
- package/dist/react-native/operations/workspaceSettings.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/securityCenter.js +82 -5
- package/dist/react-native/securityCenter.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-security-node.api.md +7369 -7369
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"topology.js","sourceRoot":"","sources":["../../../src/operations/topology.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAgBtD,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAM,OAAO,YAAY;IAGvB;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAoC;QAEpC,MAAM,IAA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AI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,YAAY;SACjC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","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 { Topology } 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 TopologyResource,\n TopologyListNextOptionalParams,\n TopologyListOptionalParams,\n TopologyListResponse,\n TopologyListByHomeRegionNextOptionalParams,\n TopologyListByHomeRegionOptionalParams,\n TopologyListByHomeRegionResponse,\n TopologyGetOptionalParams,\n TopologyGetResponse,\n TopologyListNextResponse,\n TopologyListByHomeRegionNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Topology operations. */\nexport class TopologyImpl implements Topology {\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class Topology class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * Gets a list that allows to build a topology view of a subscription.\n * @param options The options parameters.\n */\n public list(\n options?: TopologyListOptionalParams,\n ): PagedAsyncIterableIterator<TopologyResource> {\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?: TopologyListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<TopologyResource[]> {\n let result: TopologyListResponse;\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?: TopologyListOptionalParams,\n ): AsyncIterableIterator<TopologyResource> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets a list that allows to build a topology view of a subscription and location.\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param options The options parameters.\n */\n public listByHomeRegion(\n ascLocation: string,\n options?: TopologyListByHomeRegionOptionalParams,\n ): PagedAsyncIterableIterator<TopologyResource> {\n const iter = this.listByHomeRegionPagingAll(ascLocation, 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.listByHomeRegionPagingPage(ascLocation, options, settings);\n },\n };\n }\n\n private async *listByHomeRegionPagingPage(\n ascLocation: string,\n options?: TopologyListByHomeRegionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<TopologyResource[]> {\n let result: TopologyListByHomeRegionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByHomeRegion(ascLocation, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByHomeRegionNext(\n ascLocation,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByHomeRegionPagingAll(\n ascLocation: string,\n options?: TopologyListByHomeRegionOptionalParams,\n ): AsyncIterableIterator<TopologyResource> {\n for await (const page of this.listByHomeRegionPagingPage(\n ascLocation,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets a list that allows to build a topology view of a subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: TopologyListOptionalParams,\n ): Promise<TopologyListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Gets a list that allows to build a topology view of a subscription and location.\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param options The options parameters.\n */\n private _listByHomeRegion(\n ascLocation: string,\n options?: TopologyListByHomeRegionOptionalParams,\n ): Promise<TopologyListByHomeRegionResponse> {\n return this.client.sendOperationRequest(\n { ascLocation, options },\n listByHomeRegionOperationSpec,\n );\n }\n\n /**\n * Gets a specific topology component.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param topologyResourceName Name of a topology resources collection.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n ascLocation: string,\n topologyResourceName: string,\n options?: TopologyGetOptionalParams,\n ): Promise<TopologyGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, ascLocation, topologyResourceName, 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?: TopologyListNextOptionalParams,\n ): Promise<TopologyListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n\n /**\n * ListByHomeRegionNext\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param nextLink The nextLink from the previous successful call to the ListByHomeRegion method.\n * @param options The options parameters.\n */\n private _listByHomeRegionNext(\n ascLocation: string,\n nextLink: string,\n options?: TopologyListByHomeRegionNextOptionalParams,\n ): Promise<TopologyListByHomeRegionNextResponse> {\n return this.client.sendOperationRequest(\n { ascLocation, nextLink, options },\n listByHomeRegionNextOperationSpec,\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/topologies\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TopologyList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion20],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByHomeRegionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/topologies\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TopologyList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion20],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/topologies/{topologyResourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TopologyResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion20],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.resourceGroupName,\n Parameters.topologyResourceName,\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.TopologyList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByHomeRegionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TopologyList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"topology.js","sourceRoot":"","sources":["../../../src/operations/topology.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAgBtD,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAM,OAAO,YAAY;IACN,MAAM,CAAiB;IAExC;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAoC;QAEpC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAA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AU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC;IAC1C,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,oBAAoB;KAChC;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,YAAY;SACjC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iCAAiC,GAA6B;IAClE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,YAAY;SACjC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","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 { Topology } 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 TopologyResource,\n TopologyListNextOptionalParams,\n TopologyListOptionalParams,\n TopologyListResponse,\n TopologyListByHomeRegionNextOptionalParams,\n TopologyListByHomeRegionOptionalParams,\n TopologyListByHomeRegionResponse,\n TopologyGetOptionalParams,\n TopologyGetResponse,\n TopologyListNextResponse,\n TopologyListByHomeRegionNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Topology operations. */\nexport class TopologyImpl implements Topology {\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class Topology class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * Gets a list that allows to build a topology view of a subscription.\n * @param options The options parameters.\n */\n public list(\n options?: TopologyListOptionalParams,\n ): PagedAsyncIterableIterator<TopologyResource> {\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?: TopologyListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<TopologyResource[]> {\n let result: TopologyListResponse;\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?: TopologyListOptionalParams,\n ): AsyncIterableIterator<TopologyResource> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets a list that allows to build a topology view of a subscription and location.\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param options The options parameters.\n */\n public listByHomeRegion(\n ascLocation: string,\n options?: TopologyListByHomeRegionOptionalParams,\n ): PagedAsyncIterableIterator<TopologyResource> {\n const iter = this.listByHomeRegionPagingAll(ascLocation, 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.listByHomeRegionPagingPage(ascLocation, options, settings);\n },\n };\n }\n\n private async *listByHomeRegionPagingPage(\n ascLocation: string,\n options?: TopologyListByHomeRegionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<TopologyResource[]> {\n let result: TopologyListByHomeRegionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByHomeRegion(ascLocation, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByHomeRegionNext(\n ascLocation,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByHomeRegionPagingAll(\n ascLocation: string,\n options?: TopologyListByHomeRegionOptionalParams,\n ): AsyncIterableIterator<TopologyResource> {\n for await (const page of this.listByHomeRegionPagingPage(\n ascLocation,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets a list that allows to build a topology view of a subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: TopologyListOptionalParams,\n ): Promise<TopologyListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Gets a list that allows to build a topology view of a subscription and location.\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param options The options parameters.\n */\n private _listByHomeRegion(\n ascLocation: string,\n options?: TopologyListByHomeRegionOptionalParams,\n ): Promise<TopologyListByHomeRegionResponse> {\n return this.client.sendOperationRequest(\n { ascLocation, options },\n listByHomeRegionOperationSpec,\n );\n }\n\n /**\n * Gets a specific topology component.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param topologyResourceName Name of a topology resources collection.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n ascLocation: string,\n topologyResourceName: string,\n options?: TopologyGetOptionalParams,\n ): Promise<TopologyGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, ascLocation, topologyResourceName, 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?: TopologyListNextOptionalParams,\n ): Promise<TopologyListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n\n /**\n * ListByHomeRegionNext\n * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from\n * Get locations\n * @param nextLink The nextLink from the previous successful call to the ListByHomeRegion method.\n * @param options The options parameters.\n */\n private _listByHomeRegionNext(\n ascLocation: string,\n nextLink: string,\n options?: TopologyListByHomeRegionNextOptionalParams,\n ): Promise<TopologyListByHomeRegionNextResponse> {\n return this.client.sendOperationRequest(\n { ascLocation, nextLink, options },\n listByHomeRegionNextOperationSpec,\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/topologies\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TopologyList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion20],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByHomeRegionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/topologies\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TopologyList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion20],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/topologies/{topologyResourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TopologyResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion20],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.resourceGroupName,\n Parameters.topologyResourceName,\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.TopologyList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByHomeRegionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TopologyList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.ascLocation,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing WorkspaceSettings operations. */
|
|
15
14
|
export class WorkspaceSettingsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class WorkspaceSettings class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -35,52 +35,35 @@ export class WorkspaceSettingsImpl {
|
|
|
35
35
|
return this;
|
|
36
36
|
},
|
|
37
37
|
byPage: (settings) => {
|
|
38
|
-
if (settings
|
|
38
|
+
if (settings?.maxPageSize) {
|
|
39
39
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
40
40
|
}
|
|
41
41
|
return this.listPagingPage(options, settings);
|
|
42
42
|
},
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
listPagingPage(options, settings) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
});
|
|
45
|
+
async *listPagingPage(options, settings) {
|
|
46
|
+
let result;
|
|
47
|
+
let continuationToken = settings?.continuationToken;
|
|
48
|
+
if (!continuationToken) {
|
|
49
|
+
result = await this._list(options);
|
|
50
|
+
let page = result.value || [];
|
|
51
|
+
continuationToken = result.nextLink;
|
|
52
|
+
setContinuationToken(page, continuationToken);
|
|
53
|
+
yield page;
|
|
54
|
+
}
|
|
55
|
+
while (continuationToken) {
|
|
56
|
+
result = await this._listNext(continuationToken, options);
|
|
57
|
+
continuationToken = result.nextLink;
|
|
58
|
+
let page = result.value || [];
|
|
59
|
+
setContinuationToken(page, continuationToken);
|
|
60
|
+
yield page;
|
|
61
|
+
}
|
|
64
62
|
}
|
|
65
|
-
listPagingAll(options) {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
70
|
-
_c = _f.value;
|
|
71
|
-
_d = false;
|
|
72
|
-
const page = _c;
|
|
73
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
77
|
-
finally {
|
|
78
|
-
try {
|
|
79
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
80
|
-
}
|
|
81
|
-
finally { if (e_1) throw e_1.error; }
|
|
82
|
-
}
|
|
83
|
-
});
|
|
63
|
+
async *listPagingAll(options) {
|
|
64
|
+
for await (const page of this.listPagingPage(options)) {
|
|
65
|
+
yield* page;
|
|
66
|
+
}
|
|
84
67
|
}
|
|
85
68
|
/**
|
|
86
69
|
* Settings about where we should store your security data and logs. If the result is empty, it means
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaceSettings.js","sourceRoot":"","sources":["../../../src/operations/workspaceSettings.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAA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UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,uGAAuG;IAC7G,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,oBAAoB;KAChC;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,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { WorkspaceSettings } 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 WorkspaceSetting,\n WorkspaceSettingsListNextOptionalParams,\n WorkspaceSettingsListOptionalParams,\n WorkspaceSettingsListResponse,\n WorkspaceSettingsGetOptionalParams,\n WorkspaceSettingsGetResponse,\n WorkspaceSettingsCreateOptionalParams,\n WorkspaceSettingsCreateResponse,\n WorkspaceSettingsUpdateOptionalParams,\n WorkspaceSettingsUpdateResponse,\n WorkspaceSettingsDeleteOptionalParams,\n WorkspaceSettingsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing WorkspaceSettings operations. */\nexport class WorkspaceSettingsImpl implements WorkspaceSettings {\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class WorkspaceSettings class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * Settings about where we should store your security data and logs. If the result is empty, it means\n * that no custom-workspace configuration was set\n * @param options The options parameters.\n */\n public list(\n options?: WorkspaceSettingsListOptionalParams,\n ): PagedAsyncIterableIterator<WorkspaceSetting> {\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?: WorkspaceSettingsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<WorkspaceSetting[]> {\n let result: WorkspaceSettingsListResponse;\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?: WorkspaceSettingsListOptionalParams,\n ): AsyncIterableIterator<WorkspaceSetting> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Settings about where we should store your security data and logs. If the result is empty, it means\n * that no custom-workspace configuration was set\n * @param options The options parameters.\n */\n private _list(\n options?: WorkspaceSettingsListOptionalParams,\n ): Promise<WorkspaceSettingsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Settings about where we should store your security data and logs. If the result is empty, it means\n * that no custom-workspace configuration was set\n * @param workspaceSettingName Name of the security setting\n * @param options The options parameters.\n */\n get(\n workspaceSettingName: string,\n options?: WorkspaceSettingsGetOptionalParams,\n ): Promise<WorkspaceSettingsGetResponse> {\n return this.client.sendOperationRequest(\n { workspaceSettingName, options },\n getOperationSpec,\n );\n }\n\n /**\n * creating settings about where we should store your security data and logs\n * @param workspaceSettingName Name of the security setting\n * @param workspaceSetting Security data setting object\n * @param options The options parameters.\n */\n create(\n workspaceSettingName: string,\n workspaceSetting: WorkspaceSetting,\n options?: WorkspaceSettingsCreateOptionalParams,\n ): Promise<WorkspaceSettingsCreateResponse> {\n return this.client.sendOperationRequest(\n { workspaceSettingName, workspaceSetting, options },\n createOperationSpec,\n );\n }\n\n /**\n * Settings about where we should store your security data and logs\n * @param workspaceSettingName Name of the security setting\n * @param workspaceSetting Security data setting object\n * @param options The options parameters.\n */\n update(\n workspaceSettingName: string,\n workspaceSetting: WorkspaceSetting,\n options?: WorkspaceSettingsUpdateOptionalParams,\n ): Promise<WorkspaceSettingsUpdateResponse> {\n return this.client.sendOperationRequest(\n { workspaceSettingName, workspaceSetting, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Deletes the custom workspace settings for this subscription. new VMs will report to the default\n * workspace\n * @param workspaceSettingName Name of the security setting\n * @param options The options parameters.\n */\n delete(\n workspaceSettingName: string,\n options?: WorkspaceSettingsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { workspaceSettingName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: WorkspaceSettingsListNextOptionalParams,\n ): Promise<WorkspaceSettingsListNextResponse> {\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/workspaceSettings\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceSettingList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/workspaceSettings/{workspaceSettingName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceSetting,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.workspaceSettingName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/workspaceSettings/{workspaceSettingName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceSetting,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.workspaceSetting,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.workspaceSettingName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/workspaceSettings/{workspaceSettingName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceSetting,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.workspaceSetting,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.workspaceSettingName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/workspaceSettings/{workspaceSettingName}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.workspaceSettingName,\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.WorkspaceSettingList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"workspaceSettings.js","sourceRoot":"","sources":["../../../src/operations/workspaceSettings.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAiBtD,4CAA4C;AAC5C,qDAAqD;AACrD,MAAM,OAAO,qBAAqB;IACf,MAAM,CAAiB;IA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AU,CAAC,cAAc;QACzB,UAAU,CAAC,oBAAoB;KAChC;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,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { WorkspaceSettings } 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 WorkspaceSetting,\n WorkspaceSettingsListNextOptionalParams,\n WorkspaceSettingsListOptionalParams,\n WorkspaceSettingsListResponse,\n WorkspaceSettingsGetOptionalParams,\n WorkspaceSettingsGetResponse,\n WorkspaceSettingsCreateOptionalParams,\n WorkspaceSettingsCreateResponse,\n WorkspaceSettingsUpdateOptionalParams,\n WorkspaceSettingsUpdateResponse,\n WorkspaceSettingsDeleteOptionalParams,\n WorkspaceSettingsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing WorkspaceSettings operations. */\nexport class WorkspaceSettingsImpl implements WorkspaceSettings {\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class WorkspaceSettings class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * Settings about where we should store your security data and logs. If the result is empty, it means\n * that no custom-workspace configuration was set\n * @param options The options parameters.\n */\n public list(\n options?: WorkspaceSettingsListOptionalParams,\n ): PagedAsyncIterableIterator<WorkspaceSetting> {\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?: WorkspaceSettingsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<WorkspaceSetting[]> {\n let result: WorkspaceSettingsListResponse;\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?: WorkspaceSettingsListOptionalParams,\n ): AsyncIterableIterator<WorkspaceSetting> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Settings about where we should store your security data and logs. If the result is empty, it means\n * that no custom-workspace configuration was set\n * @param options The options parameters.\n */\n private _list(\n options?: WorkspaceSettingsListOptionalParams,\n ): Promise<WorkspaceSettingsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Settings about where we should store your security data and logs. If the result is empty, it means\n * that no custom-workspace configuration was set\n * @param workspaceSettingName Name of the security setting\n * @param options The options parameters.\n */\n get(\n workspaceSettingName: string,\n options?: WorkspaceSettingsGetOptionalParams,\n ): Promise<WorkspaceSettingsGetResponse> {\n return this.client.sendOperationRequest(\n { workspaceSettingName, options },\n getOperationSpec,\n );\n }\n\n /**\n * creating settings about where we should store your security data and logs\n * @param workspaceSettingName Name of the security setting\n * @param workspaceSetting Security data setting object\n * @param options The options parameters.\n */\n create(\n workspaceSettingName: string,\n workspaceSetting: WorkspaceSetting,\n options?: WorkspaceSettingsCreateOptionalParams,\n ): Promise<WorkspaceSettingsCreateResponse> {\n return this.client.sendOperationRequest(\n { workspaceSettingName, workspaceSetting, options },\n createOperationSpec,\n );\n }\n\n /**\n * Settings about where we should store your security data and logs\n * @param workspaceSettingName Name of the security setting\n * @param workspaceSetting Security data setting object\n * @param options The options parameters.\n */\n update(\n workspaceSettingName: string,\n workspaceSetting: WorkspaceSetting,\n options?: WorkspaceSettingsUpdateOptionalParams,\n ): Promise<WorkspaceSettingsUpdateResponse> {\n return this.client.sendOperationRequest(\n { workspaceSettingName, workspaceSetting, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Deletes the custom workspace settings for this subscription. new VMs will report to the default\n * workspace\n * @param workspaceSettingName Name of the security setting\n * @param options The options parameters.\n */\n delete(\n workspaceSettingName: string,\n options?: WorkspaceSettingsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { workspaceSettingName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: WorkspaceSettingsListNextOptionalParams,\n ): Promise<WorkspaceSettingsListNextResponse> {\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/workspaceSettings\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceSettingList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/workspaceSettings/{workspaceSettingName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceSetting,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.workspaceSettingName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/workspaceSettings/{workspaceSettingName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceSetting,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.workspaceSetting,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.workspaceSettingName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/workspaceSettings/{workspaceSettingName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceSetting,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.workspaceSetting,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.workspaceSettingName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/workspaceSettings/{workspaceSettingName}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.workspaceSettingName,\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.WorkspaceSettingList,\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"]}
|
|
@@ -14,18 +14,16 @@ const pageMap = new WeakMap();
|
|
|
14
14
|
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
15
15
|
*/
|
|
16
16
|
export function getContinuationToken(page) {
|
|
17
|
-
var _a;
|
|
18
17
|
if (typeof page !== "object" || page === null) {
|
|
19
18
|
return undefined;
|
|
20
19
|
}
|
|
21
|
-
return
|
|
20
|
+
return pageMap.get(page)?.continuationToken;
|
|
22
21
|
}
|
|
23
22
|
export function setContinuationToken(page, continuationToken) {
|
|
24
|
-
var _a;
|
|
25
23
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
26
24
|
return;
|
|
27
25
|
}
|
|
28
|
-
const pageInfo =
|
|
26
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
29
27
|
pageInfo.continuationToken = continuationToken;
|
|
30
28
|
pageMap.set(page, pageInfo);
|
|
31
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,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\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined,\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
|
@@ -11,8 +11,9 @@ import { LocationsImpl, OperationsImpl, TasksImpl, AutoProvisioningSettingsImpl,
|
|
|
11
11
|
import * as Parameters from "./models/parameters.js";
|
|
12
12
|
import * as Mappers from "./models/mappers.js";
|
|
13
13
|
export class SecurityCenter extends coreClient.ServiceClient {
|
|
14
|
+
$host;
|
|
15
|
+
subscriptionId;
|
|
14
16
|
constructor(credentials, subscriptionIdOrOptions, options) {
|
|
15
|
-
var _a, _b, _c;
|
|
16
17
|
if (credentials === undefined) {
|
|
17
18
|
throw new Error("'credentials' cannot be null");
|
|
18
19
|
}
|
|
@@ -35,12 +36,17 @@ export class SecurityCenter extends coreClient.ServiceClient {
|
|
|
35
36
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
36
37
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
37
38
|
: `${packageDetails}`;
|
|
38
|
-
const optionsWithDefaults =
|
|
39
|
+
const optionsWithDefaults = {
|
|
40
|
+
...defaults,
|
|
41
|
+
...options,
|
|
42
|
+
userAgentOptions: {
|
|
39
43
|
userAgentPrefix,
|
|
40
|
-
},
|
|
44
|
+
},
|
|
45
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
|
|
46
|
+
};
|
|
41
47
|
super(optionsWithDefaults);
|
|
42
48
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
43
|
-
if (
|
|
49
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
44
50
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
45
51
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
46
52
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -54,7 +60,8 @@ export class SecurityCenter extends coreClient.ServiceClient {
|
|
|
54
60
|
});
|
|
55
61
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
56
62
|
credential: credentials,
|
|
57
|
-
scopes:
|
|
63
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
64
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
58
65
|
challengeCallbacks: {
|
|
59
66
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
|
|
60
67
|
},
|
|
@@ -159,6 +166,76 @@ export class SecurityCenter extends coreClient.ServiceClient {
|
|
|
159
166
|
getSensitivitySettings(options) {
|
|
160
167
|
return this.sendOperationRequest({ options }, getSensitivitySettingsOperationSpec);
|
|
161
168
|
}
|
|
169
|
+
locations;
|
|
170
|
+
operations;
|
|
171
|
+
tasks;
|
|
172
|
+
autoProvisioningSettings;
|
|
173
|
+
compliances;
|
|
174
|
+
informationProtectionPolicies;
|
|
175
|
+
workspaceSettings;
|
|
176
|
+
alertsSuppressionRules;
|
|
177
|
+
automations;
|
|
178
|
+
regulatoryComplianceStandards;
|
|
179
|
+
regulatoryComplianceControls;
|
|
180
|
+
regulatoryComplianceAssessments;
|
|
181
|
+
subAssessments;
|
|
182
|
+
connectors;
|
|
183
|
+
securityContacts;
|
|
184
|
+
softwareInventories;
|
|
185
|
+
customAssessmentAutomations;
|
|
186
|
+
customEntityStoreAssignments;
|
|
187
|
+
mdeOnboardings;
|
|
188
|
+
governanceAssignments;
|
|
189
|
+
governanceRules;
|
|
190
|
+
applications;
|
|
191
|
+
applicationOperations;
|
|
192
|
+
securityConnectorApplications;
|
|
193
|
+
securityConnectorApplication;
|
|
194
|
+
defenderForStorage;
|
|
195
|
+
securityOperators;
|
|
196
|
+
sqlVulnerabilityAssessmentBaselineRules;
|
|
197
|
+
sqlVulnerabilityAssessmentScans;
|
|
198
|
+
sqlVulnerabilityAssessmentScanResults;
|
|
199
|
+
sensitivitySettings;
|
|
200
|
+
healthReports;
|
|
201
|
+
azureDevOpsOrgs;
|
|
202
|
+
azureDevOpsProjects;
|
|
203
|
+
azureDevOpsRepos;
|
|
204
|
+
devOpsConfigurations;
|
|
205
|
+
gitHubOwners;
|
|
206
|
+
gitHubRepos;
|
|
207
|
+
gitLabGroups;
|
|
208
|
+
gitLabSubgroups;
|
|
209
|
+
gitLabProjects;
|
|
210
|
+
devOpsOperationResults;
|
|
211
|
+
securityConnectors;
|
|
212
|
+
complianceResults;
|
|
213
|
+
advancedThreatProtection;
|
|
214
|
+
deviceSecurityGroups;
|
|
215
|
+
iotSecuritySolutionAnalytics;
|
|
216
|
+
iotSecuritySolutionsAnalyticsAggregatedAlert;
|
|
217
|
+
iotSecuritySolutionsAnalyticsRecommendation;
|
|
218
|
+
iotSecuritySolution;
|
|
219
|
+
adaptiveNetworkHardenings;
|
|
220
|
+
allowedConnections;
|
|
221
|
+
adaptiveApplicationControls;
|
|
222
|
+
discoveredSecuritySolutions;
|
|
223
|
+
externalSecuritySolutions;
|
|
224
|
+
jitNetworkAccessPolicies;
|
|
225
|
+
secureScores;
|
|
226
|
+
secureScoreControls;
|
|
227
|
+
secureScoreControlDefinitions;
|
|
228
|
+
securitySolutions;
|
|
229
|
+
securitySolutionsReferenceDataOperations;
|
|
230
|
+
serverVulnerabilityAssessmentOperations;
|
|
231
|
+
topology;
|
|
232
|
+
assessmentsMetadata;
|
|
233
|
+
assessments;
|
|
234
|
+
alerts;
|
|
235
|
+
settings;
|
|
236
|
+
serverVulnerabilityAssessmentsSettings;
|
|
237
|
+
aPICollections;
|
|
238
|
+
pricings;
|
|
162
239
|
}
|
|
163
240
|
// Operation Specifications
|
|
164
241
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"securityCenter.js","sourceRoot":"","sources":["../../src/security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,CAAC;CAwEF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,sCAAsC,GAA6B;IACvE,IAAI,EAAE,2DAA2D;IACjE,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,mBAAmB;IAC3C,eAAe,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC;IAC1C,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,2DAA2D;IACjE,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC;IAC1C,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n LocationsImpl,\n OperationsImpl,\n TasksImpl,\n AutoProvisioningSettingsImpl,\n CompliancesImpl,\n InformationProtectionPoliciesImpl,\n WorkspaceSettingsImpl,\n AlertsSuppressionRulesImpl,\n AutomationsImpl,\n RegulatoryComplianceStandardsImpl,\n RegulatoryComplianceControlsImpl,\n RegulatoryComplianceAssessmentsImpl,\n SubAssessmentsImpl,\n ConnectorsImpl,\n SecurityContactsImpl,\n SoftwareInventoriesImpl,\n CustomAssessmentAutomationsImpl,\n CustomEntityStoreAssignmentsImpl,\n MdeOnboardingsImpl,\n GovernanceAssignmentsImpl,\n GovernanceRulesImpl,\n ApplicationsImpl,\n ApplicationOperationsImpl,\n SecurityConnectorApplicationsImpl,\n SecurityConnectorApplicationImpl,\n DefenderForStorageImpl,\n SecurityOperatorsImpl,\n SqlVulnerabilityAssessmentBaselineRulesImpl,\n SqlVulnerabilityAssessmentScansImpl,\n SqlVulnerabilityAssessmentScanResultsImpl,\n SensitivitySettingsImpl,\n HealthReportsImpl,\n AzureDevOpsOrgsImpl,\n AzureDevOpsProjectsImpl,\n AzureDevOpsReposImpl,\n DevOpsConfigurationsImpl,\n GitHubOwnersImpl,\n GitHubReposImpl,\n GitLabGroupsImpl,\n GitLabSubgroupsImpl,\n GitLabProjectsImpl,\n DevOpsOperationResultsImpl,\n SecurityConnectorsImpl,\n ComplianceResultsImpl,\n AdvancedThreatProtectionImpl,\n DeviceSecurityGroupsImpl,\n IotSecuritySolutionAnalyticsImpl,\n IotSecuritySolutionsAnalyticsAggregatedAlertImpl,\n IotSecuritySolutionsAnalyticsRecommendationImpl,\n IotSecuritySolutionImpl,\n AdaptiveNetworkHardeningsImpl,\n AllowedConnectionsImpl,\n AdaptiveApplicationControlsImpl,\n DiscoveredSecuritySolutionsImpl,\n ExternalSecuritySolutionsImpl,\n JitNetworkAccessPoliciesImpl,\n SecureScoresImpl,\n SecureScoreControlsImpl,\n SecureScoreControlDefinitionsImpl,\n SecuritySolutionsImpl,\n SecuritySolutionsReferenceDataOperationsImpl,\n ServerVulnerabilityAssessmentOperationsImpl,\n TopologyImpl,\n AssessmentsMetadataImpl,\n AssessmentsImpl,\n AlertsImpl,\n SettingsImpl,\n ServerVulnerabilityAssessmentsSettingsImpl,\n APICollectionsImpl,\n PricingsImpl,\n} from \"./operations/index.js\";\nimport {\n Locations,\n Operations,\n Tasks,\n AutoProvisioningSettings,\n Compliances,\n InformationProtectionPolicies,\n WorkspaceSettings,\n AlertsSuppressionRules,\n Automations,\n RegulatoryComplianceStandards,\n RegulatoryComplianceControls,\n RegulatoryComplianceAssessments,\n SubAssessments,\n Connectors,\n SecurityContacts,\n SoftwareInventories,\n CustomAssessmentAutomations,\n CustomEntityStoreAssignments,\n MdeOnboardings,\n GovernanceAssignments,\n GovernanceRules,\n Applications,\n ApplicationOperations,\n SecurityConnectorApplications,\n SecurityConnectorApplication,\n DefenderForStorage,\n SecurityOperators,\n SqlVulnerabilityAssessmentBaselineRules,\n SqlVulnerabilityAssessmentScans,\n SqlVulnerabilityAssessmentScanResults,\n SensitivitySettings,\n HealthReports,\n AzureDevOpsOrgs,\n AzureDevOpsProjects,\n AzureDevOpsRepos,\n DevOpsConfigurations,\n GitHubOwners,\n GitHubRepos,\n GitLabGroups,\n GitLabSubgroups,\n GitLabProjects,\n DevOpsOperationResults,\n SecurityConnectors,\n ComplianceResults,\n AdvancedThreatProtection,\n DeviceSecurityGroups,\n IotSecuritySolutionAnalytics,\n IotSecuritySolutionsAnalyticsAggregatedAlert,\n IotSecuritySolutionsAnalyticsRecommendation,\n IotSecuritySolution,\n AdaptiveNetworkHardenings,\n AllowedConnections,\n AdaptiveApplicationControls,\n DiscoveredSecuritySolutions,\n ExternalSecuritySolutions,\n JitNetworkAccessPolicies,\n SecureScores,\n SecureScoreControls,\n SecureScoreControlDefinitions,\n SecuritySolutions,\n SecuritySolutionsReferenceDataOperations,\n ServerVulnerabilityAssessmentOperations,\n Topology,\n AssessmentsMetadata,\n Assessments,\n Alerts,\n Settings,\n ServerVulnerabilityAssessmentsSettings,\n APICollections,\n Pricings,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n SecurityCenterOptionalParams,\n UpdateSensitivitySettingsRequest,\n UpdateSensitivitySettingsOptionalParams,\n UpdateSensitivitySettingsResponse,\n GetSensitivitySettingsOptionalParams,\n GetSensitivitySettingsOperationResponse,\n} from \"./models/index.js\";\n\nexport class SecurityCenter extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the SecurityCenter class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Azure subscription ID\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: SecurityCenterOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: SecurityCenterOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: SecurityCenterOptionalParams | string,\n options?: SecurityCenterOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: SecurityCenterOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-security/6.0.0-beta.6`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.locations = new LocationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.tasks = new TasksImpl(this);\n this.autoProvisioningSettings = new AutoProvisioningSettingsImpl(this);\n this.compliances = new CompliancesImpl(this);\n this.informationProtectionPolicies = new InformationProtectionPoliciesImpl(\n this,\n );\n this.workspaceSettings = new WorkspaceSettingsImpl(this);\n this.alertsSuppressionRules = new AlertsSuppressionRulesImpl(this);\n this.automations = new AutomationsImpl(this);\n this.regulatoryComplianceStandards = new RegulatoryComplianceStandardsImpl(\n this,\n );\n this.regulatoryComplianceControls = new RegulatoryComplianceControlsImpl(\n this,\n );\n this.regulatoryComplianceAssessments =\n new RegulatoryComplianceAssessmentsImpl(this);\n this.subAssessments = new SubAssessmentsImpl(this);\n this.connectors = new ConnectorsImpl(this);\n this.securityContacts = new SecurityContactsImpl(this);\n this.softwareInventories = new SoftwareInventoriesImpl(this);\n this.customAssessmentAutomations = new CustomAssessmentAutomationsImpl(\n this,\n );\n this.customEntityStoreAssignments = new CustomEntityStoreAssignmentsImpl(\n this,\n );\n this.mdeOnboardings = new MdeOnboardingsImpl(this);\n this.governanceAssignments = new GovernanceAssignmentsImpl(this);\n this.governanceRules = new GovernanceRulesImpl(this);\n this.applications = new ApplicationsImpl(this);\n this.applicationOperations = new ApplicationOperationsImpl(this);\n this.securityConnectorApplications = new SecurityConnectorApplicationsImpl(\n this,\n );\n this.securityConnectorApplication = new SecurityConnectorApplicationImpl(\n this,\n );\n this.defenderForStorage = new DefenderForStorageImpl(this);\n this.securityOperators = new SecurityOperatorsImpl(this);\n this.sqlVulnerabilityAssessmentBaselineRules =\n new SqlVulnerabilityAssessmentBaselineRulesImpl(this);\n this.sqlVulnerabilityAssessmentScans =\n new SqlVulnerabilityAssessmentScansImpl(this);\n this.sqlVulnerabilityAssessmentScanResults =\n new SqlVulnerabilityAssessmentScanResultsImpl(this);\n this.sensitivitySettings = new SensitivitySettingsImpl(this);\n this.healthReports = new HealthReportsImpl(this);\n this.azureDevOpsOrgs = new AzureDevOpsOrgsImpl(this);\n this.azureDevOpsProjects = new AzureDevOpsProjectsImpl(this);\n this.azureDevOpsRepos = new AzureDevOpsReposImpl(this);\n this.devOpsConfigurations = new DevOpsConfigurationsImpl(this);\n this.gitHubOwners = new GitHubOwnersImpl(this);\n this.gitHubRepos = new GitHubReposImpl(this);\n this.gitLabGroups = new GitLabGroupsImpl(this);\n this.gitLabSubgroups = new GitLabSubgroupsImpl(this);\n this.gitLabProjects = new GitLabProjectsImpl(this);\n this.devOpsOperationResults = new DevOpsOperationResultsImpl(this);\n this.securityConnectors = new SecurityConnectorsImpl(this);\n this.complianceResults = new ComplianceResultsImpl(this);\n this.advancedThreatProtection = new AdvancedThreatProtectionImpl(this);\n this.deviceSecurityGroups = new DeviceSecurityGroupsImpl(this);\n this.iotSecuritySolutionAnalytics = new IotSecuritySolutionAnalyticsImpl(\n this,\n );\n this.iotSecuritySolutionsAnalyticsAggregatedAlert =\n new IotSecuritySolutionsAnalyticsAggregatedAlertImpl(this);\n this.iotSecuritySolutionsAnalyticsRecommendation =\n new IotSecuritySolutionsAnalyticsRecommendationImpl(this);\n this.iotSecuritySolution = new IotSecuritySolutionImpl(this);\n this.adaptiveNetworkHardenings = new AdaptiveNetworkHardeningsImpl(this);\n this.allowedConnections = new AllowedConnectionsImpl(this);\n this.adaptiveApplicationControls = new AdaptiveApplicationControlsImpl(\n this,\n );\n this.discoveredSecuritySolutions = new DiscoveredSecuritySolutionsImpl(\n this,\n );\n this.externalSecuritySolutions = new ExternalSecuritySolutionsImpl(this);\n this.jitNetworkAccessPolicies = new JitNetworkAccessPoliciesImpl(this);\n this.secureScores = new SecureScoresImpl(this);\n this.secureScoreControls = new SecureScoreControlsImpl(this);\n this.secureScoreControlDefinitions = new SecureScoreControlDefinitionsImpl(\n this,\n );\n this.securitySolutions = new SecuritySolutionsImpl(this);\n this.securitySolutionsReferenceDataOperations =\n new SecuritySolutionsReferenceDataOperationsImpl(this);\n this.serverVulnerabilityAssessmentOperations =\n new ServerVulnerabilityAssessmentOperationsImpl(this);\n this.topology = new TopologyImpl(this);\n this.assessmentsMetadata = new AssessmentsMetadataImpl(this);\n this.assessments = new AssessmentsImpl(this);\n this.alerts = new AlertsImpl(this);\n this.settings = new SettingsImpl(this);\n this.serverVulnerabilityAssessmentsSettings =\n new ServerVulnerabilityAssessmentsSettingsImpl(this);\n this.aPICollections = new APICollectionsImpl(this);\n this.pricings = new PricingsImpl(this);\n }\n\n /**\n * Updates data sensitivity settings for sensitive data discovery\n * @param sensitivitySettings The data sensitivity settings to update\n * @param options The options parameters.\n */\n updateSensitivitySettings(\n sensitivitySettings: UpdateSensitivitySettingsRequest,\n options?: UpdateSensitivitySettingsOptionalParams,\n ): Promise<UpdateSensitivitySettingsResponse> {\n return this.sendOperationRequest(\n { sensitivitySettings, options },\n updateSensitivitySettingsOperationSpec,\n );\n }\n\n /**\n * Gets data sensitivity settings for sensitive data discovery\n * @param options The options parameters.\n */\n getSensitivitySettings(\n options?: GetSensitivitySettingsOptionalParams,\n ): Promise<GetSensitivitySettingsOperationResponse> {\n return this.sendOperationRequest(\n { options },\n getSensitivitySettingsOperationSpec,\n );\n }\n\n locations: Locations;\n operations: Operations;\n tasks: Tasks;\n autoProvisioningSettings: AutoProvisioningSettings;\n compliances: Compliances;\n informationProtectionPolicies: InformationProtectionPolicies;\n workspaceSettings: WorkspaceSettings;\n alertsSuppressionRules: AlertsSuppressionRules;\n automations: Automations;\n regulatoryComplianceStandards: RegulatoryComplianceStandards;\n regulatoryComplianceControls: RegulatoryComplianceControls;\n regulatoryComplianceAssessments: RegulatoryComplianceAssessments;\n subAssessments: SubAssessments;\n connectors: Connectors;\n securityContacts: SecurityContacts;\n softwareInventories: SoftwareInventories;\n customAssessmentAutomations: CustomAssessmentAutomations;\n customEntityStoreAssignments: CustomEntityStoreAssignments;\n mdeOnboardings: MdeOnboardings;\n governanceAssignments: GovernanceAssignments;\n governanceRules: GovernanceRules;\n applications: Applications;\n applicationOperations: ApplicationOperations;\n securityConnectorApplications: SecurityConnectorApplications;\n securityConnectorApplication: SecurityConnectorApplication;\n defenderForStorage: DefenderForStorage;\n securityOperators: SecurityOperators;\n sqlVulnerabilityAssessmentBaselineRules: SqlVulnerabilityAssessmentBaselineRules;\n sqlVulnerabilityAssessmentScans: SqlVulnerabilityAssessmentScans;\n sqlVulnerabilityAssessmentScanResults: SqlVulnerabilityAssessmentScanResults;\n sensitivitySettings: SensitivitySettings;\n healthReports: HealthReports;\n azureDevOpsOrgs: AzureDevOpsOrgs;\n azureDevOpsProjects: AzureDevOpsProjects;\n azureDevOpsRepos: AzureDevOpsRepos;\n devOpsConfigurations: DevOpsConfigurations;\n gitHubOwners: GitHubOwners;\n gitHubRepos: GitHubRepos;\n gitLabGroups: GitLabGroups;\n gitLabSubgroups: GitLabSubgroups;\n gitLabProjects: GitLabProjects;\n devOpsOperationResults: DevOpsOperationResults;\n securityConnectors: SecurityConnectors;\n complianceResults: ComplianceResults;\n advancedThreatProtection: AdvancedThreatProtection;\n deviceSecurityGroups: DeviceSecurityGroups;\n iotSecuritySolutionAnalytics: IotSecuritySolutionAnalytics;\n iotSecuritySolutionsAnalyticsAggregatedAlert: IotSecuritySolutionsAnalyticsAggregatedAlert;\n iotSecuritySolutionsAnalyticsRecommendation: IotSecuritySolutionsAnalyticsRecommendation;\n iotSecuritySolution: IotSecuritySolution;\n adaptiveNetworkHardenings: AdaptiveNetworkHardenings;\n allowedConnections: AllowedConnections;\n adaptiveApplicationControls: AdaptiveApplicationControls;\n discoveredSecuritySolutions: DiscoveredSecuritySolutions;\n externalSecuritySolutions: ExternalSecuritySolutions;\n jitNetworkAccessPolicies: JitNetworkAccessPolicies;\n secureScores: SecureScores;\n secureScoreControls: SecureScoreControls;\n secureScoreControlDefinitions: SecureScoreControlDefinitions;\n securitySolutions: SecuritySolutions;\n securitySolutionsReferenceDataOperations: SecuritySolutionsReferenceDataOperations;\n serverVulnerabilityAssessmentOperations: ServerVulnerabilityAssessmentOperations;\n topology: Topology;\n assessmentsMetadata: AssessmentsMetadata;\n assessments: Assessments;\n alerts: Alerts;\n settings: Settings;\n serverVulnerabilityAssessmentsSettings: ServerVulnerabilityAssessmentsSettings;\n aPICollections: APICollections;\n pricings: Pricings;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst updateSensitivitySettingsOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Security/sensitivitySettings/current\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.GetSensitivitySettingsResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.sensitivitySettings,\n queryParameters: [Parameters.apiVersion13],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getSensitivitySettingsOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Security/sensitivitySettings/current\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GetSensitivitySettingsResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion13],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"securityCenter.js","sourceRoot":"","sources":["../../src/securityCenter.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,aAAa,EACb,cAAc,EACd,SAAS,EACT,4BAA4B,EAC5B,eAAe,EACf,iCAAiC,EACjC,qBAAqB,EACrB,0BAA0B,EAC1B,eAAe,EACf,iCAAiC,EACjC,gCAAgC,EAChC,mCAAmC,EACnC,kBAAkB,EAClB,cAAc,EACd,oBAAoB,EACpB,uBAAuB,EACvB,+BAA+B,EAC/B,gCAAgC,EAChC,kBAAkB,EAClB,yBAAyB,EACzB,mBAAmB,EACnB,gBAAgB,EAChB,yBAAyB,EACzB,iCAAiC,EACjC,gCAAgC,EAChC,sBAAsB,EACtB,qBAAqB,EACrB,2CAA2C,EAC3C,mCAAmC,EACnC,yCAAyC,EACzC,uBAAuB,EACvB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,oBAAoB,EACpB,wBAAwB,EACxB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,0BAA0B,EAC1B,sBAAsB,EACtB,qBAAqB,EACrB,4BAA4B,EAC5B,wBAAwB,EACxB,gCAAgC,EAChC,gDAAgD,EAChD,+CAA+C,EAC/C,uBAAuB,EACvB,6BAA6B,EAC7B,sBAAsB,EACtB,+BAA+B,EAC/B,+BAA+B,EAC/B,6BAA6B,EAC7B,4B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;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC;IAC1C,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n LocationsImpl,\n OperationsImpl,\n TasksImpl,\n AutoProvisioningSettingsImpl,\n CompliancesImpl,\n InformationProtectionPoliciesImpl,\n WorkspaceSettingsImpl,\n AlertsSuppressionRulesImpl,\n AutomationsImpl,\n RegulatoryComplianceStandardsImpl,\n RegulatoryComplianceControlsImpl,\n RegulatoryComplianceAssessmentsImpl,\n SubAssessmentsImpl,\n ConnectorsImpl,\n SecurityContactsImpl,\n SoftwareInventoriesImpl,\n CustomAssessmentAutomationsImpl,\n CustomEntityStoreAssignmentsImpl,\n MdeOnboardingsImpl,\n GovernanceAssignmentsImpl,\n GovernanceRulesImpl,\n ApplicationsImpl,\n ApplicationOperationsImpl,\n SecurityConnectorApplicationsImpl,\n SecurityConnectorApplicationImpl,\n DefenderForStorageImpl,\n SecurityOperatorsImpl,\n SqlVulnerabilityAssessmentBaselineRulesImpl,\n SqlVulnerabilityAssessmentScansImpl,\n SqlVulnerabilityAssessmentScanResultsImpl,\n SensitivitySettingsImpl,\n HealthReportsImpl,\n AzureDevOpsOrgsImpl,\n AzureDevOpsProjectsImpl,\n AzureDevOpsReposImpl,\n DevOpsConfigurationsImpl,\n GitHubOwnersImpl,\n GitHubReposImpl,\n GitLabGroupsImpl,\n GitLabSubgroupsImpl,\n GitLabProjectsImpl,\n DevOpsOperationResultsImpl,\n SecurityConnectorsImpl,\n ComplianceResultsImpl,\n AdvancedThreatProtectionImpl,\n DeviceSecurityGroupsImpl,\n IotSecuritySolutionAnalyticsImpl,\n IotSecuritySolutionsAnalyticsAggregatedAlertImpl,\n IotSecuritySolutionsAnalyticsRecommendationImpl,\n IotSecuritySolutionImpl,\n AdaptiveNetworkHardeningsImpl,\n AllowedConnectionsImpl,\n AdaptiveApplicationControlsImpl,\n DiscoveredSecuritySolutionsImpl,\n ExternalSecuritySolutionsImpl,\n JitNetworkAccessPoliciesImpl,\n SecureScoresImpl,\n SecureScoreControlsImpl,\n SecureScoreControlDefinitionsImpl,\n SecuritySolutionsImpl,\n SecuritySolutionsReferenceDataOperationsImpl,\n ServerVulnerabilityAssessmentOperationsImpl,\n TopologyImpl,\n AssessmentsMetadataImpl,\n AssessmentsImpl,\n AlertsImpl,\n SettingsImpl,\n ServerVulnerabilityAssessmentsSettingsImpl,\n APICollectionsImpl,\n PricingsImpl,\n} from \"./operations/index.js\";\nimport {\n Locations,\n Operations,\n Tasks,\n AutoProvisioningSettings,\n Compliances,\n InformationProtectionPolicies,\n WorkspaceSettings,\n AlertsSuppressionRules,\n Automations,\n RegulatoryComplianceStandards,\n RegulatoryComplianceControls,\n RegulatoryComplianceAssessments,\n SubAssessments,\n Connectors,\n SecurityContacts,\n SoftwareInventories,\n CustomAssessmentAutomations,\n CustomEntityStoreAssignments,\n MdeOnboardings,\n GovernanceAssignments,\n GovernanceRules,\n Applications,\n ApplicationOperations,\n SecurityConnectorApplications,\n SecurityConnectorApplication,\n DefenderForStorage,\n SecurityOperators,\n SqlVulnerabilityAssessmentBaselineRules,\n SqlVulnerabilityAssessmentScans,\n SqlVulnerabilityAssessmentScanResults,\n SensitivitySettings,\n HealthReports,\n AzureDevOpsOrgs,\n AzureDevOpsProjects,\n AzureDevOpsRepos,\n DevOpsConfigurations,\n GitHubOwners,\n GitHubRepos,\n GitLabGroups,\n GitLabSubgroups,\n GitLabProjects,\n DevOpsOperationResults,\n SecurityConnectors,\n ComplianceResults,\n AdvancedThreatProtection,\n DeviceSecurityGroups,\n IotSecuritySolutionAnalytics,\n IotSecuritySolutionsAnalyticsAggregatedAlert,\n IotSecuritySolutionsAnalyticsRecommendation,\n IotSecuritySolution,\n AdaptiveNetworkHardenings,\n AllowedConnections,\n AdaptiveApplicationControls,\n DiscoveredSecuritySolutions,\n ExternalSecuritySolutions,\n JitNetworkAccessPolicies,\n SecureScores,\n SecureScoreControls,\n SecureScoreControlDefinitions,\n SecuritySolutions,\n SecuritySolutionsReferenceDataOperations,\n ServerVulnerabilityAssessmentOperations,\n Topology,\n AssessmentsMetadata,\n Assessments,\n Alerts,\n Settings,\n ServerVulnerabilityAssessmentsSettings,\n APICollections,\n Pricings,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n SecurityCenterOptionalParams,\n UpdateSensitivitySettingsRequest,\n UpdateSensitivitySettingsOptionalParams,\n UpdateSensitivitySettingsResponse,\n GetSensitivitySettingsOptionalParams,\n GetSensitivitySettingsOperationResponse,\n} from \"./models/index.js\";\n\nexport class SecurityCenter extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the SecurityCenter class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Azure subscription ID\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: SecurityCenterOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: SecurityCenterOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: SecurityCenterOptionalParams | string,\n options?: SecurityCenterOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: SecurityCenterOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-security/6.0.0-beta.6`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.locations = new LocationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.tasks = new TasksImpl(this);\n this.autoProvisioningSettings = new AutoProvisioningSettingsImpl(this);\n this.compliances = new CompliancesImpl(this);\n this.informationProtectionPolicies = new InformationProtectionPoliciesImpl(\n this,\n );\n this.workspaceSettings = new WorkspaceSettingsImpl(this);\n this.alertsSuppressionRules = new AlertsSuppressionRulesImpl(this);\n this.automations = new AutomationsImpl(this);\n this.regulatoryComplianceStandards = new RegulatoryComplianceStandardsImpl(\n this,\n );\n this.regulatoryComplianceControls = new RegulatoryComplianceControlsImpl(\n this,\n );\n this.regulatoryComplianceAssessments =\n new RegulatoryComplianceAssessmentsImpl(this);\n this.subAssessments = new SubAssessmentsImpl(this);\n this.connectors = new ConnectorsImpl(this);\n this.securityContacts = new SecurityContactsImpl(this);\n this.softwareInventories = new SoftwareInventoriesImpl(this);\n this.customAssessmentAutomations = new CustomAssessmentAutomationsImpl(\n this,\n );\n this.customEntityStoreAssignments = new CustomEntityStoreAssignmentsImpl(\n this,\n );\n this.mdeOnboardings = new MdeOnboardingsImpl(this);\n this.governanceAssignments = new GovernanceAssignmentsImpl(this);\n this.governanceRules = new GovernanceRulesImpl(this);\n this.applications = new ApplicationsImpl(this);\n this.applicationOperations = new ApplicationOperationsImpl(this);\n this.securityConnectorApplications = new SecurityConnectorApplicationsImpl(\n this,\n );\n this.securityConnectorApplication = new SecurityConnectorApplicationImpl(\n this,\n );\n this.defenderForStorage = new DefenderForStorageImpl(this);\n this.securityOperators = new SecurityOperatorsImpl(this);\n this.sqlVulnerabilityAssessmentBaselineRules =\n new SqlVulnerabilityAssessmentBaselineRulesImpl(this);\n this.sqlVulnerabilityAssessmentScans =\n new SqlVulnerabilityAssessmentScansImpl(this);\n this.sqlVulnerabilityAssessmentScanResults =\n new SqlVulnerabilityAssessmentScanResultsImpl(this);\n this.sensitivitySettings = new SensitivitySettingsImpl(this);\n this.healthReports = new HealthReportsImpl(this);\n this.azureDevOpsOrgs = new AzureDevOpsOrgsImpl(this);\n this.azureDevOpsProjects = new AzureDevOpsProjectsImpl(this);\n this.azureDevOpsRepos = new AzureDevOpsReposImpl(this);\n this.devOpsConfigurations = new DevOpsConfigurationsImpl(this);\n this.gitHubOwners = new GitHubOwnersImpl(this);\n this.gitHubRepos = new GitHubReposImpl(this);\n this.gitLabGroups = new GitLabGroupsImpl(this);\n this.gitLabSubgroups = new GitLabSubgroupsImpl(this);\n this.gitLabProjects = new GitLabProjectsImpl(this);\n this.devOpsOperationResults = new DevOpsOperationResultsImpl(this);\n this.securityConnectors = new SecurityConnectorsImpl(this);\n this.complianceResults = new ComplianceResultsImpl(this);\n this.advancedThreatProtection = new AdvancedThreatProtectionImpl(this);\n this.deviceSecurityGroups = new DeviceSecurityGroupsImpl(this);\n this.iotSecuritySolutionAnalytics = new IotSecuritySolutionAnalyticsImpl(\n this,\n );\n this.iotSecuritySolutionsAnalyticsAggregatedAlert =\n new IotSecuritySolutionsAnalyticsAggregatedAlertImpl(this);\n this.iotSecuritySolutionsAnalyticsRecommendation =\n new IotSecuritySolutionsAnalyticsRecommendationImpl(this);\n this.iotSecuritySolution = new IotSecuritySolutionImpl(this);\n this.adaptiveNetworkHardenings = new AdaptiveNetworkHardeningsImpl(this);\n this.allowedConnections = new AllowedConnectionsImpl(this);\n this.adaptiveApplicationControls = new AdaptiveApplicationControlsImpl(\n this,\n );\n this.discoveredSecuritySolutions = new DiscoveredSecuritySolutionsImpl(\n this,\n );\n this.externalSecuritySolutions = new ExternalSecuritySolutionsImpl(this);\n this.jitNetworkAccessPolicies = new JitNetworkAccessPoliciesImpl(this);\n this.secureScores = new SecureScoresImpl(this);\n this.secureScoreControls = new SecureScoreControlsImpl(this);\n this.secureScoreControlDefinitions = new SecureScoreControlDefinitionsImpl(\n this,\n );\n this.securitySolutions = new SecuritySolutionsImpl(this);\n this.securitySolutionsReferenceDataOperations =\n new SecuritySolutionsReferenceDataOperationsImpl(this);\n this.serverVulnerabilityAssessmentOperations =\n new ServerVulnerabilityAssessmentOperationsImpl(this);\n this.topology = new TopologyImpl(this);\n this.assessmentsMetadata = new AssessmentsMetadataImpl(this);\n this.assessments = new AssessmentsImpl(this);\n this.alerts = new AlertsImpl(this);\n this.settings = new SettingsImpl(this);\n this.serverVulnerabilityAssessmentsSettings =\n new ServerVulnerabilityAssessmentsSettingsImpl(this);\n this.aPICollections = new APICollectionsImpl(this);\n this.pricings = new PricingsImpl(this);\n }\n\n /**\n * Updates data sensitivity settings for sensitive data discovery\n * @param sensitivitySettings The data sensitivity settings to update\n * @param options The options parameters.\n */\n updateSensitivitySettings(\n sensitivitySettings: UpdateSensitivitySettingsRequest,\n options?: UpdateSensitivitySettingsOptionalParams,\n ): Promise<UpdateSensitivitySettingsResponse> {\n return this.sendOperationRequest(\n { sensitivitySettings, options },\n updateSensitivitySettingsOperationSpec,\n );\n }\n\n /**\n * Gets data sensitivity settings for sensitive data discovery\n * @param options The options parameters.\n */\n getSensitivitySettings(\n options?: GetSensitivitySettingsOptionalParams,\n ): Promise<GetSensitivitySettingsOperationResponse> {\n return this.sendOperationRequest(\n { options },\n getSensitivitySettingsOperationSpec,\n );\n }\n\n locations: Locations;\n operations: Operations;\n tasks: Tasks;\n autoProvisioningSettings: AutoProvisioningSettings;\n compliances: Compliances;\n informationProtectionPolicies: InformationProtectionPolicies;\n workspaceSettings: WorkspaceSettings;\n alertsSuppressionRules: AlertsSuppressionRules;\n automations: Automations;\n regulatoryComplianceStandards: RegulatoryComplianceStandards;\n regulatoryComplianceControls: RegulatoryComplianceControls;\n regulatoryComplianceAssessments: RegulatoryComplianceAssessments;\n subAssessments: SubAssessments;\n connectors: Connectors;\n securityContacts: SecurityContacts;\n softwareInventories: SoftwareInventories;\n customAssessmentAutomations: CustomAssessmentAutomations;\n customEntityStoreAssignments: CustomEntityStoreAssignments;\n mdeOnboardings: MdeOnboardings;\n governanceAssignments: GovernanceAssignments;\n governanceRules: GovernanceRules;\n applications: Applications;\n applicationOperations: ApplicationOperations;\n securityConnectorApplications: SecurityConnectorApplications;\n securityConnectorApplication: SecurityConnectorApplication;\n defenderForStorage: DefenderForStorage;\n securityOperators: SecurityOperators;\n sqlVulnerabilityAssessmentBaselineRules: SqlVulnerabilityAssessmentBaselineRules;\n sqlVulnerabilityAssessmentScans: SqlVulnerabilityAssessmentScans;\n sqlVulnerabilityAssessmentScanResults: SqlVulnerabilityAssessmentScanResults;\n sensitivitySettings: SensitivitySettings;\n healthReports: HealthReports;\n azureDevOpsOrgs: AzureDevOpsOrgs;\n azureDevOpsProjects: AzureDevOpsProjects;\n azureDevOpsRepos: AzureDevOpsRepos;\n devOpsConfigurations: DevOpsConfigurations;\n gitHubOwners: GitHubOwners;\n gitHubRepos: GitHubRepos;\n gitLabGroups: GitLabGroups;\n gitLabSubgroups: GitLabSubgroups;\n gitLabProjects: GitLabProjects;\n devOpsOperationResults: DevOpsOperationResults;\n securityConnectors: SecurityConnectors;\n complianceResults: ComplianceResults;\n advancedThreatProtection: AdvancedThreatProtection;\n deviceSecurityGroups: DeviceSecurityGroups;\n iotSecuritySolutionAnalytics: IotSecuritySolutionAnalytics;\n iotSecuritySolutionsAnalyticsAggregatedAlert: IotSecuritySolutionsAnalyticsAggregatedAlert;\n iotSecuritySolutionsAnalyticsRecommendation: IotSecuritySolutionsAnalyticsRecommendation;\n iotSecuritySolution: IotSecuritySolution;\n adaptiveNetworkHardenings: AdaptiveNetworkHardenings;\n allowedConnections: AllowedConnections;\n adaptiveApplicationControls: AdaptiveApplicationControls;\n discoveredSecuritySolutions: DiscoveredSecuritySolutions;\n externalSecuritySolutions: ExternalSecuritySolutions;\n jitNetworkAccessPolicies: JitNetworkAccessPolicies;\n secureScores: SecureScores;\n secureScoreControls: SecureScoreControls;\n secureScoreControlDefinitions: SecureScoreControlDefinitions;\n securitySolutions: SecuritySolutions;\n securitySolutionsReferenceDataOperations: SecuritySolutionsReferenceDataOperations;\n serverVulnerabilityAssessmentOperations: ServerVulnerabilityAssessmentOperations;\n topology: Topology;\n assessmentsMetadata: AssessmentsMetadata;\n assessments: Assessments;\n alerts: Alerts;\n settings: Settings;\n serverVulnerabilityAssessmentsSettings: ServerVulnerabilityAssessmentsSettings;\n aPICollections: APICollections;\n pricings: Pricings;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst updateSensitivitySettingsOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Security/sensitivitySettings/current\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.GetSensitivitySettingsResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.sensitivitySettings,\n queryParameters: [Parameters.apiVersion13],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getSensitivitySettingsOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Security/sensitivitySettings/current\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GetSensitivitySettingsResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion13],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
package/dist/commonjs/lroImpl.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createLroSpec = createLroSpec;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
4
|
function createLroSpec(inputs) {
|
|
6
5
|
const { args, spec, sendOperationFn } = inputs;
|
|
7
6
|
return {
|
|
@@ -9,8 +8,13 @@ function createLroSpec(inputs) {
|
|
|
9
8
|
requestPath: spec.path,
|
|
10
9
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
11
10
|
sendPollRequest: (path, options) => {
|
|
12
|
-
const { requestBody
|
|
13
|
-
return sendOperationFn(args,
|
|
11
|
+
const { requestBody, ...restSpec } = spec;
|
|
12
|
+
return sendOperationFn(args, {
|
|
13
|
+
...restSpec,
|
|
14
|
+
httpMethod: "GET",
|
|
15
|
+
path,
|
|
16
|
+
abortSignal: options?.abortSignal,
|
|
17
|
+
});
|
|
14
18
|
},
|
|
15
19
|
};
|
|
16
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";;AAUA,sCA2BC
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";;AAUA,sCA2BC;AA3BD,SAAgB,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,EAAE;gBAC3B,GAAG,QAAQ;gBACX,UAAU,EAAE,KAAK;gBACjB,IAAI;gBACJ,WAAW,EAAE,OAAO,EAAE,WAAW;aAClC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,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 */\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}
|