@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
|
@@ -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 Connectors operations. */
|
|
15
14
|
export class ConnectorsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class Connectors class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -34,52 +34,35 @@ export class ConnectorsImpl {
|
|
|
34
34
|
return this;
|
|
35
35
|
},
|
|
36
36
|
byPage: (settings) => {
|
|
37
|
-
if (settings
|
|
37
|
+
if (settings?.maxPageSize) {
|
|
38
38
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
39
39
|
}
|
|
40
40
|
return this.listPagingPage(options, settings);
|
|
41
41
|
},
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
listPagingPage(options, settings) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
});
|
|
44
|
+
async *listPagingPage(options, settings) {
|
|
45
|
+
let result;
|
|
46
|
+
let continuationToken = settings?.continuationToken;
|
|
47
|
+
if (!continuationToken) {
|
|
48
|
+
result = await this._list(options);
|
|
49
|
+
let page = result.value || [];
|
|
50
|
+
continuationToken = result.nextLink;
|
|
51
|
+
setContinuationToken(page, continuationToken);
|
|
52
|
+
yield page;
|
|
53
|
+
}
|
|
54
|
+
while (continuationToken) {
|
|
55
|
+
result = await this._listNext(continuationToken, options);
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
setContinuationToken(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
63
61
|
}
|
|
64
|
-
listPagingAll(options) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
69
|
-
_c = _f.value;
|
|
70
|
-
_d = false;
|
|
71
|
-
const page = _c;
|
|
72
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
76
|
-
finally {
|
|
77
|
-
try {
|
|
78
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
79
|
-
}
|
|
80
|
-
finally { if (e_1) throw e_1.error; }
|
|
81
|
-
}
|
|
82
|
-
});
|
|
62
|
+
async *listPagingAll(options) {
|
|
63
|
+
for await (const page of this.listPagingPage(options)) {
|
|
64
|
+
yield* page;
|
|
65
|
+
}
|
|
83
66
|
}
|
|
84
67
|
/**
|
|
85
68
|
* Cloud accounts connectors of a subscription
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectors.js","sourceRoot":"","sources":["../../../src/operations/connectors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,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;IAC/F,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Connectors } 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 ConnectorSetting,\n ConnectorsListNextOptionalParams,\n ConnectorsListOptionalParams,\n ConnectorsListResponse,\n ConnectorsGetOptionalParams,\n ConnectorsGetResponse,\n ConnectorsCreateOrUpdateOptionalParams,\n ConnectorsCreateOrUpdateResponse,\n ConnectorsDeleteOptionalParams,\n ConnectorsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Connectors operations. */\nexport class ConnectorsImpl implements Connectors {\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class Connectors class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * Cloud accounts connectors of a subscription\n * @param options The options parameters.\n */\n public list(\n options?: ConnectorsListOptionalParams,\n ): PagedAsyncIterableIterator<ConnectorSetting> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: ConnectorsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ConnectorSetting[]> {\n let result: ConnectorsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: ConnectorsListOptionalParams,\n ): AsyncIterableIterator<ConnectorSetting> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Cloud accounts connectors of a subscription\n * @param options The options parameters.\n */\n private _list(\n options?: ConnectorsListOptionalParams,\n ): Promise<ConnectorsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Details of a specific cloud account connector\n * @param connectorName Name of the cloud account connector\n * @param options The options parameters.\n */\n get(\n connectorName: string,\n options?: ConnectorsGetOptionalParams,\n ): Promise<ConnectorsGetResponse> {\n return this.client.sendOperationRequest(\n { connectorName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create a cloud account connector or update an existing one. Connect to your cloud account. For AWS,\n * use either account credentials or role-based authentication. For GCP, use account organization\n * credentials.\n * @param connectorName Name of the cloud account connector\n * @param connectorSetting Settings for the cloud account connector\n * @param options The options parameters.\n */\n createOrUpdate(\n connectorName: string,\n connectorSetting: ConnectorSetting,\n options?: ConnectorsCreateOrUpdateOptionalParams,\n ): Promise<ConnectorsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { connectorName, connectorSetting, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Delete a cloud account connector from a subscription\n * @param connectorName Name of the cloud account connector\n * @param options The options parameters.\n */\n delete(\n connectorName: string,\n options?: ConnectorsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { connectorName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: ConnectorsListNextOptionalParams,\n ): Promise<ConnectorsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/connectors\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectorSettingList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion4],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/connectors/{connectorName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectorSetting,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion4],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.connectorName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/connectors/{connectorName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectorSetting,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.connectorSetting,\n queryParameters: [Parameters.apiVersion4],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.connectorName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/connectors/{connectorName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion4],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.connectorName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectorSettingList,\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":"connectors.js","sourceRoot":"","sources":["../../../src/operations/connectors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE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right (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 { Connectors } 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 ConnectorSetting,\n ConnectorsListNextOptionalParams,\n ConnectorsListOptionalParams,\n ConnectorsListResponse,\n ConnectorsGetOptionalParams,\n ConnectorsGetResponse,\n ConnectorsCreateOrUpdateOptionalParams,\n ConnectorsCreateOrUpdateResponse,\n ConnectorsDeleteOptionalParams,\n ConnectorsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Connectors operations. */\nexport class ConnectorsImpl implements Connectors {\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class Connectors class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * Cloud accounts connectors of a subscription\n * @param options The options parameters.\n */\n public list(\n options?: ConnectorsListOptionalParams,\n ): PagedAsyncIterableIterator<ConnectorSetting> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: ConnectorsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ConnectorSetting[]> {\n let result: ConnectorsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: ConnectorsListOptionalParams,\n ): AsyncIterableIterator<ConnectorSetting> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Cloud accounts connectors of a subscription\n * @param options The options parameters.\n */\n private _list(\n options?: ConnectorsListOptionalParams,\n ): Promise<ConnectorsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Details of a specific cloud account connector\n * @param connectorName Name of the cloud account connector\n * @param options The options parameters.\n */\n get(\n connectorName: string,\n options?: ConnectorsGetOptionalParams,\n ): Promise<ConnectorsGetResponse> {\n return this.client.sendOperationRequest(\n { connectorName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create a cloud account connector or update an existing one. Connect to your cloud account. For AWS,\n * use either account credentials or role-based authentication. For GCP, use account organization\n * credentials.\n * @param connectorName Name of the cloud account connector\n * @param connectorSetting Settings for the cloud account connector\n * @param options The options parameters.\n */\n createOrUpdate(\n connectorName: string,\n connectorSetting: ConnectorSetting,\n options?: ConnectorsCreateOrUpdateOptionalParams,\n ): Promise<ConnectorsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { connectorName, connectorSetting, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Delete a cloud account connector from a subscription\n * @param connectorName Name of the cloud account connector\n * @param options The options parameters.\n */\n delete(\n connectorName: string,\n options?: ConnectorsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { connectorName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: ConnectorsListNextOptionalParams,\n ): Promise<ConnectorsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/connectors\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectorSettingList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion4],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/connectors/{connectorName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectorSetting,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion4],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.connectorName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/connectors/{connectorName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectorSetting,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.connectorSetting,\n queryParameters: [Parameters.apiVersion4],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.connectorName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/connectors/{connectorName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion4],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.connectorName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectorSettingList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing CustomAssessmentAutomations operations. */
|
|
15
14
|
export class CustomAssessmentAutomationsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class CustomAssessmentAutomations class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -36,52 +36,35 @@ export class CustomAssessmentAutomationsImpl {
|
|
|
36
36
|
return this;
|
|
37
37
|
},
|
|
38
38
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
39
|
+
if (settings?.maxPageSize) {
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
41
|
}
|
|
42
42
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
});
|
|
46
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings?.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
51
|
+
let page = result.value || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield page;
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
65
63
|
}
|
|
66
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
-
_c = _f.value;
|
|
72
|
-
_d = false;
|
|
73
|
-
const page = _c;
|
|
74
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
-
finally {
|
|
79
|
-
try {
|
|
80
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
-
}
|
|
82
|
-
finally { if (e_1) throw e_1.error; }
|
|
83
|
-
}
|
|
84
|
-
});
|
|
64
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
65
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
/**
|
|
87
70
|
* List custom assessment automations by provided subscription
|
|
@@ -97,52 +80,35 @@ export class CustomAssessmentAutomationsImpl {
|
|
|
97
80
|
return this;
|
|
98
81
|
},
|
|
99
82
|
byPage: (settings) => {
|
|
100
|
-
if (settings
|
|
83
|
+
if (settings?.maxPageSize) {
|
|
101
84
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
102
85
|
}
|
|
103
86
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
104
87
|
},
|
|
105
88
|
};
|
|
106
89
|
}
|
|
107
|
-
listBySubscriptionPagingPage(options, settings) {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
125
|
-
});
|
|
90
|
+
async *listBySubscriptionPagingPage(options, settings) {
|
|
91
|
+
let result;
|
|
92
|
+
let continuationToken = settings?.continuationToken;
|
|
93
|
+
if (!continuationToken) {
|
|
94
|
+
result = await this._listBySubscription(options);
|
|
95
|
+
let page = result.value || [];
|
|
96
|
+
continuationToken = result.nextLink;
|
|
97
|
+
setContinuationToken(page, continuationToken);
|
|
98
|
+
yield page;
|
|
99
|
+
}
|
|
100
|
+
while (continuationToken) {
|
|
101
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
102
|
+
continuationToken = result.nextLink;
|
|
103
|
+
let page = result.value || [];
|
|
104
|
+
setContinuationToken(page, continuationToken);
|
|
105
|
+
yield page;
|
|
106
|
+
}
|
|
126
107
|
}
|
|
127
|
-
listBySubscriptionPagingAll(options) {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
132
|
-
_c = _f.value;
|
|
133
|
-
_d = false;
|
|
134
|
-
const page = _c;
|
|
135
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
139
|
-
finally {
|
|
140
|
-
try {
|
|
141
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
142
|
-
}
|
|
143
|
-
finally { if (e_2) throw e_2.error; }
|
|
144
|
-
}
|
|
145
|
-
});
|
|
108
|
+
async *listBySubscriptionPagingAll(options) {
|
|
109
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
110
|
+
yield* page;
|
|
111
|
+
}
|
|
146
112
|
}
|
|
147
113
|
/**
|
|
148
114
|
* Gets a single custom assessment automation by name for the provided subscription and resource group.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customAssessmentAutomations.js","sourceRoot":"","sources":["../../../src/operations/customAssessmentAutomations.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;AAoBtD,4CAA4C;AAC5C,+DAA+D;AAC/D,MAAM,OAAO,+BAA+B;IAK1C;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,OAAsE;QAEtE,MAAM,IAAI,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,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;KAC7B;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,qCAAqC;SAC1D;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 { CustomAssessmentAutomations } 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 CustomAssessmentAutomation,\n CustomAssessmentAutomationsListByResourceGroupNextOptionalParams,\n CustomAssessmentAutomationsListByResourceGroupOptionalParams,\n CustomAssessmentAutomationsListByResourceGroupResponse,\n CustomAssessmentAutomationsListBySubscriptionNextOptionalParams,\n CustomAssessmentAutomationsListBySubscriptionOptionalParams,\n CustomAssessmentAutomationsListBySubscriptionResponse,\n CustomAssessmentAutomationsGetOptionalParams,\n CustomAssessmentAutomationsGetResponse,\n CustomAssessmentAutomationRequest,\n CustomAssessmentAutomationsCreateOptionalParams,\n CustomAssessmentAutomationsCreateResponse,\n CustomAssessmentAutomationsDeleteOptionalParams,\n CustomAssessmentAutomationsListByResourceGroupNextResponse,\n CustomAssessmentAutomationsListBySubscriptionNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing CustomAssessmentAutomations operations. */\nexport class CustomAssessmentAutomationsImpl\n implements CustomAssessmentAutomations\n{\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class CustomAssessmentAutomations class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * List custom assessment automations by provided subscription and resource group\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: CustomAssessmentAutomationsListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<CustomAssessmentAutomation> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: CustomAssessmentAutomationsListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<CustomAssessmentAutomation[]> {\n let result: CustomAssessmentAutomationsListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: CustomAssessmentAutomationsListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<CustomAssessmentAutomation> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List custom assessment automations by provided subscription\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: CustomAssessmentAutomationsListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<CustomAssessmentAutomation> {\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?: CustomAssessmentAutomationsListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<CustomAssessmentAutomation[]> {\n let result: CustomAssessmentAutomationsListBySubscriptionResponse;\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?: CustomAssessmentAutomationsListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<CustomAssessmentAutomation> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets a single custom assessment automation by name for the provided subscription and resource group.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param customAssessmentAutomationName Name of the Custom Assessment Automation.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n customAssessmentAutomationName: string,\n options?: CustomAssessmentAutomationsGetOptionalParams,\n ): Promise<CustomAssessmentAutomationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, customAssessmentAutomationName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates or updates a custom assessment automation for the provided subscription. Please note that\n * providing an existing custom assessment automation will replace the existing record.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param customAssessmentAutomationName Name of the Custom Assessment Automation.\n * @param customAssessmentAutomationBody Custom Assessment Automation body\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n customAssessmentAutomationName: string,\n customAssessmentAutomationBody: CustomAssessmentAutomationRequest,\n options?: CustomAssessmentAutomationsCreateOptionalParams,\n ): Promise<CustomAssessmentAutomationsCreateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n customAssessmentAutomationName,\n customAssessmentAutomationBody,\n options,\n },\n createOperationSpec,\n );\n }\n\n /**\n * Deletes a custom assessment automation by name for a provided subscription\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param customAssessmentAutomationName Name of the Custom Assessment Automation.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n customAssessmentAutomationName: string,\n options?: CustomAssessmentAutomationsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, customAssessmentAutomationName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * List custom assessment automations by provided subscription and resource group\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: CustomAssessmentAutomationsListByResourceGroupOptionalParams,\n ): Promise<CustomAssessmentAutomationsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * List custom assessment automations by provided subscription\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: CustomAssessmentAutomationsListBySubscriptionOptionalParams,\n ): Promise<CustomAssessmentAutomationsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: CustomAssessmentAutomationsListByResourceGroupNextOptionalParams,\n ): Promise<CustomAssessmentAutomationsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\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?: CustomAssessmentAutomationsListBySubscriptionNextOptionalParams,\n ): Promise<CustomAssessmentAutomationsListBySubscriptionNextResponse> {\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 getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Security/customAssessmentAutomations/{customAssessmentAutomationName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomAssessmentAutomation,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.customAssessmentAutomationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Security/customAssessmentAutomations/{customAssessmentAutomationName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomAssessmentAutomation,\n },\n 201: {\n bodyMapper: Mappers.CustomAssessmentAutomation,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.customAssessmentAutomationBody,\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.customAssessmentAutomationName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Security/customAssessmentAutomations/{customAssessmentAutomationName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.customAssessmentAutomationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Security/customAssessmentAutomations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomAssessmentAutomationsListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/customAssessmentAutomations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomAssessmentAutomationsListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomAssessmentAutomationsListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomAssessmentAutomationsListResult,\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":"customAssessmentAutomations.js","sourceRoot":"","sources":["../../../src/operations/customAssessmentAutomations.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;AAoBtD,4CAA4C;AAC5C,+DAA+D;AAC/D,MAAM,OAAO,+BAA+B;IAGzB,MAAM,CAAiB;IAExC;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,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AAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qCAAqC;SAC1D;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 { CustomAssessmentAutomations } 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 CustomAssessmentAutomation,\n CustomAssessmentAutomationsListByResourceGroupNextOptionalParams,\n CustomAssessmentAutomationsListByResourceGroupOptionalParams,\n CustomAssessmentAutomationsListByResourceGroupResponse,\n CustomAssessmentAutomationsListBySubscriptionNextOptionalParams,\n CustomAssessmentAutomationsListBySubscriptionOptionalParams,\n CustomAssessmentAutomationsListBySubscriptionResponse,\n CustomAssessmentAutomationsGetOptionalParams,\n CustomAssessmentAutomationsGetResponse,\n CustomAssessmentAutomationRequest,\n CustomAssessmentAutomationsCreateOptionalParams,\n CustomAssessmentAutomationsCreateResponse,\n CustomAssessmentAutomationsDeleteOptionalParams,\n CustomAssessmentAutomationsListByResourceGroupNextResponse,\n CustomAssessmentAutomationsListBySubscriptionNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing CustomAssessmentAutomations operations. */\nexport class CustomAssessmentAutomationsImpl\n implements CustomAssessmentAutomations\n{\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class CustomAssessmentAutomations class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * List custom assessment automations by provided subscription and resource group\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: CustomAssessmentAutomationsListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<CustomAssessmentAutomation> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: CustomAssessmentAutomationsListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<CustomAssessmentAutomation[]> {\n let result: CustomAssessmentAutomationsListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: CustomAssessmentAutomationsListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<CustomAssessmentAutomation> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List custom assessment automations by provided subscription\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: CustomAssessmentAutomationsListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<CustomAssessmentAutomation> {\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?: CustomAssessmentAutomationsListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<CustomAssessmentAutomation[]> {\n let result: CustomAssessmentAutomationsListBySubscriptionResponse;\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?: CustomAssessmentAutomationsListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<CustomAssessmentAutomation> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets a single custom assessment automation by name for the provided subscription and resource group.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param customAssessmentAutomationName Name of the Custom Assessment Automation.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n customAssessmentAutomationName: string,\n options?: CustomAssessmentAutomationsGetOptionalParams,\n ): Promise<CustomAssessmentAutomationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, customAssessmentAutomationName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates or updates a custom assessment automation for the provided subscription. Please note that\n * providing an existing custom assessment automation will replace the existing record.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param customAssessmentAutomationName Name of the Custom Assessment Automation.\n * @param customAssessmentAutomationBody Custom Assessment Automation body\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n customAssessmentAutomationName: string,\n customAssessmentAutomationBody: CustomAssessmentAutomationRequest,\n options?: CustomAssessmentAutomationsCreateOptionalParams,\n ): Promise<CustomAssessmentAutomationsCreateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n customAssessmentAutomationName,\n customAssessmentAutomationBody,\n options,\n },\n createOperationSpec,\n );\n }\n\n /**\n * Deletes a custom assessment automation by name for a provided subscription\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param customAssessmentAutomationName Name of the Custom Assessment Automation.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n customAssessmentAutomationName: string,\n options?: CustomAssessmentAutomationsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, customAssessmentAutomationName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * List custom assessment automations by provided subscription and resource group\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: CustomAssessmentAutomationsListByResourceGroupOptionalParams,\n ): Promise<CustomAssessmentAutomationsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * List custom assessment automations by provided subscription\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: CustomAssessmentAutomationsListBySubscriptionOptionalParams,\n ): Promise<CustomAssessmentAutomationsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: CustomAssessmentAutomationsListByResourceGroupNextOptionalParams,\n ): Promise<CustomAssessmentAutomationsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\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?: CustomAssessmentAutomationsListBySubscriptionNextOptionalParams,\n ): Promise<CustomAssessmentAutomationsListBySubscriptionNextResponse> {\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 getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Security/customAssessmentAutomations/{customAssessmentAutomationName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomAssessmentAutomation,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.customAssessmentAutomationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Security/customAssessmentAutomations/{customAssessmentAutomationName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomAssessmentAutomation,\n },\n 201: {\n bodyMapper: Mappers.CustomAssessmentAutomation,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.customAssessmentAutomationBody,\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.customAssessmentAutomationName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Security/customAssessmentAutomations/{customAssessmentAutomationName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.customAssessmentAutomationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Security/customAssessmentAutomations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomAssessmentAutomationsListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/customAssessmentAutomations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomAssessmentAutomationsListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomAssessmentAutomationsListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomAssessmentAutomationsListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing CustomEntityStoreAssignments operations. */
|
|
15
14
|
export class CustomEntityStoreAssignmentsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class CustomEntityStoreAssignments class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -36,52 +36,35 @@ export class CustomEntityStoreAssignmentsImpl {
|
|
|
36
36
|
return this;
|
|
37
37
|
},
|
|
38
38
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
39
|
+
if (settings?.maxPageSize) {
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
41
|
}
|
|
42
42
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
});
|
|
46
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings?.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
51
|
+
let page = result.value || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield page;
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
65
63
|
}
|
|
66
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
-
_c = _f.value;
|
|
72
|
-
_d = false;
|
|
73
|
-
const page = _c;
|
|
74
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
-
finally {
|
|
79
|
-
try {
|
|
80
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
-
}
|
|
82
|
-
finally { if (e_1) throw e_1.error; }
|
|
83
|
-
}
|
|
84
|
-
});
|
|
64
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
65
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
/**
|
|
87
70
|
* List custom entity store assignments by provided subscription
|
|
@@ -97,52 +80,35 @@ export class CustomEntityStoreAssignmentsImpl {
|
|
|
97
80
|
return this;
|
|
98
81
|
},
|
|
99
82
|
byPage: (settings) => {
|
|
100
|
-
if (settings
|
|
83
|
+
if (settings?.maxPageSize) {
|
|
101
84
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
102
85
|
}
|
|
103
86
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
104
87
|
},
|
|
105
88
|
};
|
|
106
89
|
}
|
|
107
|
-
listBySubscriptionPagingPage(options, settings) {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
125
|
-
});
|
|
90
|
+
async *listBySubscriptionPagingPage(options, settings) {
|
|
91
|
+
let result;
|
|
92
|
+
let continuationToken = settings?.continuationToken;
|
|
93
|
+
if (!continuationToken) {
|
|
94
|
+
result = await this._listBySubscription(options);
|
|
95
|
+
let page = result.value || [];
|
|
96
|
+
continuationToken = result.nextLink;
|
|
97
|
+
setContinuationToken(page, continuationToken);
|
|
98
|
+
yield page;
|
|
99
|
+
}
|
|
100
|
+
while (continuationToken) {
|
|
101
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
102
|
+
continuationToken = result.nextLink;
|
|
103
|
+
let page = result.value || [];
|
|
104
|
+
setContinuationToken(page, continuationToken);
|
|
105
|
+
yield page;
|
|
106
|
+
}
|
|
126
107
|
}
|
|
127
|
-
listBySubscriptionPagingAll(options) {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
132
|
-
_c = _f.value;
|
|
133
|
-
_d = false;
|
|
134
|
-
const page = _c;
|
|
135
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
139
|
-
finally {
|
|
140
|
-
try {
|
|
141
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
142
|
-
}
|
|
143
|
-
finally { if (e_2) throw e_2.error; }
|
|
144
|
-
}
|
|
145
|
-
});
|
|
108
|
+
async *listBySubscriptionPagingAll(options) {
|
|
109
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
110
|
+
yield* page;
|
|
111
|
+
}
|
|
146
112
|
}
|
|
147
113
|
/**
|
|
148
114
|
* Gets a single custom entity store assignment by name for the provided subscription and resource
|