@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":"softwareInventories.js","sourceRoot":"","sources":["../../../src/operations/softwareInventories.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,uDAAuD;AACvD,MAAM,OAAO,uBAAuB;IAGlC;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,sBAAsB,CAC3B,iB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AC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,uCAAuC,GAA6B;IACxE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;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 { SoftwareInventories } 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 Software,\n SoftwareInventoriesListByExtendedResourceNextOptionalParams,\n SoftwareInventoriesListByExtendedResourceOptionalParams,\n SoftwareInventoriesListByExtendedResourceResponse,\n SoftwareInventoriesListBySubscriptionNextOptionalParams,\n SoftwareInventoriesListBySubscriptionOptionalParams,\n SoftwareInventoriesListBySubscriptionResponse,\n SoftwareInventoriesGetOptionalParams,\n SoftwareInventoriesGetResponse,\n SoftwareInventoriesListByExtendedResourceNextResponse,\n SoftwareInventoriesListBySubscriptionNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SoftwareInventories operations. */\nexport class SoftwareInventoriesImpl implements SoftwareInventories {\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class SoftwareInventories class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * Gets the software inventory of the virtual machine.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param resourceNamespace The namespace of the resource.\n * @param resourceType The type of the resource.\n * @param resourceName Name of the resource.\n * @param options The options parameters.\n */\n public listByExtendedResource(\n resourceGroupName: string,\n resourceNamespace: string,\n resourceType: string,\n resourceName: string,\n options?: SoftwareInventoriesListByExtendedResourceOptionalParams,\n ): PagedAsyncIterableIterator<Software> {\n const iter = this.listByExtendedResourcePagingAll(\n resourceGroupName,\n resourceNamespace,\n resourceType,\n resourceName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByExtendedResourcePagingPage(\n resourceGroupName,\n resourceNamespace,\n resourceType,\n resourceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByExtendedResourcePagingPage(\n resourceGroupName: string,\n resourceNamespace: string,\n resourceType: string,\n resourceName: string,\n options?: SoftwareInventoriesListByExtendedResourceOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Software[]> {\n let result: SoftwareInventoriesListByExtendedResourceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByExtendedResource(\n resourceGroupName,\n resourceNamespace,\n resourceType,\n resourceName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByExtendedResourceNext(\n resourceGroupName,\n resourceNamespace,\n resourceType,\n resourceName,\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 *listByExtendedResourcePagingAll(\n resourceGroupName: string,\n resourceNamespace: string,\n resourceType: string,\n resourceName: string,\n options?: SoftwareInventoriesListByExtendedResourceOptionalParams,\n ): AsyncIterableIterator<Software> {\n for await (const page of this.listByExtendedResourcePagingPage(\n resourceGroupName,\n resourceNamespace,\n resourceType,\n resourceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the software inventory of all virtual machines in the subscriptions.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: SoftwareInventoriesListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<Software> {\n const iter = this.listBySubscriptionPagingAll(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.listBySubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: SoftwareInventoriesListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Software[]> {\n let result: SoftwareInventoriesListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(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._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: SoftwareInventoriesListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<Software> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the software inventory of the virtual machine.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param resourceNamespace The namespace of the resource.\n * @param resourceType The type of the resource.\n * @param resourceName Name of the resource.\n * @param options The options parameters.\n */\n private _listByExtendedResource(\n resourceGroupName: string,\n resourceNamespace: string,\n resourceType: string,\n resourceName: string,\n options?: SoftwareInventoriesListByExtendedResourceOptionalParams,\n ): Promise<SoftwareInventoriesListByExtendedResourceResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceNamespace,\n resourceType,\n resourceName,\n options,\n },\n listByExtendedResourceOperationSpec,\n );\n }\n\n /**\n * Gets the software inventory of all virtual machines in the subscriptions.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: SoftwareInventoriesListBySubscriptionOptionalParams,\n ): Promise<SoftwareInventoriesListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\n );\n }\n\n /**\n * Gets a single software data of the virtual machine.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param resourceNamespace The namespace of the resource.\n * @param resourceType The type of the resource.\n * @param resourceName Name of the resource.\n * @param softwareName Name of the installed software.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceNamespace: string,\n resourceType: string,\n resourceName: string,\n softwareName: string,\n options?: SoftwareInventoriesGetOptionalParams,\n ): Promise<SoftwareInventoriesGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceNamespace,\n resourceType,\n resourceName,\n softwareName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * ListByExtendedResourceNext\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param resourceNamespace The namespace of the resource.\n * @param resourceType The type of the resource.\n * @param resourceName Name of the resource.\n * @param nextLink The nextLink from the previous successful call to the ListByExtendedResource method.\n * @param options The options parameters.\n */\n private _listByExtendedResourceNext(\n resourceGroupName: string,\n resourceNamespace: string,\n resourceType: string,\n resourceName: string,\n nextLink: string,\n options?: SoftwareInventoriesListByExtendedResourceNextOptionalParams,\n ): Promise<SoftwareInventoriesListByExtendedResourceNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceNamespace,\n resourceType,\n resourceName,\n nextLink,\n options,\n },\n listByExtendedResourceNextOperationSpec,\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: SoftwareInventoriesListBySubscriptionNextOptionalParams,\n ): Promise<SoftwareInventoriesListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByExtendedResourceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/softwareInventories\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SoftwaresList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceNamespace,\n Parameters.resourceType,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/softwareInventories\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SoftwaresList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/softwareInventories/{softwareName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Software,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceNamespace,\n Parameters.resourceType,\n Parameters.resourceName,\n Parameters.softwareName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByExtendedResourceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SoftwaresList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.resourceGroupName,\n Parameters.resourceNamespace,\n Parameters.resourceType,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SoftwaresList,\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":"softwareInventories.js","sourceRoot":"","sources":["../../../src/operations/softwareInventories.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,uDAAuD;AACvD,MAAM,OAAO,uBAAuB;IACjB,MAAM,CAAiB;IAExC;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,sBAAsB,CAC3B,iBAAyB,EACzB,iBAAyB,EACzB,YAAoB,EACpB,YAAoB,EACpB,OAAiE;QAEjE,MAAM,IAAI,GAAG,IAAI,CAAC,+BAA+B,CAC/C,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CA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IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;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 { SoftwareInventories } 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 Software,\n SoftwareInventoriesListByExtendedResourceNextOptionalParams,\n SoftwareInventoriesListByExtendedResourceOptionalParams,\n SoftwareInventoriesListByExtendedResourceResponse,\n SoftwareInventoriesListBySubscriptionNextOptionalParams,\n SoftwareInventoriesListBySubscriptionOptionalParams,\n SoftwareInventoriesListBySubscriptionResponse,\n SoftwareInventoriesGetOptionalParams,\n SoftwareInventoriesGetResponse,\n SoftwareInventoriesListByExtendedResourceNextResponse,\n SoftwareInventoriesListBySubscriptionNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SoftwareInventories operations. */\nexport class SoftwareInventoriesImpl implements SoftwareInventories {\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class SoftwareInventories class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * Gets the software inventory of the virtual machine.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param resourceNamespace The namespace of the resource.\n * @param resourceType The type of the resource.\n * @param resourceName Name of the resource.\n * @param options The options parameters.\n */\n public listByExtendedResource(\n resourceGroupName: string,\n resourceNamespace: string,\n resourceType: string,\n resourceName: string,\n options?: SoftwareInventoriesListByExtendedResourceOptionalParams,\n ): PagedAsyncIterableIterator<Software> {\n const iter = this.listByExtendedResourcePagingAll(\n resourceGroupName,\n resourceNamespace,\n resourceType,\n resourceName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByExtendedResourcePagingPage(\n resourceGroupName,\n resourceNamespace,\n resourceType,\n resourceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByExtendedResourcePagingPage(\n resourceGroupName: string,\n resourceNamespace: string,\n resourceType: string,\n resourceName: string,\n options?: SoftwareInventoriesListByExtendedResourceOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Software[]> {\n let result: SoftwareInventoriesListByExtendedResourceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByExtendedResource(\n resourceGroupName,\n resourceNamespace,\n resourceType,\n resourceName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByExtendedResourceNext(\n resourceGroupName,\n resourceNamespace,\n resourceType,\n resourceName,\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 *listByExtendedResourcePagingAll(\n resourceGroupName: string,\n resourceNamespace: string,\n resourceType: string,\n resourceName: string,\n options?: SoftwareInventoriesListByExtendedResourceOptionalParams,\n ): AsyncIterableIterator<Software> {\n for await (const page of this.listByExtendedResourcePagingPage(\n resourceGroupName,\n resourceNamespace,\n resourceType,\n resourceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the software inventory of all virtual machines in the subscriptions.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: SoftwareInventoriesListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<Software> {\n const iter = this.listBySubscriptionPagingAll(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.listBySubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: SoftwareInventoriesListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Software[]> {\n let result: SoftwareInventoriesListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(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._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: SoftwareInventoriesListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<Software> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the software inventory of the virtual machine.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param resourceNamespace The namespace of the resource.\n * @param resourceType The type of the resource.\n * @param resourceName Name of the resource.\n * @param options The options parameters.\n */\n private _listByExtendedResource(\n resourceGroupName: string,\n resourceNamespace: string,\n resourceType: string,\n resourceName: string,\n options?: SoftwareInventoriesListByExtendedResourceOptionalParams,\n ): Promise<SoftwareInventoriesListByExtendedResourceResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceNamespace,\n resourceType,\n resourceName,\n options,\n },\n listByExtendedResourceOperationSpec,\n );\n }\n\n /**\n * Gets the software inventory of all virtual machines in the subscriptions.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: SoftwareInventoriesListBySubscriptionOptionalParams,\n ): Promise<SoftwareInventoriesListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\n );\n }\n\n /**\n * Gets a single software data of the virtual machine.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param resourceNamespace The namespace of the resource.\n * @param resourceType The type of the resource.\n * @param resourceName Name of the resource.\n * @param softwareName Name of the installed software.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceNamespace: string,\n resourceType: string,\n resourceName: string,\n softwareName: string,\n options?: SoftwareInventoriesGetOptionalParams,\n ): Promise<SoftwareInventoriesGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceNamespace,\n resourceType,\n resourceName,\n softwareName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * ListByExtendedResourceNext\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param resourceNamespace The namespace of the resource.\n * @param resourceType The type of the resource.\n * @param resourceName Name of the resource.\n * @param nextLink The nextLink from the previous successful call to the ListByExtendedResource method.\n * @param options The options parameters.\n */\n private _listByExtendedResourceNext(\n resourceGroupName: string,\n resourceNamespace: string,\n resourceType: string,\n resourceName: string,\n nextLink: string,\n options?: SoftwareInventoriesListByExtendedResourceNextOptionalParams,\n ): Promise<SoftwareInventoriesListByExtendedResourceNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceNamespace,\n resourceType,\n resourceName,\n nextLink,\n options,\n },\n listByExtendedResourceNextOperationSpec,\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: SoftwareInventoriesListBySubscriptionNextOptionalParams,\n ): Promise<SoftwareInventoriesListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByExtendedResourceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/softwareInventories\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SoftwaresList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceNamespace,\n Parameters.resourceType,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/softwareInventories\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SoftwaresList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/softwareInventories/{softwareName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Software,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceNamespace,\n Parameters.resourceType,\n Parameters.resourceName,\n Parameters.softwareName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByExtendedResourceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SoftwaresList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.resourceGroupName,\n Parameters.resourceNamespace,\n Parameters.resourceType,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SoftwaresList,\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"]}
|
|
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
|
|
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing SqlVulnerabilityAssessmentBaselineRules operations. */
|
|
12
12
|
export class SqlVulnerabilityAssessmentBaselineRulesImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class SqlVulnerabilityAssessmentBaselineRules class.
|
|
15
16
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sqlVulnerabilityAssessmentBaselineRules.js","sourceRoot":"","sources":["../../../src/operations/sqlVulnerabilityAssessmentBaselineRules.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yB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,MAAM;IACjB,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 { SqlVulnerabilityAssessmentBaselineRules } 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 SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateOptionalParams,\n SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateResponse,\n SqlVulnerabilityAssessmentBaselineRulesGetOptionalParams,\n SqlVulnerabilityAssessmentBaselineRulesGetResponse,\n SqlVulnerabilityAssessmentBaselineRulesDeleteOptionalParams,\n SqlVulnerabilityAssessmentBaselineRulesListOptionalParams,\n SqlVulnerabilityAssessmentBaselineRulesListResponse,\n SqlVulnerabilityAssessmentBaselineRulesAddOptionalParams,\n SqlVulnerabilityAssessmentBaselineRulesAddResponse,\n} from \"../models/index.js\";\n\n/** Class containing SqlVulnerabilityAssessmentBaselineRules operations. */\nexport class SqlVulnerabilityAssessmentBaselineRulesImpl\n implements SqlVulnerabilityAssessmentBaselineRules\n{\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class SqlVulnerabilityAssessmentBaselineRules class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * Creates a Baseline for a rule in a database. Will overwrite any previously existing results.\n * @param ruleId The rule Id.\n * @param workspaceId The workspace Id.\n * @param resourceId The identifier of the resource.\n * @param options The options parameters.\n */\n createOrUpdate(\n ruleId: string,\n workspaceId: string,\n resourceId: string,\n options?: SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateOptionalParams,\n ): Promise<SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { ruleId, workspaceId, resourceId, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Gets the results for a given rule in the Baseline.\n * @param ruleId The rule Id.\n * @param workspaceId The workspace Id.\n * @param resourceId The identifier of the resource.\n * @param options The options parameters.\n */\n get(\n ruleId: string,\n workspaceId: string,\n resourceId: string,\n options?: SqlVulnerabilityAssessmentBaselineRulesGetOptionalParams,\n ): Promise<SqlVulnerabilityAssessmentBaselineRulesGetResponse> {\n return this.client.sendOperationRequest(\n { ruleId, workspaceId, resourceId, options },\n getOperationSpec,\n );\n }\n\n /**\n * Deletes a rule from the Baseline of a given database.\n * @param ruleId The rule Id.\n * @param workspaceId The workspace Id.\n * @param resourceId The identifier of the resource.\n * @param options The options parameters.\n */\n delete(\n ruleId: string,\n workspaceId: string,\n resourceId: string,\n options?: SqlVulnerabilityAssessmentBaselineRulesDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { ruleId, workspaceId, resourceId, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets the results for all rules in the Baseline.\n * @param workspaceId The workspace Id.\n * @param resourceId The identifier of the resource.\n * @param options The options parameters.\n */\n list(\n workspaceId: string,\n resourceId: string,\n options?: SqlVulnerabilityAssessmentBaselineRulesListOptionalParams,\n ): Promise<SqlVulnerabilityAssessmentBaselineRulesListResponse> {\n return this.client.sendOperationRequest(\n { workspaceId, resourceId, options },\n listOperationSpec,\n );\n }\n\n /**\n * Add a list of baseline rules. Will overwrite any previously existing results (for all rules).\n * @param workspaceId The workspace Id.\n * @param resourceId The identifier of the resource.\n * @param options The options parameters.\n */\n add(\n workspaceId: string,\n resourceId: string,\n options?: SqlVulnerabilityAssessmentBaselineRulesAddOptionalParams,\n ): Promise<SqlVulnerabilityAssessmentBaselineRulesAddResponse> {\n return this.client.sendOperationRequest(\n { workspaceId, resourceId, options },\n addOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/baselineRules/{ruleId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.RuleResults,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.workspaceId, Parameters.apiVersion12],\n urlParameters: [Parameters.$host, Parameters.ruleId, Parameters.resourceId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/baselineRules/{ruleId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RuleResults,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.workspaceId, Parameters.apiVersion12],\n urlParameters: [Parameters.$host, Parameters.ruleId, Parameters.resourceId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/baselineRules/{ruleId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.workspaceId, Parameters.apiVersion12],\n urlParameters: [Parameters.$host, Parameters.ruleId, Parameters.resourceId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/baselineRules\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RulesResults,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.workspaceId, Parameters.apiVersion12],\n urlParameters: [Parameters.$host, Parameters.resourceId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst addOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/baselineRules\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RulesResults,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.body1,\n queryParameters: [Parameters.workspaceId, Parameters.apiVersion12],\n urlParameters: [Parameters.$host, Parameters.resourceId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"sqlVulnerabilityAssessmentBaselineRules.js","sourceRoot":"","sources":["../../../src/operations/sqlVulnerabilityAssessmentBaselineRules.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AActD,2EAA2E;AAC3E,MAAM,OAAO,2CAA2C;IAGrC,MAAM,CAAiB;IAExC;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,cAAc,CACZ,MAAc,EACd,WAAmB,EACnB,UAAkB,EAClB,OAA6E;QAE7E,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,EAC5C,2BAA2B,CAC5B,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,GAAG,CACD,MAAc,EACd,WAAmB,EACnB,UAAkB,EAClB,OAAkE;QAElE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,EAC5C,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;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C;IAClE,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC;IACxD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,8FAA8F;IACpG,UAAU,EAAE,MAAM;IAClB,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,WAAW,EAAE,UAAU,CAAC,KAAK;IAC7B,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,YAAY,CAAC;IAClE,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC;IACxD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,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 { SqlVulnerabilityAssessmentBaselineRules } 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 SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateOptionalParams,\n SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateResponse,\n SqlVulnerabilityAssessmentBaselineRulesGetOptionalParams,\n SqlVulnerabilityAssessmentBaselineRulesGetResponse,\n SqlVulnerabilityAssessmentBaselineRulesDeleteOptionalParams,\n SqlVulnerabilityAssessmentBaselineRulesListOptionalParams,\n SqlVulnerabilityAssessmentBaselineRulesListResponse,\n SqlVulnerabilityAssessmentBaselineRulesAddOptionalParams,\n SqlVulnerabilityAssessmentBaselineRulesAddResponse,\n} from \"../models/index.js\";\n\n/** Class containing SqlVulnerabilityAssessmentBaselineRules operations. */\nexport class SqlVulnerabilityAssessmentBaselineRulesImpl\n implements SqlVulnerabilityAssessmentBaselineRules\n{\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class SqlVulnerabilityAssessmentBaselineRules class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * Creates a Baseline for a rule in a database. Will overwrite any previously existing results.\n * @param ruleId The rule Id.\n * @param workspaceId The workspace Id.\n * @param resourceId The identifier of the resource.\n * @param options The options parameters.\n */\n createOrUpdate(\n ruleId: string,\n workspaceId: string,\n resourceId: string,\n options?: SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateOptionalParams,\n ): Promise<SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { ruleId, workspaceId, resourceId, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Gets the results for a given rule in the Baseline.\n * @param ruleId The rule Id.\n * @param workspaceId The workspace Id.\n * @param resourceId The identifier of the resource.\n * @param options The options parameters.\n */\n get(\n ruleId: string,\n workspaceId: string,\n resourceId: string,\n options?: SqlVulnerabilityAssessmentBaselineRulesGetOptionalParams,\n ): Promise<SqlVulnerabilityAssessmentBaselineRulesGetResponse> {\n return this.client.sendOperationRequest(\n { ruleId, workspaceId, resourceId, options },\n getOperationSpec,\n );\n }\n\n /**\n * Deletes a rule from the Baseline of a given database.\n * @param ruleId The rule Id.\n * @param workspaceId The workspace Id.\n * @param resourceId The identifier of the resource.\n * @param options The options parameters.\n */\n delete(\n ruleId: string,\n workspaceId: string,\n resourceId: string,\n options?: SqlVulnerabilityAssessmentBaselineRulesDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { ruleId, workspaceId, resourceId, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets the results for all rules in the Baseline.\n * @param workspaceId The workspace Id.\n * @param resourceId The identifier of the resource.\n * @param options The options parameters.\n */\n list(\n workspaceId: string,\n resourceId: string,\n options?: SqlVulnerabilityAssessmentBaselineRulesListOptionalParams,\n ): Promise<SqlVulnerabilityAssessmentBaselineRulesListResponse> {\n return this.client.sendOperationRequest(\n { workspaceId, resourceId, options },\n listOperationSpec,\n );\n }\n\n /**\n * Add a list of baseline rules. Will overwrite any previously existing results (for all rules).\n * @param workspaceId The workspace Id.\n * @param resourceId The identifier of the resource.\n * @param options The options parameters.\n */\n add(\n workspaceId: string,\n resourceId: string,\n options?: SqlVulnerabilityAssessmentBaselineRulesAddOptionalParams,\n ): Promise<SqlVulnerabilityAssessmentBaselineRulesAddResponse> {\n return this.client.sendOperationRequest(\n { workspaceId, resourceId, options },\n addOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/baselineRules/{ruleId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.RuleResults,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.workspaceId, Parameters.apiVersion12],\n urlParameters: [Parameters.$host, Parameters.ruleId, Parameters.resourceId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/baselineRules/{ruleId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RuleResults,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.workspaceId, Parameters.apiVersion12],\n urlParameters: [Parameters.$host, Parameters.ruleId, Parameters.resourceId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/baselineRules/{ruleId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.workspaceId, Parameters.apiVersion12],\n urlParameters: [Parameters.$host, Parameters.ruleId, Parameters.resourceId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/baselineRules\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RulesResults,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.workspaceId, Parameters.apiVersion12],\n urlParameters: [Parameters.$host, Parameters.resourceId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst addOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/baselineRules\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RulesResults,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.body1,\n queryParameters: [Parameters.workspaceId, Parameters.apiVersion12],\n urlParameters: [Parameters.$host, Parameters.resourceId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
|
|
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
|
|
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing SqlVulnerabilityAssessmentScanResults operations. */
|
|
12
12
|
export class SqlVulnerabilityAssessmentScanResultsImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class SqlVulnerabilityAssessmentScanResults class.
|
|
15
16
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sqlVulnerabilityAssessmentScanResults.js","sourceRoot":"","sources":["../../../src/operations/sqlVulnerabilityAssessmentScanResults.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAStD,yEAAyE;AACzE,MAAM,OAAO,yCAAyC;
|
|
1
|
+
{"version":3,"file":"sqlVulnerabilityAssessmentScanResults.js","sourceRoot":"","sources":["../../../src/operations/sqlVulnerabilityAssessmentScanResults.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAStD,yEAAyE;AACzE,MAAM,OAAO,yCAAyC;IAGnC,MAAM,CAAiB;IAExC;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CACD,MAAc,EACd,YAAoB,EACpB,WAAmB,EACnB,UAAkB,EAClB,OAAgE;QAEhE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,EAC1D,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CACF,MAAc,EACd,WAAmB,EACnB,UAAkB,EAClB,OAAiE;QAEjE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,EAC5C,iBAAiB,CAClB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,0HAA0H;IAChI,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,YAAY,CAAC;IAClE,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,2GAA2G;IACjH,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,YAAY,CAAC;IAClE,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC;IAC3E,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { SqlVulnerabilityAssessmentScanResults } 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 SqlVulnerabilityAssessmentScanResultsGetOptionalParams,\n SqlVulnerabilityAssessmentScanResultsGetResponse,\n SqlVulnerabilityAssessmentScanResultsListOptionalParams,\n SqlVulnerabilityAssessmentScanResultsListResponse,\n} from \"../models/index.js\";\n\n/** Class containing SqlVulnerabilityAssessmentScanResults operations. */\nexport class SqlVulnerabilityAssessmentScanResultsImpl\n implements SqlVulnerabilityAssessmentScanResults\n{\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class SqlVulnerabilityAssessmentScanResults class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * Gets the scan results of a single rule in a scan record.\n * @param scanId The scan Id. Type 'latest' to get the scan results for the latest scan.\n * @param scanResultId The rule Id of the results.\n * @param workspaceId The workspace Id.\n * @param resourceId The identifier of the resource.\n * @param options The options parameters.\n */\n get(\n scanId: string,\n scanResultId: string,\n workspaceId: string,\n resourceId: string,\n options?: SqlVulnerabilityAssessmentScanResultsGetOptionalParams,\n ): Promise<SqlVulnerabilityAssessmentScanResultsGetResponse> {\n return this.client.sendOperationRequest(\n { scanId, scanResultId, workspaceId, resourceId, options },\n getOperationSpec,\n );\n }\n\n /**\n * Gets a list of scan results for a single scan record.\n * @param scanId The scan Id. Type 'latest' to get the scan results for the latest scan.\n * @param workspaceId The workspace Id.\n * @param resourceId The identifier of the resource.\n * @param options The options parameters.\n */\n list(\n scanId: string,\n workspaceId: string,\n resourceId: string,\n options?: SqlVulnerabilityAssessmentScanResultsListOptionalParams,\n ): Promise<SqlVulnerabilityAssessmentScanResultsListResponse> {\n return this.client.sendOperationRequest(\n { scanId, workspaceId, resourceId, options },\n listOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/scans/{scanId}/scanResults/{scanResultId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScanResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.workspaceId, Parameters.apiVersion12],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceId,\n Parameters.scanId,\n Parameters.scanResultId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/scans/{scanId}/scanResults\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScanResults,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.workspaceId, Parameters.apiVersion12],\n urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.scanId],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
|
|
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing SqlVulnerabilityAssessmentScans operations. */
|
|
12
12
|
export class SqlVulnerabilityAssessmentScansImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class SqlVulnerabilityAssessmentScans class.
|
|
15
16
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sqlVulnerabilityAssessmentScans.js","sourceRoot":"","sources":["../../../src/operations/sqlVulnerabilityAssessmentScans.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAStD,mEAAmE;AACnE,MAAM,OAAO,mCAAmC;
|
|
1
|
+
{"version":3,"file":"sqlVulnerabilityAssessmentScans.js","sourceRoot":"","sources":["../../../src/operations/sqlVulnerabilityAssessmentScans.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAStD,mEAAmE;AACnE,MAAM,OAAO,mCAAmC;IAG7B,MAAM,CAAiB;IAExC;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,GAAG,CACD,MAAc,EACd,WAAmB,EACnB,UAAkB,EAClB,OAA0D;QAE1D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,EAC5C,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,WAAmB,EACnB,UAAkB,EAClB,OAA2D;QAE3D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,EACpC,iBAAiB,CAClB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,+FAA+F;IACrG,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,IAAI;SACzB;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,YAAY,CAAC;IAClE,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC;IAC3E,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,sFAAsF;IAC5F,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,KAAK;SAC1B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,YAAY,CAAC;IAClE,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC;IACxD,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 { SqlVulnerabilityAssessmentScans } 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 SqlVulnerabilityAssessmentScansGetOptionalParams,\n SqlVulnerabilityAssessmentScansGetResponse,\n SqlVulnerabilityAssessmentScansListOptionalParams,\n SqlVulnerabilityAssessmentScansListResponse,\n} from \"../models/index.js\";\n\n/** Class containing SqlVulnerabilityAssessmentScans operations. */\nexport class SqlVulnerabilityAssessmentScansImpl\n implements SqlVulnerabilityAssessmentScans\n{\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class SqlVulnerabilityAssessmentScans class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * Gets the scan details of a single scan record.\n * @param scanId The scan Id. Type 'latest' to get the scan record for the latest scan.\n * @param workspaceId The workspace Id.\n * @param resourceId The identifier of the resource.\n * @param options The options parameters.\n */\n get(\n scanId: string,\n workspaceId: string,\n resourceId: string,\n options?: SqlVulnerabilityAssessmentScansGetOptionalParams,\n ): Promise<SqlVulnerabilityAssessmentScansGetResponse> {\n return this.client.sendOperationRequest(\n { scanId, workspaceId, resourceId, options },\n getOperationSpec,\n );\n }\n\n /**\n * Gets a list of scan records.\n * @param workspaceId The workspace Id.\n * @param resourceId The identifier of the resource.\n * @param options The options parameters.\n */\n list(\n workspaceId: string,\n resourceId: string,\n options?: SqlVulnerabilityAssessmentScansListOptionalParams,\n ): Promise<SqlVulnerabilityAssessmentScansListResponse> {\n return this.client.sendOperationRequest(\n { workspaceId, resourceId, options },\n listOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/scans/{scanId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Scan,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.workspaceId, Parameters.apiVersion12],\n urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.scanId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/scans\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Scans,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.workspaceId, Parameters.apiVersion12],\n urlParameters: [Parameters.$host, Parameters.resourceId],\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 SubAssessments operations. */
|
|
15
14
|
export class SubAssessmentsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class SubAssessments class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -37,52 +37,35 @@ export class SubAssessmentsImpl {
|
|
|
37
37
|
return this;
|
|
38
38
|
},
|
|
39
39
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
40
|
+
if (settings?.maxPageSize) {
|
|
41
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
42
|
}
|
|
43
43
|
return this.listAllPagingPage(scope, options, settings);
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
listAllPagingPage(scope, options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
47
|
+
async *listAllPagingPage(scope, options, settings) {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings?.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = await this._listAll(scope, options);
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield page;
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = await this._listAllNext(scope, continuationToken, options);
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield page;
|
|
63
|
+
}
|
|
66
64
|
}
|
|
67
|
-
listAllPagingAll(scope, options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = __asyncValues(this.listAllPagingPage(scope, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
65
|
+
async *listAllPagingAll(scope, options) {
|
|
66
|
+
for await (const page of this.listAllPagingPage(scope, options)) {
|
|
67
|
+
yield* page;
|
|
68
|
+
}
|
|
86
69
|
}
|
|
87
70
|
/**
|
|
88
71
|
* Get security sub-assessments on all your scanned resources inside a scope
|
|
@@ -102,52 +85,35 @@ export class SubAssessmentsImpl {
|
|
|
102
85
|
return this;
|
|
103
86
|
},
|
|
104
87
|
byPage: (settings) => {
|
|
105
|
-
if (settings
|
|
88
|
+
if (settings?.maxPageSize) {
|
|
106
89
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
107
90
|
}
|
|
108
91
|
return this.listPagingPage(scope, assessmentName, options, settings);
|
|
109
92
|
},
|
|
110
93
|
};
|
|
111
94
|
}
|
|
112
|
-
listPagingPage(scope, assessmentName, options, settings) {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}
|
|
130
|
-
});
|
|
95
|
+
async *listPagingPage(scope, assessmentName, options, settings) {
|
|
96
|
+
let result;
|
|
97
|
+
let continuationToken = settings?.continuationToken;
|
|
98
|
+
if (!continuationToken) {
|
|
99
|
+
result = await this._list(scope, assessmentName, options);
|
|
100
|
+
let page = result.value || [];
|
|
101
|
+
continuationToken = result.nextLink;
|
|
102
|
+
setContinuationToken(page, continuationToken);
|
|
103
|
+
yield page;
|
|
104
|
+
}
|
|
105
|
+
while (continuationToken) {
|
|
106
|
+
result = await this._listNext(scope, assessmentName, continuationToken, options);
|
|
107
|
+
continuationToken = result.nextLink;
|
|
108
|
+
let page = result.value || [];
|
|
109
|
+
setContinuationToken(page, continuationToken);
|
|
110
|
+
yield page;
|
|
111
|
+
}
|
|
131
112
|
}
|
|
132
|
-
listPagingAll(scope, assessmentName, options) {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(scope, assessmentName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
137
|
-
_c = _f.value;
|
|
138
|
-
_d = false;
|
|
139
|
-
const page = _c;
|
|
140
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
144
|
-
finally {
|
|
145
|
-
try {
|
|
146
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
147
|
-
}
|
|
148
|
-
finally { if (e_2) throw e_2.error; }
|
|
149
|
-
}
|
|
150
|
-
});
|
|
113
|
+
async *listPagingAll(scope, assessmentName, options) {
|
|
114
|
+
for await (const page of this.listPagingPage(scope, assessmentName, options)) {
|
|
115
|
+
yield* page;
|
|
116
|
+
}
|
|
151
117
|
}
|
|
152
118
|
/**
|
|
153
119
|
* Get security sub-assessments on all your scanned resources inside a subscription scope
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subAssessments.js","sourceRoot":"","sources":["../../../src/operations/subAssessments.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,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IAG7B;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,OAAO,CACZ,KAAa,EACb,OAA6C;QAE7C,MAAM,IAAI,GAAG,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QACnD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDA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SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;KAC1B;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 { SubAssessments } 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 SecuritySubAssessment,\n SubAssessmentsListAllNextOptionalParams,\n SubAssessmentsListAllOptionalParams,\n SubAssessmentsListAllResponse,\n SubAssessmentsListNextOptionalParams,\n SubAssessmentsListOptionalParams,\n SubAssessmentsListResponse,\n SubAssessmentsGetOptionalParams,\n SubAssessmentsGetResponse,\n SubAssessmentsListAllNextResponse,\n SubAssessmentsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SubAssessments operations. */\nexport class SubAssessmentsImpl implements SubAssessments {\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class SubAssessments class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * Get security sub-assessments on all your scanned resources inside a subscription scope\n * @param scope Scope of the query, can be subscription\n * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group\n * (/providers/Microsoft.Management/managementGroups/mgName).\n * @param options The options parameters.\n */\n public listAll(\n scope: string,\n options?: SubAssessmentsListAllOptionalParams,\n ): PagedAsyncIterableIterator<SecuritySubAssessment> {\n const iter = this.listAllPagingAll(scope, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listAllPagingPage(scope, options, settings);\n },\n };\n }\n\n private async *listAllPagingPage(\n scope: string,\n options?: SubAssessmentsListAllOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<SecuritySubAssessment[]> {\n let result: SubAssessmentsListAllResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listAll(scope, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listAllNext(scope, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listAllPagingAll(\n scope: string,\n options?: SubAssessmentsListAllOptionalParams,\n ): AsyncIterableIterator<SecuritySubAssessment> {\n for await (const page of this.listAllPagingPage(scope, options)) {\n yield* page;\n }\n }\n\n /**\n * Get security sub-assessments on all your scanned resources inside a scope\n * @param scope Scope of the query, can be subscription\n * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group\n * (/providers/Microsoft.Management/managementGroups/mgName).\n * @param assessmentName The Assessment Key - Unique key for the assessment type\n * @param options The options parameters.\n */\n public list(\n scope: string,\n assessmentName: string,\n options?: SubAssessmentsListOptionalParams,\n ): PagedAsyncIterableIterator<SecuritySubAssessment> {\n const iter = this.listPagingAll(scope, assessmentName, 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(scope, assessmentName, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n scope: string,\n assessmentName: string,\n options?: SubAssessmentsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<SecuritySubAssessment[]> {\n let result: SubAssessmentsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(scope, assessmentName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n scope,\n assessmentName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n scope: string,\n assessmentName: string,\n options?: SubAssessmentsListOptionalParams,\n ): AsyncIterableIterator<SecuritySubAssessment> {\n for await (const page of this.listPagingPage(\n scope,\n assessmentName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get security sub-assessments on all your scanned resources inside a subscription scope\n * @param scope Scope of the query, can be subscription\n * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group\n * (/providers/Microsoft.Management/managementGroups/mgName).\n * @param options The options parameters.\n */\n private _listAll(\n scope: string,\n options?: SubAssessmentsListAllOptionalParams,\n ): Promise<SubAssessmentsListAllResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listAllOperationSpec,\n );\n }\n\n /**\n * Get security sub-assessments on all your scanned resources inside a scope\n * @param scope Scope of the query, can be subscription\n * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group\n * (/providers/Microsoft.Management/managementGroups/mgName).\n * @param assessmentName The Assessment Key - Unique key for the assessment type\n * @param options The options parameters.\n */\n private _list(\n scope: string,\n assessmentName: string,\n options?: SubAssessmentsListOptionalParams,\n ): Promise<SubAssessmentsListResponse> {\n return this.client.sendOperationRequest(\n { scope, assessmentName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Get a security sub-assessment on your scanned resource\n * @param scope Scope of the query, can be subscription\n * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group\n * (/providers/Microsoft.Management/managementGroups/mgName).\n * @param assessmentName The Assessment Key - Unique key for the assessment type\n * @param subAssessmentName The Sub-Assessment Key - Unique key for the sub-assessment type\n * @param options The options parameters.\n */\n get(\n scope: string,\n assessmentName: string,\n subAssessmentName: string,\n options?: SubAssessmentsGetOptionalParams,\n ): Promise<SubAssessmentsGetResponse> {\n return this.client.sendOperationRequest(\n { scope, assessmentName, subAssessmentName, options },\n getOperationSpec,\n );\n }\n\n /**\n * ListAllNext\n * @param scope Scope of the query, can be subscription\n * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group\n * (/providers/Microsoft.Management/managementGroups/mgName).\n * @param nextLink The nextLink from the previous successful call to the ListAll method.\n * @param options The options parameters.\n */\n private _listAllNext(\n scope: string,\n nextLink: string,\n options?: SubAssessmentsListAllNextOptionalParams,\n ): Promise<SubAssessmentsListAllNextResponse> {\n return this.client.sendOperationRequest(\n { scope, nextLink, options },\n listAllNextOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param scope Scope of the query, can be subscription\n * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group\n * (/providers/Microsoft.Management/managementGroups/mgName).\n * @param assessmentName The Assessment Key - Unique key for the assessment type\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 scope: string,\n assessmentName: string,\n nextLink: string,\n options?: SubAssessmentsListNextOptionalParams,\n ): Promise<SubAssessmentsListNextResponse> {\n return this.client.sendOperationRequest(\n { scope, assessmentName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listAllOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Security/subAssessments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SecuritySubAssessmentList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Security/assessments/{assessmentName}/subAssessments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SecuritySubAssessmentList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.assessmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Security/assessments/{assessmentName}/subAssessments/{subAssessmentName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SecuritySubAssessment,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.assessmentName,\n Parameters.subAssessmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listAllNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SecuritySubAssessmentList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SecuritySubAssessmentList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.scope,\n Parameters.assessmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"subAssessments.js","sourceRoot":"","sources":["../../../src/operations/subAssessments.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,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IACZ,MAAM,CAAiB;IAExC;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,OAAO,CACZ,KAAa,EACb,OAA6C;QAE7C,MAAM,IAAI,GAAG,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QACnD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;YAC1D,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,iBAAiB,CAC9B,KAAa,EACb,OAA6C,EAC7C,QAAuB;QAEvB,IAAI,MAAqC,CAAC;QAC1C,IAAI,iBAAiB,GAAG,QAAQ,EAAE,iBAAiB,CAAC;QACpD,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACv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ACF,MAAM,wBAAwB,GAA6B;IACzD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,KAAK,CAAC;IACxE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;KAC1B;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 { SubAssessments } 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 SecuritySubAssessment,\n SubAssessmentsListAllNextOptionalParams,\n SubAssessmentsListAllOptionalParams,\n SubAssessmentsListAllResponse,\n SubAssessmentsListNextOptionalParams,\n SubAssessmentsListOptionalParams,\n SubAssessmentsListResponse,\n SubAssessmentsGetOptionalParams,\n SubAssessmentsGetResponse,\n SubAssessmentsListAllNextResponse,\n SubAssessmentsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SubAssessments operations. */\nexport class SubAssessmentsImpl implements SubAssessments {\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class SubAssessments class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * Get security sub-assessments on all your scanned resources inside a subscription scope\n * @param scope Scope of the query, can be subscription\n * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group\n * (/providers/Microsoft.Management/managementGroups/mgName).\n * @param options The options parameters.\n */\n public listAll(\n scope: string,\n options?: SubAssessmentsListAllOptionalParams,\n ): PagedAsyncIterableIterator<SecuritySubAssessment> {\n const iter = this.listAllPagingAll(scope, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listAllPagingPage(scope, options, settings);\n },\n };\n }\n\n private async *listAllPagingPage(\n scope: string,\n options?: SubAssessmentsListAllOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<SecuritySubAssessment[]> {\n let result: SubAssessmentsListAllResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listAll(scope, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listAllNext(scope, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listAllPagingAll(\n scope: string,\n options?: SubAssessmentsListAllOptionalParams,\n ): AsyncIterableIterator<SecuritySubAssessment> {\n for await (const page of this.listAllPagingPage(scope, options)) {\n yield* page;\n }\n }\n\n /**\n * Get security sub-assessments on all your scanned resources inside a scope\n * @param scope Scope of the query, can be subscription\n * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group\n * (/providers/Microsoft.Management/managementGroups/mgName).\n * @param assessmentName The Assessment Key - Unique key for the assessment type\n * @param options The options parameters.\n */\n public list(\n scope: string,\n assessmentName: string,\n options?: SubAssessmentsListOptionalParams,\n ): PagedAsyncIterableIterator<SecuritySubAssessment> {\n const iter = this.listPagingAll(scope, assessmentName, 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(scope, assessmentName, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n scope: string,\n assessmentName: string,\n options?: SubAssessmentsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<SecuritySubAssessment[]> {\n let result: SubAssessmentsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(scope, assessmentName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n scope,\n assessmentName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n scope: string,\n assessmentName: string,\n options?: SubAssessmentsListOptionalParams,\n ): AsyncIterableIterator<SecuritySubAssessment> {\n for await (const page of this.listPagingPage(\n scope,\n assessmentName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get security sub-assessments on all your scanned resources inside a subscription scope\n * @param scope Scope of the query, can be subscription\n * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group\n * (/providers/Microsoft.Management/managementGroups/mgName).\n * @param options The options parameters.\n */\n private _listAll(\n scope: string,\n options?: SubAssessmentsListAllOptionalParams,\n ): Promise<SubAssessmentsListAllResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listAllOperationSpec,\n );\n }\n\n /**\n * Get security sub-assessments on all your scanned resources inside a scope\n * @param scope Scope of the query, can be subscription\n * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group\n * (/providers/Microsoft.Management/managementGroups/mgName).\n * @param assessmentName The Assessment Key - Unique key for the assessment type\n * @param options The options parameters.\n */\n private _list(\n scope: string,\n assessmentName: string,\n options?: SubAssessmentsListOptionalParams,\n ): Promise<SubAssessmentsListResponse> {\n return this.client.sendOperationRequest(\n { scope, assessmentName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Get a security sub-assessment on your scanned resource\n * @param scope Scope of the query, can be subscription\n * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group\n * (/providers/Microsoft.Management/managementGroups/mgName).\n * @param assessmentName The Assessment Key - Unique key for the assessment type\n * @param subAssessmentName The Sub-Assessment Key - Unique key for the sub-assessment type\n * @param options The options parameters.\n */\n get(\n scope: string,\n assessmentName: string,\n subAssessmentName: string,\n options?: SubAssessmentsGetOptionalParams,\n ): Promise<SubAssessmentsGetResponse> {\n return this.client.sendOperationRequest(\n { scope, assessmentName, subAssessmentName, options },\n getOperationSpec,\n );\n }\n\n /**\n * ListAllNext\n * @param scope Scope of the query, can be subscription\n * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group\n * (/providers/Microsoft.Management/managementGroups/mgName).\n * @param nextLink The nextLink from the previous successful call to the ListAll method.\n * @param options The options parameters.\n */\n private _listAllNext(\n scope: string,\n nextLink: string,\n options?: SubAssessmentsListAllNextOptionalParams,\n ): Promise<SubAssessmentsListAllNextResponse> {\n return this.client.sendOperationRequest(\n { scope, nextLink, options },\n listAllNextOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param scope Scope of the query, can be subscription\n * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group\n * (/providers/Microsoft.Management/managementGroups/mgName).\n * @param assessmentName The Assessment Key - Unique key for the assessment type\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 scope: string,\n assessmentName: string,\n nextLink: string,\n options?: SubAssessmentsListNextOptionalParams,\n ): Promise<SubAssessmentsListNextResponse> {\n return this.client.sendOperationRequest(\n { scope, assessmentName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listAllOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Security/subAssessments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SecuritySubAssessmentList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Security/assessments/{assessmentName}/subAssessments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SecuritySubAssessmentList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.assessmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Security/assessments/{assessmentName}/subAssessments/{subAssessmentName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SecuritySubAssessment,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.assessmentName,\n Parameters.subAssessmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listAllNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SecuritySubAssessmentList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SecuritySubAssessmentList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.scope,\n Parameters.assessmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|